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] Low-severity dequant/export/VLM-calib issues: VLM calibration rejects harmless metadata columns (regression from df6c9e6), export(..., "hf") always writes bf16, torch.dequantize_model builds dense Linear on CPU #4455
This is the usual output shape of a datasets.map(tokenize) that kept its original columns. _TEXT_ONLY_COLUMNS is an allow-list. Rejecting known multimodal keys (pixel_values, image_grid_thw, ...) or tensor-valued unknown keys would keep the #4371 protection without breaking these rows. The intended rejection of pixel_values works.
utils/model_dequant.py:1969 defaults to dequantize_model(target_dtype=torch.bfloat16), and models/auto.py:1204 doesn't pass the checkpoint dtype. An fp16 GPTQ checkpoint (config dtype float16, F16 tensors) is exported with config dtype bfloat16 and BF16 tensors. Expected: keep the source dtype. Not A/B-tested.
3. nn_modules.qlinear.torch.dequantize_model always creates the dense Linear on CPU
nn_modules/qlinear/torch.py:1098 does .to("cpu", target_dtype). On a CUDA-loaded model, the next forward fails with a device mismatch. Same at def6e61.
Found during an AI-assisted review (Claude Code, round 13) of 489aed6; repros were run at that commit (A/B against def6e61 where noted) on RTX 4090/5090 (CUDA 13) and/or Radeon AI PRO R9700 (ROCm) unless marked static/suspected.
Activity
fix: native class for natively supported remote-code checkpoints; kee…