Answers for LLM inference engineers

Which reasoning_effort values does each model and engine actually honor?

None of the level names are standard: the model's chat template decides, and a value it does not know is either rejected or silently ignored. Qwen4 accepts only off, low, high (default) and xhigh, and raises on medium, minimal, max and none. gpt-oss's template prints any string as-is (Reasoning: max) without an error. Tencent Hy3 takes no_think (its default), low and high. Qwen3, Qwen3.5, Gemma 4, GLM and DeepSeek V3.x do not read reasoning_effort at all: every level gives the same prompt, and only on/off matters. The engines then differ: vLLM accepts only none…max and returns 400 with the template's message; llama-server returns 400 for standard names the template rejects (b12431+) but usually 500 for other strings; SGLang returns 400; Ollama's Qwen4 renderer turns unknown values, even off, into high without an error. effortcheck.py tells you which values your own server honors.

Published 2026-12-05 · Templates: all 86 chat templates in llama.cpp's models/templates at commit 4066b9d (2026-12-05), rendered with jinja2 3.1.6 the way transformers' apply_chat_template does · llama-server measured at 4066b9d (b13008+4) and b12966 on CPU with a tiny random-weight model · vLLM v0.34.0 (and every minor from v0.18.0), SGLang v0.5.23 and Ollama v0.40.22-rc0 read from source, not run

Why does Qwen4 reject reasoning_effort "medium"?

Because its chat template only knows xhigh, high, low and off. Clients built for OpenAI's names (minimal, medium) or for other models (max) hit the template's raise_exception.

The template (lines 94–113) checks the value and also checks it against enable_thinking:

Unexpected reasoning effort medium. Supported efforts are xhigh, high, low and off.
Conflicting thinking settings: enable_thinking=true with reasoning_effort=off.
Conflicting thinking settings: enable_thinking=false with reasoning_effort=low.

