README: document the reasoning chooser

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Neil Bantoc 2026-11-03 02:15:53 -08:00
parent 623d093b81
commit ba7bd76af6

View file

@ -119,6 +119,22 @@ To avoid invalidating remote clients in the first place, purge with `--keep-key`
llmhost uninstall --purge --keep-key # keeps ~/.config/llm-host/api_key; a reinstall reuses it
```
## Reasoning effort
Reasoning effort is not a backend flag — it's a chat-template argument, read per request, and
what it accepts differs per model. Qwen3.8 27B's template takes `enable_thinking` plus
`reasoning_effort` in `low`/`medium`/`xhigh` (note: no `high`) and *raises* on anything else;
Ornith 1.5 9B takes only `enable_thinking`. So the dashboard builds the chooser from the loaded
model's own template, with the level names from `catalog.json` (`"effort": {"levels": [...]}`) —
a level the template doesn't know is never offered or sent.
The setting is a default for requests that don't ask for anything: the proxy adds it to chat
completions, and a `chat_template_kwargs` key the client sets itself always wins. Changing it
takes effect on the next request with no reload, so the model stays in memory.
On Linux + NVIDIA there's no chooser: vLLM runs without a proxy in front, so nothing is in the
path to add the argument. Clients can still pass `chat_template_kwargs` themselves.
## How models are chosen
`llmhost/catalog.json` lists each model with every build of it (FP8, BF16, NVFP4, AWQ, MLX 8/6/4-bit),