Skip to content

docs(models): record the two RMS-norm A/B verdicts that changed no code - #1724

Merged
inureyes merged 1 commit into
mainfrom
docs/rms-norm-ab-verdicts
Sep 9, 2026
Merged

inureyes merged 1 commit into
mainfrom
docs/rms-norm-ab-verdicts

Conversation

@inureyes

@inureyes inureyes commented Sep 9, 2026

Copy link
Copy Markdown
Member

Three families carry the same local float32 promotion in their gated RMSNorm, put there against a half-precision x^2 NaN on M5 Max. All three were A/B'd after #1718 to see whether the promotion is still earning its cost. Only one answer changes code, and that is #1723 (granitemoehybrid, 1.079x on M1 Ultra). The other two answers are "leave it", so they moved nothing and had nowhere to be recorded. This puts them in the struct comments, where the next person to consider the same removal will actually read them.

nemotron_h.rs: measured on M1 Ultra with nvidia-nemotron-3-nano-30b-a3b-4bit, five runs per arm, -n 200 --ignore-eos. 96.51 tok/s promoted against 97.31 native, ranges 96.34-96.63 and 97.14-97.46. Disjoint, so the effect is real, but it is 1.008x. Outputs are token-identical between the arms once --show-reasoning is passed (the content channel is empty on this checkpoint at short budgets, which is #1721's subject). 0.8% does not buy giving up a NaN defense whose coverage after #1718 is not established: that fix changed the bridge's reduction helpers (max_all, sum_all, mean_all and the axis forms) and did not touch MLX's fused fast_rms_norm, which is what computes the sum here.

falcon_h1.rs: there is nothing to measure, which is a different statement from nothing measured. mamba_rms_norm defaults to false, and falcon-h1-tiny-90m-instruct-4bit, the only Falcon-H1 checkpoint in the store, spells it false. The gated-norm forward is gated on that flag at falcon_h1.rs:938, so it is unreachable on every checkpoint available to test with. Removing the promotion there would be an unmeasurable change until a checkpoint with the flag on exists.

Comments only, no behavior change. cargo check --lib and cargo fmt --all -- --check are clean.

Three families carry the same local float32 promotion against the M5 Max half-precision `x^2` NaN. #1723 removes it from `granitemoehybrid.rs` for 1.079x. The other two were measured as well, and both answers are "leave it", so nothing in the code moved and the finding had nowhere to live. Written where the next person will look, which is the struct itself, not an issue.

`nemotron_h.rs`: measured on M1 Ultra with nvidia-nemotron-3-nano-30b-a3b-4bit, five runs per arm, 96.51 against 97.31 tok/s. Ranges are disjoint but the gain is 1.008x, and 0.8% does not buy giving up a NaN defense whose coverage after #1718 is not established, since that fix changed the bridge's reduction helpers and not MLX's fused `fast_rms_norm`.

`falcon_h1.rs`: there is nothing to measure rather than nothing measured. `mamba_rms_norm` defaults to false and the only Falcon-H1 checkpoint in the store spells it `false`, so the gated-norm `forward` is never reached on any checkpoint available to test with.
@inureyes
inureyes merged commit d6a29f2 into main Sep 9, 2026
13 checks passed
@inureyes
inureyes deleted the docs/rms-norm-ab-verdicts branch October 6, 2026 12:12
@inureyes inureyes added this to the 0.7 milestone Nov 30, 2026
@inureyes inureyes added priority:low Low priority status:done Completed type:docs Documentation improvements or additions labels Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Low priority status:done Completed type:docs Documentation improvements or additions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant