Skip to content

Commit 8723a5a

Browse files
Update src/forge/util/ops.py
Co-authored-by: Joe Cummings <[email protected]>
1 parent 9b6f3b5 commit 8723a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forge/util/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def compute_logprobs(
7979

8080
# get per-token log probs
8181
batch_size, seq_len, vocab_size = scaled_logits_fp32.shape
82-
log_probs = -F.cross_entropy(
82+
logprobs = -F.cross_entropy(
8383
scaled_logits_fp32.reshape(-1, vocab_size),
8484
input_ids.reshape(-1).long(),
8585
reduction="none",

0 commit comments

Comments
 (0)