Skip to content

Clarify recommendations when stronger models require reduced context #1280

Closed

Description

@joelagnel

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 Recommended for 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.

Activity

  1. joelagnel commented on Sep 1, 2026

    @joelagnel
    CollaboratorAuthor

    Focused implementation and RTX 5090 validation: joelagnel#7

  2. joelagnel commented on Sep 1, 2026

    @joelagnel
    CollaboratorAuthor

    (Rebasing on to main now.)

  3. joelagnel commented on Sep 1, 2026

    @joelagnel
    CollaboratorAuthor

    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.

  4. added
    P3
    clawsweeper:bulk-filed
    clawsweeper:linked-pr-open
    clawsweeper:needs-product-decision
    clawsweeper:no-new-fix-pr
    issue-rating: 🌊 off-meta tidepool
    on Sep 2, 2026
  5. clawsweeper commented on Sep 2, 2026

    @clawsweeper

    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

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.
    • Include redacted logs or terminal output.

    Maintainer decision needed

    Question Recommendation
    Should Local AI retain one capability-first recommendation with explicit context-tradeoff disclosure, or should context capacity become a separate policy or preset? Single disclosed capability-first default: Keep one default recommendation, but state the selected context and why a stronger model was preferred over a larger-context alternative; validate the stated 24 GiB and 16 GiB profiles before landing.

    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:

    • Landing a capability-first policy without explicit maintainer agreement may make a materially shorter agent context the default on existing GPU classes.

    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:

    Likely related people:

    • Joel: Raw commit ccd64bb adds src/OpenClaw.Shared/Inference/Catalog/LocalInferenceSelector.cs:85 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ccd64bbb7d68; files: src/OpenClaw.Shared/Inference/Catalog/LocalInferenceSelector.cs)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  6. locked as resolved and limited conversation to collaborators on Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3clawsweeper:bulk-filedclawsweeper:linked-pr-openclawsweeper:needs-product-decisionclawsweeper:no-new-fix-prissue-rating: 🌊 off-meta tidepool

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions