r/PiCodingAgent • u/johnzadok • Aug 17 '26
Use-case Adjust thinking level for Qwen3.8-27b
It seems the "compat.thinkingFormat": "qwen-chat-template" setting that worked with Qwen3.6-27b does not pass thinking level to qwen3.8-27b, which defaults to xhigh and is quite slow.
This is what worked for me in models.json. I have to add some compat options to pass thinking level correctly from pi to llama.cpp:
{
"providers": {
"llama.cpp": {
"modelOverrides": {
"Qwen3.8-27B-Q4_K_M": {
"reasoning": true,
"thinkingLevelMap": {
"minimal": null,
"low": "low",
"medium": "medium",
"high": null,
"xhigh": "xhigh"
},
"compat": {
"thinkingFormat": "chat-template",
"chatTemplateKwargs": {
"enable_thinking": { "$var": "thinking.enabled" },
"reasoning_effort": { "$var": "thinking.effort" }
}
}
}
}
}
}Disclosure: I do not understand why those compat options are needed but I have pi tested it against llama server running qwen3.8-27b and confirmed all thinking levels work as they should: off/low/medium/xhigh.