cut_cross_entropy
A memory efficient implementation of linear-cross-entropy loss.
A memory efficient implementation of linear-cross-entropy loss.
To install this package, run one of the following:
Cut Cross-Entropy (CCE) is a memory-efficient implementation of the linear-cross-entropy loss used when training large language models. It computes the cross-entropy loss without materializing the full logits matrix in global memory, using custom Triton kernels, which substantially reduces memory usage during training.
Summary
A memory efficient implementation of linear-cross-entropy loss.
Last Updated
Jun 24, 2026 at 17:30
License
LicenseRef-Apple
Supported Platforms
GitHub Repository
https://github.com/unslothai/cut-cross-entropyDocumentation
https://github.com/unslothai/cut-cross-entropy