Skip to content

[TEST] ROCm test-suite triage at 842d666: missing ROCm skips, order-dependent thread-cap test, and tests that still expect no qzeros_format marker #4351

Closed

Description

@Qubitium

Severity: low. Status: run on 2× Radeon AI PRO R9700 (rocm10.1, Python 3.14t, PYTHON_GIL=0) at 842d666, with cu130t CPU and 9dad249 comparisons. None of these is a product bug, and none is covered by the stale-test cleanup in ca57940 (#4241).

1. New tests without a ROCm skip

  • tests/kernels/test_qqq_workspace.py: 7 tests, new in 6ff4f7e. QQQLinear.validate() raises QQQ_ROCM_UNSUPPORTED before the patched probes are reached.
  • tests/test_nan_activation_quantizers_4220.py::test_fp8_triton_quantizer_propagates_nan: new in 0d8e6d0. The W4A Triton kernels are CUDA-only.

2. tests/test_thread_caps.py::test_process_thread_count_does_not_scale_with_cpu_count is order-dependent (new in 7c7d704)

  • It passes when run alone.
  • After any test that runs quantize() (e.g. test_paro_branch_replay_masks), the process has 121 threads against a limit of 80.
  • Cause: 8 CPU DeviceThreadPool workers each get their own 8-thread OpenMP team, because libgomp creates a team per calling thread. So the conftest cap does not actually bound threads once a quantize has run.
  • Separately, with TOKENIZERS_PARALLELISM unset, a quantize adds about 320 Rust/rayon tokenizer threads, for 436 threads in total.

3. Tests that still expect no qzeros_format marker

Same category as #4241, but not in ca57940's file list. Real saved GPTQ and AWQ checkpoints were checked and contain no qzeros_format keys.

  • kernels/test_torch_int8.py::test_native_int8_checkpoint_save_strict_reload_and_oracle (12).
  • kernels/test_w4a_cache_lifecycle.py (3).
  • module_tree/test_llama_fusion.py::test_source_operands_share_only_fused_storage... (2).

4. Failing on any device, already at 9dad249 (also on cu130t CPU)

  • tests/test_weight_only_looper.py::test_weight_only_looper_respects_dense_and_moe_vram_strategy_devices: _FakeQModel has no module plan, so _extract_moe_group_key returns None and every module stays on cuda:0.
  • module_tree/test_granite_swa_model_tree.py (6) and test_awq_relationships[granite-*] (3): granitemoe_swa experts are not split into separate linear layers.
  • test_moe_tags[nemotronh_nano_omni_reasoning_v3].
  • kernels/test_ret_idx_cache_invalidation.py load_assign cases: rshift_cpu is not implemented for Float.

5. Minor doc/behaviour mismatch

In utils/p2p.py, transformers 5.22 DynamicCache exposes only .layers (no key_cache / value_cache), so _p2p_container_children returns None and the cache is not walked, contrary to the docstring. There is no practical impact today: past_key_values kwargs are skipped (forward_executor.py:448), and ROCm nested peer copy is opt-in.

Possible flake (not reproduced)

test_rocm_default_env::test_quantization_is_reproducible_across_processes[qqq] failed once in a full shard run: 2 of 627 tensors differed (layers.10.mlp.up_proj.B/s_group) while the GPUs were shared with other jobs. It passed 3/3 alone and 2/2 under a synthetic concurrent load.


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.

Activity

  1. added
    bug
    on Nov 16, 2026
  2. Qubitium commented on Nov 16, 2026

    @Qubitium
    CollaboratorAuthor

    Claimed. This issue is now owned by a dedicated worker; a fix PR referencing it will follow. Please avoid duplicating work on it in the meantime.

  3. added a commit that references this issue on Nov 16, 2026
    f789043
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions