The GGUF version of harness-hub/Qwen3.8-27B-think-pi-adapted, a LoRA adapter trained with reinforcement learning inside pi with thinking on, on Qwen/Qwen3.8-27B, for llama.cpp.
[!Tip] Thinking, with fewer and shorter reasoning blocks. Locally every generated token is time: this adapter keeps the accuracy of thinking while spending about 40% fewer tokens on it.
[!Note] These results come from the BF16 adapter served by vLLM, under the pi harness (one attempt per task, a 100-step budget, thinking on at the default effort, up to 32k output tokens per model call, temperature 0.8). This GGUF file has not been re-evaluated through llama.cpp, and a quantized base will move the results further.
The original adapter card describes the training and the evaluation.
Qwen3.8-27B-think-pi-Q8_0.gguf (about 28.6 GB) contains the adapter merged into the BF16 base before quantization.
This command downloads and serves it with thinking on.
llama serve -hf harness-hub/Qwen3.8-27B-think-pi-adapted-GGUF:Q8_0 --chat-template-kwargs '{"enable_thinking": true}' -c 131072 --alias qwen3.8-think-pi
Qwen3.8-27B-think-pi-adapted-lora-F16.gguf is the adapter only (about 319 MB). It runs on top of the base model's GGUF.
hf download ggml-org/Qwen3.8-27B-GGUF Qwen3.8-27B-Q8_0.gguf --local-dir .
hf download harness-hub/Qwen3.8-27B-think-pi-adapted-GGUF Qwen3.8-27B-think-pi-adapted-lora-F16.gguf --local-dir .
The adapter was trained on the BF16 weights. The closer the base is to them, the closer you get to the trained behavior.
Q8_0 is a good default; Q4_K_M is smaller, but drifts further from what the adapter learned against.
llama serve -m Qwen3.8-27B-Q8_0.gguf --lora Qwen3.8-27B-think-pi-adapted-lora-F16.gguf \
--chat-template-kwargs '{"enable_thinking": true}' -c 131072 --port 8080 --alias qwen3.8-think-pi
Thinking on, as in training and evaluation. Thinking sessions are long: the evaluations ran with a 131,072-token context and up to 32,768 output tokens per model call. A smaller context or cap cuts long sessions and long reasoning short.
pi install git:github.com/huggingface/pi-llama
pi --model llama-cpp/qwen3.8-think-pi
The merged Q8_0 was built with llama.cpp at 374d90a9fc3b3122473e0879041cff2eeb3d568f: llama-export-lora merged the
adapter into ggml-org/Qwen3.8-27B-GGUF's Qwen3.8-27B-BF16.gguf (revision c186941), then llama-quantize converted
the merged BF16 file to Q8_0.
The separate adapter was converted from the PEFT adapter with llama.cpp's convert_lora_to_gguf.py, at F16:
python llama.cpp/convert_lora_to_gguf.py <adapter dir> --base <Qwen/Qwen3.8-27B config dir> --outtype f16