Liger-Kernel
linkedin/Liger-Kernel · Public GitHub repository
Efficient Triton Kernels for LLM Training
Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

About this project
Author-written excerpt from the project README.
Installation | Getting Started | Examples | High-level APIs | Low-level APIs | Cite our work
Liger Kernel is a collection of Triton kernels designed specifically for LLM training. It can effectively increase multi-GPU training throughput by 20% and reduces memory usage by 60%. We have implemented Hugging Face Compatible RMSNorm, RoPE, SwiGLU, CrossEntropy, FusedLinearCrossEntropy, and more to come. The kernel works out of the box with Flash Attention, PyTorch FSDP, and Microsoft DeepSpeed. We welcome contributions from the community to gather the best kernels for LLM training.
We've also added optimized Post-Training kernels that deliver up to 80% memory savings for alignment and distillation tasks. We support losses like DPO, CPO, ORPO, SimPO, KTO, JSD, and many more. Check out how we optimize the memory.
- [2025/12/19] We announced a liger kernel discord channel at We will be hosting Liger Kernel x Triton China Meetup in mid of January 2026
- [2025/03/06] We release a joint blog post on TorchTune × Liger - Peak Performance, Minimized Memory: Optimizing torchtune’s performance with torch.compile & Liger Kernel
- [2024/12/11] We release v0.5.0: 80% more memory efficient post training losses (DPO, ORPO, CPO, etc)!
- [2024/12/5] We release LinkedIn Engineering Blog - Liger-Kernel: Empowering an open source ecosystem of Triton Kernels for Efficient LLM Training
- [2024/11/6] We release v0.4.0: Full AMD support, Tech Report, Modal CI, Llama-3.2-Vision!
Requirements and intended audience
Installation | Getting Started | Examples | High-level APIs | Low-level APIs | Cite our work
- Paid service · Optional
It is optional — every kernel falls back to the marshalling launch without it — but short kernels are dominated by that per-call cost, so installing it is strongly recommended.
Not recorded: account, external api key, self-hosting. Missing information does not mean there are no requirements.
Statements extracted from the author’s documentation · Checked 2026-10-24. Source: https://github.com/linkedin/Liger-Kernel/blob/main/README.md
Recorded maintenance information
Last recorded source update: 2026-11-02. Saved release: v0.8.4 · 2026-09-30. These dates do not guarantee ongoing maintenance.
- Technologies
- Python
- Licence
- BSD-2-Clause. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
- Demo check
- A public page loaded on 2026-11-06. This does not test every feature.
Browse related categories
More projects to explore
DeepSite v4
hf:enzostvs/deepsite
Generate any application by Vibe Coding it
Open LLM Leaderboard
hf:open-llm-leaderboard/open_llm_leaderboard
Track, rank and evaluate open LLMs and chatbots
AI Comic Factory
hf:jbilcke-hf/ai-comic-factory
Create your own AI comic with a single prompt
MiroFish
666ghj/MiroFish
A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物