You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Checkpoint resume fails with "checkpoint tensor schema differs" for any model whose quantized layers have a non-fp16 bias (Qwen2/2.5, OPT, Bloom…) #4324
Severity: medium: resume is unusable on models with biased projections. Status: confirmed on an RTX 4090. Kind: not a regression; it fails the same way at 9dad249.
Where
gptqmodel/looper/checkpoint_modules.py:115 (restore_packed_module) rebuilds the module with an fp16 bias and does not record the bias dtype.
gptqmodel/looper/gptq_checkpoint.py:568-582 then compares module.state_dict() dtypes against the bundle.
Repro
On Qwen2.5-0.5B-Instruct (bf16), run model.quantize(calib, checkpoint=CheckpointConfig(path=CK)).
Stop it after layer 1 with SIGINT from layer_callback.
With instrumentation, the expected bias dtype is torch.float16 while the bundle has BF16.
All other keys match.
Expected: resume works. As a control, TinyLlama (no bias) with format=gptq_v2 resumes bit-identically (0/663 tensors differ).
Note:CheckpointConfig currently only supports llama, qwen2 and qwen3_moe, so on qwen2 this blocks one of the three supported families entirely.
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.
Taking this. I'll investigate against current main, add a targeted regression test, and open a PR. Will report back here if the claim turns out to be invalid or already fixed.
Activity
Qubitium commentedon Nov 16, 2026
Taking this. I'll investigate against current
main, add a targeted regression test, and open a PR. Will report back here if the claim turns out to be invalid or already fixed.Qubitium commentedon Nov 16, 2026
Fixed in #4362 — the checkpoint now records and restores the bias dtype, so bf16/fp32 bias bundles no longer fail the resume schema check.
fix: preserve bias dtype across checkpoint restore (ModelCloud#4324) (M…
fix(checkpoint): record the AWQ scale dtype for resume (#6153) (#6161)
fix(quantize): do not pack with an inherited inference-only backend (#…
tests: pin file-backed resume/offload state in the remaining checkpoi…
Remove accelerate: explicit WeightLoader for weight loading, placemen…