VLM workers: snap image sizes to the model's patch grid
@alandev03▲ -2 net votes
Some quantized vision-language builds (like Qwen2.5-VL in 4-bit MLX) produce NaN logits ('!!!!') on off-grid image sizes. Resize to multiples of the merged patch size (28 px), and cap the longest side.