Repository navigation
Description
Problem
Local AI setup can recommend the newest, highest-priority model by reducing its context length, even when an older or smaller model could run with a much larger context. That may be the right product choice, but the tradeoff needs to be explicit and intentional.
With the measured-conservative memory profiles currently being tested:
| CUDA-visible memory | Recommended model | Context / KV | Notable alternative |
|---|---|---|---|
| 32 GiB | Qwen3.8 27B | 192K / Q8_0 | Qwen3.5 9B can run at 256K / F16 |
| 24 GiB | Qwen3.8 27B | 64K / F16 | Qwen3.5 9B can run at 256K / F16 |
| 16 GiB | Qwen3.5 9B | 128K / F16 | No other catalog model fits the complete recipe |
The 24 GiB case is the clearest example: choosing Qwen3.8 27B at 64K prioritizes model capability and version over the 9B model's 256K context. OpenClaw agent workloads can begin with a large system prompt and accumulate tool results, conversation history, and sub-agent context, so 64K versus 256K can materially affect runtime behavior.
Clarification requested
- Confirm the intended recommendation priority between model capability or version, context capacity, and KV precision.
- Define the minimum context at which a model may be labeled
Recommendedfor the agent harness. - Decide whether setup should explain when a stronger model is recommended by trading away context.
- Consider separate presets such as best model quality and largest agent context if one global recommendation is misleading.
- Validate the final policy on real 24 GiB and 16 GiB GPUs, not only by constraining a 32 GiB device.
Current implementation direction
The current selector evaluates complete, explicit recipes at 256K, 192K, 128K, and 64K with F16 then Q8_0 KV at each context. It prioritizes model version or capability first, then the largest context that fits, then the highest KV precision. Setup displays the chosen context and KV precision, but the broader product tradeoff should be agreed and documented.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
joelagnel commentedon Sep 1, 2026
Focused implementation and RTX 5090 validation: joelagnel#7
joelagnel commentedon Sep 1, 2026
(Rebasing on to main now.)
joelagnel commentedon Sep 1, 2026
The focused fix is now open against upstream main as #1281. It keeps the recommendation stable by total CUDA-visible capacity, applies the 256K/192K/128K/64K context/KV profile ladder, and separately reports insufficient current free memory as a busy state.
clawsweeper commentedon Sep 2, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 2, 2026, 9:11 AM ET / 13:11 UTC.
Summary
Keep this issue open: it is an explicit product-policy decision and is paired with an open PR that proposes one implementation, so neither current main nor the unmerged branch is a basis to close it. Likely related people: Joel, high-confidence routing from the original Local AI selector implementation.
Reproducibility: not applicable. this is a request to choose and communicate a recommendation policy, not a report of a failing existing behavior.
Ways to help us reproduce this
Maintainer decision needed
Why: The linked PR implements a specific priority order, but the issue explicitly asks maintainers to choose the user-facing tradeoff and minimum acceptable agent context.
Next step
The open linked PR already owns the implementation path, while the requested default policy requires a maintainer decision before any separate repair work.
Review details
Best possible solution:
Define one documented default recommendation policy, show any model-quality versus context tradeoff in setup, and land the linked implementation only after representative 24 GiB and 16 GiB validation supports that policy.
Do we have a high-confidence way to reproduce the issue?
Not applicable: this is a request to choose and communicate a recommendation policy, not a report of a failing existing behavior.
Is this the best way to solve the issue?
Unclear: the linked PR is a coherent implementation of one policy, but the requested priority order and whether a separate preset is warranted remain maintainer choices.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against b8dc6091d0d4.
Label changes
Label justifications:
P3: The report requests a forward-looking Local AI recommendation policy and clearer setup guidance, not a demonstrated failure of an existing contract.Evidence reviewed
What I checked:
src/OpenClaw.Shared/Inference/Catalog/LocalInferenceSelector.cs:84, b8dc6091d0d4)src/OpenClaw.SetupEngine.UI/Pages/CapabilitiesPage.xaml.cs:754, b8dc6091d0d4)src/OpenClaw.Shared/Inference/Catalog/LocalInferenceSelector.cs:85, ccd64bbb7d68)Likely related people:
src/OpenClaw.Shared/Inference/Catalog/LocalInferenceSelector.cs)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.