Fused linear + cross-entropy
LM-head projection of tokens×hidden activations through a vocab×hidden weight fused with cross-entropy against integer targets, without materializing the logits.
Reported evidence · last observed 2024-11-22. Reported by source; not independently reproduced.
pip install "liger-kernel==0.4.2"Reported evidence · last observed 2024-11-22. The source's designated baseline implementation. Reported by source; not independently reproduced.
Fastest by languagepython · Transformers · 20.9 ms · #1triton · Liger · 119.5 ms · 5.72×
Current records
Not measured on H100, B200 for this workload. Challenges →
Estimated floor 531.8 µs · record 39.33× above itestimate, not evidence ›
120.9ms1.00×Reported · Apache-2.0 · source2024-11-22stale
Measured exactly what you asked. The source's designated baseline implementation. Reported by source; not independently reproduced.
2LigerLiger-Kernel119.5ms5.72×Reported · BSD-2-Clause · source2024-11-22stale
5.72× slower than the baseline. Measured exactly what you asked. Reported by source; not independently reproduced.