Liger Kernel

Triton kernels from LinkedIn that raise LLM training throughput about 20 percent and cut memory 60 percent.

Open SourceSelf HostedOffline CapableGPU Required
0.0 (0)

About

A single line of code, AutoLigerKernelForCausalLM, patches optimized Triton kernels into a Hugging Face model, which is how LinkedIn's Liger Kernel raises multi-GPU training throughput by about 20 percent while cutting memory use around 60 percent. The library swaps RMSNorm, RoPE, SwiGLU, cross entropy, and fused linear cross entropy operations for exact fused implementations with no approximations, and adds chunked post-training loss kernels for DPO, ORPO, SimPO, and KTO that reduce alignment and distillation memory by up to 80 percent. It works alongside PyTorch FSDP, DeepSpeed, and Flash Attention, covers more than 30 architectures including Llama, Mistral, Gemma, and Qwen, and runs on NVIDIA CUDA, AMD ROCm, and Ascend NPU hardware. Installation is pip install liger-kernel with torch 2.1.2 and triton 2.3.0 or newer on the CUDA path. Axolotl, LLaMA-Factory, and Hugging Face TRL have adopted it as a standard efficiency layer, the BSD-2-Clause license permits commercial use, and the project holds around 6,500 GitHub stars.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Intermediate (3/5)
License
BSD-2-Clause
Added
Jul 29, 2026

Related Tools

Framework for generating synthetic data and AI feedback through composable LLM pipelines.

Open SourceSelf HostedOffline
Intermediate
0.0 (0)

Subject-driven fine-tuning technique for personalizing diffusion models.

Open SourceSelf HostedOfflineGPU 8GB+
Intermediate
0.0 (0)

Video model fine-tuning toolkit by Hugging Face Diffusers team.

Open SourceSelf HostedOfflineGPU 16GB+
Advanced
0.0 (0)

Efficient LLM quantization preserving important weight channels.

Open SourceSelf HostedOfflineGPU 8GB+
Intermediate
0.0 (0)

All-in-one Stable Diffusion fine-tuning tool with intuitive GUI.

Open SourceSelf HostedOfflineGPU 8GB+
Easy
0.0 (0)

No-code tool by Hugging Face for training ML models automatically.

Open SourceSelf HostedOfflineGPU 8GB+
Beginner
0.0 (0)
Browse all Model Training & Fine-Tuning tools