Vibeleaderboard
← All Intel
Intel / article

Liger Kernel Towards A Multi Dsl Kernel Library

Source
linkedin.com
Publisher
LinkedIn
Author
LinkedIn Engineering
Date
Why it matters

Shows that rewriting a kernel in a lower-level DSL can reveal inefficiencies fixable in the original Triton version, and that AI coding tools make multi-DSL kernel work practical. Useful for engineers optimizing and memory.

Key takeaways · AI-distilled
  • LinkedIn's Liger-Kernel team, which started in Triton, now also writes CUDA C++, CuTe DSL and cuTile kernels, crediting AI coding tools with making cross-language GPU work practical, and concludes no single GPU programming model is best for every workload.
  • A fused SwiGLU kernel in CuTe DSL beat PyTorch's two-GEMM baseline in every tested Blackwell configuration, typically by over 10% and up to 1.49x, while the Triton version did not beat the baseline because its GEMMs fell short of cuBLAS at those shapes.
  • A tensor-parallel fused linear cross-entropy kernel in CUDA with NVSHMEM overlaps the cross-GPU gradient reduction with weight-gradient compute and ran up to 3.9x faster than verl's PyTorch : 3.3-3.9x on Qwen3-30B-A3B but 1.5-2.0x on DeepSeek-V3.
  • Rewriting fused linear cross-entropy in CuTe DSL exposed waste in the Triton version, such as weight-sized temporary tensors per chunk; porting the fixes back made Liger v0.8.5 1.2-4.9x faster with 46-60% less peak memory than v0.8.0, with no user code changes.
  • The authors note the cost: CUDA and CuTe DSL kernels are tied to NVIDIA hardware and sometimes one GPU generation, so they plan automatic per-GPU backend selection behind the same API while keeping portable Triton kernels.
Terms in this piece · Glossary
  • Large language model — A model trained on large amounts of data to process and generate language.
  • Training — The process that adjusts a model using examples and a measure of how well it performs.
  • throughput — How much model output a provider can generate over time, commonly measured in output tokens per second.
  • Path — A description of a file or folder location, written using directory names and separators.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source www.linkedin.com
More from LinkedIn Engineering
Recommended reads