Skip to content

docs: THINKING/reasoning-effort control is undocumented for Granite, and openai.md's example steers readers to the wrong mechanism #1638

Closed

Description

@planetf1

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:123 and docs/docs/how-to/backends-and-configuration.md:198 each give ModelOption.THINKING one 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-452 is the only substantive section, but it's framed entirely around Qwen3 on vLLM, using raw extra_body/enable_thinking via default_extra_body. It never mentions ModelOption.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 setting ModelOption.THINKING or reading result.thinking.
  • Nothing documents the current backend-by-backend reality for Granite:

Proposed changes

  1. Expand the ModelOption.THINKING row in configure-model-options.md into 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.
  2. Add a cross-link/note in openai.md's thinking section pointing at ModelOption.THINKING as the preferred portable entry point for backends that honour it, rather than leaving the raw-extra_body pattern 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/params ModelOption.THINKING doesn't cover.
  3. Add a small Granite-focused example under docs/examples/ showing THINKING=True/False/"low" against a local Ollama Granite model, with output that demonstrates the actual effect (e.g. reasoning length or result.thinking content).
  4. 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.
  5. 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

Activity

  1. added
    area/thinking
    documentation
    on Sep 9, 2026
  2. planetf1 commented on Sep 9, 2026

    @planetf1
    ContributorAuthor

    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.

  3. self-assigned this
    on Sep 9, 2026
  4. planetf1 commented on Sep 9, 2026

    @planetf1
    ContributorAuthor

    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.

  5. added a commit that references this issue on Sep 15, 2026
    54a5da7
  6. added a commit that references this issue on Sep 16, 2026
    cee2f7e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/thinkingdocumentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions