Skip to content

Commit d364c25

Browse files
committed
empty
Signed-off-by: h-guo18 <[email protected]>
1 parent 3415d15 commit d364c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modelopt/torch/speculative/plugins/transformers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def _eagle_loss(
833833
eagle_logits
834834
)
835835
classification_loss = -torch.sum(torch.sum(loss_mask * classification_loss, 2)) / (
836-
loss_mask.sum() + 1e-5
836+
loss_mask.sum() + 1e-6
837837
)
838838
# Compute accuracy
839839
base_predict_tok = base_model_logits.clone().detach().argmax(dim=-1)

0 commit comments

Comments
 (0)