Skip to content

test(exl3): run the EXL3 tests that were left permanently skipped (#4981) - #4991

Merged
Qubitium merged 2 commits into
mainfrom
fix/issue-4981
Nov 17, 2026
Merged

Qubitium merged 2 commits into
mainfrom
fix/issue-4981

Conversation

@Qubitium

Copy link
Copy Markdown
Collaborator

Fixes #4981

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.

Changes

  • tests/test_exl3_capture_frontier.py / tests/test_exl3_error_ledger.py: drop the _processor_wiring_pending skip and its decorators; all four tests run and pass.
  • tests/test_quantize_config_offload_tempdir.py: drop two pytest.mark.skip decorators. Widened the two tiny nn.Linear(16, ...) layers to 128 because EXL3 requires in_features to 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 on awq_runtime_available() / awq_runtime_error() instead of CUDA_HOME plus an nvcc-on-PATH probe, which reported the runtime as available when it was not.
  • New 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.

Deliberately not changed

The Machete JIT gate in tests/test_machete_jit.py keeps its nvcc-on-PATH probe. Replacing it with cuda_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_override FAILED in 62 s vs SKIPPED on the parent commit), which is strictly worse than the status quo.

Verification

  • 4 touched EXL3 test files + the new guard: 40 passed (parent: 1 failed, 32 passed, 7 skipped).
  • Plus tests/kernels/test_kernel_compile_levels_quant.py: 53 passed, 4 skipped after merging current main. The 4 skips are the pre-existing JIT-unavailable VPTQ/Marlin cases on this host.
  • ruff check gptqmodel tests clean.

)

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
@Qubitium
Qubitium merged commit 90c7805 into main Nov 17, 2026
6 checks passed
@Qubitium
Qubitium deleted the fix/issue-4981 branch November 17, 2026 21:30
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant