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][model] Most VLM prepare_dataset overrides crash on pre-tokenized calibration rows the public API accepts, and ignore calibration options #4228
Gemma3 (gemma3.py:~284) and Qwen3-VL (base_qwen3_vl.py:~538) route token-id rows to the base text path. The other VLM overrides send them to processor.apply_chat_template:
They also silently ignore calibration_concat_size, calibration_sort and calibration_data_min_length.
Reproduce (tiny Qwen2-VL, CPU)
m=GPTQModel.load(tiny_qwen2_vl, QuantizeConfig(bits=4, group_size=32, device="cpu"))
m.quantize([ids, ids]) # AttributeError: 'int' object has no attribute 'get'm.quantize([{"input_ids": ids, "attention_mask": [1] *len(ids)}]) # KeyError: 'content'
Expected
A pre-tokenized fallback to the base path, as Gemma3 / Qwen3-VL do, or a clear error. Calibration options should be honoured or rejected explicitly.
Found during an AI-assisted review (Claude Code) of 9dad249; repros were run on RTX 4090/5090 (CUDA 13) and/or Radeon AI PRO R9700 (ROCm) unless marked static/suspected.
Activity
fix: keep the base text path for pre-tokenized VLM calibration rows (#…
refactor(definitions): one base conversation-calibration path driven …