Skip to content

chore(local-ai): bump llama.cpp runtime to b10655 - #1252

Merged
karkarl merged 2 commits into
openclaw:mainfrom
larroy:chore/bump-llama-runtime-b10655
Aug 27, 2026
Merged

karkarl merged 2 commits into
openclaw:mainfrom
larroy:chore/bump-llama-runtime-b10655

Conversation

@larroy

@larroy larroy commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Bumps the pinned llama-server runtime from b10488 to b10655 (ggml-org/llama.cpp commit cb300598d) and updates the pinned SHA-256 hashes/sizes for the x64 and arm64 CUDA runtime binaries. The cudart dependency archives are byte-identical between the two releases, so their hashes are unchanged.

Motivation

Closes/addresses #1242: on the RTX Spark N1X (Blackwell, sm_121), b10488 crashes with a fatal CUDA error (cudaErrorSharedObjectInitFailed) inside the flash-attention kernel's shared-memory setup during model warm-up. This surfaces during setup as verify-local-ai-inference failing with HTTP 500.

I reproduced the crash manually by running llama-server.exe directly with the same flags/model as the failing setup run, against both b10488 (crashes, confirming the report) and b10655 (does not crash — loading completes and a real chat-completion round-trips successfully). Full details and logs are in the issue and its comment thread.

Note: at the full --ctx-size 262144 used in the original failing run, b10655 now gets further in loading but hits an unrelated CUDA OOM allocating the speculative/MTP draft buffers — plausibly related to the GPU-capacity/DXGI-shared-memory misdetection already being addressed elsewhere in this repo (ba487943, 05994b93). That's a separate follow-up, not blocking this bump — it's an improvement either way, and worth re-checking against whatever context size the app's own capacity planner actually selects on this hardware.

Changes

  • LlamaRuntimeCatalog: ReleaseTag → b10655, ReleaseCommitSha → cb300598d5f90189cb69d2702f4930aaf99d32a2, runtime ids, artifact filenames/sizes/hashes for both x64 (CUDA 13.3) and arm64 (CUDA 13.4) variants.
  • LlamaRuntimeInstaller.ValidateVersionOutput: was checking for the hardcoded literal "build 10488" instead of deriving it from LlamaRuntimeCatalog.ReleaseTag. Left as-is, this bump would have made every install permanently fail capability verification (the installed binary reports build 10655, which would never match the hardcoded check). Now derives the expected string from the catalog constant so future bumps don't hit the same trap.

Testing

  • dotnet build on OpenClaw.SetupEngine (which pulls in OpenClaw.Shared/OpenClaw.Connection): clean, 0 warnings/errors.
  • dotnet test tests/OpenClaw.Shared.Tests (LocalInferenceQualificationTests): 21/21 passed.
  • dotnet test tests/OpenClaw.SetupEngine.Tests (full suite): 998/998 passed.
  • Manually verified all four new pinned artifacts against the actual ggml-org/llama.cpp b10655 release assets (downloaded fresh, hashed locally, cross-checked sizes against the GitHub release API).
  • Manually ran the extracted b10655 llama-server.exe + this model end-to-end (outside the app) and confirmed a successful /v1/chat/completions response.

🤖 Generated with Claude Code

Bumps the pinned llama-server release from b10488 to b10655
(ggml-org/llama.cpp commit cb300598d) and updates the pinned SHA-256
hashes and sizes for both the x64 and arm64 CUDA runtime binaries.
The cudart dependency archives are unchanged between releases, so
their hashes stay the same.

Motivated by issue openclaw#1242: on RTX Spark N1X (Blackwell, sm_121), b10488
crashes with a fatal CUDA error (cudaErrorSharedObjectInitFailed) in
the flash-attention kernel's shared-memory setup during model warm-up,
which surfaces as an HTTP 500 from verify-local-ai-inference during
setup. Manually reproducing against b10655 with the same flags and
model shows the crash is gone; loading completes and inference
succeeds end-to-end (verified at --ctx-size 8192; at the full
--ctx-size 262144 used in the original failing run, loading now gets
further before failing on an unrelated CUDA OOM allocating the
speculative/MTP draft buffers, worth its own follow-up).

Also fixes LlamaRuntimeInstaller.ValidateVersionOutput, which
hardcoded the literal "build 10488" string instead of deriving it
from LlamaRuntimeCatalog.ReleaseTag -- left as-is, this bump would
have made every install permanently fail capability verification.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@joelagnel

