Repository navigation
test(q4_exllama_v2): gate the CUDA-only test and pin the revision kwarg (#5325 A8) - #6258
Merged
Merged
Conversation
…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
force-pushed
the
fix/5325a-issue
branch
from
November 29, 2026 03:19
2050aec to
70a8f6e
Compare
Qubitium
marked this pull request as ready for review
November 29, 2026 12:45
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.
Part of #5325 (item A8; A4/A15/A16 were already green on main — see below)
Scope, corrected
The original brief named items A4, A8, A15 and A16. On current
mainonly A8 still needed anything:2d3261dtest_concurrency_guards.py::test_cpu_bf16x3_capability_probe_respects_an_active_scopetest_torch_cpu_avx512.py::test_cpu_feature_detection_requires_{vbmi,xsave}test_torch_cpu_avx512.py::test_fused_bias_validationtest_q4_exllama_v2.pyFor A4/A15/A16 I reproduced each original failure by temporarily restoring its pre-fix body (
AttributeError: 'function' object has no attribute 'cache_clear', andFailed: DID NOT RAISE RuntimeError), then confirmed the merged fixes are what make them green. No changes were made to those files, and no test was weakened.What this PR changes
Two things in
tests/test_q4_exllama_v2.py:test_generation_desc_act_falsewas the only test in the class without arequires_nvidia_cuda()guard, so it failed on a CPU-only host withRuntimeError: No CUDA GPUs are availableinstead of skipping. Added the same guard its siblings use.test_generation_desc_act_trueneeds CUDA plus the/monster/data/model/TinyLlama-1.1B-Chat-v1.0-GPTQ-4bitcheckpoint, so therivision=→revision=fix cannot be observed on this host. The newtest_generation_desc_act_true_passes_the_revision_to_loadspies onGPTQModel.load, runs the realtest_generation_desc_act_truebody against the spy, and assertscalls["revision"] == "desc_act_true"and"rivision" not in calls. A re-introduced typo now fails on CPU.The
revision=revisionfix itself is already onmain(line 175, from #5565); this PR only adds the guard that keeps it from regressing silently.Red evidence
test_generation_desc_act_falseon CPU at HEAD:RuntimeError: No CUDA GPUs are availablerivision=revisionintest_generation_desc_act_truemakes the new guard fail withKeyError: 'revision'Green evidence
Unverified
test_generation_desc_act_trueitself was not run on hardware: this host has no NVIDIA CUDA and no/monstercheckpoint. Its revision kwarg is covered by the CPU spy instead.