The second line is why off failed on llama-server before b12969: the server passed off to the template with thinking still enabled (HTTP 500, measured on b12966). From b12969 (#33626, 2026-12-03) llama-server treats off like none. Each accepted level only changes one line of the system prompt (Reasoning effort is set to low.); off also closes the think block.

Which values does each model's chat template accept?

13 of the 86 templates read reasoning_effort, and no two agree on the set. The table renders each template with only reasoning_effort set, exactly as transformers (and so vLLM and SGLang) would.

“= default”: byte-identical to the prompt without reasoning_effort. “changes prompt (= x)”: a different prompt, identical to the one for x. “printed as-is”: the template writes whatever string it gets into the prompt without checking it (gpt-oss, llm-jp, Olala), so a misspelled or unknown level reaches the model with no error. For gpt-oss, vLLM's Harmony path accepts only low, medium and high. “error”: the template raised (hover for the message).

Model (template)Default none off minimal low medium high xhigh max
Qwen4 (35B-A3B)high error changes prompt error changes prompt error = default changes prompt error
gpt-oss (120b/20b)medium printed as-is printed as-is printed as-is printed as-is = default printed as-is printed as-is printed as-is
DeepSeek V4thinking off; level read only with thinking on = default = default = default = default = default = default = default = default
DeepSeek V4 Flash 0731thinking off; level read only with thinking on = default = default = default = default = default = default = default = default
Tencent Hunyuan Hy3no_think error error error changes prompt error changes prompt error error
IFM K2 Horizonhigh error error error changes prompt changes prompt = default error error
Inklinghigh (0.9) changes prompt error changes prompt changes prompt changes prompt = default error changes prompt
Inkling 2 Smallhigh (0.9) changes prompt error changes prompt changes prompt changes prompt = default changes prompt (= max) changes prompt (= xhigh)
Solar Open 100Bhigh = default = default changes prompt (= low) changes prompt (= minimal) = default = default = default = default
Muse Spark(none: no strength line) = default = default changes prompt changes prompt changes prompt changes prompt = default = default
Cohere2 MoEthinking on changes prompt = default = default = default = default = default = default = default
OVHaiLLM Olala v1.0 minimedium changes prompt printed as-is printed as-is printed as-is = default printed as-is printed as-is printed as-is
llm-jp-4.1-8b-thinkingmedium printed as-is printed as-is printed as-is printed as-is = default printed as-is printed as-is printed as-is

DeepSeek V4 reads the level only when thinking is on (thinking or enable_thinking). With thinking on, only max adds a prompt block in DeepSeek V4; DeepSeek V4 Flash 0731 adds one for high and a different one for max, and every other value gives one identical prompt. Muse Spark maps minimal/low/medium/high to a “Reasoning strength: 1/16/64/256” line and ignores the rest.

26 templates read only an on/off switch (enable_thinking) and never reasoning_effort: Apertus-8B-Instruct, Bielik-11B-v3.0-Instruct, CohereForAI-c4ai-command-r7b-12-2024-tool_use, GLM-4.6, GLM-4.7-Flash, HuggingFaceTB-SmolLM3-3B, KRAFTON-Raon-1-mini-preview, LFM3, NVIDIA-Nemotron-3-Nano-30B-A3B-BF16, NVIDIA-Nemotron-Nano-v2, Qwen-QwQ-32B, Qwen-Qwen3-0.6B, Qwen3.5-4B, Reka-Edge, Spark2.5, deepseek-ai-DeepSeek-R1-Distill-Qwen-32B, deepseek-ai-DeepSeek-V3.1, deepseek-ai-DeepSeek-V3.2, google-gemma-4-31B-it, inclusionai-ling-3.0-flash, llama-cpp-rwkv-world, openbmb-MiniCPM5-1B, poolside-Laguna-S-2.1, poolside-Laguna-XS-2.1, poolside-Laguna-XS.2, swiss-ai-Apertus-v1.5. For all of them, every value gives the same prompt as sending nothing.

What does vLLM do with reasoning_effort?

vLLM v0.34.0 accepts only none, minimal, low, medium, high, xhigh, max (anything else, including off, is a 400 validation error), puts the value into the template as reasoning_effort, and sets enable_thinking to effort != "none" unless your chat_template_kwargs already has it.

vLLMWhat changed for reasoning_effort on /v1/chat/completions
v0.18.0–v0.20.xAccepts none, low, medium, high; passes the value to the template as reasoning_effort
v0.21.0Also accepts minimal, xhigh, max
v0.22.0Also sets enable_thinking = (effort != "none") unless the request’s chat_template_kwargs has enable_thinking
v0.33.0--reasoning-effort-map rewrites a requested value to one the template supports (e.g. '{"high": "xhigh"}'); values not listed pass unchanged

When the template raises, /v1/chat/completions answers HTTP 400 with the exception text (same in the v0.27.0, v0.29.0 and v0.34.0 source); discussion #147 reports HTTP 500 from the Anthropic-style /v1/messages endpoint of v0.27.1. A top-level reasoning_effort overrides chat_template_kwargs.reasoning_effort (the request fields are merged over your kwargs). Some models are not rendered with the Jinja template at all: gpt-oss goes through Harmony (only low, medium, high; none and others are 400), and DeepSeek V4 has its own encoder in vllm/tokenizers/deepseek_v4.py that maps none to no thinking, minimal/low/medium to low, max to max and anything else to high. Inkling has its own renderer too, and vLLM main (2026-12-05) adds one for Qwen4. For models rendered with the Jinja template, this is what each request value produces on v0.34.0:

Model (template)Default none off minimal low medium high xhigh max
Tencent Hunyuan Hy3no_think error 400 (vLLM) error changes prompt error changes prompt error error
IFM K2 Horizonhigh error 400 (vLLM) error changes prompt changes prompt = default error error
Solar Open 100Bhigh = default 400 (vLLM) changes prompt (= low) changes prompt (= minimal) = default = default = default = default
Muse Spark(none: no strength line) = default 400 (vLLM) changes prompt changes prompt changes prompt changes prompt = default = default
OVHaiLLM Olala v1.0 minimedium changes prompt 400 (vLLM) printed as-is printed as-is = default printed as-is printed as-is printed as-is
Gemma 4 = default 400 (vLLM) changes prompt (= off, low, medium, high, xhigh, max) changes prompt (= off, minimal, medium, high, xhigh, max) changes prompt (= off, minimal, low, high, xhigh, max) changes prompt (= off, minimal, low, medium, xhigh, max) changes prompt (= off, minimal, low, medium, high, max) changes prompt (= off, minimal, low, medium, high, xhigh)

Gemma 4: none keeps the default (thinking off); every other value turns thinking on and gives one identical prompt, so low and max behave the same.

What does llama-server do with reasoning_effort?

At model load llama-server renders the template with none, minimal, low, medium, high, xhigh, max; a name other than none that the template raises on is answered with 400 and the list of levels it found. Any other string is passed through, and if the template raises on it you get the raw Jinja exception, usually as 500.

none and off also set enable_thinking to false; none is passed on only if the probe found it as a level, and off (not probed) never is. Measured with POST /apply-template (the same request parsing as /v1/chat/completions) on llama.cpp 4066b9d; status codes on /v1/chat/completions were the same:

Model (template) none off minimal low medium high xhigh max bogus
Qwen4 (35B-A3B)changes prompt (= off)changes prompt (= none)400changes prompt400= defaultchanges prompt400500
gpt-oss (120b/20b)changes prompt= defaultchanges promptchanges prompt= defaultchanges promptchanges promptchanges promptchanges prompt
DeepSeek V4changes prompt (= off)changes prompt (= none)= default= default= default= default= defaultchanges prompt= default
DeepSeek V4 Flash 0731changes prompt (= off)changes prompt (= none)= default= default= defaultchanges prompt= defaultchanges prompt= default
Tencent Hunyuan Hy3= default= default400changes prompt400changes prompt400400400
IFM K2 Horizon= default= default400changes promptchanges prompt= default400400500
Inklingchanges prompt= defaultchanges promptchanges promptchanges prompt= default400changes prompt500
Inkling 2 Smallchanges prompt= defaultchanges promptchanges promptchanges prompt= defaultchanges prompt (= max)changes prompt (= xhigh)500
Solar Open 100B= default= defaultchanges prompt (= low)changes prompt (= minimal)= default= default= default= default= default
Muse Spark= default= defaultchanges promptchanges promptchanges promptchanges prompt= default= default= default
Qwen3.5changes prompt (= off)changes prompt (= none)= default= default= default= default= default= default= default
Qwen3changes prompt (= off)changes prompt (= none)= default= default= default= default= default= default= default
Gemma 4changes prompt (= off)changes prompt (= none)= default= default= default= default= default= default= default
GLM-4.7-Flashchanges prompt (= off)changes prompt (= none)= default= default= default= default= default= default= default
DeepSeek V3.1changes prompt (= off)changes prompt (= none)= default= default= default= default= default= default= default

Hover a status for the message. bogus stands for any non-standard string. Whether a template exception becomes 400 or 500 depends on the code path: Hy3 fails while llama-server builds its parser (“Unable to generate parser for this template”, 400), Qwen4 and K2 Horizon while rendering (500).

llama.cpp buildChange
b10121"none" disables reasoning; other values ignored (#26045, 2026-07-24)
b10434Other values are passed to the template as reasoning_effort (2026-08-14)
b12431Standard names the template rejects are answered with 400 instead of a template exception (#32332, 2026-11-16)
b12624none is also passed to templates that list it as a level (#32763, 2026-11-21)
b12969off disables reasoning like none (#33626, 2026-12-03)

--reasoning-effort LEVEL (or LLAMA_ARG_REASONING_EFFORT) sets a default level for requests that do not send one.

What do SGLang and Ollama do?

SGLang passes the value to the template and returns 400 when the template raises; Ollama's built-in Qwen4 renderer never errors and quietly uses high for names it does not list.

How do I check which values my server honors?

Run effortcheck.py (Python 3.8+, standard library only). It renders the prompt for each value without generating tokens where the server allows it (llama-server /apply-template, vLLM /tokenize), sends each value to /v1/chat/completions for the real status, and labels it.

python3 effortcheck.py --base-url http://localhost:8080/v1 --model qwen4
python3 effortcheck.py --base-url http://localhost:8000/v1 --model Qwen/Qwen4-35B-A3B --max-tokens 2048 --levels off,low,high,xhigh

Output against llama-server 4066b9d with the Qwen4 template:

prompt inspection: llama-server /apply-template
effort   verdict   HTTP   detail
none     HONORED   200    same prompt as off
off      HONORED   200    same prompt as none
minimal  REJECTED  400    reasoning_effort "minimal" is not supported by the chat template, supported levels: low, high, xhigh
low      HONORED   200    
medium   REJECTED  400    reasoning_effort "medium" is not supported by the chat template, supported levels: low, high, xhigh
high     DEFAULT   200    
xhigh    HONORED   200    
max      REJECTED  400    reasoning_effort "max" is not supported by the chat template, supported levels: low, high, xhigh

DEFAULT means the prompt is identical to sending no reasoning_effort: either the value is the template's default (here high) or the template ignores it. With --max-tokens it also reports reasoning length per value from the real model; in our runs the model was random, so we report no lengths. The vLLM path sends the value inside chat_template_kwargs together with enable_thinking, as vLLM's chat endpoint does, because v0.34.0's /tokenize ignores a top-level reasoning_effort; it was tested against a stand-in that reproduces v0.34.0's validation and rendering, not against vLLM itself.

FAQ

Why does Qwen4 return "Unexpected reasoning effort medium"?
Qwen4's chat template accepts only xhigh, high, low and off, and raises on anything else, including medium, minimal, max and none. high is the default. On llama-server (b12431 or later) medium is answered with HTTP 400 "reasoning_effort \"medium\" is not supported by the chat template, supported levels: low, high, xhigh". vLLM answers 400 with the template's own message. Send low, high or xhigh instead.
How do I turn thinking off for Qwen4?
On llama-server b12969 or later send "reasoning_effort": "none" or "off"; both give the same prompt. On b12968 and earlier, "off" fails with HTTP 500 "Conflicting thinking settings: enable_thinking=true with reasoning_effort=off" (measured on b12966). If your vLLM build renders Qwen4 with the Jinja template, "none" raises there, so send "chat_template_kwargs": {"reasoning_effort": "off"} or {"enable_thinking": false}; vLLM main (2026-12-05) has its own Qwen4 encoder that maps none to off.
Does gpt-oss accept reasoning_effort max or xhigh?
Its chat template does not check the value: low, medium (the default) and high are the trained levels, and any other string is printed as-is into the system prompt ("Reasoning: max"), with no error from the template or from llama-server. vLLM renders gpt-oss with Harmony instead and answers 400 "reasoning_effort='max' is not supported by Harmony. Supported values are: high, medium, low."
Why does reasoning_effort have no effect on Qwen3, Qwen3.5, Gemma 4 or GLM?
Their chat templates do not read reasoning_effort at all, only enable_thinking. In these templates low, medium, high, xhigh and max give exactly the same prompt as sending nothing. Only on/off matters: llama-server turns none and off into enable_thinking=false, and vLLM (v0.22.0 and later) and SGLang set enable_thinking to false for none and true for every other value.
Claude Code sends reasoning_effort high and my server returns 500. How do I map it?
Qwen3.8's template accepts xhigh, medium and low but not high (Qwen3.8-27B discussion #147 reports HTTP 500 on vLLM 0.27.1). vLLM v0.33.0 and later can rewrite values with --reasoning-effort-map '{"high": "xhigh"}', which applies to Chat Completions, Responses and Anthropic Messages requests. On llama-server you can pin a level for all requests with --reasoning-effort LEVEL.
How do I check which values my own server honors?
Run effortcheck.py from this page against the server. It renders the prompt for each value without generating (llama-server /apply-template, vLLM /tokenize), sends each value to /v1/chat/completions for the real HTTP status, and labels each value REJECTED, DEFAULT (same prompt as sending nothing) or HONORED, listing values that give identical prompts.

How was this measured?

Templates: all 86 files in llama.cpp's models/templates (copies of the models' Hugging Face chat templates that llama.cpp tests against) at 4066b9d, each rendered for one user message with no reasoning_effort and with each of the 8 values, under enable_thinking unset, true and false, plus the kwargs vLLM v0.34.0 sends; 80 rendered without extra inputs (the other 6 are TTS, translation or function-calling templates that need other fields). The environment matches transformers' (sandboxed jinja2, trim_blocks, lstrip_blocks, loopcontrols, raise_exception, the generation tag). A model's own repository can have a newer template than this copy; Qwen3.8, for example, is not in the set.

llama-server: built from 4066b9d and b12966 (CPU), run with a 2-layer random-weight Qwen3-architecture GGUF and --chat-template-file for 15 templates, 9 values each, on /apply-template and /v1/chat/completions (max_tokens 1); one request per cell, all deterministic. Some chat requests failed with 500 “does not match the expected peg-native format” because the random model's output does not parse; those are not effort errors and are not shown. Engine histories: the request-handling source of every vLLM minor release v0.18.0–v0.34.0, llama.cpp commits mapped to their first build tag, SGLang v0.5.23 and Ollama v0.40.22-rc0 source. Scripts and data: render_templates.py, server_matrix.py, build_page.py (it asserts every fact above against the data).

Related: How to turn thinking off per request on each server · vLLM tool call parser conformance · Why a model does not stop generating

Sources