A distilled Qwen3.6-27B MLX 4-bit model optimized for local agentic reasoning, tool use, and long-chain task execution on Apple Silicon.
Please ensure
temperature = 0.6andtop_p = 0.95when using this model.This model was trained and validated at these specific parameters. Both too high and too low temperatures cause problems:
🔥 Too high (> 0.6) → Output becomes divergent as token probabilities flatten. This causes malformed tool calls, function name hallucinations, unstable parameter generation, and uncontrollable agent behavior.
🧊 Too low (< 0.3) → The model almost always picks the highest-probability token. In tool-calling scenarios this manifests as: repeating the same failed tool call instead of trying alternatives, shortened thinking traces leading to insufficient reasoning depth, and reduced robustness to edge cases.
This is an important recommendation based on extensive real-world testing. Please verify these parameters in your inference framework.
| Area | Score | vs Qwen3.6-27B q4_k_m |
|---|---|---|
| BenchLocal 6-pack 🏆 | 86.5 | +8.3 |
| GPQA-Diamond-198 🔬 | 83.84% | +10.14% |
| BugFind-15 🐛 | 80 | +20 |
| ToolCall-15 🔧 | 97 | +4 |
| InstructFollow-15 📋 | 94 | +17 |
| StructOutput-15 📊 | 88 | +11 |
| MMLU-500 (5-shot) 📚 | 91.80% | ~tied (+0.2%) |
| DataExtract-15 📄 | 81 | -2 |
The original Qwen3.6-27B has solid foundational capabilities, but its agent behavior falls short — prone to infinite loops when thinking, lacks structured agent design, and has room to improve in math reasoning.
This variant tackles all three through targeted distillation:
The result is a local agent that doesn't just score high on benchmarks — it works reliably in real engineering tasks like BugFind, where it now competes with GLM5.2.
⚠️ Note: Side-by-side GLM5.2 comparisons were evaluated using Opus 4.8 as a judge. Opus-as-judge has inherent biases — results are indicative, not definitive.
Core insight: Qwen3.6-27B doesn't lack capability — it lacks good agent behavior. That makes it worth iterating on.
We followed the ReAct paradigm (Yao et al., ICLR 2023) — unifying reasoning and action into an alternating, constrained, executable loop — rather than just making the model "think longer" or "call tools better."
| Teacher Model | Capability Distilled |
|---|---|
| Claude Opus 🎯 | Systematic thinking, structured organization, concise reasoning |
| DeepSeek 🧭 | Stable agent behavior, tool orchestration, task closure |
| Math/Logic models ➗ | Mathematical reasoning, logical deduction |
| Pack | Q4 (ours) |
Qwen/Qwen3.6-27B q4_k_m |
Delta |
|---|---|---|---|
| BugFind-15 🐛 | 80 | 60 | +20 |
| ToolCall-15 🔧 | 97 | 93 | +4 |
| DataExtract-15 📄 | 81 | 83 | -2 |
| InstructFollow-15 📋 | 94 | 77 | +17 |
| ReasonMath-15 ➗ | 79 | 79 | 0 |
| StructOutput-15 📊 | 88 | 77 | +11 |
| Total 🏆 | 86.5 | 78.2 | +8.3 |
| Benchmark | Ours | Baseline | Notes |
|---|---|---|---|
| GPQA-Diamond-198 🔬 | 83.84% | 73.7% | +10.14%, all 198 graded locally |
| MMLU-500 (5-shot) 📚 | 91.80% | 91.6% | Approximately tied |
Quantized with mlx_lm.convert — Q4, group_size=64, affine mode.
| Mode | Speed |
|---|---|
| Standard decode (no MTP) | ~19 tok/s |
| oMLX + MTP depth=3 (50 tokens) | ~21 tok/s |
| oMLX + MTP depth=3 (200 tokens) | ~18 tok/s |
| oMLX + MTP depth=3 (500 tokens) | ~15 tok/s |
MTP acceptance rate starts at 100% for short generations and gradually drops to ~68% by 500 tokens — typical behavior for speculative decoding on hybrid-attention architectures.
oMLX is an LLM inference server optimized for Apple Silicon with continuous batching, paged SSD cache, and native MTP support.
# Install oMLX
pip install -U git+https://github.com/jundot/omlx.git
# Download model
huggingface-cli download Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-MLX \
--local-dir ~/.omlx/models/qwen36-27b-mlx-q4
# Enable MTP (write to ~/.omlx/model_settings.json)
cat >> ~/.omlx/model_settings.json << 'EOF'
{
"version": "1.0",
"models": {
"qwen36-27b-mlx-q4": {
"mtp_enabled": true,
"mtp_num_draft_tokens": 3
}
}
}
EOF
# Start server
omlx serve --model-dir ~/.omlx/models --port 8000
# Send a request
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "qwen36-27b-mlx-q4",
"messages": [{"role": "user", "content": "Hello!"}],
"max_tokens": 200,
"temperature": 0.6,
"top_p": 0.95
}'
# Install mlx-lm
pip install mlx-lm
# Generate
mlx_lm.generate \
--model Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-MLX \
--prompt "Your prompt here" \
--max-tokens 32768 \
--temp 0.6
http://localhost:8000qwen36-27b-mlx-q4💡 Recommended settings:
temperature = 0.6,top_p = 0.95
This model includes a native Multi-Token Prediction (MTP) head — one extra decoder layer that predicts future tokens during generation.
mtp_enabled: truemtp_num_draft_tokens: 3 for max throughput (adaptive controller scales 1-3 dynamically)On M1 Max, MTP gives ~5 tokens per backbone forward pass at 100% acceptance, gradually decreasing to ~2.5 tokens/cycle on longer generations.
| Property | Value |
|---|---|
| Base model | Qwen/Qwen3.6-27B |
| Architecture | Qwen3.5 hybrid (Gated Delta Net + Full Attention) |
| Layers | 64 (48 linear + 16 full attention) |
| Hidden size | 5120 |
| Quantization | MLX Q4 (group_size=64, affine) |
| MTP head | 1 layer, bf16 (kept in full precision) |
| Size on disk | ~16 GB (4 shards) |
| Context length | 262144 |
| License | Apache 2.0 |
@misc{opus-deepseek-distilled-q4m,
title = {Opus-DeepSeek-Distilled-Q4M: A Distilled Agentic GGUF for Local Deployment},
author = {Yin, Brian and BenchLocal Contributors},
year = {2026},
url = {https://github.com/brianyin/BenchLocal}
}
It is because of this work that came before that we can continue pushing forward, arriving at today's more stable, more practical, and more complete agent — and helping us get closer to the era of local agent AI.
model-00002-of-00004.safetensors 5.4 GBmodel-00001-of-00004.safetensors 5.3 GBmodel-00003-of-00004.safetensors 4.5 GBmodel-00004-of-00004.safetensors 849 MBQwen/Qwen3.6-27B