Skip to content

Commit

Permalink
loss
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Mishra <[email protected]>
  • Loading branch information
mayank31398 committed Nov 4, 2024
1 parent 9545480 commit 4de6193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dolomite_engine/hf_models/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_autoregressive_language_modeling_loss(
use_padding_free_transformer: bool = False,
reduction: str = "mean",
tensor_parallel_word_embeddings: bool = False,
) -> DTensor:
) -> torch.Tensor | DTensor:
if use_padding_free_transformer:
assert cu_seqlens is not None

Expand Down

0 comments on commit 4de6193

Please sign in to comment.