Overview of Liger Kernel
mainLiger Kernel is a collection of Triton kernels specifically designed to optimize LLM training. It provides Hugging Face compatible implementations of layers like RMSNorm, RoPE, SwiGLU, and CrossEntropy.
Key benefits include:
- Increased Throughput: Up to 20% increase in multi-GPU training throughput.
- Reduced Memory Usage: Up to 60% reduction in memory usage for standard training, and up to 80% for post-training tasks (alignment/distillation).
- Compatibility: Works out of the box with Flash Attention, PyTorch FSDP, and Microsoft DeepSpeed.
- Exact Computation: No approximations are used; kernels are mathematically exact and verified against standard implementations.