Skip to content

test(rocm): use the dequant oracle and NVIDIA gates where the lean path is disabled (#5325) - #6280

Merged
Qubitium merged 1 commit into
mainfrom
fix/5325-rocm-issue
Nov 29, 2026
Merged

Qubitium merged 1 commit into
mainfrom
fix/5325-rocm-issue

Conversation

@Qubitium

Copy link
Copy Markdown
Collaborator

Part of #5325 (items B3, B4)

…n path is disabled (#5325)

- test_fp8_kernel: follow the module's lean-epilogue gate for the oracle.
  A HIP build whose measured native FP8 cast rejects the device keeps the
  dequantize -> narrow -> matmul path, so the oracle narrows the weight too;
  the wide oracle stays for the lean path (NVIDIA and bit-exact HIP casts).
- test_fp8_bias_range: expect lean or dequant calls from the same gate, and
  narrow the oracle on the dequant path.
- test_qqq_per_channel_checkpoint_5126: AUTO loads the portable
  QQQTorchLinear on HIP (the native QQQ kernel is CUDA-only).
- test_pangu_alpha_replay: load fp16 on HIP; fp32 has no GPTQ GPU kernel
  there and falls back to the fp16/bf16-only TorchLinear. NVIDIA and CPU
  keep fp32.
Comment thread tests/test_fp8_bias_range.py Resolved
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.

1 participant