Download Latest Version v0.8.1 source code.zip (4.5 MB)
Email in envelope

Get an email when there's a new version of Liger Kernel

Home / v0.8.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-07-22 11.1 kB
v0.8.1 source code.tar.gz 2026-07-22 4.2 MB
v0.8.1 source code.zip 2026-07-22 4.5 MB
Totals: 3 Items   8.8 MB 0

Liger-Kernel v0.8.1

Highlights

This is an incremental release on top of v0.8.0, bundling a new Megatron-Core integration, additional model coverage, early scaffolding for alternative kernel backends, and a large batch of Ascend NPU work — all opt-in, with the default CUDA path unchanged.

🧩 Megatron-Core integration (new)

Initial, opt-in support for plugging Liger kernels directly into Megatron-Core through native integration points — no monkey-patching of Megatron internals required. Exposed under the new liger_kernel.megatron namespace:

  • RMSNorm via a spec provider (#1254)
  • Vocab-parallel cross-entropy, including TP > 1 (#1207, [#1260])
  • RMSNorm benchmark with reference H100 measurements (#1257)

This is an initial surface covering two kernels; it's designed to grow.

🤖 New model support

  • Gemma-4 multimodal — apply_liger_kernel_to_gemma4 (#1203)
  • DeepSeek-v4 — apply_liger_kernel_to_deepseek_v4 (#1245)
  • Fix for Gemma-3 multimodal forward (#1242)

🧪 Alternative kernel backends (experimental, opt-in)

Early groundwork for selecting alternative kernel implementations via LIGER_KERNEL_IMPL=<backend>. These are off by default and do not change existing behavior:

  • cuTile kernels for geglu, layer_norm, fused_linear_jsd, cross_entropy, RoPE, and more (#1250, [#1269], [#1228])
  • CuTe DSL cross-entropy scaffolding for Blackwell / B200 (#1279)
  • CUTLASS CuTe DSL RMSNorm (#1299)
  • infer_device_arch() for coarse GPU-architecture detection (#1273)

➕ New operators & kernel tuning

  • Fused modulated RMSNorm (#1225)
  • Hardware-gated cross-entropy and SwiGLU tuning for newer architectures (#1266, [#1267], [#1271], [#1239])

🧠 Post-training / alignment

  • DPO: added hinge, bco_pair, robust, exo_pair, and discopop loss types (#1204)
  • Expose alpha through the LigerFusedLinearDPO public API (#1194)
  • GRPO/TRL-Liger fix and a SAPO torch.compile graph-break fix (#1202, [#1274])

🖥️ Ascend NPU

A substantial batch of NPU work landed this cycle — optimized cross_entropy, fused_linear_cross_entropy, SwiGLU, layer_norm, embedding, fused_moe, and attention kernels, plus A3-machine support and dependency bumps (torch/torch_npu 2.7.1, triton-ascend 3.2.1).

🔧 Compatibility & fixes

  • transformers v5.8.0 support (#1221, [#1236])
  • Triton compatibility: LOG2_E as tl.constexpr (#1275)
  • int32 pointer-overflow fix in fused MoE, with an autotune escape hatch (#1248)
  • ROCm source-install extras (#1243)
  • Convergence and test-suite stabilization (#1306, [#1309], [#1310], [#1313])

👀 On the horizon

The alternative-backend scaffolding (cuTile / CuTe DSL / CUTLASS) and the new Megatron-Core surface are early foundations — both are areas we expect to keep building on in upcoming releases.


What's Changed

New Contributors

Full Changelog: https://github.com/linkedin/Liger-Kernel/compare/v0.8.0...v0.8.1

Source: README.md, updated 2026-07-22