← All entries
Paper2024#567

Liger Kernel: Efficient Triton Kernels for LLM Training

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.

Venue
arXiv / LinkedIn
License
CC BY 4.0
License family
Permissive
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.
Added
Oct 1, 2026
Research status
done

From the source

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

Fetched Oct 3, 2026 from arXiv, Semantic Scholar. These numbers change; the curated fields above do not come from here.

Abstract (from arXiv)

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.

Tags

ligertritonfused-kernelsrmsnormropeswigluflcelinkedinllm-training

Topics

Triton kernels, LLM training efficiency, operator fusion

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 1

Similar entries