Skip to content

Commit f2a96a5

Browse files
larroyplarroy-nvclaudekarkarl
authored
chore(local-ai): bump llama.cpp runtime to b10655 (#1252)
* chore(local-ai): bump llama.cpp runtime to b10655 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 #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]> * test(local-ai): derive runtime fixture from catalog Co-authored-by: Copilot App <[email protected]> Copilot-Session: b3afd332-87dd-45cb-8841-9eeb6a8b0e6a --------- Co-authored-by: Pedro Larroy <[email protected]> Co-authored-by: Claude Sonnet 5 <[email protected]> Co-authored-by: Karen Lai <[email protected]> Copilot-Session: b3afd332-87dd-45cb-8841-9eeb6a8b0e6a
1 parent 6f60d33 commit f2a96a5

3 files changed

Lines changed: 52 additions & 52 deletions

File tree

‎src/OpenClaw.SetupEngine/LlamaRuntimeInstaller.cs‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ public async Task<LlamaRuntimeInspection> InspectAsync(
277277

278278
internal static LlamaRuntimeInspection ValidateVersionOutput(string output)
279279
{
280-
bool buildMatches = output.Contains("build 10488", StringComparison.OrdinalIgnoreCase);
280+
bool buildMatches = output.Contains(
281+
$"build {LlamaRuntimeCatalog.ReleaseTag[1..]}",
282+
StringComparison.OrdinalIgnoreCase);
281283
bool commitMatches = output.Contains(
282284
LlamaRuntimeCatalog.ReleaseCommitSha[..9],
283285
StringComparison.OrdinalIgnoreCase);
@@ -286,7 +288,7 @@ internal static LlamaRuntimeInspection ValidateVersionOutput(string output)
286288
: new LlamaRuntimeInspection(
287289
false,
288290
output,
289-
"llama-server did not report the pinned b10488 build and source commit.");
291+
$"llama-server did not report the pinned {LlamaRuntimeCatalog.ReleaseTag} build and source commit.");
290292
}
291293

292294
private static void KillProcessTree(Process process)

‎src/OpenClaw.Shared/Inference/Catalog/LlamaRuntimeCatalog.cs‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public LlamaRuntimeVariant(
4747
/// </summary>
4848
public static class LlamaRuntimeCatalog
4949
{
50-
public const string ReleaseTag = "b10488";
51-
public const string ReleaseCommitSha = "9d77fa17254e1dee4b9e92504c91611a60b1359f";
50+
public const string ReleaseTag = "b10655";
51+
public const string ReleaseCommitSha = "cb300598d5f90189cb69d2702f4930aaf99d32a2";
5252
public const string ServerExecutableName = "llama-server.exe";
53-
public const string X64RuntimeId = "b10488-cuda13-x64";
54-
public const string Arm64RuntimeId = "b10488-cuda13-arm64";
53+
public const string X64RuntimeId = "b10655-cuda13-x64";
54+
public const string Arm64RuntimeId = "b10655-cuda13-arm64";
5555

5656
public static GitHubReleaseSource Source { get; } = new(
5757
"ggml-org/llama.cpp",
@@ -69,13 +69,13 @@ public static class LlamaRuntimeCatalog
6969
new[]
7070
{
7171
RuntimeArtifact(
72-
"llama-b10488-cuda13-x64",
72+
"llama-b10655-cuda13-x64",
7373
ArtifactRole.RuntimeBinary,
74-
"llama-b10488-bin-win-cuda-13.3-x64.zip",
75-
146_824_581,
76-
"f4ea53c2e7f3d295cb9fd092515d50af4969266b4cdae01f03a1cbaa8b4d9af0"),
74+
"llama-b10655-bin-win-cuda-13.3-x64.zip",
75+
146_478_045,
76+
"be61636141327b3ca4d437c17489fd69964838a31a5fe3e97400f0dcd9f669dc"),
7777
RuntimeArtifact(
78-
"cudart-b10488-cuda13-x64",
78+
"cudart-b10655-cuda13-x64",
7979
ArtifactRole.RuntimeDependency,
8080
"cudart-llama-bin-win-cuda-13.3-x64.zip",
8181
390_970_417,
@@ -89,13 +89,13 @@ public static class LlamaRuntimeCatalog
8989
new[]
9090
{
9191
RuntimeArtifact(
92-
"llama-b10488-cuda13-arm64",
92+
"llama-b10655-cuda13-arm64",
9393
ArtifactRole.RuntimeBinary,
94-
"llama-b10488-bin-win-cuda-13.4-arm64.zip",
95-
140_379_054,
96-
"75554d62f4af8f4150d3b4b0cca7df62d44105e98fb7cd92ab2d177e382b441d"),
94+
"llama-b10655-bin-win-cuda-13.4-arm64.zip",
95+
140_055_278,
96+
"567e61b4129e0d5b0580e5d3ea86b82ab5b6bee745ee02f69b58af799b49a582"),
9797
RuntimeArtifact(
98-
"cudart-b10488-cuda13-arm64",
98+
"cudart-b10655-cuda13-arm64",
9999
ArtifactRole.RuntimeDependency,
100100
"cudart-llama-bin-win-cuda-13.4-arm64.zip",
101101
153_318_797,

‎tests/OpenClaw.Connection.Tests/LocalAiPortLifecycleTests.cs‎

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -364,46 +364,44 @@ private static string ArgumentAfter(IReadOnlyList<string> arguments, string name
364364
return arguments[index + 1];
365365
}
366366

367-
private static LocalAiInstallManifest ValidManifest() => new()
367+
private static LocalAiInstallManifest ValidManifest()
368368
{
369-
EngineVersion = "b10488",
370-
Architecture = "arm64",
371-
RuntimeId = "b10488-cuda13-arm64",
372-
ModelCatalogId = "qwen3.6-35b-a3b-mtp-q4-k-m",
373-
SelectedGpuId = "GPU-01234567-89ab-cdef-0123-456789abcdef",
374-
ExecutablePath = Path.Combine("engines", "llama-b10488", "llama-server.exe"),
375-
RuntimeAssets =
376-
[
377-
new LocalAiAssetReceipt
369+
LlamaRuntimeVariant runtime = LlamaRuntimeCatalog.Find(
370+
System.Runtime.InteropServices.Architecture.Arm64)!;
371+
return new LocalAiInstallManifest
372+
{
373+
EngineVersion = LlamaRuntimeCatalog.ReleaseTag,
374+
Architecture = "arm64",
375+
RuntimeId = runtime.Id,
376+
ModelCatalogId = "qwen3.6-35b-a3b-mtp-q4-k-m",
377+
SelectedGpuId = "GPU-01234567-89ab-cdef-0123-456789abcdef",
378+
ExecutablePath = Path.Combine(
379+
"engines",
380+
$"llama-{LlamaRuntimeCatalog.ReleaseTag}",
381+
LlamaRuntimeCatalog.ServerExecutableName),
382+
RuntimeAssets = runtime.Artifacts.Select(artifact => new LocalAiAssetReceipt
378383
{
379-
FileName = "llama-b10488-bin-win-cuda-13.4-arm64.zip",
380-
SourceUrl = "https://github.com/ggml-org/llama.cpp/releases/download/b10488/llama-b10488-bin-win-cuda-13.4-arm64.zip",
381-
SizeBytes = 140_379_054,
382-
Sha256 = "75554d62f4af8f4150d3b4b0cca7df62d44105e98fb7cd92ab2d177e382b441d",
383-
},
384-
new LocalAiAssetReceipt
384+
FileName = Path.GetFileName(artifact.RelativePath),
385+
SourceUrl = artifact.DownloadUri.AbsoluteUri,
386+
SizeBytes = artifact.SizeBytes,
387+
Sha256 = artifact.Sha256.Value,
388+
}).ToImmutableArray(),
389+
ModelPath = Path.Combine("models", "Qwen3.6-35B-A3B-UD-Q4_K_M.gguf"),
390+
ModelId = "unsloth/Qwen3.6-35B-A3B-MTP-GGUF@5bc3e238d916f48a861bac2f8a1990a0e9b7e98d",
391+
ModelAlias = "qwen3.6-35b-a3b-mtp-q4-k-m",
392+
ModelAsset = new LocalAiAssetReceipt
385393
{
386-
FileName = "cudart-llama-bin-win-cuda-13.4-arm64.zip",
387-
SourceUrl = "https://github.com/ggml-org/llama.cpp/releases/download/b10488/cudart-llama-bin-win-cuda-13.4-arm64.zip",
388-
SizeBytes = 153_318_797,
389-
Sha256 = "5a40dc7c5fa3d0a80ceeba4f16f9e8d25d87bcf1399c9233588953c43436c33c",
394+
FileName = "Qwen3.6-35B-A3B-UD-Q4_K_M.gguf",
395+
SourceUrl = "https://huggingface.co/unsloth/Qwen3.6-35B-A3B-MTP-GGUF/resolve/5bc3e238d916f48a861bac2f8a1990a0e9b7e98d/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf?download=true",
396+
SizeBytes = 22_663_387_424,
397+
Sha256 = "0b21525e972670ed59e1812e170b27c26355381f0656ecc4e25617ece7dac58b",
390398
},
391-
],
392-
ModelPath = Path.Combine("models", "Qwen3.6-35B-A3B-UD-Q4_K_M.gguf"),
393-
ModelId = "unsloth/Qwen3.6-35B-A3B-MTP-GGUF@5bc3e238d916f48a861bac2f8a1990a0e9b7e98d",
394-
ModelAlias = "qwen3.6-35b-a3b-mtp-q4-k-m",
395-
ModelAsset = new LocalAiAssetReceipt
396-
{
397-
FileName = "Qwen3.6-35B-A3B-UD-Q4_K_M.gguf",
398-
SourceUrl = "https://huggingface.co/unsloth/Qwen3.6-35B-A3B-MTP-GGUF/resolve/5bc3e238d916f48a861bac2f8a1990a0e9b7e98d/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf?download=true",
399-
SizeBytes = 22_663_387_424,
400-
Sha256 = "0b21525e972670ed59e1812e170b27c26355381f0656ecc4e25617ece7dac58b",
401-
},
402-
RequestedPort = 0,
403-
Endpoint = null,
404-
ContextLength = 262_144,
405-
InstalledAtUtc = DateTimeOffset.Parse("2026-08-18T12:00:00Z"),
406-
};
399+
RequestedPort = 0,
400+
Endpoint = null,
401+
ContextLength = 262_144,
402+
InstalledAtUtc = DateTimeOffset.Parse("2026-08-18T12:00:00Z"),
403+
};
404+
}
407405

408406
private sealed class FakePlatform : ILlamaServerRuntimePlatform
409407
{

0 commit comments

Comments
 (0)