harness-hub/Qwen3.8-27B-think-pi-adapted (revision c85fad6) merged into
Qwen/Qwen3.8-27B (revision 3756181) and converted to GGUF for llama.cpp:
ready-to-run files, no --lora needed. Every file keeps Qwen's multi-token-prediction (MTP) layer, so llama-server can
use it for faster decoding, and mmproj-Qwen3.8-27B-think-pi-F16.gguf adds image input.
harness-hub trained this LoRA with reinforcement learning (AsyncGRPO in TRL) inside the pi coding agent with thinking on, at xhigh reasoning effort and a 32,768-token output cap, and released the step-90 checkpoint (chosen from steps 70, 90, 120 and 150). It is the thinking-on sibling of Qwen3.8-27B-pi-adapted. Their published results under pi, thinking on, one attempt per task:
| Benchmark | Qwen3.8-27B, thinking | pi-adapted, thinking | think-pi |
|---|---|---|---|
| SWE-bench Pro (hard 51) | 74.5% | 74.5% | 76.5% |
| Terminal-Bench 2.1 (87 tasks) | 60.9% | 59.8% | 57.5% |
Same scores, far shorter thinking: harness-hub reports the three as level (the score differences are not significant), and think-pi gets there with about 42% fewer output tokens on SWE-bench Pro (mean) and 35% fewer (median) on Terminal-Bench 2.1 than pi-adapted with thinking on. See the original adapter card for the method, data and full results.
| File | Size | Same next token as BF16 | Mean KL divergence |
|---|---|---|---|
| Qwen3.8-27B-think-pi-Q6_K.gguf (recommended) | 22.4 GB | 98.6% | 0.0070 |
| Qwen3.8-27B-think-pi-Q4_K_M.gguf | 16.8 GB | 94.2% | 0.0391 |
| mmproj-Qwen3.8-27B-think-pi-F16.gguf | 0.9 GB | vision projector |
Q6_K is the recommended balance of size and fidelity; Q4_K_M is for machines with less memory. harness-hub publishes its own merged Q8_0 file at harness-hub/Qwen3.8-27B-think-pi-adapted-GGUF. For Apple Silicon there are also MLX builds.
Each pick leaves room for macOS and a long prompt (the download is at most about 60% of your memory). Other models for your Mac: which build fits my Mac?.
| Your Mac | MLX (mlx-lm, mlx-vlm, LM Studio MLX) | GGUF (llama.cpp, Ollama, LM Studio) |
|---|---|---|
| 32 GB | 4-bit (16.3 GB) | Q4_K_M (16.8 GB) (in this repo) |
| 48 GB | 6-bit (23.1 GB, recommended) | Q6_K (22.4 GB) (in this repo) |
| 64 GB and up | 8-bit (30.0 GB) | – |
| 128 GB, reference | bf16 (55.6 GB) | – |
harness-hub trained and evaluated this adapter with thinking on, so keep it on. Serve the model with llama-server:
hf download netprojects/Qwen3.8-27B-think-pi-adapted-GGUF Qwen3.8-27B-think-pi-Q6_K.gguf mmproj-Qwen3.8-27B-think-pi-F16.gguf --local-dir .
llama-server -m Qwen3.8-27B-think-pi-Q6_K.gguf -mm mmproj-Qwen3.8-27B-think-pi-F16.gguf \
--jinja --chat-template-kwargs '{"enable_thinking": true}' \
--spec-type draft-mtp -c 131072 --port 8000 --alias qwen3.8-think-pi
--spec-type draft-mtp turns on the built-in MTP layer; leave it out for plain decoding, and leave out -mm if you
do not need images. Long reasoning needs a long context; a smaller -c saves memory.
Install pi (Node.js 22.19 or newer) with
npm install -g --ignore-scripts @earendil-works/pi-coding-agent, then add the server to ~/.pi/agent/models.json:
{
"providers": {
"local": {
"baseUrl": "http://localhost:8000/v1",
"api": "openai-completions",
"apiKey": "dummy",
"models": [{ "id": "qwen3.8-think-pi", "maxTokens": 32768 }]
}
}
}
"api": "openai-completions" matters: harness-hub trained and evaluated the adapter through the Chat Completions API,
not the Responses API. "maxTokens": 32768 matches the output cap used in training, so long reasoning is not cut short. Then:
pi --provider local --model qwen3.8-think-pi --print "Find out why the tests in tests/test_parser.py fail and fix the bug."
Q6_K and Q4_K_M were quantized from the BF16 GGUF with llama-quantize; both keep the MTP layer. Same next token and KL divergence are measured for each file against the BF16 GGUF, on the same 12 short prompts.
On a MacBook Pro M5 Max (128 GB), 24 November 2026.
W + 2.0 · B @ A rounded to bf16, checked element by element; every other tensor, including the MTP layer and
the vision encoder, is byte-identical to Qwen3.8-27B.bash and read tools produced a well-formed bash tool call, and
a test image was described correctly (red square, blue circle); three short Python tasks run against asserts: Q6_K 3/3, Q4_K_M 3/3.--spec-type draft-mtp, Q4_K_M loaded and answered a short question correctly.</think> block.Converted with llama.cpp's convert_hf_to_gguf.py at commit 8642541b2 and quantized with llama-quantize from Homebrew
llama.cpp (commit b1b770d90). The tokenizer and chat template are harness-hub's files, embedded unchanged.
The adapter is by harness-hub; the base model is Qwen3.8-27B by the Qwen Team, Alibaba Cloud. If you use the model, please cite their work (see the adapter card and the Qwen3.8-27B card).
Apache-2.0, as Qwen3.8-27B and the harness-hub adapter. LICENSE is the Apache-2.0 text from the Qwen3.8-27B repository
and NOTICE describes the conversion and credits harness-hub and the Qwen Team (Alibaba Cloud).
Published by NetProjects (Internet Projects Ltd). Not affiliated with Hugging Face, harness-hub or Alibaba.
More builds from NetProjects: huggingface.co/netprojects · netprojects.com