Rotary position embedding
Rotary position embedding applied to query and key tensors (batch 1, Llama-style head layout).
Reported evidence · last observed 2024-09-03. Reported by source; not independently reproduced.
pip install "liger-kernel==0.2.1"Fastest by languagetriton · Liger · 58.9 µs · #1python · Transformers · 516.1 µs · 8.77×
Current records
Not measured on H100, B200 for this workload. Challenges →
Estimated floor 20.6 µs · record 2.86× above itestimate, not evidence ›
1LigerLiger-Kernel58.9µs1.00×Reported · BSD-2-Clause · source2024-09-03stale
8.77× faster than the baseline. Measured exactly what you asked. Reported by source; not independently reproduced.
2LigerLiger-Kernel59.5µs1.01×Reported · BSD-2-Clause · source2024-09-03stale
8.68× faster than the baseline. Measured exactly what you asked. Reported by source; not independently reproduced.
3516.1µs8.77×Reported · Apache-2.0 · source2024-09-03stale
Measured exactly what you asked. The source's designated baseline implementation. Reported by source; not independently reproduced.
4516.8µs8.78×Reported · Apache-2.0 · source2024-09-03stale
Measured exactly what you asked. The source's designated baseline implementation. Reported by source; not independently reproduced.