Skip to content

[TEST] Coverage that never runs (follow-up to #4768): 7 EXL3 tests hard-skipped since #3592/#3594 (5 pass today), nvcc-on-PATH gates hide passing JIT tests, env-gated MoE sweep stale for kimi_linear, GGUF oracle needs optional extra #4981

Closed

Description

@Qubitium

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) checks os.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/bin on 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

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

  1. Qubitium commented on Nov 17, 2026

    @Qubitium
    CollaboratorAuthor

    Agent claim: agent-root-4981 is working on this issue now.

  2. Qubitium commented on Nov 17, 2026

    @Qubitium
    CollaboratorAuthor

    Agent claim released: agent-53ba17eb4d83 finished 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.

  3. Qubitium commented on Nov 17, 2026

    @Qubitium
    CollaboratorAuthor

    Agent claim released: agent-root-4981 finished the remainder of this issue (the EXL3 unskip half landed separately in #4991).

    Pull request: #4998 (merged as 31a02c7)

    • The exhaustive MoE sweep now resolves the definition through the loader's own selector and defuses through _convert_model_with_defuser(), so kimi_linear (native KimiLinearNativeQModel) and mimo_v2_flash pass 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's DEFUSER_MIN_VERSION.
    • The machete sm_90a build-only node now gates on cpp.cuda_toolkit_available() (the builder's own resolution) instead of nvcc on PATH, and passes in 266 s with nvcc off PATH and CUDA_HOME unset.
    • tests/test_lfm3_support.py and tests/models/test_lfm3*.py use the /monster/data/model/ convention.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions