Repository navigation
Description
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)The differences are 1 bf16 ulp at |y|≈1-2, from rounding the decoded weight to 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)rtol=2e-3is below bf16 resolution (2^-8 ≈ 3.9e-3). The test passes at8587f0bcc^. Fix: use a bf16-appropriate tolerance (for examplertol=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]The case istests/test_fp8_bias_range.py:156 Greatest absolute difference: 0.0078125 at index (0, 0) (up to 0.002 allowed); relative 1.0x=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_nscripts/marlin_scratch_fixture.py::gemm_argumentspassesb_bias=layer.biasto the rawgptq_marlin_gemmwith the paddedsize_n. Since fix(marlin): keep the checkpoint bias out of the tile layout and the output dtype #4657,layer.biaskeeps the 200-wide checkpoint layout, and the padded/permuted operand comes fromlayer._kernel_bias(x). Fix: the fixture should passlayer._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_pjrtThe monkeypatchedTypeError: test_native_ttnn_device_resolution_never_initializes_pjrt.<locals>._record() got an unexpected keyword argument 'single_capability_group'_record(device)attests/test_tenstorrent_support.py:674stands in forexpand_selector_device_family, which_resolve_default_layerwise_devicenow calls withsingle_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)The test callsassert len(triton_calls) == (2 if path == "triton" else 0) -> assert 0 == 2configure_kernel(KernelConfig(bitsandbytes_triton=True))at line 293, aftercls(...)andpost_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 passkernel=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_timingtests/kernels/test_gguf_cpp_path_selection.py::test_cpu_path_choice_is_capability_based_not_timedAttributeError: 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 useraising=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: AwqGEMVTorchLineartests/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 insetUpClass)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')setUpClasscallsdata.adapter.post_init(cls.target, ...)to materializelora_A/Bfor one module, then passes that same object toGPTQModel.load(adapter=...).Lora.targets_module()/has_weights()treat preloaded A/B as "applies to every module", so the denselm_headgets a copy and fails. A freshLora(path=..., rank=64)reused across two loads works correctly (verified). Fix: pass a fresh, un-materializedLoratoload()and readkfrom 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_quantizationtests/test_auto_module_decoder.py::test_configure_modelopt_runtime_rejects_checkpoint_activation_scale_metadataThe refusal is still raised. Only the wording changed. Fix: matchExpected regex: 'activation quantization' Actual message: 'GPT-QModel does not support loading of activation quantized models. ...' / '... checkpoints with pre-quantized activation scales ...'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 istorch.cuda.is_available(), which is true on ROCm. Fix: skip ontorch.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
Qubitium commentedon Nov 17, 2026
Taking this.
test: realign stale FP8, Marlin, GGUF and decoder tests (#4764) (#4836)
Qubitium commentedon Nov 17, 2026
Agent claim released:
agent-11788dff99fdfinished 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
test(kernels): load through a fresh Lora so the dense lm_head is not …
Qubitium commentedon Nov 17, 2026
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: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.tests/kernels/test_static_cache_compile_4669.py::test_static_cache_does_not_compile_a_graph_breaking_kernel. StillValueError: Marlin kernel is not supported on ROCm.(no HIP skip).Tests newly broken since b225a43 are in #4969.
🤖 Generated with Claude Code
Qubitium commentedon Nov 18, 2026
Agent claim released:
agent-53ba17eb4d83is 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
Qubitium commentedon Nov 18, 2026
Agent claim:
agent-root-4764-test-oraclesis 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.pyand will keep the HIP-gating lines oftests/test_marlin_scratch_cuda.pyuntouched.Qubitium commentedon Nov 18, 2026
Agent claim released:
agent-53ba17eb4d83is handing this toagent-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.)Qubitium commentedon Nov 18, 2026
Agent claim released:
agent-fb5145b84190finished 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
test(bnb): opt into the Triton policy at module construction (#4764) (#…