-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Simplified loss computation by using a configurable loss function. - Replaced the inline loss computation logic with a call to self.loss_function. - Introduced ForCausalLMContextParallelLoss for context parallel loss computation. - Updated the __init__ method to set the loss function based on the parallel strategy. - Ensured compatibility with Transformers 4.48.3 by aligning with its structure and conventions.
- Loading branch information
Showing
1 changed file
with
5 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters