Repository navigation
test(awq): refresh the fold inventory after the mimo_v2/diffusion_gemma/dots3_note/glm5_next fixes - #6452
Merged
Conversation
…ma/dots3_note/glm5_next fixes #6446 pinned four wrong planner outcomes as `bug:` entries, and its inventory test requires a listed difference to still differ. #6449 and #6451 fixed them, so test_awq_fold_inventory.py fails on main (4 planner cases, then 2 canonical cases). - Regenerate the four fixture entries with `awq_fold_inventory.py --write --types dots3_note,mimo_v2,diffusion_gemma,glm5_next`: mimo_v2 and diffusion_gemma (k_eq_v layer 1) drop self_attn.o_proj from the input_layernorm group, dots3_note sliding layers plan instead of raising, glm5_next adds mlp.shared_experts.gate_proj/up_proj as consumers. - diffusion_gemma/parity and dots3_note/default now match the role-derived folds, so their entries are removed. - mimo_v2 and glm5_next still differ from the derivation for reasons that are not bugs (v_proj -> o_proj is not emitted after a `:!` leaf; glm5_next linear-attention layers need `v_proj:nosrc`), so they are reclassified. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
tests/module_tree/test_awq_fold_inventory.pyfails on main (8e8864d): 4 failed, 497 passed. #6446 pinned four wrong AWQ planner outcomes asbug:entries, and its test requires each listed difference to still differ. #6449 (mimo_v2, diffusion_gemma, dots3_note) and #6451 (glm5_next) then fixed those outcomes. This PR refreshes the fixture and the difference table to match the fixed planner. Test-only; no library change.What Changed
tests/module_tree/fixtures/awq_fold_plans.json: regenerated only the four affected types withpython tests/module_tree/awq_fold_inventory.py --write --types dots3_note,mimo_v2,diffusion_gemma,glm5_next. The fixture diff is exactly the intended fixes:input_layernorm -> [q, k, v, o_proj]becomes[q, k, v](fix(awq): clear the prev-op tracker when a present block's last declaration resolves to no module #6449).input_layernorm -> [q, k, o_proj]becomes[q, k](fix(awq): clear the prev-op tracker when a present block's last declaration resolves to no module #6449).status(fix(awq): clear the prev-op tracker when a present block's last declaration resolves to no module #6449).post_attention_layernormconsumers gainmlp.shared_experts.gate_projandup_proj(fix(awq): compensate dense expert gate/up under the MoE root #6451).tests/module_tree/test_awq_fold_inventory.pyAWQ_FOLD_DIFFERENCES:diffusion_gemma/parityanddots3_note/default, which now match the role-derived folds.bug::mimo_v2/defaultandglm5_next/defaultstill differ from the derivation, but for reasons that are not bugs. On mimo_v2,v_proj -> o_projis not emitted after theattention_sink_bias:!leaf, because fix(awq): clear the prev-op tracker when a present block's last declaration resolves to no module #6449 deliberately leaveso_projwithout a source. On glm5_next, its softmax layers have the same stale-tracker gap, and its linear-attention layers needv_proj:nosrcfirst.v_proj -> o_projfor mimo_v2 split-MHA layers (AWQ lifecycle series).Tests
Measured Impact
Not applicable: test fixtures only.
Model Support / Module Plan
Not applicable: no definition change. Model test node IDs and results: the 501 inventory cases above.
AWQ onboarding safety
Not applicable: no grouping, search, replay or fold code changes. The fixture records the plans that #6449 and #6451 already qualified with neutral-fold evidence.
Logic Flow Documentation
Diagram summary: not applicable, test data only.
Review Requirements
Kernel Accuracy Requirements
Not applicable: no kernel change.
Notes
The other 206 types' fixture entries are untouched;
--typesmerges only the regenerated keys.🤖 Generated with Claude Code