Views
No views yet
Qwen3_5MoeForConditionalGeneration) — sparse Mixture-of-Experts, only a subset of parameters is active per token → fast inference for its total size<|vision_start|> / <|image_pad|> / <|video_pad|> tokens)pip install -U mlx-lm1from mlx_lm import load, generate
2
3model, tokenizer = load("10Hen10/Qwen3.6-35B-unsloth-code-reasoning-deepseek-v4-pro-destilled-Mlx-4bit")
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-35B-unsloth-code-reasoning-deepseek-v4-pro-destilled-Mlx-4bit \
2 --prompt "Explain the difference between a mutex and a semaphore." \
3 --max-tokens 512| Component | Approx. size |
|---|---|
| Model weights (4-bit) | ~20–22 GB |
| KV cache + overhead | ~2–4 GB |
| Recommended RAM | 32 GB+ (comfortable on 36/48/64 GB machines) |