#49 · Primary category: Deep Learning Frameworks
Liger-Kernel
Efficient Triton Kernels for LLM Training
Project last updated:08/28/26
GitHub Stars
6.6K
Forks
588
Contributors
161
License
BSD-2-Clause
Why we included this project
Teams fine-tuning or pretraining large language models on multiple GPUs will find this library useful because it swaps the heaviest Transformer layers for tightly fused Triton kernels. Swapping in its implementations of RMSNorm, RoPE, SwiGLU, cross-entropy, and fused linear-cross-entropy typically lifts throughput on the same Hugging Face training run by roughly 20 percent while cutting GPU memory use noticeably. That freed memory often goes toward longer context windows, bigger batch sizes, or fitting on smaller hardware instead of renting more nodes. The project also ships optimized kernels for preference-alignment losses like DPO, ORPO, and SimPO, which tend to hit memory bottlenecks. Integration is straightforward: a one-line patch covers a supported model, or you can compose your own using the provided modules, and it works alongside Flash Attention, FSDP, and DeepSpeed without rearchitecting an existing pipeline.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
tensorflow
An Open Source Machine Learning Framework for Everyone
pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
keras
Deep Learning for humans
nanoGPT
The simplest, fastest repository for training/finetuning medium-sized GPTs.
ray
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.