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] Multimodal processor loading ignores the checkpoint subfolder #5358
Loading a multimodal checkpoint with GPTQModel.load(parent, subfolder="nested") finds the selected model config, tokenizer and weights, then looks for processor files at parent. With the checkpoint stored entirely in parent/nested, this raises ValueError: Unrecognized processing class.
To reproduce
Place a local Gemma3ForConditionalGeneration checkpoint and the files written by Gemma3Processor.save_pretrained() together in parent/nested. Leave the parent directory without model or processor files.
The two controls return Gemma3Processor. The final call raises after loading model weights. Verified on CPU at 72cef9bac with Transformers 5.23.0, using a locally generated one-layer Gemma 3 text and vision checkpoint and a local WordLevel tokenizer.
Expected behavior
The model and processor come from the same selected checkpoint directory.
Additional context
The dense loader forwards the requested subfolder to the Transformers model loader, then initializes the wrapper with the root path only. The wrapper's AutoProcessor.from_pretrained() call has no subfolder. The quantized wrapper construction has the same path handoff by inspection. Model and wrapper construction, processor load, quantized wrapper construction.
Suggested mitigation
The loader in gptqmodel/models/loader.py could pass the effective checkpoint path to BaseQModel for processor lookup. Forwarding the applicable subfolder and revision to AutoProcessor from gptqmodel/models/base.py would also work if the wrapper needs to retain the snapshot root for other resources.
A useful control is a root containing a different valid processor so the test detects a silent root fallback. Passing the resolved nested directory directly works for a local checkpoint.
Activity
ZX-ModelCloud commentedon Nov 19, 2026
Agent claim released:
agent-f59bb1f98909finished this issue.Pull request: #5461
Reproducing subfolder processor load and adding regression