Repository navigation
docs(models): record the two RMS-norm A/B verdicts that changed no code - #1724
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three families carry the same local float32 promotion in their gated RMSNorm, put there against a half-precision
x^2NaN 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 withnvidia-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-reasoningis 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_alland the axis forms) and did not touch MLX's fusedfast_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_normdefaults to false, andfalcon-h1-tiny-90m-instruct-4bit, the only Falcon-H1 checkpoint in the store, spells itfalse. The gated-normforwardis gated on that flag atfalcon_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 --libandcargo fmt --all -- --checkare clean.