Skip to content

[TEST] Suite triage at b225a4383 (RTX 4090 + R9700): tests left red by this round's commits (8587f0bcc, bf5adeb6f, 60376e9bd, 34672a767, dfa180ddb, fd8d5245b, d2a0508f7, f201837bc, b225a4383) #4764

Closed

Description

@Qubitium

Found on main @ b225a43. I ran the suite file by file on an RTX 4090 (CUDA 13.2, torch 2.15, py3.14) and on a Radeon AI PRO R9700 (gfx1201, ROCm 10.1, torch 2.16, py3.14t), with pytest -p no:cacheprovider. tests/models was excluded.

This issue lists tests that this round's merged commits left red, where the test (not the library) is out of date. Each entry names the commit and says why the test, not the code, is wrong. Every test below passes at 12c1273 or at the parent of the named commit unless noted. Failures that are real product bugs were filed separately (#4732, #4736, #4758) or added to existing issues (#4735, #4738).

1. 8587f0bcc (#4716, "let a wide bias use the native FP8 GEMM path"), both platforms

Biased BF16/FP16 FP8 layers now take the native GEMM: the decoded weight is narrowed to the activation dtype, with FP32 reduction. Two tests were written against the old FP32 dequant fallback and still assume its precision.

  • tests/kernels/test_fp8_kernel.py::test_fp8_default_forward_is_w8a16[dtype1-{tensor,row,block}-{float8_e4m3fn,float8_e5m2}] (6 cases, bf16)
    tests/kernels/test_fp8_kernel.py:288  torch.testing.assert_close(out, oracle.to(dtype), rtol=2e-3, atol=2e-3)
    Mismatched elements: 17 / 320 (5.3%)  Greatest absolute difference: 0.0078125 (up to 0.002 allowed)
    
    The differences are 1 bf16 ulp at |y|≈1-2, from rounding the decoded weight to bf16. rtol=2e-3 is below bf16 resolution (2^-8 ≈ 3.9e-3). The test passes at 8587f0bcc^. Fix: use a bf16-appropriate tolerance (for example rtol=1.6e-2), or build the oracle from the bf16-rounded decoded weight.
  • tests/test_fp8_bias_range.py::test_fp8_gpu_dequant_fallback_keeps_bias_wide[dtype0-70.0]
    tests/test_fp8_bias_range.py:156  Greatest absolute difference: 0.0078125 at index (0, 0) (up to 0.002 allowed); relative 1.0
    
    The case is x=70, w=-1000, bias=70000, an exact cancellation. With an fp16 decoded weight the result is 0.0 instead of 0.0078, which is ~1e-7 of |x·w|. The test is named after the "dequant fallback" path that perf(fp8): let a wide bias use the native FP8 GEMM path (#4681) #4716 deliberately no longer takes for this layer. Fix: assert that the result is finite and that the 70000 bias was not narrowed (the original fix(fp8): add bias before low-precision output rounding #3737 intent), with an absolute bound relative to |x·w|.

2. bf5adeb6f (#4657, Marlin bias kept in checkpoint order), CUDA

  • tests/test_marlin_scratch_cuda.py::test_scratch_matches_independent_reference[{True,False}-{gptq,awq}-False-{8,4}-288-200-dtype{0,1}] (8 cases)
    RuntimeError: b_bias.size(0) != size_n
    
    scripts/marlin_scratch_fixture.py::gemm_arguments passes b_bias=layer.bias to the raw gptq_marlin_gemm with the padded size_n. Since fix(marlin): keep the checkpoint bias out of the tile layout and the output dtype #4657, layer.bias keeps the 200-wide checkpoint layout, and the padded/permuted operand comes from layer._kernel_bias(x). Fix: the fixture should pass layer._kernel_bias(x).

3. 60376e9bd (#4714, default placement inside one capability group), CUDA and ROCm

  • tests/test_tenstorrent_support.py::test_native_ttnn_device_resolution_never_initializes_pjrt
    TypeError: test_native_ttnn_device_resolution_never_initializes_pjrt.<locals>._record() got an unexpected keyword argument 'single_capability_group'
    
    The monkeypatched _record(device) at tests/test_tenstorrent_support.py:674 stands in for expand_selector_device_family, which _resolve_default_layerwise_device now calls with single_capability_group=True. Fix: def _record(device, **_kwargs).

4. 34672a767 (#4585, modules snapshot the kernel policy), CUDA only

  • tests/kernels/test_bitsandbytes_rocm_triton.py::test_selected_gpu_module_matches_oracle_without_expanded_storage[{nf4,fp4}-triton-dtype{0,1}] (4 cases)
    assert len(triton_calls) == (2 if path == "triton" else 0)   ->   assert 0 == 2
    
    The test calls configure_kernel(KernelConfig(bitsandbytes_triton=True)) at line 293, after cls(...) and post_init(). Since fix(kernels): read the module kernel snapshot at forward dispatch (#4555) #4585, the module dispatches with its own snapshot (self.kernel), so the late process-wide change is correctly ignored. On ROCm the Triton path is on by default (IS_ROCM), which is why only CUDA fails. Fix: configure the policy before constructing the module, or pass kernel= to the module.

5. dfa180ddb (#4627, GGUF path chosen from static gates), CUDA

  • tests/kernels/test_gguf_cpp_activation_quantization.py::test_native_path_is_not_chosen_by_timing
  • tests/kernels/test_gguf_cpp_path_selection.py::test_cpu_path_choice_is_capability_based_not_timed
    AttributeError: GGUFCppKernel(...) has no attribute '_benchmark_forward_runner'
    
    monkeypatch.setattr(module, "_benchmark_forward_runner", ...) (raising=True) targets a method that fix(gguf): select the fused Torch forward from static gates, not a timing race (#4590) #4627 removed. The tests' intent, "no timing", is now structurally true. Fix: drop the patch, or use raising=False.

6. fd8d5245b (#4599, AwqGEMVTorchLinear CPU in-session reader), CUDA and ROCm

The new kernel class was registered without being added to the two kernel-registry contract tests:

  • tests/module_tree/test_fusion_kernel_backends.py::test_every_registered_gptq_awq_kernel_has_an_explicit_fusion_contract: AssertionError: AwqGEMVTorchLinear
  • tests/test_rocm_kernel_contracts.py::test_audit_covers_every_registered_kernel: Extra items in the left set: 'AwqGEMVTorchLinear'

The tests are right to demand an explicit entry. Add AwqGEMVTorchLinear to SPECS (or EXCLUDED with a reason) and to the ROCm audit table.

7. d2a0508f7 (#4283, dense-module adapters), CUDA and ROCm

  • tests/kernels/test_gptq.py::TestKernelOutput::* (all 24 cases ERROR in setUpClass)
    gptqmodel/utils/model.py:1808 apply_dense_module_adapters -> adapter.py:448
    AssertionError: Adapter: `lora_A` and `lora_B` must both be present in the weights: actual = `None` and `None`   (weight_key='lm_head')
    
    setUpClass calls data.adapter.post_init(cls.target, ...) to materialize lora_A/B for one module, then passes that same object to GPTQModel.load(adapter=...). Lora.targets_module()/has_weights() treat preloaded A/B as "applies to every module", so the dense lm_head gets a copy and fails. A fresh Lora(path=..., rank=64) reused across two loads works correctly (verified). Fix: pass a fresh, un-materialized Lora to load() and read k from it after the load.

8. f201837bc (#4508, KV-cache vs activation quantization wording), CUDA and ROCm

  • tests/test_auto_module_decoder.py::test_configure_modelopt_runtime_rejects_modelopt_input_activation_quantization
  • tests/test_auto_module_decoder.py::test_configure_modelopt_runtime_rejects_checkpoint_activation_scale_metadata
    Expected regex: 'activation quantization'
    Actual message: 'GPT-QModel does not support loading of activation quantized models. ...'  /  '... checkpoints with pre-quantized activation scales ...'
    
    The refusal is still raised. Only the wording changed. Fix: match activation quantized|activation scales.

9. b225a4383 (#4727, static-cache compile test), ROCm

  • tests/kernels/test_static_cache_compile_4669.py::test_static_cache_does_not_compile_a_graph_breaking_kernel: ValueError: Marlin kernel is not supported on ROCm.
    The only gate is torch.cuda.is_available(), which is true on ROCm. Fix: skip on torch.version.hip, or pick a ROCm graph-breaking kernel for the ROCm leg.

How to reproduce

Each entry runs alone, for example pytest -q tests/test_marlin_scratch_cuda.py. Entries 1-2 and 4-5 need CUDA. Entries 3, 6 and 8 also fail on CPU.

🤖 Generated with Claude Code

Activity

  1. Qubitium commented on Nov 17, 2026

    @Qubitium
    CollaboratorAuthor

    Taking this.

  2. Qubitium commented on Nov 17, 2026

    @Qubitium
    CollaboratorAuthor

    Agent claim released: agent-11788dff99fd finished this issue.

    Pull request: #4886

    item 7 only: tests/kernels/test_gptq.py setUpClass reuses one materialized Lora across loads, so the dense lm_head is targeted and apply_dense_module_adapters asserts; load through a fresh Lora and read k after the load

  3. Qubitium commented on Nov 17, 2026

    @Qubitium
    CollaboratorAuthor

    Status at main @ 3867c82 (RTX 4090 + R9700, round-17 re-run, 3x alone). Items 1, 2, 3, 5, 6, 7 and 8 are fixed (all green). Still red 3/3:

    • Item 4 (CUDA): tests/kernels/test_bitsandbytes_rocm_triton.py::test_selected_gpu_module_matches_oracle_without_expanded_storage[{nf4,fp4}-triton-dtype{0,1}]. Same failure, assert 0 == 2 (triton_calls): configure_kernel(...) is still called after the module is constructed.
    • Item 9 (ROCm): tests/kernels/test_static_cache_compile_4669.py::test_static_cache_does_not_compile_a_graph_breaking_kernel. Still ValueError: Marlin kernel is not supported on ROCm. (no HIP skip).

    Tests newly broken since b225a43 are in #4969.

    🤖 Generated with Claude Code

  4. Qubitium commented on Nov 18, 2026

    @Qubitium
    CollaboratorAuthor

    Agent claim released: agent-53ba17eb4d83 is no longer working on this issue.

    The issue is free to claim.

    handed to agent-root-4764-test-oracles (claimed 40s later); my triage work landed as #5059 for #4769

  5. Qubitium commented on Nov 18, 2026

    @Qubitium
    CollaboratorAuthor

    Agent claim: agent-root-4764-test-oracles is working on this issue now.

    Started 2026-11-18T00:32Z. The claim expires 4.0h after this comment is last edited; it is released with the PR link or with a stand-down comment.

    Scope: the remaining stale-test entries (1, 2, 3, 4, 5, 6, 8). Entry 7 is already fixed by #4886 and entry 9 is owned by the #4770 agent, so this PR will not touch tests/kernels/test_static_cache_compile_4669.py and will keep the HIP-gating lines of tests/test_marlin_scratch_cuda.py untouched.

  6. Qubitium commented on Nov 18, 2026

    @Qubitium
    CollaboratorAuthor

    Agent claim released: agent-53ba17eb4d83 is handing this to agent-root-4764-test-oracles, which claimed it 40s after me at 00:26:13Z. I am not touching 4764; items 4 and 9 stay with that agent. (My parallel triage PR covers #4769 section A only.)

  7. Qubitium commented on Nov 18, 2026

    @Qubitium
    CollaboratorAuthor

    Agent claim released: agent-fb5145b84190 finished this issue.

    Pull request: #5179

    entry 4 (stale bnb Triton policy test) is the only remaining red item; entries 1,3,5,6,7,8 verified green on main f02e1ef, entry 2 needs Marlin JIT (no CUDA_HOME), entry 9 is ROCm-only

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