# Liger Kernel: Efficient Triton Kernels for LLM Training

- **ID:** 567
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2410.10989
- **Authors:** Pin-Lun Hsu, Yun Dai, Vignesh Kothapalli, Qingquan Song, Shao Tang, Siyu Zhu, Steven Shimizu, Shivam Sahni, Haowen Ning, Yanning Chen
- **Venue:** arXiv / LinkedIn
- **Published:** 2024
- **License:** CC BY 4.0
- **License family:** Permissive (auto-classified)
- **Tags:** liger, triton, fused-kernels, rmsnorm, rope, swiglu, flce, linkedin, llm-training
- **Topics:** Triton kernels, LLM training efficiency, operator fusion
- **Added:** 2026-10-01
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/567

## Summary

Open-source Triton kernels (RMSNorm, LayerNorm, RoPE, SwiGLU/GeGLU, CrossEntropy, FusedLinearCrossEntropy) using fusion and input chunking. Reports ~20% higher training throughput and ~60% less GPU memory vs HuggingFace implementations. 4×A100 Alpaca seq-512: Llama 3-8B +42.8% throughput / −54.8% memory at batch 64; Qwen2 +25.5% / −56.8% at batch 48. Also Gemma, Mistral, Phi-3. AutoLigerKernelForCausalLM plus HF Trainer/TRL/Axolotl/LLaMA-Factory hooks. Code https://github.com/linkedin/Liger-Kernel.

## Attributes

- **Purpose:** Fuse common LLM training ops into Triton kernels to cut memory and raise throughput vs HuggingFace eager
- **Scale:** Kernel benches on A100 80GB (CE vocab to 163840; hidden/seq 4096–16384). End-to-end 4×A100 Llama-3-8B/Qwen2/Gemma/Mistral/Phi3 on Alpaca seq 512
- **Time period:** 2024-10-14 (arXiv 2410.10989 v1); last revised 2025-01-24 (v3). Comment: 17 pages, 12 figures. HF paper publishedAt 2024-10-14.

## From the source (fetched 2026-10-03)

- **Published:** Oct 14, 2024 (arXiv)
- **Last revised:** Jan 24, 2025 (arXiv)
- **arXiv categories:** cs.LG, cs.AI, cs.CL, cs.DC (arXiv)
- **Author comment:** 17 pages, 12 figures (arXiv)
- **Citations:** 155 (6 influential) (Semantic Scholar)
- **References:** 28 (Semantic Scholar)

## Abstract

Training Large Language Models (LLMs) efficiently at scale presents a formidable challenge, driven by their ever-increasing computational demands and the need for enhanced performance. In this work, we introduce Liger-Kernel, an open-sourced set of Triton kernels developed specifically for LLM training. With kernel optimization techniques like kernel operation fusing and input chunking, our kernels achieve on average a 20% increase in training throughput and a 60% reduction in GPU memory usage for popular LLMs compared to HuggingFace implementations. In addition, Liger-Kernel is designed with modularity, accessibility, and adaptability in mind, catering to both casual and expert users. Comprehensive benchmarks and integration tests are built in to ensure compatibility, performance, correctness, and convergence across diverse computing environments and model architectures. The source code is available under a permissive license at: github.com/linkedin/Liger-Kernel.

## Research notes

- Primary: arxiv abs (cs.LG; also cs.AI, cs.CL, cs.DC). License CC BY 4.0 on HTML at check. Comment: 17 pages, 12 figures. All authors LinkedIn. Code https://github.com/linkedin/Liger-Kernel (HF githubRepo; 6,567 stars at check; BSD-2-Clause). HF paper page 3 upvotes; unofficial linked models not copied into hf_* fields. Discord posted abs; a follow-up message linked examples/huggingface/training.py. Kernel library, not a new corpus, so no datasets_local row.

## Cited by, within this collection

- [Helios: Real Real-Time Long Video Generation Model](https://papers.projxon.ai/entries/531) (paper 2026, #531)

## Similar entries

- [Hawkeye: Hardware-Aware GPU Kernel Optimization with Minimal Supervision](https://papers.projxon.ai/entries/888) (paper, #888)
- [Demystifying Manifold Constraints in LLM Pre-training](https://papers.projxon.ai/entries/526) (paper, #526)
- [MILO: Efficient Many-shot In-Context Learning with Block-wise Low-rank Compression](https://papers.projxon.ai/entries/1067) (paper, #1067)
- [GrowLength: Accelerating LLMs Pretraining by Progressively Growing Training Length](https://papers.projxon.ai/entries/1103) (paper, #1103)
- [PowLU: An Activation Function for Stable Pre-Training of LLMs](https://papers.projxon.ai/entries/509) (paper, #509)
- [vime × RL-Kernel × AMD: Bitwise Train–Rollout Consistency on ROCm (RL-Kernel v0.1.0)](https://papers.projxon.ai/entries/1044) (post, #1044)