Copy link
Copy Markdown
Collaborator

LGTM. @karkarl could we merge this?

@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge. Reviewed August 27, 2026, 6:54 PM ET / 22:54 UTC.

ClawSweeper review

What this changes

The PR updates the integrity-pinned Windows llama.cpp CUDA runtime from b10488 to b10655 and derives runtime version inspection from the catalog tag.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked until real behavior proof is added - 6 items remain

Keep open. The prior P1 upgrade blocker remains: changing the catalog recipe makes existing b10488 Local AI installs fail reuse and launch validation, while the follow-up test commit only updates a current-recipe fixture. The PR also still lacks attached, redacted current-head runtime proof.

Priority: P1
Reviewed head: 589df188c4a8520c53dfae1356db6c4daf7010eb
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is focused and plausibly addresses the reported runtime fault, but it has a P1 existing-install regression and lacks attached real behavior proof.
Proof confidence 🧂 unranked krab (1/6) Needs real behavior proof before merge: Missing: the PR describes manual b10655 inference but supplies no redacted current-head output, log, screenshot, or artifact; add proof of a successful runtime start and chat completion, redacting endpoints and device details, then request re-review if it does not start automatically. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: Missing: the PR describes manual b10655 inference but supplies no redacted current-head output, log, screenshot, or artifact; add proof of a successful runtime start and chat completion, redacting endpoints and device details, then request re-review if it does not start automatically. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 7 items Introduced runtime recipe change: The PR changes the runtime tag and IDs from b10488 to b10655, which is the introduced trigger for prior manifests no longer matching the selected recipe.
Existing-install rejection: A b10488 manifest fails the strict EngineVersion and RuntimeId recipe comparison; the caller terminates setup and instructs the user to uninstall before retrying.
Existing runtime launch also fails: The launcher rebuilds router configuration from the persisted manifest, whose receipt validation requires the new catalog EngineVersion, and publishes a failed runtime state when validation throws.
Findings 1 actionable finding [P1] Add an upgrade route for existing Local AI installs
Security None None.

How this fits together

Local AI setup downloads a catalog-pinned llama-server archive, records its receipt in an installation manifest, then starts it to expose a local inference endpoint. The catalog therefore controls fresh installs and whether existing Local AI installations can be reused or launched.

flowchart LR
  A[Local AI setup] --> B[Runtime catalog]
  B --> C[Download pinned archives]
  C --> D[Installation manifest]
  D --> E[Reconcile existing install]
  D --> F[Start llama-server]
  E --> G[Local inference endpoint]
  F --> G[Local inference endpoint]
Loading

Decision needed

Question Recommendation
What user-visible upgrade policy should apply when a managed Local AI runtime recipe changes from b10488 to b10655? Provide a non-destructive in-product update: Install and verify b10655, retain validated model data where safe, and replace the receipt only after the updated runtime is healthy.

Why: The current behavior requires destructive uninstall and potentially discards a large managed model, while automatic replacement, model reuse, and an explicit in-product update each have different storage and recovery expectations.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: Missing: the PR describes manual b10655 inference but supplies no redacted current-head output, log, screenshot, or artifact; add proof of a successful runtime start and chat completion, redacting endpoints and device details, then request re-review if it does not start automatically. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Add an upgrade route for existing Local AI installs (P1) - Changing this catalog tag makes every persisted b10488 receipt fail strict reconciliation and router receipt validation. Setup terminates with an uninstall instruction, and the runtime publishes Failed before launching. The later fixture-only commit does not cover that legacy state, so add a non-destructive migration or explicit in-product update path with regression coverage.
  • Resolve merge risk (P1) - Existing b10488 manifests become unqualified for both setup reuse and runtime launch; the only present recovery instructs an uninstall that removes the managed Local AI tree.
  • Resolve merge risk (P1) - The claimed successful b10655 inference run is not accompanied by redacted current-head output or an artifact, so the new binary, verification parsing, and affected hardware path remain unproven to reviewers.
  • Complete next step (P2) - A maintainer must select the non-destructive runtime-update policy before a repair can safely change persisted Local AI installation behavior.

Findings

  • [P1] Add an upgrade route for existing Local AI installs — src/OpenClaw.Shared/Inference/Catalog/LlamaRuntimeCatalog.cs:50-54
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Artifact records 4 binary artifact records updated across 2 architectures These pins govern downloaded native executables and must remain aligned with the selected release.
Patch scope 3 files, 52 additions, 52 deletions The small scope makes the missing existing-install transition especially visible.

