Skip to content

Upgrade llama.cpp from b10938 to b10948 - #436

Merged
bernardladenthin merged 2 commits into
mainfrom
claude/beautiful-galileo-aybxe4
Sep 13, 2026
Merged

Upgrade llama.cpp from b10938 to b10948#436
bernardladenthin merged 2 commits into
mainfrom
claude/beautiful-galileo-aybxe4

Conversation

@bernardladenthin

Copy link
Copy Markdown
Owner

Summary

  • Upgrade pinned llama.cpp version from b10938 to b10948 across all configuration files and documentation
  • Drop patch 0013-s390x-repack-guard-vxe-only-helpers.patch — upstream merged the equivalent fix as ggml-org/llama.cpp#28775 (commit 6978052, first tagged at b10948)
  • Update CLAUDE.md with detailed explanation of why the patch was dropped and guidance for future VXE-related issues on s390x

Details

Patch removal: The s390x repack helper guard that 0013 added is now present upstream, byte-identical except for a trailing comment. The patch applier correctly fails with "does not apply cleanly" at configure time, as designed. Per the documented precedent (0009), the patch is dropped rather than refreshed.

s390x configuration note: The underlying configuration (scalar s390x binary via -DGGML_NATIVE=OFF in the cross-build job) remains unchanged and correct. CLAUDE.md now documents this configuration and warns against the tempting but incorrect fix of adding -DGGML_VXE=ON (which would cause dozens of z14+ builtin errors). Future VXE-related breaks should be checked against this description before reintroducing a local patch.

Version updates: All references to b10938 updated to b10948:

  • llama/CMakeLists.txt — FetchContent GIT_TAG
  • llama/src/main/java/net/ladenthin/llama/value/LlamaCppVersion.java — compile-time constant
  • README.md — badge link
  • .github/workflows/publish.yml — s390x build comment
  • docs/history/llama-cpp-breaking-changes.md — history entry
  • CLAUDE.md — multiple references in documentation and examples

Test plan

  • CI is green on this branch (patch applier detects the dropped patch correctly; all version references are consistent)
  • No code logic changes — version bump only

Related issues / PRs

Upstream: ggml-org/llama.cpp#28775

Checklist

  • I have read CONTRIBUTING.md and CODE_OF_CONDUCT.md
  • My commits follow Conventional Commits
  • No security-sensitive changes

https://claude.ai/code/session_01SuJySZsHGCaxFq5Jo5cEtc

Upstream merged this project's own PR ggml-org/llama.cpp#28775
("ggml-cpu(s390x): guard VXE-only repack helpers", commit 6978052),
first tagged at b10948, so patches/0013 is now redundant: pristine
b10948 already wraps vxe_dot_acc / vxe_splat_granule / vxe_fold in the
#if defined(__VXE__) || defined(__VXE2__) guard the patch added, and
`git apply` of the patch fails "does not apply" exactly as the
fail-loud applier is designed to signal. Dropped, not refreshed, per
the 0009 precedent at b10280.

The rationale that outlives the patch -- why build-linux-s390x is a
scalar (non-VXE) cross build, and why -DGGML_VXE=ON is the wrong
response to a future VXE compile error -- moves into a "0013 was
dropped at the b10948 bump" note in CLAUDE.md; the s390x job's own
comment in publish.yml now points there.

Verified against pristine b10948: patches 0001-0012 apply clean, 0013
fails; the three standing drop-checks still say "still required"
(0001 no common_params_parse_main in common/arg.h; 0010 vocab_type
still uncast at server-context.cpp:4554; 0012 bare
splits[i] /= split_sum at llama-model.cpp:1491). A fresh
`cmake -B build -DBUILD_TESTING=ON` configures clean through the real
FetchContent path, stamping nine patches at head 5f436dddb (= b10948),
with extraction unchanged at 138 CLI / 57 request / 15 trainer names.
With the real s390x-linux-gnu-g++ cross toolchain, upstream's guarded
repack.cpp compiles clean both with the CI job's scalar flags and with
-mvx -mzvector -march=z15.

The rest of the range touches no file on the API-compatibility review
list: no common/, include/, tools/server/ or tools/mtmd/ changes, so
the three mechanical server-contract greps have no input to compare.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SuJySZsHGCaxFq5Jo5cEtc
…g-changes history

Two rows, per the version-bump runbook's step 4: what moved in the
range (nothing on the priority API-compatibility review list -- no
common/, include/, tools/server/ or tools/mtmd/ files, so the three
mechanical server-contract greps have no input to compare), and the
patch/upstream-verification row for the drop of patches/0013.

The verification row records what was actually run rather than
inferred: 0001-0012 apply at pristine b10948 and 0013 fails; the three
standing drop-checks still say "still required"; the s390x half
re-checked with the real s390x-linux-gnu-g++ cross toolchain (upstream's
guarded repack.cpp compiles clean under both the job's scalar flags and
-mvx -mzvector -march=z15); a fresh configure stamping nine patches at
head 5f436dddb; extraction unchanged at 138/57/15 names; ctest 537/537;
40 Java_* exports, 0 mangled; and the NativeLibraryLoadSmokeTest run
(4/4, 0 skipped) that cross-validates the bumped LLAMA_CPP_VERSION
constant against the linked build-info.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SuJySZsHGCaxFq5Jo5cEtc
@bernardladenthin
bernardladenthin merged commit 3b7fb1c into main Sep 13, 2026
8 of 14 checks passed
@bernardladenthin
bernardladenthin deleted the claude/beautiful-galileo-aybxe4 branch September 13, 2026 21:47
@sonarqubecloud

Copy link
Copy Markdown

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