Skip to content

test(awq): pin the remaining tree-tracker keeps - #6652

Merged
Qubitium merged 1 commit into
mainfrom
refactor/awq-release-dropwidth-tracker-pins
Dec 1, 2026
Merged

Qubitium merged 1 commit into
mainfrom
refactor/awq-release-dropwidth-tracker-pins

Conversation

@Qubitium

@Qubitium Qubitium commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #6650, which merged as 69c41e720 before two review fixes landed.
This PR carries only that delta (33 files, +13/−44); it does not re-apply the
released-type change.

  1. Pin the two remaining keeps that were only comments. nemotron_h_puzzle
    sets awq_groups_from_tree_order = True explicitly, and glm4v inherits it
    from Glm4vGPTQ (shared with glm4v_moe/glm4v_moe_text). Both are now in
    DATA_DEPENDENT_KEEPS, so test_data_dependent_keeps_stay_on_the_tracker
    fails if either flag is dropped. The orphaned nemotron_h_puzzle comment was
    removed from TRACKER_PLANNED.
  2. Remove the leftover blank line after the class header in the 32
    definitions whose opt-out line was removed (internlm2 had two). Pure
    whitespace; no behavior change.

What Changed

  • tests/module_tree/test_awq_fold_inventory.py: _SHARED_EXPERT_UNROUTED,
    _SHARED_PARENT, and the two new DATA_DEPENDENT_KEEPS entries.
  • 32 gptqmodel/models/definitions/*.py files: one blank line removed after the
    class header (two in internlm2.py).

Tests

HF_HOME=/root/.cache/huggingface HF_HUB_OFFLINE=1 CUDA_VISIBLE_DEVICES= \
PYTHONPATH=$PWD:$PWD/tests /root/venv/bin/python -P -m pytest -p no:cacheprovider -n 20 -q -rs \
  tests/module_tree/test_awq_fold_inventory.py
# 765 passed

HF_HOME=/root/.cache/huggingface HF_HUB_OFFLINE=1 CUDA_VISIBLE_DEVICES= \
PYTHONPATH=$PWD:$PWD/tests /root/venv/bin/python -P \
  tests/module_tree/awq_fold_inventory.py --check
# changed: none

PATH=/root/venv/bin:<no-op pip shim>:$PATH bash format/check.sh
# ruff 0.14.2; All checks passed!

Pin proof: temporarily deleting awq_groups_from_tree_order = True from
NemotronHPuzzleQModel makes
test_data_dependent_keeps_stay_on_the_tracker fail with
AssertionError: nemotron_h_puzzle is released by the full-capture inventory but the stress/perturbation A/B still changes an effective group ...; the
attribute is restored in this PR.

Model Support / Module Plan

Not applicable: no MODEL_MAP, loader, tree or fusion change. The inventory
test still covers every type; this only adds the two missing keep pins.

AWQ onboarding safety

Not applicable beyond the inventory test: no AWQ group, search, replay or fold
behavior changes. The two keeps were already in the merged #6650; this only
makes them test-enforced.

Logic Flow Documentation

Not applicable: no control-flow or decision-mechanism change.

Measured Impact

Not applicable: test pinning and whitespace only.

Review Requirements

  • Reviewed this PR.
  • Checked that the code matches existing project structure, APIs, and conventions.
  • Avoided unnecessary monkeypatching and used the project's normal extension points where possible.
  • Minimized and compacted the impacted code surface.
  • Considered and eliminated potential regressions.

Notes

#6650 was merged before this review delta could be amended onto it, so this is
a separate follow-up rather than a force-push of the merged branch.

🤖 Generated with Claude Code

Follow-up to #6650: the merged change left `nemotron_h_puzzle` and
`glm4v` without a test pin (their keeps were only comments) and left a
blank line after the class header in the definitions whose opt-out was
removed.

Add both types to `DATA_DEPENDENT_KEEPS` with their reasons so
`test_data_dependent_keeps_stay_on_the_tracker` fails if either flag is
dropped, and remove the leftover blank lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Qubitium
Qubitium marked this pull request as ready for review December 1, 2026 12:44
@Qubitium
Qubitium merged commit 750f0d2 into main Dec 1, 2026
6 checks passed
@Qubitium
Qubitium deleted the refactor/awq-release-dropwidth-tracker-pins branch December 1, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant