Skip to content

fix(llamacpp): pin stable v1.0.0 with JSON nesting fixes - #1113

Merged
ericcurtin merged 3 commits into
mainfrom
fix/llamacpp-json-nesting
Nov 20, 2026
Merged

ericcurtin merged 3 commits into
mainfrom
fix/llamacpp-json-nesting

Conversation

@doringeman

@doringeman doringeman commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Pin native llama.cpp and the Linux backend images to the official stable v1.0.0 release, which is the same commit as b12359 (b1b770d90d94cad9e9ea5b993bdbc383a522fb28). Linux currently uses b9879, whose vendored JSON implementation can crash when copying or serializing deeply nested input. Stable v1.0.0 includes the fixes backported in llama.cpp #30253 for nlohmann/json #5387.

  • Set the Linux image pins to the published stable suffix v1.0.0-b12359-b1b770d and teach the image resolver to accept and validate that format.
  • Move the native submodule from nightly b12429 to stable v1.0.0 and set LLAMA_BUILD_IS_DEV=OFF so the binary reports the release version.
  • Disable native web UI building and prebuilt UI provisioning. Model Runner does not ship this UI; shallow CI checkouts can otherwise resolve an unrelated UI asset version and fail during configuration.
  • Make the weekly native dependency bump select stable vX.Y.Z tags by default, while preserving explicit tag overrides. Peel annotated release tags to commits before comparing or checking out.

Validation:

  • make validate-all passed.
  • Native macOS build and install passed; installed server reports 1.0.0 (build 804, commit b1b770d90).
  • A depth-100,000 JSON reproducer passes both copy and compact serialization with the stable vendored header; the original b9879 header crashes in both cases.
  • Resolver fixture checks passed for all five stable variants, exact tag matching, existing nightly tags, missing tags, latest, and invalid version formats.
  • GHCR manifest checks returned HTTP 200 for the stable Vulkan, CUDA 13, ROCm, MUSA, and OpenVINO images.
  • Ran the default bump script and verified it selects stable v1.0.0 and resolves its annotated tag to the matching commit.

Full multi-platform container builds and GPU inference were not run locally.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="Dockerfile" line_range="4" />
<code_context>

 ARG GO_VERSION=1.26.10
-ARG LLAMA_SERVER_VERSION=b9879
+ARG LLAMA_SERVER_VERSION=b12429
 ARG LLAMA_SERVER_VARIANT=cpu
-ARG LLAMA_UPSTREAM_IMAGE=ghcr.io/ggml-org/llama.cpp:server-vulkan-b9879
</code_context>
<issue_to_address>
**Native installs still crash**

When a macOS or Windows install uses its default backend and receives deeply nested JSON, `pinnedServerVersion` remains `b9879`, so native install paths download the old backend and its copy/serialization stack overflow crashes the request.

Update `pinnedServerVersion` to `b12429` to match the new backend version.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread Dockerfile Outdated

ARG GO_VERSION=1.26.10
ARG LLAMA_SERVER_VERSION=b9879
ARG LLAMA_SERVER_VERSION=b12429

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Native installs still crash

When a macOS or Windows install uses its default backend and receives deeply nested JSON, pinnedServerVersion remains b9879, so native install paths download the old backend and its copy/serialization stack overflow crashes the request.

Update pinnedServerVersion to b12429 to match the new backend version.

Prompt for AI agents
In `Dockerfile` at line 4:

**Native installs still crash**

When a macOS or Windows install uses its default backend and receives deeply nested JSON, `pinnedServerVersion` remains `b9879`, so native install paths download the old backend and its copy/serialization stack overflow crashes the request.

Update `pinnedServerVersion` to `b12429` to match the new backend version.

@doringeman doringeman changed the title fix(llamacpp): bump Linux backend to b12429 for JSON nesting fixes fix(llamacpp): update backend and disable native UI downloads Nov 20, 2026
@doringeman doringeman changed the title fix(llamacpp): update backend and disable native UI downloads fix(llamacpp): pin stable v1.0.0 with JSON nesting fixes Nov 20, 2026

@ericcurtin ericcurtin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. All green.

@ericcurtin
ericcurtin merged commit cd5e6a4 into main Nov 20, 2026
14 checks passed
@ericcurtin

Copy link
Copy Markdown
Contributor

Merged, thanks. Follow-ups: bump pinnedServerVersion in download.go once the stable Docker Hub backend tags are published, and make the weekly bump also update .versions and the Dockerfile pins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants