Instructions to use Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
- Ollama
How to use Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF with Ollama:
ollama run hf.co/Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
- Unsloth Studio
How to use Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF to start chatting
- Pi
How to use Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF with Docker Model Runner:
docker model run hf.co/Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
- Lemonade
How to use Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Brian6145/Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.6-27B-Claude-Opus-DeepSeek-Distilled-Imatrix-MTP-GGUF-Q4_K_M
List all available models
lemonade list
Update README.md
Browse files|
@@ -31,8 +31,8 @@ model-index:
|
|
| 31 |
- task:
|
| 32 |
type: text-generation
|
| 33 |
dataset:
|
| 34 |
-
name: BenchLocal 6-pack
|
| 35 |
type: benchlocal
|
|
|
|
| 36 |
metrics:
|
| 37 |
- type: benchlocal-score
|
| 38 |
value: 86.5
|
|
@@ -40,8 +40,8 @@ model-index:
|
|
| 40 |
- task:
|
| 41 |
type: question-answering
|
| 42 |
dataset:
|
| 43 |
-
name: GPQA-Diamond-198
|
| 44 |
type: gpqa
|
|
|
|
| 45 |
metrics:
|
| 46 |
- type: accuracy
|
| 47 |
value: 83.84
|
|
@@ -49,188 +49,168 @@ model-index:
|
|
| 49 |
- task:
|
| 50 |
type: question-answering
|
| 51 |
dataset:
|
| 52 |
-
name: MMLU-500 (5-shot)
|
| 53 |
type: mmlu
|
|
|
|
| 54 |
metrics:
|
| 55 |
- type: accuracy
|
| 56 |
value: 91.80
|
| 57 |
name: Accuracy
|
| 58 |
---
|
| 59 |
|
| 60 |
-
#
|
| 61 |
-
|
| 62 |
-
`Opus-DeepSeek-Distilled-Q4M` is a local model build designed for high-intensity reasoning, engineering tasks, and competitive benchmark performance.
|
| 63 |
-
|
| 64 |
-
Quick highlights:
|
| 65 |
-
|
| 66 |
-
- `BenchLocal 6-pack` scores: `BugFind-15 = 80`, `ToolCall-15 = 97`, `DataExtract-15 = 81`, `InstructFollow-15 = 94`, `ReasonMath-15 = 79`, `StructOutput-15 = 88`
|
| 67 |
-
- `GPQA-Diamond-198` result: `166 / 198 = 83.84%`
|
| 68 |
-
- All 198 GPQA-Diamond questions fully scored and graded locally β no drops, no scoring failures
|
| 69 |
-
- `MMLU-500 (5-shot)` accuracy: `91.80%` (completed)
|
| 70 |
-
- With `q4_k_m + mtp=3` deployment, achieves `~60 tok/s` on A100 40GB and `~100 tok/s` on RTX PRO 6000, approaching API-level fluency
|
| 71 |
-
- In real-world `BugFind` scenarios, matches `GLM5.2` on certain tasks
|
| 72 |
-
- In a side-by-side comparison, `Opus 4.8` as a judge model rated this variant higher than `GLM5.2` on the evaluated tasks (Opus-as-judge has inherent biases β findings are indicative, not definitive)
|
| 73 |
-
|
| 74 |
-
This release is not "a new version for the sake of a new version." It emerged from a rigorous model selection and agent design trade-off analysis. After systematically evaluating the current crop of `Qwen3.6` fine-tuned variants, we found that the `35B` series tends to exhibit more pronounced agent stability issues β inconsistent reasoning depth, over-reliance on frequent tool calls, and instability in complex task chains. The `27B` series presents the opposite picture: its foundational capabilities and stability are sufficient, but its **agent behavior patterns are suboptimal and prone to infinite loops**.
|
| 75 |
-
|
| 76 |
-
Specifically, the original `Qwen/Qwen3.6-27B` and similar variants exhibit three main problems in agent scenarios:
|
| 77 |
-
|
| 78 |
-
1. Enabling thinking mode leads to prolonged self-loops, sometimes infinite loops.
|
| 79 |
-
2. Lack of a more complete, restrained, and systematic agent design style reminiscent of Claude.
|
| 80 |
-
3. Mathematical reasoning, while usable, still has room for improvement.
|
| 81 |
-
|
| 82 |
-
The first problem is the hardest β it cannot be fixed with a single prompt tweak. The very orchestration of reasoning and action needs to be re-learned.
|
| 83 |
-
|
| 84 |
-
To address this, the current version incorporates specifically enhanced high-quality training data that fundamentally solves the infinite-loop problem at the level of reasoning-action orchestration. After extensive real-world agent usage across long task chains, this issue is now **completely eliminated**. At the same time, these enhancements push the model's reasoning ceiling higher while retaining its agent usability.
|
| 85 |
-
|
| 86 |
-
The model's value extends beyond high `BenchLocal` scores β it has already demonstrated competitive performance on longer, harder, and broader benchmarks like `GPQA-Diamond-198` and `MMLU-500 (5-shot)`.
|
| 87 |
|
| 88 |
-
|
| 89 |
|
| 90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
The `ReAct` framework provided crucial inspiration. `ReAct (Reason + Act)` by `Yao et al., 2022, arXiv:2210.03629, ICLR 2023` doesn't emphasize reasoning or tool use in isolation β it unifies "reasoning" and "acting" into an alternating, constrained, executable process. Extensive version comparisons and empirical observations confirm this is the key to solving the current problems.
|
| 95 |
-
|
| 96 |
-
Accordingly, this version makes explicit design trade-offs:
|
| 97 |
-
|
| 98 |
-
- We retain `Qwen3.6-27B`'s already-strong foundational capabilities and stable base.
|
| 99 |
-
- Through real distillation trajectories, we progressively teach it to think, decide, call tools, and close tasks more effectively.
|
| 100 |
-
- We distill `Claude Opus`'s tighter, more systematic thinking and organization skills.
|
| 101 |
-
- We distill `DeepSeek`'s agent-scenario thinking patterns, training the model to behave more like an agent and less like a pure Q&A bot.
|
| 102 |
-
- We also absorb core capabilities from strong mathematical/logical reasoning models to further enhance its math and logical reasoning.
|
| 103 |
-
|
| 104 |
-
The result is neither a model that's "just better at tool use" nor one that "just thinks longer" β it's a `Qwen3.6-27B` variant that learns core capabilities from multiple strong models and converges into a better, more practical local agent. It inherits Claude's structured thinking, DeepSeek's stable agent behavior, and strong math models' reasoning ability β unified into a more complete, more usable local agent.
|
| 105 |
-
|
| 106 |
-
## Highlights
|
| 107 |
-
|
| 108 |
-
- `GPQA-Diamond-198`: `166 / 198 = 83.84%`
|
| 109 |
-
- All 198 GPQA-Diamond questions fully scored and graded locally β no drops, no scoring failures
|
| 110 |
-
- `MMLU-500 (5-shot)`: `91.80%` (completed)
|
| 111 |
-
- Competitive scientific reasoning + broad knowledge coverage
|
| 112 |
-
- Top tier on the `BenchLocal` historical leaderboard
|
| 113 |
-
- Real-world `BugFind` performance entering a highly competitive range
|
| 114 |
|
| 115 |
-
##
|
| 116 |
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
-
|
| 120 |
|
| 121 |
-
-
|
| 122 |
-
- It holds up on hard science (`GPQA`)
|
| 123 |
-
- It's equally strong on broad-spectrum knowledge (`MMLU 5-shot`)
|
| 124 |
-
- It represents a clear methodological direction: equipping 27B-level models with mature agent behavior instead of letting them spiral into inefficient thinking and runaway tool calls
|
| 125 |
-
- Through sustained real-world use, it enters the conversation of "can deliver in real engineering scenarios," especially on `BugFind` β tasks that were never a `Qwen3.6-27B` strength
|
| 126 |
|
| 127 |
-
|
| 128 |
|
| 129 |
-
|
| 130 |
|
| 131 |
-
|
| 132 |
|
| 133 |
-
|
|
|
|
|
|
|
| 134 |
|
| 135 |
-
|
| 136 |
-
| --- | --- | --- | --- | --- |
|
| 137 |
-
| `BugFind-15` | `80` | `60` | `+20` | Significant improvement in debugging and issue localization |
|
| 138 |
-
| `ToolCall-15` | `97` | `93` | `+4` | Both strong, but this variant pushes further |
|
| 139 |
-
| `DataExtract-15` | `81` | `83` | `-2` | Original edges ahead on extraction tasks |
|
| 140 |
-
| `InstructFollow-15` | `94` | `77` | `+17` | Notably stronger instruction-following and stability |
|
| 141 |
-
| `ReasonMath-15` | `79` | `79` | `0` | Essentially tied |
|
| 142 |
-
| `StructOutput-15` | `88` | `77` | `+11` | Clear improvement in structured output |
|
| 143 |
-
| `6-pack Total` | `86.5` | `78.2` | `+8.3` | Overall lead across the board |
|
| 144 |
|
| 145 |
-
|
| 146 |
|
| 147 |
-
-
|
| 148 |
-
- It has proven itself capable of consistently ranking in the top tier across the full benchmark suite
|
| 149 |
|
| 150 |
-
|
| 151 |
|
| 152 |
-
|
| 153 |
|
| 154 |
-
|
| 155 |
|
| 156 |
-
|
|
| 157 |
-
|
|
| 158 |
-
|
|
| 159 |
-
|
|
|
|
|
| 160 |
|
| 161 |
-
|
| 162 |
|
| 163 |
-
##
|
| 164 |
|
| 165 |
-
|
| 166 |
-
- GPQA consistently above `83%+`, proving it's not just an engineering-bench specialist.
|
| 167 |
|
| 168 |
-
-
|
| 169 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
|
| 171 |
-
|
| 172 |
-
- Among the highest tiers in the `BenchLocal 6-pack` historical leaderboard.
|
| 173 |
|
| 174 |
-
|
| 175 |
-
|
|
|
|
|
|
|
| 176 |
|
| 177 |
-
|
| 178 |
|
| 179 |
-
|
| 180 |
|
| 181 |
-
|
| 182 |
-
- Complex multi-step task decomposition and execution
|
| 183 |
-
- Engineering tasks requiring stable tool use and long-chain closure
|
| 184 |
-
- Challenging knowledge Q&A and complex reasoning
|
| 185 |
-
- General workflows needing structured thinking, action planning, and result delivery
|
| 186 |
|
| 187 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
|
| 189 |
-
|
| 190 |
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
-
|
| 194 |
-
-
|
| 195 |
-
- For long-running local deployments, it offers both scores and real interactive speed
|
| 196 |
-
- For scenarios requiring high-intensity reasoning, agent usability, and day-to-day fluency, this configuration is a compelling practical choice
|
| 197 |
|
| 198 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
|
| 200 |
-
###
|
| 201 |
|
| 202 |
-
|
| 203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
|
| 205 |
-
|
| 206 |
|
| 207 |
-
-
|
| 208 |
-
- **Closed-source teacher models**: The distillation process uses closed-source models (Claude Opus, DeepSeek) as teachers. Risks include inheriting the teacher's knowledge boundaries and biases, as well as potential terms-of-service compliance issues. Deployers should assess these risks for themselves.
|
| 209 |
-
- **Model scale constraints**: A 27B-parameter model may still encounter capacity bottlenecks on extremely complex long-chain reasoning. Layered verification or backtracking strategies may be needed as compensation.
|
| 210 |
|
| 211 |
-
##
|
| 212 |
|
| 213 |
-
|
| 214 |
-
- **
|
| 215 |
-
- **
|
| 216 |
|
| 217 |
-
##
|
|
|
|
|
|
|
|
|
|
| 218 |
|
| 219 |
-
|
|
|
|
|
|
|
|
|
|
| 220 |
|
| 221 |
-
|
| 222 |
|
| 223 |
-
|
| 224 |
|
| 225 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
|
| 227 |
-
|
| 228 |
|
| 229 |
-
|
| 230 |
|
| 231 |
-
-
|
| 232 |
-
-
|
| 233 |
-
-
|
| 234 |
-
-
|
| 235 |
|
| 236 |
-
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.
|
|
|
|
| 31 |
- task:
|
| 32 |
type: text-generation
|
| 33 |
dataset:
|
|
|
|
| 34 |
type: benchlocal
|
| 35 |
+
name: BenchLocal 6-pack
|
| 36 |
metrics:
|
| 37 |
- type: benchlocal-score
|
| 38 |
value: 86.5
|
|
|
|
| 40 |
- task:
|
| 41 |
type: question-answering
|
| 42 |
dataset:
|
|
|
|
| 43 |
type: gpqa
|
| 44 |
+
name: GPQA-Diamond-198
|
| 45 |
metrics:
|
| 46 |
- type: accuracy
|
| 47 |
value: 83.84
|
|
|
|
| 49 |
- task:
|
| 50 |
type: question-answering
|
| 51 |
dataset:
|
|
|
|
| 52 |
type: mmlu
|
| 53 |
+
name: MMLU-500 (5-shot)
|
| 54 |
metrics:
|
| 55 |
- type: accuracy
|
| 56 |
value: 91.80
|
| 57 |
name: Accuracy
|
| 58 |
---
|
| 59 |
|
| 60 |
+
# π§ Opus-DeepSeek-Distilled-Q4M
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
+
> A distilled Qwen3.6-27B GGUF optimized for local agentic reasoning, tool use, and long-chain task execution.
|
| 63 |
|
| 64 |
+
[](https://github.com/brianyin/BenchLocal)
|
| 65 |
+
[](https://github.com/brianyin/BenchLocal)
|
| 66 |
+
[](https://github.com/brianyin/BenchLocal)
|
| 67 |
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
| 68 |
+
[](https://github.com/ggml-org/llama.cpp)
|
| 69 |
|
| 70 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
+
## π’ Highlights
|
| 73 |
|
| 74 |
+
| Area | Score | vs Qwen3.6-27B q4_k_m |
|
| 75 |
+
|------|-------|----------------------|
|
| 76 |
+
| **BenchLocal 6-pack** π | **86.5** | **+8.3** |
|
| 77 |
+
| **GPQA-Diamond-198** π¬ | **83.84%** | +10.14% |
|
| 78 |
+
| **BugFind-15** π | **80** | **+20** |
|
| 79 |
+
| **ToolCall-15** π§ | **97** | +4 |
|
| 80 |
+
| **InstructFollow-15** π | **94** | **+17** |
|
| 81 |
+
| **StructOutput-15** π | **88** | **+11** |
|
| 82 |
+
| **MMLU-500 (5-shot)** π | **91.80%** | ~tied (+0.2%) |
|
| 83 |
+
| **DataExtract-15** π | 81 | -2 |
|
| 84 |
|
| 85 |
+
> π **Output speed**: `~60 tok/s` on A100 40GB Β· `~100 tok/s` on RTX PRO 6000 (q4_k_m + mtp=3)
|
| 86 |
|
| 87 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
+
## π₯ Why This Model?
|
| 90 |
|
| 91 |
+
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.
|
| 92 |
|
| 93 |
+
This variant tackles all three through targeted distillation:
|
| 94 |
|
| 95 |
+
1. β
**Infinite loops β Eliminated.** ReAct-style reasoning-action orchestration fixes the root cause.
|
| 96 |
+
2. β
**Agent behavior β Structured.** Distilled Claude Opus's systematic thinking and organization.
|
| 97 |
+
3. β
**Math reasoning β Strengthened.** Absorbed capabilities from strong math/logic models.
|
| 98 |
|
| 99 |
+
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
+
> β οΈ **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.
|
| 102 |
|
| 103 |
+
---
|
|
|
|
| 104 |
|
| 105 |
+
## π― Design Philosophy
|
| 106 |
|
| 107 |
+
**Core insight**: `Qwen3.6-27B` doesn't lack capability β it lacks *good agent behavior*. That makes it worth iterating on.
|
| 108 |
|
| 109 |
+
We followed the **[ReAct](https://arxiv.org/abs/2210.03629)** 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."
|
| 110 |
|
| 111 |
+
| Teacher Model | Capability Distilled |
|
| 112 |
+
|---------------|---------------------|
|
| 113 |
+
| **Claude Opus** π― | Systematic thinking, structured organization, concise reasoning |
|
| 114 |
+
| **DeepSeek** π§ | Stable agent behavior, tool orchestration, task closure |
|
| 115 |
+
| **Math/Logic models** β | Mathematical reasoning, logical deduction |
|
| 116 |
|
| 117 |
+
---
|
| 118 |
|
| 119 |
+
## π Performance
|
| 120 |
|
| 121 |
+
### BenchLocal 6-pack
|
|
|
|
| 122 |
|
| 123 |
+
| Pack | `q4_k_m` (ours) | `Qwen/Qwen3.6-27B q4_k_m` | Delta |
|
| 124 |
+
|------|:-:|:-:|:-:|
|
| 125 |
+
| **BugFind-15** π | **80** | 60 | **+20** |
|
| 126 |
+
| **ToolCall-15** π§ | **97** | 93 | +4 |
|
| 127 |
+
| **DataExtract-15** π | 81 | **83** | -2 |
|
| 128 |
+
| **InstructFollow-15** π | **94** | 77 | **+17** |
|
| 129 |
+
| **ReasonMath-15** β | 79 | 79 | 0 |
|
| 130 |
+
| **StructOutput-15** π | **88** | 77 | **+11** |
|
| 131 |
+
| **Total** π | **86.5** | 78.2 | **+8.3** |
|
| 132 |
|
| 133 |
+
### Extended Evals
|
|
|
|
| 134 |
|
| 135 |
+
| Benchmark | Ours | Baseline | Notes |
|
| 136 |
+
|-----------|:----:|:--------:|-------|
|
| 137 |
+
| **GPQA-Diamond-198** π¬ | **83.84%** | 73.7% | +10.14%, all 198 graded locally |
|
| 138 |
+
| **MMLU-500 (5-shot)** π | **91.80%** | 91.6% | Approximately tied |
|
| 139 |
|
| 140 |
+
---
|
| 141 |
|
| 142 |
+
## π οΈ Usage
|
| 143 |
|
| 144 |
+
### Recommended Stack
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
+
```
|
| 147 |
+
π§© OpenCode + LM Studio
|
| 148 |
+
π Temperature: 0.6 Β· Top-p: 0.95
|
| 149 |
+
β‘ q4_k_m + mtp=3
|
| 150 |
+
```
|
| 151 |
|
| 152 |
+
### Quick Start (llama.cpp)
|
| 153 |
|
| 154 |
+
```bash
|
| 155 |
+
# Download the GGUF
|
| 156 |
+
huggingface-cli download your-org/Opus-DeepSeek-Distilled-Q4M \
|
| 157 |
+
opus-deepseek-distilled-q4m-q4_k_m.gguf --local-dir ./models
|
|
|
|
|
|
|
| 158 |
|
| 159 |
+
# Run with llama.cpp
|
| 160 |
+
./llama-cli -m ./models/opus-deepseek-distilled-q4m-q4_k_m.gguf \
|
| 161 |
+
--temp 0.6 --top-p 0.95 \
|
| 162 |
+
-p "Your prompt here"
|
| 163 |
+
```
|
| 164 |
|
| 165 |
+
### Via LM Studio
|
| 166 |
|
| 167 |
+
1. Load the GGUF file in LM Studio
|
| 168 |
+
2. Set backend to llama.cpp
|
| 169 |
+
3. Enable MTP (set depth=3) under inference options
|
| 170 |
+
4. Set `temperature = 0.6`, `top_p = 0.95`
|
| 171 |
+
5. Start the local API server
|
| 172 |
+
6. Connect via OpenCode or any OpenAI-compatible client
|
| 173 |
|
| 174 |
+
> π‘ **Pro tip**: For coding tasks, the `temp 0.6 / top_p 0.95` combo delivers the best balance of creativity and correctness.
|
| 175 |
|
| 176 |
+
---
|
|
|
|
|
|
|
| 177 |
|
| 178 |
+
## β οΈ Known Limitations
|
| 179 |
|
| 180 |
+
### Evaluation Methodology
|
| 181 |
+
- **Opus-as-judge biases**: GLM5.2 comparisons are judge-evaluated, not absolute rankings
|
| 182 |
+
- **MMLU**: Single-run 5-shot result; variations in shot selection may cause fluctuation
|
| 183 |
|
| 184 |
+
### Capability Boundaries
|
| 185 |
+
- **DataExtract**: Scores 81 vs 83 baseline β extraction tasks may have slight regression from distillation
|
| 186 |
+
- **Closed-source teachers**: Risks include inherited biases and TOS compliance β assess for your use case
|
| 187 |
+
- **27B scale ceiling**: May still hit capacity limits on extremely complex long-chain reasoning
|
| 188 |
|
| 189 |
+
### Deployment Notes
|
| 190 |
+
- **MTP=3**: Boosts throughput but adds VRAM overhead β disable or reduce on <24GB hardware
|
| 191 |
+
- **Quantization**: Only `q4_k_m` tested; `q5_k_m` may improve accuracy at higher VRAM cost
|
| 192 |
+
- **Imatrix**: Uses importance-matrix quantization, not standard k-quant β better parameter preservation at low bit widths
|
| 193 |
|
| 194 |
+
---
|
| 195 |
|
| 196 |
+
## π Citation
|
| 197 |
|
| 198 |
+
```bibtex
|
| 199 |
+
@misc{opus-deepseek-distilled-q4m,
|
| 200 |
+
title = {Opus-DeepSeek-Distilled-Q4M: A Distilled Agentic GGUF for Local Deployment},
|
| 201 |
+
author = {Yin, Brian and BenchLocal Contributors},
|
| 202 |
+
year = {2026},
|
| 203 |
+
url = {https://github.com/brianyin/BenchLocal}
|
| 204 |
+
}
|
| 205 |
+
```
|
| 206 |
|
| 207 |
+
---
|
| 208 |
|
| 209 |
+
## π Acknowledgements
|
| 210 |
|
| 211 |
+
- **[Qwen](https://github.com/QwenLM/Qwen)** team β excellent foundational model
|
| 212 |
+
- **[Unsloth](https://github.com/unslothai/unsloth)** β efficient training infrastructure
|
| 213 |
+
- **[Merkyor](https://github.com/Merkyor)** β identified ReAct as the key to solving agent infinite loops
|
| 214 |
+
- **Community** β built on existing open-source exploration and practical experience
|
| 215 |
|
| 216 |
+
> *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.*
|