Repository navigation
test(load): keep the #5022 bridge nodes runnable without Optimum or CUDA (#5022) - #5051
Merged
Merged
Conversation
…UDA (#5022) The AWQ CPU lane installs `requirements.txt`, which has no `optimum`, and its torch build has no CUDA. The file's module-scoped environment fixture imported `optimum` unconditionally, so all seven nodes errored at setup with `ModuleNotFoundError: No module named 'optimum'` on that lane. * the fixture tolerates a missing `optimum` (the availability probe is only forced when the package is importable); * the two end-to-end nodes `importorskip("optimum")`, and the shared `checkpoints` fixture skips on a CPU-only runtime *before* quantizing, so the lane no longer builds checkpoints it will never use; * the offload-map node skips when the Marlin kernel class cannot be constructed in the current runtime (a CPU-only torch build has no Marlin extension). Result on a CPU-only, optimum-free runtime: 4 passed, 3 skipped, 0 errors. With CUDA and Optimum: 7 passed.
Qubitium
added a commit
that referenced
this pull request
Nov 18, 2026
…5022) (#5052) The AWQ CPU `unit` lane lists `tests/test_hf_bridge_cpu_offload_5022.py` (added by #5046, hardened by #5051), but the `paths:` filter had no entry for it. A PR that only touched that file therefore never ran the lane that owns it, so the #5051 fix could not be observed there. Add the `tests/test_hf_bridge_*.py` pattern beside the other test-file patterns. `gptqmodel/utils/importer.py` and `gptqmodel/utils/model.py` stay out on purpose: both are touched by most PRs, and the lane already runs for `gptqmodel/models/**` and `docs/**`.
This was referenced Nov 18, 2026
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
Follow-up to #5046 (#5022). That PR added
tests/test_hf_bridge_cpu_offload_5022.pyand listed it in the AWQ CPU(unit) lane, but the lane installs only
requirements.txtand a CPU-onlytorch build, so:
The module-scoped environment fixture imported
optimumunconditionally, soall seven nodes errored at setup and the
AWQ CPU (unit)job went red on236f31b07.What Changed
tests/test_hf_bridge_cpu_offload_5022.pyonly:optimum; the availability probe is onlyforced when the package is importable.
importorskip("optimum"), and the sharedcheckpointsfixture now skips on a CPU-only runtime before quantizing,so a CPU lane no longer builds checkpoints it will never use (that fixture is
only consumed by the two CUDA nodes).
in the current runtime — a CPU-only torch build raises
ImportError: Marlin kernel requires CUDAat construction even with theruntime stubs.
Tests
optimumabsent (the CI lane; simulated by shadowingoptimumwith a module that raisesImportError)optimumpresentoptimum, rebased onaf2ab180atests/test_docs_contract_refs.pyalongside it: 23 passed.ruff checkclean.No product code changes; the fix and its red-on-main evidence are in #5046.
Notes
Marlin post-init node; the four portable nodes (selector contract, map
unwrapping, the Marlin repack, and
qzeros_formathandling) still run there.del g_hfix (fix(looper): drop a leftoverdel g_hthat fails the ruff gate (#5026) #5047/fix(gptq): drop the staledel g_hthat broke main's lint gate #5048): beforethat, any GPTQ quantization raised
UnboundLocalErrorand the checkpointsfixture could not build, which is why the rebase is on
af2ab180a.