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.
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 V4 | thinking off; level read only with thinking on | = default | = default | = default | = default | = default | = default | = default | = default |
| DeepSeek V4 Flash 0731 | thinking off; level read only with thinking on | = default | = default | = default | = default | = default | = default | = default | = default |
| Tencent Hunyuan Hy3 | no_think | error | error | error | changes prompt | error | changes prompt | error | error |
| IFM K2 Horizon | high | error | error | error | changes prompt | changes prompt | = default | error | error |
| Inkling | high (0.9) | changes prompt | error | changes prompt | changes prompt | changes prompt | = default | error | changes prompt |
| Inkling 2 Small | high (0.9) | changes prompt | error | changes prompt | changes prompt | changes prompt | = default | changes prompt (= max) | changes prompt (= xhigh) |
| Solar Open 100B | high | = 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 MoE | thinking on | changes prompt | = default | = default | = default | = default | = default | = default | = default |
| OVHaiLLM Olala v1.0 mini | medium | 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-thinking | medium | 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.
| vLLM | What changed for reasoning_effort on /v1/chat/completions |
|---|---|
| v0.18.0–v0.20.x | Accepts none, low, medium, high; passes the value to the template as reasoning_effort |
| v0.21.0 | Also accepts minimal, xhigh, max |
| v0.22.0 | Also 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 Hy3 | no_think | error | 400 (vLLM) | error | changes prompt | error | changes prompt | error | error |
| IFM K2 Horizon | high | error | 400 (vLLM) | error | changes prompt | changes prompt | = default | error | error |
| Solar Open 100B | high | = 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 mini | medium | 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) | 400 | changes prompt | 400 | = default | changes prompt | 400 | 500 |
| gpt-oss (120b/20b) | changes prompt | = default | changes prompt | changes prompt | = default | changes prompt | changes prompt | changes prompt | changes prompt |
| DeepSeek V4 | changes prompt (= off) | changes prompt (= none) | = default | = default | = default | = default | = default | changes prompt | = default |
| DeepSeek V4 Flash 0731 | changes prompt (= off) | changes prompt (= none) | = default | = default | = default | changes prompt | = default | changes prompt | = default |
| Tencent Hunyuan Hy3 | = default | = default | 400 | changes prompt | 400 | changes prompt | 400 | 400 | 400 |
| IFM K2 Horizon | = default | = default | 400 | changes prompt | changes prompt | = default | 400 | 400 | 500 |
| Inkling | changes prompt | = default | changes prompt | changes prompt | changes prompt | = default | 400 | changes prompt | 500 |
| Inkling 2 Small | changes prompt | = default | changes prompt | changes prompt | changes prompt | = default | changes prompt (= max) | changes prompt (= xhigh) | 500 |
| Solar Open 100B | = default | = default | changes prompt (= low) | changes prompt (= minimal) | = default | = default | = default | = default | = default |
| Muse Spark | = default | = default | changes prompt | changes prompt | changes prompt | changes prompt | = default | = default | = default |
| Qwen3.5 | changes prompt (= off) | changes prompt (= none) | = default | = default | = default | = default | = default | = default | = default |
| Qwen3 | changes prompt (= off) | changes prompt (= none) | = default | = default | = default | = default | = default | = default | = default |
| Gemma 4 | changes prompt (= off) | changes prompt (= none) | = default | = default | = default | = default | = default | = default | = default |
| GLM-4.7-Flash | changes prompt (= off) | changes prompt (= none) | = default | = default | = default | = default | = default | = default | = default |
| DeepSeek V3.1 | changes 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 build | Change |
|---|---|
| b10121 | "none" disables reasoning; other values ignored (#26045, 2026-07-24) |
| b10434 | Other values are passed to the template as reasoning_effort (2026-08-14) |
| b12431 | Standard names the template rejects are answered with 400 instead of a template exception (#32332, 2026-11-16) |
| b12624 | none is also passed to templates that list it as a level (#32763, 2026-11-21) |
| b12969 | off 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.
- SGLang v0.5.23 accepts
none,minimal,low,medium,high,xhigh,ultra,maxor a number from 0.0 to 0.99. It setsthinkingandenable_thinking(if you did not) toeffort != "none". Unlike vLLM,chat_template_kwargs.reasoning_effortwins over the top-level field: the kwargs are applied after it. Template exceptions become 400. - Ollama v0.40.22-rc0,
/v1/chat/completions:noneturns thinking off. For a model whose renderer lists named levels the requested name is passed on; the Qwen4 renderer (model/renderers/qwen4.go) listsfalse,low,high,xhigh, andResolveThinking(model/renderers/thinking.go) replaces any string it does not list with the defaulthigh. Sononeturns thinking off, but the stringoff,mediumandmaxall return 200 and think athigh.
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
- llama.cpp models/templates, tools/server/server-common.cpp, common/jinja/caps.cpp, common/arg.cpp; PRs #26045, #32332, #32763, #33626
- vLLM chat_completion/protocol.py, renderers/hf.py, entrypoints/common/cli_args.py, parser/harmony_utils.py, tokenizers/deepseek_v4.py, renderers/qwen4.py (main)
- SGLang entrypoints/openai/protocol.py, serving_chat.py
- Ollama openai/openai.go, model/renderers/qwen4.go
- Reports: Qwen3.8-27B discussion #147, #136, vLLM #38560, llama-swap #958, cherry-studio #14981, NVIDIA forum 378468