From the source
- Fixes a bug in the Transformers Trainer where gradient accumulation loss was not computed correctly for token-level tasks such as causal LM training.
- Now the default loss function automatically handles the correct normalization, and a new API is exposed to allow users to pass custom loss functions.






