Repository navigation
Description
Found on main @ 3867c82, RTX 4090 (CUDA 13.2, torch 2.15) and Radeon AI PRO R9700 (ROCm 10.1). Follow-up to #4768 (tests that never run on a realistic host).
From the skip reasons of a full file-by-file run of tests/ on both GPUs, these tests skip on this host, and on most CI hosts, even though the code they cover runs here. For each one I removed the gate and ran it, to show what the gate hides.
1. Seven EXL3 tests have been unconditionally @pytest.mark.skipped since 2026-11-09 ("lands in a later stack layer"). Five of them pass today.
| file | skip marker | added in | result with the skip removed |
|---|---|---|---|
tests/test_exl3_capture_frontier.py (test_inline_commit_demotes_live_hessians_to_lazy_frontier, test_processor_commits_and_restores_before_replay) |
_processor_wiring_pending, line 26 |
cd675d0 (#3594) | 2 passed |
tests/test_exl3_error_ledger.py (test_exl3_census_tops_up_undercovered_learned_router_namespaces[base-7, mtp-1], test_exl3_census_excludes_deterministic_hash_router_from_topup) |
_processor_wiring_pending, line 46 |
9b15543 (#3592) | 3 passed |
tests/test_quantize_config_offload_tempdir.py (test_exl3_projection_capture_does_not_allocate_an_offload_tempdir, test_exl3_gate_up_preprocess_shares_one_owned_hessian) |
@pytest.mark.skip, lines 50 and 95 |
49a072b (#3599) | 2 failed: ValueError: EXL3 projection 'model.layers.0.mlp.experts.0.gate_proj' has in_features=16, which is not a multiple of 128 (the fixture predates the 128-alignment check) |
The "later stack layer" (processor frontier/zero-route wiring) has landed. The capture-frontier and error-ledger tests can be enabled as they are. The two offload-tempdir tests need a 128-wide fixture. Until then, EXL3 capture-frontier commit/restore and the router-census top-up have no running test.
2. Two real-JIT tests are gated on nvcc being on PATH, but the library finds the toolkit without it
The library builds its JIT extensions through torch.utils.cpp_extension.CUDA_HOME, which falls back to /usr/local/cuda. On this host nvcc is not on PATH and CUDA_HOME is unset, yet every Marlin/AWQ/Paro JIT extension builds and runs. Two tests use a stricter gate:
tests/kernels/test_kernel_compile_levels_quant.py::test_kernel_reaches_declared_compile_level[ParoLinear]._paro_unavailable()(line 257) checksos.environ.get("CUDA_HOME") is None and shutil.which("nvcc") is None. Default PATH:SKIPPED: ParoLinear needs the AWQ CUDA GEMM JIT extension; no CUDA toolkit on this host. With/usr/local/cuda/binon PATH: passed.tests/test_machete_jit.py::test_machete_cuda_smoke_build_only_with_forced_arch_override(line 820,shutil.which("nvcc")). Default:SKIPPED: nvcc required. With nvcc on PATH: passed (163 s, sm_90a build-only).
Fix: gate on torch.utils.cpp_extension.CUDA_HOME is not None (or on the kernel's own cached_validate_once()), the same resolution the library uses.
3. The exhaustive MoE-expert sweep is env-gated and has gone stale
tests/module_tree/test_moe_expert_coverage.py::test_every_defined_model_type_resolves_routed_experts (136 params) skips unless GPTQMODEL_META_COVERAGE=1, so it does not run by default. With the variable set (CPU, 72 s): 108 passed, 16 skipped, 11 xfailed, 1 failed. The failure is [kimi_linear]: 768 routed-expert spec(s) never resolved ... 'block_sparse_moe.experts.0.w1'. The sweep uses MODEL_MAP["kimi_linear"] (the K3 KimiLinearQModel tree), but models/auto.py:681 selects KimiLinearNativeQModel (mlp.experts.N.{gate,up,down}_proj) for a native, non-K3 config. So the test is stale, not the library. Suggest making the sweep a marker-selected test (like checkpoint_recovery) and resolving the definition through the same selector GPTQModel.load uses.
4. Smaller items
- GGUF independent oracle. 417 tests on CUDA (
test_gguf_all_formats.py:test_gguf_kernel_independent_packed_oraclex288,test_native_random_activations_match_independent_a8_oraclex96,test_gguf_dequantize_matches_native_and_referencex32, ...) and 91 on ROCm skip withgguf package required for the independent oracle.ggufis only an optional extra (pyproject.toml:74). Withgguf==0.19.0added, all 417 run on the 4090 and pass, except the six bf16q8_1/q8_kfallback cases already listed in [TEST] Suite triage at b225a4383 (RTX 4090 + R9700): pre-existing red tests (also red at 12c1273c2) — stale doubles/oracles/expectations, plus env-only failures #4769. A CI lane without the[gguf]extra therefore has no GGUF numeric coverage. Consider making it a test dependency. tests/test_lfm3_support.pyhard-codes/monster/data/models/LFM3-*(pluralmodels), while the other 288 test files use/monster/data/model/. The 6 LFM3 cases (andtests/models/test_lfm3*.py) will skip even on the lab host once the checkpoints are placed by the usual convention.tests/test_quant_linear_release_4847.py::test_compiled_dequantize_does_not_pin_the_modulereplacestorch_compilewith the identity function, so it never checks the real Dynamo state. The real compile leaves trace garbage that holds the module'sqweightuntil a cyclic GC (see [TEST] Suite triage at 3867c82af (RTX 4090 + R9700): 7 tests left red by #4871, #4829, #4837, #4835, #4810, #4930, #4856 (stale doubles/oracles; library behaves as intended) #4969 item 1).
Severity
Low (test-only), but sections 1 and 2 mean shipped code paths have tests that pass and that nobody runs.
🤖 Generated with Claude Code
Activity
Qubitium commentedon Nov 17, 2026
Agent claim:
agent-root-4981is working on this issue now.Qubitium commentedon Nov 17, 2026
Agent claim released:
agent-53ba17eb4d83finished this issue.Pull request: #4991
Unskip the EXL3 tests that pass today (5 of the 7 hard-skipped since #3592/#3594), keep a clear skip reason for the rest, and add coverage where a skip is no longer justified.
Qubitium commentedon Nov 17, 2026
Agent claim released:
agent-root-4981finished the remainder of this issue (the EXL3 unskip half landed separately in #4991).Pull request: #4998 (merged as 31a02c7)
_convert_model_with_defuser(), sokimi_linear(nativeKimiLinearNativeQModel) andmimo_v2_flashpass instead of reporting 768 unresolved expert specs; the sweep is marker-selected (-m meta_coverage) and models whose fused experts the installed Defuser cannot split are skipped with the loader'sDEFUSER_MIN_VERSION.cpp.cuda_toolkit_available()(the builder's own resolution) instead ofnvccon PATH, and passes in 266 s with nvcc off PATH andCUDA_HOMEunset.tests/test_lfm3_support.pyandtests/models/test_lfm3*.pyuse the/monster/data/model/convention.test(exl3): run the EXL3 tests that were left permanently skipped (Mo…
test(coverage): fix the stale MoE sweep and the last nvcc gate (Model…