We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6af867 commit 508e238Copy full SHA for 508e238
src/forge/util/ops.py
@@ -9,7 +9,10 @@
9
10
11
def compute_logprobs(
12
- logits: torch.Tensor, input_ids: torch.Tensor, temperature: float = 1.0, align: bool = True
+ logits: torch.Tensor,
13
+ input_ids: torch.Tensor,
14
+ temperature: float = 1.0,
15
+ align: bool = True,
16
) -> torch.Tensor:
17
"""
18
Computes the log probabilities of the input tokens given the model logits and temperature.
0 commit comments