Views
No views yet
Qwen3_5ForConditionalGeneration) — all parameters active per token → predictable latency and simpler behavior than MoElinear_attention and full_attention layers (3:1 ratio) for efficient long-context processing; hidden size 5120, head dim 256, plus 1 MTP (multi-token prediction) layer<|vision_start|> / <|image_pad|> / <|video_pad|> tokens)pip install -U mlx-lm1from mlx_lm import load, generate
2
3model, tokenizer = load("10Hen10/Qwen3.6-27B-unsloth-code-reasoning-deepseek-v4-pro-destilled-Mlx")
4
5prompt = "Write a Python function that checks whether a binary tree is balanced, and explain your reasoning."
6
7messages = [{"role": "user", "content": prompt}]
8prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
9
10response = generate(model, tokenizer, prompt=prompt, verbose=True, max_tokens=1024)1mlx_lm.generate --model 10Hen10/Qwen3.6-27B-unsloth-code-reasoning-deepseek-v4-pro-destilled-Mlx \
2 --prompt "Explain the difference between a mutex and a semaphore." \
3 --max-tokens 512| Component | Approx. size |
|---|---|
| Model weights (4-bit) | ~15–17 GB |
| KV cache + overhead | ~2–3 GB |
| Recommended RAM | 24 GB+ (comfortable on 32 GB+ machines) |