Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ def lce_forward(
return_dict: Optional[bool] = None,
cache_position: Optional[torch.LongTensor] = None,
num_logits_to_keep: int = 0,
num_items_in_batch = None,
) -> Union[Tuple, CausalLMOutputWithPast]:
r"""
Copy paste llama forward but replace torch cross entropy with liger fused linear cross entropy
Expand Down