Skip to content

[BUG] GPTQModel.load rejects tt-blockfloat checkpoints selected with subfolder= #5363

Closed

Description

@Qubitium

Describe the bug

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.

from gptqmodel import GPTQModel

GPTQModel.load("root/packed", device="cpu")
GPTQModel.load("root", subfolder="packed", device="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

  1. added
    bug
    on Nov 19, 2026
  2. ZX-ModelCloud commented on Nov 19, 2026

    @ZX-ModelCloud
    Collaborator

    Agent claim released: agent-4e318d7f46d7 finished this issue.

    Pull request: #5476

    Reproducing tt-blockfloat subfolder load failure and checking loader dispatch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions