返回 CodeWhale
LOCAL_MODEL_REASONING.md
根目录 / docs / LOCAL_MODEL_REASONING.md
1 # Local model reasoning controls
2
3 The `vllm` Chat Completions route also serves local SGLang deployments. The
4 server protocol does not define the model template's reasoning ladder. Reviewed
5 template facts in `crates/config/src/local_reasoning.json` refine this route:
6
7 | Served model family | Selectable controls | Wire values |
8 | --- | --- | --- |
9 | Qwen3.8-27B, Qwen3.8-Flash-Next | off, low, medium, max | thinking switch; low, medium, xhigh |
10 | Ornith-1.5-35B-A3B, Qwen3.6-35B-A3B | off, high (on) | thinking switch only |
11 | GLM-5.3-Flash | low, high, max | low, high, max |
12 | DeepSeek-V4-Flash-Vision-Exp | off, low, high, max | prior thinking switch; low, high, max |
13
14 Qwen3.8's `high` preference is a legacy name for its deepest tier and now sends
15 `xhigh`; its template rejects the literal `high`. Templates that only consume a
16 thinking switch no longer receive fictitious effort levels. GLM and DeepSeek
17 legacy `medium` preferences use their middle supported level, `high`. A stale
18 `off` preference on the GLM always-thinking ladder normalizes to `low`.
19 DeepSeek-V4-Vision retains its existing Off request spelling; this compatibility
20 change does not infer a new inability to turn thinking off from an effort enum.
21 Model-specific effort travels in `chat_template_kwargs.reasoning_effort`; the
22 top-level effort is omitted so older OpenAI schemas cannot reject xhigh/max
23 before the template is rendered. The registry records source revisions and legacy aliases; normalization does
24 not rewrite saved settings.
25
26 The canonical served model ID must match a reviewed name family (an optional
27 repository prefix and quantization/deployment suffix are accepted). Unknown
28 IDs, unrelated versions and other provider routes retain their existing
29 behavior. A custom template under a canonical name can differ from these facts;
30 do not assume arbitrary local aliases or customized templates are detected.
31
32 This changes only thinking fields. Endpoint selection, credentials, messages,
33 tools, streaming, sampling, token limits, retries and permission checks retain
34 their existing owners. No model is started, probed or redeployed by this logic.
35
35 lines MARKDOWN