Repository navigation
test(awq): widen CPU dense logit-RMSE bound to measured cross-CPU range - #4435
Merged
Merged
Conversation
The dense AWQ CPU job failed deterministically per environment: 0.2582 on ubuntu-24.04 x86 CI and 0.2073 on an aarch64 SVE128 host, against a 0.20 bound. Torch dispatches to a CPU-capability-specific kernel, so identical deterministic weights round differently per microarchitecture; the value is stable within an environment (bit-identical at 842d666 and 89fa9f4). Bisect of the value: 0.1827 through 870fb44, 0.2073 from 241087a (#4176/#4243). That commit made token-row replay use the retained rows' real rotary positions instead of a synthetic arange for position_embeddings-only attention modules, which is a documented correctness fix. It lowers the NLL delta against fp16 from 0.2259 to 0.1579 while raising logit RMSE, so this is a metric trade-off, not a quality regression. The 0.20 bound predates the fix and was never re-validated against it. Widen to 0.30: ~16% headroom over the worst observed value, still catches a real quality collapse. NLL-delta, finiteness, packing and dtype checks are unchanged.
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.
Summary
The
AWQ CPU (dense)job fails deterministically in the environment-dependent way:tests/test_awq_hf_cpu.py::test_real_checkpoint_awq_cpu_roundtrip[dense]measures 0.2582 logit RMSE on ubuntu-24.04 x86 CI and 0.2073 on an aarch64 SVE128 host, against a 0.20 bound. Torch dispatches to a CPU-capability-specific kernel, so identical deterministic weights round differently per microarchitecture; the value is stable within an environment (bit-identical at842d666and89fa9f4).Bisect of the value: 0.1827 through
870fb44, 0.2073 from241087a(#4176/#4243). That commit made token-row replay use the retained rows' real rotary positions instead of a syntheticarangefor position-embeddings-only attention modules — a documented correctness fix. It lowers the NLL delta against fp16 from 0.2259 to 0.1579 while raising logit RMSE, so this is a metric trade-off, not a quality regression. The 0.20 bound predates the fix and was never re-validated against it.What Changed
tests/test_awq_hf_cpu.py: widen the dense logit-RMSE bound 0.20 -> 0.30 (~16% headroom over the worst observed value, still catches a real quality collapse). The NLL-delta, finiteness, packing and dtype assertions are unchanged.Tests
The x86 CI value (0.2582) is from the job logs that motivated the change; both are inside the new bound.
Logic Flow Documentation
Not applicable — test threshold only, no code path changed.
Review Requirements