Views
No views yet
<think> chain-of-thought tagslinear_attn.out_proj / self_attn.o_proj) and mlp.down_proj1from mlx_vlm import load, generate
2
3model, processor = load("andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-fp16")
4
5# Text-only
6prompt = processor.apply_chat_template(
7 [{"role": "user", "content": "Explain quantum entanglement step by step."}],
8 add_generation_prompt=True
9)
10result = generate(model, processor, prompt, max_tokens=500)
11
12# With image
13prompt = "<|im_start|>user\n<|vision_start|><|image_pad|><|vision_end|>Describe this image.<|im_end|>\n<|im_start|>assistant\n"
14result = generate(model, processor, prompt, image=["path/to/image.jpg"], max_tokens=200)