Views
No views yet
1from mlx_vlm import load, generate
2from mlx_vlm.prompt_utils import apply_chat_template
3from mlx_vlm.utils import load_config
4
5model_path = "andrevp/Qwen3.5-9B-Distilled-OPUS-Heretic-MLX-VLM-8bit"
6model, processor = load(model_path)
7config = load_config(model_path)
8
9# Text-only
10prompt = apply_chat_template(processor, config, "Your question here", num_images=0)
11result = generate(model, processor, prompt, max_tokens=500)
12print(result.text)
13
14# Vision
15prompt = apply_chat_template(processor, config, "Describe this image", num_images=1)
16result = generate(model, processor, prompt, max_tokens=500, image=["image.jpg"])
17print(result.text)| Model | Size | Bits/Weight | Notes |
|---|---|---|---|
| andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-fp16 | ~4 GB | 16 | 2B, best quality |
| andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit | ~2.1 GB | 8 | 2B, balanced |
| andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-4bit | ~1.2 GB | 4 | 2B, smallest |
| andrevp/Qwen3.5-9B-Distilled-OPUS-Heretic-MLX-VLM-fp16 | ~18 GB | 16 | 9B, best quality |
| andrevp/Qwen3.5-9B-Distilled-OPUS-Heretic-MLX-VLM-8bit | ~9.8 GB | 8.864 | This model |
| andrevp/Qwen3.5-9B-Distilled-OPUS-Heretic-MLX-VLM-4bit | ~5.6 GB | 5.059 | 9B, smallest |