Skip to content
KernelIndex
Search⌘K

RMSNorm

36 eligible runs
rmsnorm

Root-mean-square normalization of a rows×hidden activation with a learned hidden-size weight.

Fastest reported · usable today
13.6µsmedian · 5.75× faster than baseline
LigerLiger-Kernel · BSD-2-Clause · triton

Reported evidence · last observed 2024-09-03. Reported by source; not independently reproduced.

pip install "liger-kernel==0.2.1"

Fastest by languagetriton · Liger · 13.6 µs · #1python · Transformers · 78.2 µs · 5.75×

Current records

Source-native comparison · GPU NVIDIA A100 · Workload rows = 2048 · hidden = 1024 · bf16 · Protocol Liger-Kernel benchmark scripts · median · 2 results · last observed 2024-09-03Record history →
Estimated floor 2.06 µs · record 6.61× above itestimate, not evidence ›
DRAM 2.06 µs · bandwidth-bound on A100 80GB
every declared tensor crosses HBM exactly once (2,039 GB/s, A100 80GB datasheet)
no arithmetic formula for this family: bandwidth floor only
headroom-v1: a lower bound from declared tensors and datasheet peaks. A kernel can sit well above it for good reasons.
#
Implementation
Latency
vs #1
Trust
Observed
1
LigerLiger-Kernel
13.6µs
1.00×
Reported · BSD-2-Clause · source
2024-09-03stale

5.75× faster than the baseline. Measured exactly what you asked. Reported by source; not independently reproduced.

source mirroredBSD-2-ClauseinstallableView source →Run detail →
2
TransformersbaselineHugging Face Transformers
78.2µs
5.75×
Reported · Apache-2.0 · source
2024-09-03stale

Measured exactly what you asked. The source's designated baseline implementation. Reported by source; not independently reproduced.

source mirroredApache-2.0no install recipeView source →Run detail →

Scaling by hidden

100.0 µs1.00 ms1024204840968k16k32khidden →13.6 µs20.0 µs31.1 µs51.7 µs95.3 µs182.2 µsLiger78.2 µs136.3 µs279.9 µs519.0 µs985.6 µs1.92 msTransformers
LigerTransformersbest per workload · NVIDIA A100 · Liger-Kernel benchmark scripts held constant · log scale

Implementations

Implementation
Runtime
Best latency
Evidence
Availability
TransformersHugging Face Transformers
python
78.2µs
5.75×
Reported
Apache-2.0 · source
LigerLiger-Kernel
triton
13.6µs
1.00×
Reported
BSD-2-Clause · source

Semantics

Inputs and outputs
xfloat [rows, hidden]
weightfloat [hidden]
yfloat [rows, hidden]
Axes and behavior
rowsvariable
hiddenvariable
determinismunspecified
constraintsNo mutation or aliasing
Identity
sha2568ba8d8c445e8…
Sources: Liger-Kernel benchmarks (2024-09-03) · BSD-2-Clauselast observed 2024-09-03How records are decidedJSON