Skip to content

Upgrade llama.cpp from b9549 to b9553#216

Merged
bernardladenthin merged 3 commits into
mainfrom
claude/amazing-noether-p7THl
Jun 8, 2026
Merged

Upgrade llama.cpp from b9549 to b9553#216
bernardladenthin merged 3 commits into
mainfrom
claude/amazing-noether-p7THl

Conversation

@bernardladenthin

Copy link
Copy Markdown
Owner

Summary

  • Upgrade llama.cpp dependency from b9549 to b9553
  • Add comprehensive test coverage for sampler name parsing behavior changes in the upstream release
  • Update documentation to reflect the new llama.cpp version and sampler API changes
  • Add JPMS module descriptor guidance to CLAUDE.md

Details

llama.cpp b9553 Changes

The upstream release modified common_sampler_types_from_names() to:

  • Drop the allow_alt_names parameter — sampler name matching is now always lenient
  • Auto-generate aliases from canonical snake_case names (e.g., top-k, topk)
  • Support miscellaneous aliases (nucleustop_p, temptemperature, typtypical_p)
  • Make matching case-insensitive (e.g., TOP_K, Temperature now accepted)

This project has no call sites to this function, so no source-level changes were required. However, the server's JSON "samplers" field now accepts a broader range of input formats.

Test Coverage

Added 5 new unit tests to test_server.cpp documenting the new behavior:

  • Samplers_CanonicalNames_Parsed — canonical snake_case names work
  • Samplers_KebabCaseAlias_NowAccepted — kebab-case aliases (top-k, min-p) now accepted
  • Samplers_CaseInsensitive — case-insensitive matching (TOP_K, Temperature, Min-P)
  • Samplers_MiscAliases_Parsed — miscellaneous aliases (nucleus, temp, typ)
  • Samplers_UnknownName_SkippedNotError — unknown names are warned and skipped

Documentation Updates

  • CMakeLists.txt: Updated GIT_TAG from b9549 to b9553
  • README.md: Updated llama.cpp version badge and link
  • CLAUDE.md:
    • Updated pinned version to b9553
    • Added new "JPMS Module Descriptor" section documenting javadoc/JPMS interaction constraints
  • docs/history/llama-cpp-breaking-changes.md: Documented the sampler API change and verified no project impact

Test plan

  • Added 5 new unit tests covering sampler name parsing behavior
  • Verified local build with cmake -B build && cmake --build build --config Release passes cleanly
  • All 435 upstream tests pass with b9553

Related issues / PRs

Upstream: llama.cpp b9553

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_01LmHENudRrQiLao8vAPmmCB

claude added 3 commits June 7, 2026 22:09
API compatibility: the only breaking change in this range is
common_sampler_types_from_names() dropping its `bool allow_alt_names`
parameter (common/sampling.h). All call sites (common/arg.cpp,
common/common.cpp, tools/server/server-task.cpp) are upstream-compiled
translation units that upstream updated in the same patch; grep confirms
zero references to the symbol in src/main/cpp / src/test/cpp, so no
project C++ source change is required.

New behaviour gained for free: server-task.cpp previously passed
allow_alt_names=false, so the project's "samplers" JSON field only matched
canonical snake_case names. b9553 always accepts aliases (top-k, topk,
nucleus, temp, typ) and is case-insensitive. Added 5 params_from_json_cmpl
tests in test_server.cpp pinning this.

Other changes in range are no-ops for the JNI build: the llama-kv-cache
shared-cells refactor (internal src/ headers not included by the project;
new `using llama_kv_cells_vec`) and two Python conversion-script .get()
robustness fixes.

Updated GIT_TAG (CMakeLists.txt), the README badge/link, and the CLAUDE.md
pinned version. cmake configure verified clean against b9553; full
build + ctest verification and the breaking-changes log row to follow.
…/440 build

Records the common_sampler_types_from_names signature change (and the free
lenient-sampler-name behaviour), the llama-kv-cache shared-cells refactor,
and the Python conversion-script fixes. Build + ctest verified clean against
b9553: 440/440 tests pass (435 prior + 5 new Samplers_* tests).
@bernardladenthin bernardladenthin merged commit 4185529 into main Jun 8, 2026
4 of 9 checks passed
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

@bernardladenthin bernardladenthin deleted the claude/amazing-noether-p7THl branch June 8, 2026 06:53
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