Repository navigation
Closed
Labels
bugSomething isn't working
Description
Severity: low; mostly test-side. Run on Radeon AI PRO R9700 (ROCm 10.1): 117 changed test files, 3,440 passed, 26 failed. Items marked "all" also fail on CPU/CUDA. Environment-only failures (old defuser in the venv, missing einops, offline cache) are left out, and so are items already in #4351/#4398.
Fails everywhere
tests/kernels/test_ret_idx_cache_invalidation.py: 6 cases.- The cases:
test_derived_fused_metadata_follows_loaded_checkpoint[TorchFused/Aten]andtest_fused_cache_lifecycle_with_inference_tensors[*-load_assign-*]. - Bisected to db31a55 ([BUG]
fresh.load_state_dict(mod.state_dict())from a v1-loaded module into a freshly built v2-runtime module still skips the v1→v2 conversion (incomplete fix of #4304) #4377): HEAD's test file passes 76/76 on db31a55~1 and fails 6 on db31a55. - It only affects modules built by
setattrof raw buffers, whose qzeros format was never "established". A real TorchLinear / TorchFused / TorchCpuAvx512load_state_dict(state_dict(), assign=True)round trip is exact at HEAD, so this is probably the test's construction. - Still worth deciding what the fresh-module path should do when the marker is missing.
- The cases:
test_offload_run_namespace.py::test_module_looper_failure_releases_private_run_dir: the mock lacksrelease_run_workspace(a427804).test_weight_only_looper.py::test_weight_only_looper_quantizes_input_and_lm_head_embeddings_only: the test assumesoffload_to_diskis off, but it defaults to True.test_model_test_helpers.py::test_load_dataset_falls_back_when_datasets_import_failedtest_paroquant.py::test_paroquant_triton_affine_ste_dispatch_and_kill_switch:AttributeError: _AFFINE_STE_TRITON_ENABLED, removed in 27c6b7b. Fails on any GPU; skipped on CPU.test_paroquant.py::test_paroquant_pair_grad_reduce_folds_tiles_in_ascending_order: flaky because of a real kernel race, [BUG] ParoQuantrotate_pair_grad_kernelshared-memory write-after-read race: fused rotation gradient intermittently wrong (|err| up to 2.5); flakytest_paroquant_pair_grad_reduce_folds_tiles_in_ascending_order#4461.
ROCm only
tests/test_qqq_kernel_memory_4387.py::test_qqq_torch_cuda_forward_peak_transient_is_bounded(new in 863549f): measures 100.82 MiB against a 70 MiB bound.- The QQQ code itself allocates about 25 MiB (the int8 weight build).
- The fp32
torch.matmulat M=1 (896×4864) takes about 80 MiB of transient memory, apparently hipBLASLt workspace allocated per call. - The bound needs ROCm headroom, or should exclude the BLAS workspace.
test_paroquant.py::test_paroquant_cuda_awq_kernel_preserves_bf16:KeyError: 'input_dtype', because the HIP path never calls the monkeypatched_awq_cuda_gemm_forward. Needs a ROCm skip; also fails at def6e61.
Observation (not a test)
GPTQ and QQQ quantize on ROCm keep the peak reserved VRAM after quantize() returns:
- Llama-3.2-1B GPTQ: 2.20 GiB still reserved, with peak allocated 1.43 GiB, even though the model is offloaded or on CPU.
- AWQ releases down to 0.82 GiB.
The "empty_cache at end of quantize" idea from #4389 was not implemented.
Found during an AI-assisted review (Claude Code, round 13) of 489aed6; repros were run at that commit (A/B against def6e61 where noted) on RTX 4090/5090 (CUDA 13) and/or Radeon AI PRO R9700 (ROCm) unless marked static/suspected.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
fix(paroquant): race-free, plan-invariant and correct fused rotation …