Move OptiQ sidecars under optiq/ so mlx-vlm / LM Studio don't choke on them

#1
by codelion - opened
No description provided.

Thanks for publishing an OptiQ quant! Heads up on a loading issue this fixes.

Loading this model in LM Studio (or anything using mlx-vlm) can fail with Received N parameters not in model for mtp.safetensors: mlx-vlm globs every *.safetensors in the folder and strict-loads the OptiQ sidecar, which the base model has no module for.

This PR moves the OptiQ sidecar(s) (mtp.safetensors / optiq_vision.safetensors) into an optiq/ subfolder. A non-recursive *.safetensors glob doesn't descend into it, so mlx-vlm / LM Studio no longer pick them up and the language tower loads cleanly. config.json is updated to point at the new path, so mlx-optiq still finds them; mlx-lm was already unaffected.

The weights are unchanged — the files are copied server-side, not re-quantized. Fixed upstream in mlx-optiq 0.3.1 (https://pypi.org/project/mlx-optiq/0.3.1/), which is how new quants avoid this. Feel free to merge if it looks good.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment