Skip to content

[TEST] CUDA test-suite triage at 842d666 (RTX 5090): test regressions from this round's fix commits, plus stale tests not in #4241/#4351 #4358

Closed

Description

@Qubitium

Severity: low. Status: confirmed on an RTX 5090 (sm_120); every item was compared against a 9dad249 worktree. About 13k items ran. Nothing failed only on sm_120.

Test-side regressions from the latest fix commits

  1. tests/kernels/test_awq_machete_group_size.py (a2e1761, [BUG] AwqMacheteLinear declares group_size=32, which the native Machete kernel can't run; AUTO ranks it first for AWQ gs=32 #4218) poisons AwqMacheteLinear.cached_validate_once.
    • The test mocks machete_extension_available → True and calls clear_validation_cache() before running. The lru-cached (True, None) result outlives the monkeypatch.
    • Every later tests/kernels/test_selection.py::test_select_quant_linear_smoke[AwqMacheteLinear-awq-{gemm,marlin}] then fails with "Machete kernel is Hopper-only…". Run alone, both skip.
    • Repro: pytest tests/kernels/test_awq_machete_group_size.py tests/kernels/test_selection.py -k "Machete or group_size" gives 2 failed.
    • Fix: also clear the cache on teardown.
  2. tests/module_tree/test_moe_expert_coverage.py::test_fixed_moe_definitions_resolve_every_quantizable_spec[bailing_hybrid] fails since 5e8a247.
    • That commit intentionally added the alternate attention.{query_key_value,dense} branch to BailingMoeQModel, which bailing_hybrid shares.
    • The test still requires every spec to resolve on the native model, so it needs to accept alternate branches.
  3. Stale scales.dtype == float32 assertions after af465d4 ([BUG] AwqGEMMLinear permanently rewrites checkpoint scales/bias to the activation dtype #4178).
    • Affected: tests/test_torch_cpu_avx512_awq.py::test_aten_awq_layer_matches_affine_oracle (2) and tests/test_torch_cpu_avx512.py::test_aten_cpu_fused_forward_matches_fp32_oracle (2).
    • af465d4 deliberately keeps the checkpoint's fp16 scales. With that one assertion removed, the numeric oracle checks pass.

Already failing at 9dad249, and not in #4241 or #4351

  • test_exllamav3_torch_padding.py::test_native_inference_created_bias_keeps_versioned_refresh[bf16-128/576].
    • Non-fp16 input routes to _torch_inner by design (exllamav3.py:310), so _inner stays None.
    • The bf16 numerics, including the bias refresh, pass.
  • test_locateanything_support.py::test_locateanything_prepare_dataset_uses_remote_processor: the test passes, but teardown raises RecursionError.
    • Cause: monkeypatch undo on an object.__new__ nn.Module. BaseQModel.__getattr__ (gptqmodel/models/base.py:6241) calls hasattr(self, "_modules"), which re-enters __getattr__.
    • pytest then spends 80–150 s formatting the traceback.
    • Suggest checking "_modules" in self.__dict__ instead.
  • Tolerances below 1 bf16 ulp.
    • test_torch_cpu_avx512_awq.py::test_awq_layer_train_mode_uses_differentiable_dequant_path[True]: the diff is 0.0625, exactly 1 ulp.
    • test_gguf_all_formats.py::test_gguf_kernel_independent_packed_oracle[dense-bf16-{q1_0,q1_0_g128,q2_0,q8_k}].
  • Stale mocks, or state_dict / qzeros_format layout expectations.
  • Missing availability gates (fail instead of skip).
    • test_machete_jit.py (5): "Machete runtime unavailable".
    • test_nf12_kernel_manifest.py::test_mlx_variant_resolves (5): mlx is not installed.
  • transformers 5.22 drift. test_hf_config_compat.py (2): DummyCache.get_max_length, and a log-capture assertion.

Still failing and already listed in open #4241 (not repeated here)

Among them: the allspark tests, even though 57ff533 edited test_allspark_linear.py, marlin_cpu_offload, quantized_embeddings (~47), the test_paroquant.py processor tests (14) and moe_expert_batching (9).

Verified passing now


Found during an AI-assisted review (Claude Code, round 11) of 842d666; repros were run at that commit on RTX 4090/5090 (CUDA 13) and/or Radeon AI PRO R9700 (ROCm) unless marked static/suspected.

Activity

  1. added
    bug
    on Nov 16, 2026
  2. ZX-ModelCloud commented on Nov 16, 2026

    @ZX-ModelCloud
    Collaborator

    Claimed. I'm working on this issue and will submit a fix PR. Please avoid duplicate work in the meantime.

  3. ZX-ModelCloud commented on Nov 16, 2026

    @ZX-ModelCloud
    Collaborator

    PR #4397 addresses this. Each item was reproduced at def6e61e3 and classified before editing.

    Two items are library defects, not stale tests:

    • test_locateanything_support.py teardown RecursionError — BaseQModel.__getattr__ probed hasattr(self, "_modules"), which re-enters the hook when _modules does not exist yet. Fixed to read the container from __dict__; new regression coverage in tests/test_base_qmodel_getattr_recursion.py.
    • test_hf_config_compat.py::...legacy_cache_length_helpers — the legacy cache-length shim was gated on Cache.get_max_cache_shape, which transformers 5.22 also removed. The shim now installs from the missing Cache.get_max_length and resolves the value from the layer API, falling back to None when no shape query exists.

    Verified and fixed as stale test expectations: the AwqMacheteLinear.cached_validate_once leak into test_selection.py, bailing_hybrid alternate attention branch, the scales.dtype == float32 assertions after #4178, the W4A-FP8 qzeros_format key, the BF16 EXL3 handle, _DummyQuantizeConfig.has_dynamic_exclusions, layer_modules_for_prefix in the subset-plan test, caplog for the logbar warning, the load_assign fused-state case after #4091, and the GGUF double-rounding/dependency gates.

    Not reproduced here: the AVX512 AWQ 1-ulp tolerance item now fails only by the double-rounding in the reference, and the q1_0/q2_0/q8_k GGUF BF16 cases pass with a single-rounding bound. Missing-gate items are now precise skips (test_machete_jit.py layout tests, test_mlx_variant_resolves, GGUF formats without a quantizer, C++ kernel when its shared library cannot load).

    13 items from the "already failing at 9dad249" list that are unrelated to this issue's fix commits were left alone; kernels/test_torch_int8.py, kernels/test_w4a_cache_lifecycle.py and module_tree/test_llama_fusion.py remain tracked under #4351.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions