Skip to content

Commit 508e238

Browse files
committed
Lint
1 parent a6af867 commit 508e238

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/forge/util/ops.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99

1010

1111
def compute_logprobs(
12-
logits: torch.Tensor, input_ids: torch.Tensor, temperature: float = 1.0, align: bool = True
12+
logits: torch.Tensor,
13+
input_ids: torch.Tensor,
14+
temperature: float = 1.0,
15+
align: bool = True,
1316
) -> torch.Tensor:
1417
"""
1518
Computes the log probabilities of the input tokens given the model logits and temperature.

0 commit comments

Comments
 (0)