Repository navigation
Closed
Labels
area/thinkingReasoning/thinking control: enable_thinking, reasoning_effort, low_effort, THINKING mappingdocumentationImprovements or additions to documentation
Description
Problem
ModelOption.THINKING already works correctly today for controlling Granite 4.2 reasoning on the OpenAI/LiteLLM backends (on/off, plus "low" for genuine low-effort mode) — but nothing in the docs says so, and the one substantive treatment that exists actively points readers at a different, more manual mechanism.
Current state
docs/docs/how-to/configure-model-options.md:123anddocs/docs/how-to/backends-and-configuration.md:198each giveModelOption.THINKINGone vague table row: "varies |None| Enable or configure reasoning/thinking mode (model-dependent)." No per-backend detail, no mention of string values.docs/docs/integrations/openai.md:390-452is the only substantive section, but it's framed entirely around Qwen3 on vLLM, using rawextra_body/enable_thinkingviadefault_extra_body. It never mentionsModelOption.THINKING, Granite, or the"low"/"medium"/"high"string values that already work for Granite today. A reader following this section learns the lower-level workaround instead of the higher-level API that's actually the preferred entry point when a backend honours it.- No example anywhere under
docs/examples/demonstrates settingModelOption.THINKINGor readingresult.thinking. - Nothing documents the current backend-by-backend reality for Granite:
- OpenAI/LiteLLM:
True/False/"low"all work;"medium"/"high"are accepted but are no-ops on Granite's chat template (it only checksreasoning_effort == "low"). - Native Ollama backend: same as OpenAI/LiteLLM —
True/False/"low"/"medium"/"high"all work via a raw passthrough to Ollama's ownthink=param, which already handles string levels itself (feat(ollama): OllamaModelBackend has no way to reach Granite low_effort/reasoning_effort mode #1637 was filed against this and closed as not reproducible — no gap here). - HF (local) backend: bool only; a string value is silently dropped and falls back to full thinking with no warning (fix(hf): ModelOption.THINKING string values (e.g. "low") are silently dropped, falling back to full thinking #1636, fixed via PR, not yet released).
- HF (local) backend also never parses
<think>tags intoresult.thinking— reasoning stays embedded raw inresult.contenton that backend only (fix(hf): parse <think> tags into mot.thinking on LocalHFBackend #1616, open draft PR). - Granite defaults to thinking on if
THINKINGis omitted entirely.
- OpenAI/LiteLLM:
Proposed changes
- Expand the
ModelOption.THINKINGrow inconfigure-model-options.mdinto a proper subsection with a per-backend behaviour table (mirroring the structure above), including the Granite-specific"low"-only nuance and the default-on behaviour. - Add a cross-link/note in
openai.md's thinking section pointing atModelOption.THINKINGas the preferred portable entry point for backends that honour it, rather than leaving the raw-extra_bodypattern as the only documented mechanism. Keep the existing content (it's accurate for the Qwen3/vLLM case and post-fix(backends): deep-merge extra_body.chat_template_kwargs in merge_model_options #1617 merge semantics) but frame it as the fallback for backends/paramsModelOption.THINKINGdoesn't cover. - Add a small Granite-focused example under
docs/examples/showingTHINKING=True/False/"low"against a local Ollama Granite model, with output that demonstrates the actual effect (e.g. reasoning length orresult.thinkingcontent). - Note the current HF (
#1636) limitation inline where relevant, so readers aren't surprised by the silent no-op until it's released — update or remove once that fix ships. No note needed for native Ollama; it already works correctly. - If using vLLM: flag that Granite 4.2 needs the latest reasoning-parser update (shipped in the model's HF files in the last few days) — worth a one-line callout so readers don't hit stale-parser behaviour.
Related
- feat: distinguish thinking models #406 — broader backend-agnostic abstraction design (this docs work should track its outcome, not block on it)
- fix(hf): ModelOption.THINKING string values (e.g. "low") are silently dropped, falling back to full thinking #1636 — HF string-drop bug, fixed via PR, doc should describe the fixed behaviour once released
feat(ollama): OllamaModelBackend has no way to reach Granite low_effort/reasoning_effort mode #1637— closed as not reproducible; native Ollama backend already works correctly, no action needed- fix(hf): parse <think> tags into mot.thinking on LocalHFBackend #1616 — HF
result.thinkinggap, relevant to the example's expected output on that backend
Metadata
Metadata
Assignees
Labels
area/thinkingReasoning/thinking control: enable_thinking, reasoning_effort, low_effort, THINKING mappingdocumentationImprovements or additions to documentation
Activity
planetf1 commentedon Sep 9, 2026
Suggest sequencing this after #1636, #1637, and #1616 land, rather than in parallel — the doc should describe the final per-backend behaviour, not document three known bugs and then need re-editing once each is fixed. Until then, item 4 (inline notes on current limitations) covers the interim state if someone wants to improve the docs sooner.
planetf1 commentedon Sep 9, 2026
Updated the body — #1637 (native Ollama gap) was closed as not reproducible; the native backend already handles string effort levels correctly via a raw passthrough to Ollama's own
think=param. Removed it from the per-backend limitations list and the sequencing dependency. This issue now only needs to wait on #1636's fix reaching a release, not #1637.docs: document ModelOption.THINKING behaviour for Granite and add exa…
docs: document ModelOption.THINKING behaviour for Granite (generative…