Point to correct image processing class

#2
by RaushanTurganbay HF Staff - opened
No description provided.
MLX Community org

Hi @prince-canuma , I tested Raushan's PR and it works for me, with it you can load the processor in either mlx-vlm or transformers:

>>> from transformers import AutoProcessor
>>> p = AutoProcessor.from_pretrained("./qwen3.8-27b-4bit-raushan")
>>> type(p)
<class 'transformers.models.qwen3_vl.processing_qwen3_vl.Qwen3VLProcessor'>
>>> type(p.image_processor)
<class 'transformers.models.qwen2_vl.image_processing_qwen2_vl.Qwen2VLImageProcessor'>

>>> from mlx_vlm import load
>>> _, processor = load("./qwen3.8-27b-4bit-raushan")
>>> type(processor)
<class 'mlx_vlm.models.qwen3_vl.processing_qwen3_vl.Qwen3VLProcessor'>
>>> type(processor.image_processor)
<class 'mlx_vlm.models.qwen3_vl.processing_qwen3_vl.Qwen3VLImageProcessor'>
>>>

However, the original version in this repo is not compatible with transformers.

Note that Qwen3VLImageProcessor exists in mlx-vlm, of course, but not in transformers.

Do you think it's safe to merge this PR?

MLX Community org

Thanks!

prince-canuma changed pull request status to merged

Sign up or log in to comment