Repository navigation
test(exl3): run the EXL3 tests that were left permanently skipped (#4981) - #4991
Merged
Merged
Conversation
) Seven EXL3 tests carried an unconditional module-level ``pytest.mark.skip`` with "lands in a later stack layer" reasons from #3592/#3594/#3599. That wiring landed long ago, so shipped code paths had tests that pass but nobody ever ran. - test_exl3_capture_frontier.py / test_exl3_error_ledger.py: drop the ``_processor_wiring_pending`` skip and its decorators; all four tests run and pass. - test_quantize_config_offload_tempdir.py: drop two ``pytest.mark.skip`` decorators; widen the two tiny ``nn.Linear(16, ...)`` layers to 128 because EXL3 requires in_features to be a multiple of 128. - kernels/test_kernel_compile_levels_quant.py: gate the Paro cases on ``awq_runtime_available()``/``awq_runtime_error()`` instead of ``CUDA_HOME`` plus an ``nvcc``-on-PATH probe, which misreported the runtime as available. - Add tests/test_exl3_skip_reasons_4981.py, an AST guard that fails if any EXL3 test reintroduces an unconditional ``pytest.mark.skip``. A real precondition belongs in ``skipif`` with a precise reason. The Machete JIT gate in test_machete_jit.py is deliberately left alone: swapping the ``nvcc``-on-PATH probe for ``cuda_source_build_available()`` turns a skip into a failure on hosts whose toolkit and headers disagree, which is worse than the status quo. Fixes #4981
This was referenced Nov 17, 2026
5 tasks done
sLaffey
pushed a commit
to sLaffey/GPTQModel
that referenced
this pull request
Nov 18, 2026
…Cloud#4981) (ModelCloud#4998) ModelCloud#4991 unskipped the EXL3 tests from ModelCloud#4981. This is the rest of that issue. The exhaustive MoE sweep resolved `MODEL_MAP["kimi_linear"]` (the legacy AttnRes/K3 tree) for every config, but the loader dispatches native `KimiLinearForCausalLM` to `KimiLinearNativeQModel`. That definition sets `defuser_generic_experts`, so the loader splits its fused 3-D experts through Defuser's *generic* replacement pass, which bare `defuser.convert_model()` never runs: 768 native `mlp.experts.N.{gate,up,down}_proj` specs never resolved. `mimo_v2_flash` (the same contract) failed the same way. The sweep now resolves the definition with the new `models.auto.select_model_definition()` and defuses through the loader's own `_convert_model_with_defuser()`, and it is selected by `-m meta_coverage` instead of `GPTQMODEL_META_COVERAGE=1`, matching the other opt-in suites. A model whose fused experts the installed Defuser cannot split is skipped with the loader's own `DEFUSER_MIN_VERSION` instead of being reported as definition drift. `test_machete_jit.py` gated its sm_90a build-only node on `nvcc` being on `PATH`, but torch resolves `CUDA_HOME` to /usr/local/cuda even when nvcc is not on `PATH`, so the node skipped on hosts where the extension builds and runs. `cpp.cuda_toolkit_available()` now mirrors `_nvcc_path()` (CUDA_HOME, then PATH, then the conventional install) and the node runs: 266 s on this host with nvcc off PATH and CUDA_HOME unset. ninja is still required separately, and a genuinely broken toolkit still fails the build instead of hiding behind a skip. `tests/test_lfm3_support.py` and the three `tests/models/test_lfm3*.py` files pointed at `/monster/data/models/`, while the other 288 test files use `/monster/data/model/`, so the LFM3 checkpoints never resolved on the lab host. Refs ModelCloud#4981
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.
Fixes #4981
Seven EXL3 tests carried an unconditional module-level
pytest.mark.skipwith "lands in a later stack layer" reasons from #3592/#3594/#3599. That wiring landed long ago, so shipped code paths had tests that pass but nobody ever ran.Changes
tests/test_exl3_capture_frontier.py/tests/test_exl3_error_ledger.py: drop the_processor_wiring_pendingskip and its decorators; all four tests run and pass.tests/test_quantize_config_offload_tempdir.py: drop twopytest.mark.skipdecorators. Widened the two tinynn.Linear(16, ...)layers to 128 because EXL3 requiresin_featuresto be a multiple of 128 — the skipped tests had never exercised that constraint.tests/kernels/test_kernel_compile_levels_quant.py: gate the Paro cases onawq_runtime_available()/awq_runtime_error()instead ofCUDA_HOMEplus annvcc-on-PATH probe, which reported the runtime as available when it was not.tests/test_exl3_skip_reasons_4981.py: an AST guard that fails if any EXL3 test reintroduces an unconditionalpytest.mark.skip. A real precondition belongs inskipifwith a precise reason.Deliberately not changed
The Machete JIT gate in
tests/test_machete_jit.pykeeps itsnvcc-on-PATH probe. Replacing it withcuda_source_build_available()turns a skip into a failure on hosts whose toolkit and CUDA headers disagree (measured here:test_machete_cuda_smoke_build_only_with_forced_arch_overrideFAILED in 62 s vs SKIPPED on the parent commit), which is strictly worse than the status quo.Verification
40 passed(parent:1 failed, 32 passed, 7 skipped).tests/kernels/test_kernel_compile_levels_quant.py:53 passed, 4 skippedafter merging currentmain. The 4 skips are the pre-existing JIT-unavailable VPTQ/Marlin cases on this host.ruff check gptqmodel testsclean.