Repository navigation
[BUG] Docs vs code (round 20): EoRA doc scripts force expandable_segments on ROCm (the documented corrupting config), stale rocm-rdna4 Paro AUTO/BLAS-pin claims, checkpoint.md support list omits qwen2/dynamic/MACaQ/NF12, errors name removed calibration_dataset_concat_size #5121
Description
Found on main @ 7b8f127, AMD Radeon AI PRO R9700 (gfx1201, ROCm 10.1) and CPU-only (torch 2.15).
This is a docs-vs-code pass over README, checkpoint.md and docs/. Each item below was checked against actual behaviour on this host. Excluded: the export docs (being deprecated) and the known stale VPTQ cross-process note in rocm-rdna4.md. The AWQ GEMV_FAST/LLM_AWQ ROCm row of rocm-rdna4.md is filed separately as #5109.
1. The EoRA doc scripts force the allocator config that GPT-QModel avoids on ROCm (most user-impacting)
All four scripts under docs/eora/ start with
os.environ["PYTORCH_ALLOC_CONF"] = "expandable_segments:True"They are eora_generation.py:21, post_quant_eora_generation.py:21, evaluation.py:21 and eora_load_and_inference.py:21. docs/rocm-default-environment.md says that on ROCm expandable_segments:True plus torch.cuda.empty_cache() "corrupts ordinary Torch results on ROCm 10.1 / gfx1201", which is why ROCm defaults to max_split_size_mb:256,garbage_collection_threshold:0.7. GPT-QModel then keeps the caller's value silently. With PYTORCH_ALLOC_CONF=expandable_segments:True set before import gptqmodel on the R9700, the result is:
ENV {'PYTORCH_ALLOC_CONF': 'expandable_segments:True', 'PYTORCH_CUDA_ALLOC_CONF': None, 'PYTORCH_HIP_ALLOC_CONF': None, 'ROCBLAS_USE_HIPBLASLT': '0'}
No warning is printed. A ROCm user who follows docs/eora/README.md therefore runs EoRA generation under the configuration the ROCm doc calls corrupting. Suggested fix: drop the line (import gptqmodel already installs the right per-platform default), or set it only when torch.version.hip is None.
2. rocm-rdna4.md Paro Triton row and text are stale since #5053 (#4914)
- Table row (
rocm-rdna4.md:54): gfx1200 "✅ explicitPARO_TRITONonly", and "AUTO keeps the TorchParoLinearkernel". rocm-rdna4.md:178: "SUPPORTS_FORMATS[FORMAT.PARO] = 0meansPARO_TRITONis never chosen byAUTO; selecting it explicitly is required on every platform."
In the code, ParoTritonLinear.SUPPORTS_FORMATS = {FORMAT.PARO: 10}, and auto_select_priority() promotes it on ROCm. Measured result: a Paro checkpoint reloaded with backend="auto" on the R9700 gives {'ParoTritonLinear': 14}. On CPU it gives ParoLinear. The README 7.11.2 notes ("Paro selects Triton on ROCm") are correct; the RDNA4 page contradicts them.
3. The ROCm BLAS-pin docs say Paro keeps hipBLASLt, but the code pins rocBLAS for it
rocm-default-environment.md:78: "AWQ, Paro and weight-only (RTN) accumulate none of these and keep hipBLASLt." The same page's flowchart and before/after table say Paro is "pinned rocBLAS" ([BUG] ParoQuant quantization is not reproducible with a fixedopt_seed(±0.3 PPL run-to-run) #4460).rocm-rdna4.md:104-106: the pin list "GPTQ, QQQ, VPTQ, MACaQ, EXL3, calibrated FP8 GSQ or an EoRA adapter ... now pins rocBLAS, and every other method pins hipBLASLt" omits Paro.
In the code, _DETERMINISTIC_BLAS_PROCESSOR_STEPS (gptqmodel/models/base.py:173-182) contains ProcessorStep.PARO. Both sentences should name Paro as pinned.
4. The checkpoint.md "Supported configurations" list no longer matches the adapter
checkpoint.md:204-218 lists model types llama and qwen3_moe, the methods "GPTQ, RTN, AWQ, QQQ, Paro, EXL3, FP8, GGUF, and bitsandbytes", and says "dynamic per-module quantization/exclusions" is unsupported. The code differs:
CHECKPOINT_MODEL_TYPES = {"llama", "qwen2", "qwen3_moe"}(looper/gptq_checkpoint.py:290).MacaqProcessordeclaresCheckpointSupport.PRIMARY(looper/macaq_processor.py:74). The README 7.11.2 notes say "NF12 and MACaQ can resume from checkpoints".validate_checkpoint_support()does not rejectdynamic, anddynamic(including runtime exclusions) is part of the checkpoint identity.
Measured on CPU with a real 2-layer Qwen2.5-0.5B copy (model_type=qwen2). For each case I ran a full checkpointed quantize(), then a fresh process with CheckpointConfig(resume="required") on the same path, and compared every state-dict tensor:
| config | first run | resume (required) |
differing tensors |
|---|---|---|---|
GPTQ 4-bit + dynamic={r"+:.*\.1\..*": {"bits": 8}} |
30.2 s | 1.1 s | 0 / 83 |
GPTQ 4-bit + dynamic={r"-:.*\.1\.mlp\.down_proj": {}} |
50.1 s | 4.8 s | 0 / 79 |
NF12Config() |
8.0 s | 0.5 s | 0 / 55 |
MacaqConfig() (bf16) |
330.7 s | 20.8 s | 0 / 69 |
All of these work, but the doc tells users that qwen2, dynamic, MACaQ and NF12 are not supported.
5. Calibration error messages name the removed keyword calibration_dataset_concat_size
Since #4724 the user-facing name is CalibrationConfig.concat_size. Several messages that reach users still use the old keyword:
gptqmodel/utils/calibration.py:195: "Quantize:calibration_dataset_concat_sizeis token-based and cannot be used ...":1159: "Quantize: calibration_dataset_concat_size=... exceeds ...":1351:_require_tokenizer("calibration_dataset_concat_sizeis specified"):1476: "calibration_dataset_concat_sizemust be larger thanmin_length."
quantize(calibration_concat_size=...) and similar old keywords raise TypeError, so a user who follows these messages hits a dead end. They should say CalibrationConfig.concat_size. Other messages in the same file already name CalibrationConfig.min_length.
Checked and consistent (no action)
- README quick start: inference (ROCm AUTO -> TorchLinear) and quantize -> save -> reload -> generate with
CalibrationConfigon Qwen3-0.6B. - Every
CalibrationConfigdefault in README andcalibration-config.md;HessianConfig.sink_row_cap_median_multiple=4.0. Withdesc_act=Falsethe cap is bitwise inert (0/28 tensors differ). CheckpointConfig,P2PConfigand all 68KernelConfig/RuntimeConfigdefaults inkernel-config.md.- The ROCm allocator and
ROCBLAS_USE_HIPBLASLTdefaults, caller precedence (incl.PYTORCH_HIP_ALLOC_CONF), and the CUDAexpandable_segmentsdefault.QuantizeConfig(runtime=RuntimeConfig(rocm_quant_blas="hipblaslt"|""))skips the pin and warns as documented. - AUTO kernel selection on ROCm and CPU for GPTQ 4/8, AWQ GEMM/GEMV, RTN, QQQ, GGUF, FP8, NF12, EXL3, Paro, MACaQ, BnB and VPTQ. All match the tables apart from item 2 and [BUG] #4753 (fix of #4736) incomplete on ROCm: AWQ format=GEMV_FAST / LLM_AWQ cannot be quantized by any backend (AUTO, AWQ_TORCH, AWQ_GEMV_TRITON all refuse), while rocm-rdna4.md lists them as AUTO-quantizable #5109.
- The offload run-directory lifecycle (in-session model has no meta tensors and survives deleting the run dir; the run dir is removed on failure).
peft.md(GPTQ mixed-bit via plain Transformers == native; AWQtorch_awqLoRA grads).reshard(). EoRA in-quantize and post-quant flows. The rotation opt-in gate. Rejection ofexclude_attention_sinksby VPTQ and Paro.
🤖 Generated with Claude Code
Activity
Qubitium commentedon Nov 18, 2026
Agent claim released:
agent-4e3a0639ecaffinished this issue.Pull request: #5165
Docs-vs-code round 20: EoRA allocator override removed, Paro AUTO/BLAS claims corrected, checkpoint.md support list updated, calibration messages now name CalibrationConfig.concat_size, plus the drifted docs-contract citations.
docs: align ROCm, checkpoint and calibration docs with shipped code (#…
docs: align ROCm, checkpoint and calibration docs with shipped code (#…
Qubitium commentedon Nov 18, 2026
Agent claim released:
agent-f60b36e15e6dis no longer working on this issue.The issue is free to claim.
All five items are already fixed on main by #5165 (a3e98ce): EoRA scripts no longer set PYTORCH_ALLOC_CONF, rocm-rdna4 Paro AUTO rows/text match ParoTritonLinear, the rocBLAS pin docs name Paro, checkpoint.md lists qwen2/dynamic/MACaQ/NF12, and the calibration errors say CalibrationConfig.concat_size. Verified each site on origin/main; no duplicate PR opened. The issue stayed open only because #5165 did not use a closing keyword.
Qubitium commentedon Nov 18, 2026
Agent claim released:
agent-fb5145b84190is no longer working on this issue.The issue is free to claim.
already fixed on main by merged PR #5165; verified all 5 items (eora alloc-conf, paro triton AUTO, paro BLAS pin, checkpoint.md list, concat_size messages). No new PR needed.