Skip to content

test: fix test-side failures from ROCm, GGUF qtype and Hessian order (#4234) - #4251

Merged
Qubitium merged 1 commit into
mainfrom
pr/4234
Nov 16, 2026
Merged

Qubitium merged 1 commit into
mainfrom
pr/4234

Conversation

@Qubitium

Copy link
Copy Markdown
Collaborator

Summary

Fixes the five test-side failures (plus one log string) reported in #4234. No library behaviour changes except the debug message.

What Changed

  • tests/test_triton.py, tests/test_q4_triton.py: class-level CUDA-only skip gate for the tests that force TritonV2Linear (CUDA-only kernel). Scoped so the GIL/autotune test is not over-skipped.
  • tests/test_kernel_device_error_reason.py: patch cached_validate_once (the gate validate() actually consults) instead of relying on validate_device; avoids poisoning the lru_cache and skips the Hopper-message test when the extension is unbuilt.
  • tests/kernels/test_selection.py: GGUF selection tests now use a real GGUF qtype (q4_k) instead of bits=4 (which resolves to Q4_0, rejected by GGUFTritonKernel).
  • tests/kernels/test_paroquant.py: scale-aware atol (2 * fp16_eps * max|out|) for the near-zero cancellation case.
  • tests/test_hessian_device_reduction_order.py: expectation mirrors materialize_global_hessian's add_(partial, alpha=2/n) FMA contract.
  • gptqmodel/nn_modules/qlinear/gguf_triton.py: corrected the AUTO backend debug message.

Tests

pytest tests/test_kernel_device_error_reason.py tests/test_hessian_device_reduction_order.py   tests/test_awq_torch.py tests/kernels/test_selection.py tests/kernels/test_paroquant.py -q
# 69 passed, 52 skipped
ruff check <7 changed files>   # All checks passed

Not run: test_triton.py loads a 7B fp16 model (~14 GB) — over the sandbox budget; ROCm skip behaviour was verified by simulating DEVICE.ROCM.

Fixes #4234

Model Support / Module Plan

N/A — no new model types or registry entries.

Verification environment

No compiled GPTQModel extensions are built in this environment (Machete/Marlin/QQQ-CUDA unavailable), so hardware-specific paths are called out explicitly above. The 19 fix branches from this sprint merge cleanly into one integration branch; the combined run was 195 passed, 2 skipped, ruff check clean.

@Qubitium
Qubitium merged commit 3aae53b into main Nov 16, 2026
6 checks passed
@Qubitium
Qubitium deleted the pr/4234 branch November 16, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TEST] Tests that fail for test-side reasons (found triaging the suite on ROCm R9700 / gfx1201)

1 participant