Skip to content

test: repair three stale fixtures on main 1615accf9 (gemma4 plan, fake quantize receiver, qwen2 map fallback) - #6401

Merged
Qubitium merged 1 commit into
mainfrom
fix/sweep1615-test-fixtures
Nov 29, 2026
Merged

Qubitium merged 1 commit into
mainfrom
fix/sweep1615-test-fixtures

Conversation

@Qubitium

Copy link
Copy Markdown
Collaborator

Draft test-side repairs for three stale fixtures found by a fresh sweep of main = 1615accf9.

Changes

  1. tests/test_checkpoint_method_compatibility.py — the fake SimpleNamespace receiver passed to BaseQModel.quantize() now needs quantized=False. [BUG] EXL3: EXL3Config(head_bits=N) on a tied-embedding model (Llama-3.2-1B/3B, Qwen2.5-0.5B..3B, ...) now aborts quantize() with "quantization of lm_head layer with tied weights is not supported" (regression from the #6224 fix) #6347 reads self.quantized before checkpoint validation, so the two test_unsupported_checkpoint_fails_before_model_or_disk_mutation cases raised AttributeError instead of the intended NotImplementedError.
  2. tests/test_qwen2_family_compat.py — BaseQwen2VLGPTQ now pins an explicit HF_CONVERSION_MAP_REVERSED ([BUG] writer / SGLang interop: Qwen2.5-VL (and Qwen2-VL) GPTQ checkpoints can't be loaded by SGLang: tensors are saved in the runtime key layout, and the dense vision tower is not excluded in dynamic #6360), which short-circuits resolve_hf_conversion_map_reversed() before the transformers fallback the test monkeypatches. Clear the class map in the test so the fallback path is still covered.
  3. tests/module_tree/fixtures/registered_module_plans.json — re-record the Gemma4ForConditionalGenerationGPTQ/gptq and Gemma4TextQModel/gptq block order after test(awq): cover fold-graph config features and fix Gemma KV/MoE folds #6329 moved pre_feedforward_layernorm_2 ahead of the router block.

Verification

cd tests
CUDA_VISIBLE_DEVICES="" PYTHONPATH=<clone>:<clone>/tests \
  /root/venv/bin/python -m pytest \
  test_checkpoint_method_compatibility.py::test_unsupported_checkpoint_fails_before_model_or_disk_mutation \
  test_qwen2_family_compat.py module_tree/test_registered_module_plans.py \
  -q -p no:cacheprovider
# 443 passed

All three nodes were red on unpatched 1615accf9 and green on 390a03229 (the parent of #6386) / before the plan change; these are test-only updates, no product code touched.

- test_checkpoint_method_compatibility: the fake BaseQModel.quantize()
  receiver now needs `quantized` (#6347 reads it before checkpoint
  validation).
- test_qwen2_family_compat: clear the explicit HF_CONVERSION_MAP_REVERSED
  (#6360) so the test still covers the transformers fallback path.
- registered_module_plans.json: re-record the Gemma4/Gemma4Text plan after
  #6329 moved pre_feedforward_layernorm_2 ahead of the router block.
@Qubitium
Qubitium marked this pull request as ready for review November 29, 2026 14:06
@Qubitium
Qubitium merged commit 4b97b47 into main Nov 29, 2026
6 checks passed
@Qubitium
Qubitium deleted the fix/sweep1615-test-fixtures branch November 29, 2026 14:06
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