Repository navigation
Closed
Labels
bugSomething isn't working
Description
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
tests/kernels/test_awq_machete_group_size.py(a2e1761, [BUG]AwqMacheteLineardeclares group_size=32, which the native Machete kernel can't run; AUTO ranks it first for AWQ gs=32 #4218) poisonsAwqMacheteLinear.cached_validate_once.- The test mocks
machete_extension_available → Trueand callsclear_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.
- The test mocks
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 toBailingMoeQModel, which bailing_hybrid shares. - The test still requires every spec to resolve on the native model, so it needs to accept alternate branches.
- That commit intentionally added the alternate
- Stale
scales.dtype == float32assertions after af465d4 ([BUG]AwqGEMMLinearpermanently 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) andtests/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.
- Affected:
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_innerby design (exllamav3.py:310), so_innerstays None. - The bf16 numerics, including the bias refresh, pass.
- Non-fp16 input routes to
test_locateanything_support.py::test_locateanything_prepare_dataset_uses_remote_processor: the test passes, but teardown raisesRecursionError.- Cause: monkeypatch undo on an
object.__new__nn.Module.BaseQModel.__getattr__(gptqmodel/models/base.py:6241) callshasattr(self, "_modules"), which re-enters__getattr__. - pytest then spends 80–150 s formatting the traceback.
- Suggest checking
"_modules" in self.__dict__instead.
- Cause: monkeypatch undo on an
- 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_formatlayout expectations.test_split_by_layer_save.py::…suspends_active_source_staging…: the mock lackshas_dynamic_exclusions.test_subset_plan.py::…merges_groups_for_single_pass_processors.kernels/test_ret_idx_cache_invalidation.py::…[load_assign-*](4).kernels/test_w4afp8_gb10.py::test_exact_fp8_weight_operand_and_native_checkpoint.kernels/test_torch_int8.py,kernels/test_w4a_cache_lifecycle.pyandmodule_tree/test_llama_fusion.pyare already in [TEST] ROCm test-suite triage at 842d666: missing ROCm skips, order-dependent thread-cap test, and tests that still expect noqzeros_formatmarker #4351.
- 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):mlxis 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
- The [TEST] Tests that fail for test-side reasons (found triaging the suite on ROCm R9700 / gfx1201) #4234 items:
kernel_device_error_reason,hessian_device_reduction_order, GGUF selection, and the paroquant identity test. - 1945 of the 1962 items in the test files changed in
9dad249..842d666.
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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
ZX-ModelCloud commentedon Nov 16, 2026
Claimed. I'm working on this issue and will submit a fix PR. Please avoid duplicate work in the meantime.
ZX-ModelCloud commentedon Nov 16, 2026
PR #4397 addresses this. Each item was reproduced at
def6e61e3and classified before editing.Two items are library defects, not stale tests:
test_locateanything_support.pyteardownRecursionError—BaseQModel.__getattr__probedhasattr(self, "_modules"), which re-enters the hook when_modulesdoes not exist yet. Fixed to read the container from__dict__; new regression coverage intests/test_base_qmodel_getattr_recursion.py.test_hf_config_compat.py::...legacy_cache_length_helpers— the legacy cache-length shim was gated onCache.get_max_cache_shape, which transformers 5.22 also removed. The shim now installs from the missingCache.get_max_lengthand resolves the value from the layer API, falling back toNonewhen no shape query exists.Verified and fixed as stale test expectations: the
AwqMacheteLinear.cached_validate_onceleak intotest_selection.py,bailing_hybridalternate attention branch, thescales.dtype == float32assertions after #4178, the W4A-FP8qzeros_formatkey, the BF16 EXL3 handle,_DummyQuantizeConfig.has_dynamic_exclusions,layer_modules_for_prefixin the subset-plan test,caplogfor the logbar warning, theload_assignfused-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_kGGUF BF16 cases pass with a single-rounding bound. Missing-gate items are now precise skips (test_machete_jit.pylayout 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.pyandmodule_tree/test_llama_fusion.pyremain tracked under #4351.fix: realign stale test expectations and two product defects (#4358) (#…