Repository navigation
test: realign the stale #5325 guards with the module-global probes and compiled dequant - #5564
Merged
Merged
Conversation
…d compiled dequant
Qubitium
marked this pull request as ready for review
November 19, 2026 12:32
This was referenced Nov 19, 2026
Qubitium
pushed a commit
that referenced
this pull request
Nov 29, 2026
…on kwarg (#5325) test_generation_desc_act_false loads a CUDA checkpoint without the requires_nvidia_cuda() gate the other nodes use, so it fails on a CPU-only host with 'RuntimeError: No CUDA GPUs are available'. test_generation_desc_act_true is CUDA/checkpoint-only. Add a CPU-runnable spy that asserts revision= (not rivision=) reaches GPTQModel.load, so the typo fixed in #5565 cannot silently return. Items A4/A15/A16 were already fixed on main by #5564/#5565 and are green at 2d3261d; verified without changes.
Qubitium
added a commit
that referenced
this pull request
Nov 29, 2026
…5325) (#6273) A5 was a product defect, not a stale test: a meta move ran the int4pack inverse (and its aten::equal identity check) against meta operands until #5533 materialized the snapshot from its shape/dtype descriptor. A14 was realigned by #5564, and the compiled entry now stages its operands outside the traced graph (#5955), so the caches are published again. Both items are green at main 2d3261d. Extend the device-move test to assert every checkpoint operand's shape and dtype is restored, not just qweight. Restore the cache expectations the A14 tests are named for: the compiled dequant publishes the g_idx cache on the compute device, load_state_dict clears both metadata caches, and a full forward still matches F.linear after the g_idx offload. Co-authored-by: OpenAI Agent <[email protected]>
Qubitium
added a commit
that referenced
this pull request
Nov 29, 2026
…on kwarg (#5325) (#6258) test_generation_desc_act_false loads a CUDA checkpoint without the requires_nvidia_cuda() gate the other nodes use, so it fails on a CPU-only host with 'RuntimeError: No CUDA GPUs are available'. test_generation_desc_act_true is CUDA/checkpoint-only. Add a CPU-runnable spy that asserts revision= (not rivision=) reaches GPTQModel.load, so the typo fixed in #5565 cannot silently return. Items A4/A15/A16 were already fixed on main by #5564/#5565 and are green at 2d3261d; verified without changes. Co-authored-by: OpenAI Agent <[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
Realigns four stale tests from the #5325 GPU-host triage that still fail on
mainfor reasons unrelated to the product. Each one asserts on an implementation detail that a later, intentional refactor removed; the behaviour they were written for is still observable and is now asserted through the public surface.Part of #5325 (items 4, 9, 14, 15). The remaining items are GPU/ROCm/AVX512-only and are not touched here.
What Changed
tests/test_concurrency_guards.py(item 4):has_cpu_bf16x3_precisionstopped being anlru_cachein perf(cpu): reach torch.compile/inductor on CPU quantized kernels #5070 and became the module-global_CPU_BF16X3_PRECISION. Reset that global throughmonkeypatchinstead of calling the removedcache_clear(); also reset it in_install_cpu_bf16x3_stateso each test starts from an unresolved probe.tests/test_torch_cpu_avx512.py(item 15): same story forhas_avx512_bf16and its_AVX512_BF16global. Added_clear_avx512_bf16_probe(monkeypatch)and replaced the fivecache_clear()calls.tests/test_torch.py(item 14):test_forward_observes_weight_mutation_and_state_load_clears_metadatano longer asserts that_zeros_cacheis published. Since perf(cpu): reach torch.compile/inductor on CPU quantized kernels #5070 the dequant runs compiled and decodes zero-points/group-index inline, so the caches stay empty. The test now snapshots the pre-mutation payload, mutatesqweight, checks the forward changed, thenload_state_dicts the snapshot and requires the next forward to reproduce the original output exactly.test_cached_dequant_offloads_g_idx_to_cpu_on_cudadrops the_g_idx_long_cacheassertions and instead checks the observable contract: the weight comes back on CUDA, the originalg_idxis offloaded to CPU, and a second dequant after the offload returns equal weights.tests/test_pre_looper_failure_cleanup_4862.py(item 9):Quantize: calibration dataset is empty.).test_later_processor_failure_releases_the_processors_already_builtno longer relies on a malformedadapter_dataset, which fix(gptaq): give every calibrated processor the same shuffled batch order (#4869) #4985 now rejects before any processor is built. It fails the EoRA factory instead, so the GPTQ processor built first is still exercised by the prologue release path. Verified the recorded release list is['GPTQProcessor']on the failing run.No product code changed.
Tests
Baseline on
origin/main@d10a08a65(before this PR):After (rebased on
origin/main@d01058315):bash format/check.sh→All checks passed!(ruff 0.14.2).Model Support / Module Plan
Not applicable: test-only change, no model definition,
MODEL_MAP, or module-plan code touched.AWQ onboarding safety
Not applicable: no model onboarding and no AWQ grouping/search/replay/fold change.
Logic Flow Documentation
Not applicable: no control flow, resolution order, or tensor lifecycle change.
Review Requirements
Kernel Accuracy Requirements
Not applicable: no kernel code or kernel-accuracy assertion changed. The two dequant tests only assert on returned tensors.
Notes
test_fused_bias_validation) is skipped on this host because it needs AVX512-BF16; its perf(cpu): make NF12, Paro and QQQ inductor-ready on CPU #5075-related expectation is left for an AVX512 runner./monstercheckpoint, or a 3.14t interpreter and were not reproducible here.