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] GPTQModel.load rejects tt-blockfloat checkpoints selected with subfolder= #5363
A valid tt-blockfloat checkpoint loads when its directory is passed directly. Selecting that same directory with subfolder= falls through to the regular quantization config parser and raises ValueError: QuantizeConfig: Unknown quantization format: tt-blockfloat.
To reproduce
Write a block-float checkpoint with save_blockfloat_model() into root/packed and run the following on CPU.
Reproduced end to end at 72cef9bac with a one-layer Llama model whose supported weight matrices were rounded with quantize_bf4 and saved with save_blockfloat_model. The first load returned a quantized model with TTBlockfloatLinear modules. The second raised before constructing the model.
Expected behavior
Both calls select the same checkpoint and the same block-float loader.
Additional context
The quantized loader resolves checkpoint_dir from the requested subfolder, then uses the repository root for the block-float probe and loader. Subfolder resolution, block-float dispatch.
Suggested mitigation
The specialized dispatch block in gptqmodel/models/loader.py could use the existing checkpoint_dir for both format detection and model construction. A tiny block-float round trip could compare loaded module types and packed payloads for the direct path and the parent-plus-subfolder path. Passing the resolved checkpoint directory directly works today.
Activity
ZX-ModelCloud commentedon Nov 19, 2026
Agent claim released:
agent-4e318d7f46d7finished this issue.Pull request: #5476
Reproducing tt-blockfloat subfolder load failure and checking loader dispatch