Merge-risk options

Maintainer options:

  1. Add a verified non-destructive upgrade (recommended)
    Implement and test b10488-to-b10655 migration or an explicit in-product update that leaves the user with a working validated Local AI installation.
  2. Pause for upgrade-policy direction
    Do not merge the catalog bump until maintainers select whether runtime replacement is automatic or requires a model-preserving user action.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Add focused b10488-to-b10655 migration coverage that proves an existing manifest reaches a healthy b10655 runtime without a destructive reset, then attach redacted current-head runtime proof.

Technical review

Best possible solution:

Adopt a maintainer-approved non-destructive Local AI update flow that installs and verifies b10655, updates the manifest atomically, preserves validated model data where safe, and proves both fresh installation and b10488 upgrade startup.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: an existing manifest with EngineVersion and RuntimeId for b10488 deterministically fails the new catalog-recipe checks during setup and router launch. This review did not execute the hardware-specific CUDA crash.

Is this the best way to solve the issue?

No: updating the pin alone is not the safest complete fix because it strands installed b10488 receipts. A non-destructive, explicitly selected upgrade policy with fresh-install and upgrade proof is needed.

Full review comments:

  • [P1] Add an upgrade route for existing Local AI installs — src/OpenClaw.Shared/Inference/Catalog/LlamaRuntimeCatalog.cs:50-54
    Changing this catalog tag makes every persisted b10488 receipt fail strict reconciliation and router receipt validation. Setup terminates with an uninstall instruction, and the runtime publishes Failed before launching. The later fixture-only commit does not cover that legacy state, so add a non-destructive migration or explicit in-product update path with regression coverage.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6f60d3399ab9.

Labels

Label changes:

  • add P1: Merging currently makes established b10488 Local AI installations fail their managed validation and provides only destructive recovery.
  • add merge-risk: 🚨 compatibility: The new catalog IDs invalidate persisted b10488 installation receipts during upgrade.
  • add merge-risk: 🚨 availability: An existing Local AI installation cannot start after receipt validation rejects its old runtime version.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Missing: the PR describes manual b10655 inference but supplies no redacted current-head output, log, screenshot, or artifact; add proof of a successful runtime start and chat completion, redacting endpoints and device details, then request re-review if it does not start automatically. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P1: Merging currently makes established b10488 Local AI installations fail their managed validation and provides only destructive recovery.
  • merge-risk: 🚨 compatibility: The new catalog IDs invalidate persisted b10488 installation receipts during upgrade.
  • merge-risk: 🚨 availability: An existing Local AI installation cannot start after receipt validation rejects its old runtime version.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Missing: the PR describes manual b10655 inference but supplies no redacted current-head output, log, screenshot, or artifact; add proof of a successful runtime start and chat completion, redacting endpoints and device details, then request re-review if it does not start automatically. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • Joel: Introduced the managed Local AI feature, including the catalog and strict reconciliation behavior that this change must evolve safely. (role: feature owner; confidence: high; commits: ccd64bbb7d68; files: src/OpenClaw.SetupEngine/LocalAiInstallReconciler.cs, src/OpenClaw.SetupEngine/LocalAiSetupSteps.cs, src/OpenClaw.Shared/Inference/Catalog/LlamaRuntimeCatalog.cs)
  • Jacob Tomlinson: Authored the latest fetched-main Local AI change and touched the overlapping lifecycle test surface shortly before this PR. (role: recent area contributor; confidence: medium; commits: 6f60d3399ab9; files: tests/OpenClaw.Connection.Tests/LocalAiPortLifecycleTests.cs)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Implement the selected non-destructive b10488-to-b10655 update path and add a regression test for an existing manifest.
  • Attach redacted current-head b10655 version and successful local chat-completion output, including the post-upgrade path when applicable.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-27T19:02:09.546Z sha 87b594c :: needs real behavior proof before merge. :: [P1] Preserve an upgrade path for existing Local AI installs

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b3afd332-87dd-45cb-8841-9eeb6a8b0e6a
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P1 Urgent regression or broken agent/channel workflow affecting real users now. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 27, 2026
@karkarl
karkarl merged commit f2a96a5 into openclaw:main Aug 27, 2026
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P1 Urgent regression or broken agent/channel workflow affecting real users now. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants