Skip to content

Commit 2d5a96e

Browse files
Merge pull request #123 from bernardladenthin/claude/update-b9103-compatibility-AxH31
Upgrade llama.cpp to b9103 and cpp-httplib to v0.44.0
2 parents acc5baa + 997fc49 commit 2d5a96e

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

CLAUDE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
66

77
Java bindings for [llama.cpp](https://github.com/ggerganov/llama.cpp) via JNI, providing a high-level API for LLM inference in Java. The Java layer communicates with a native C++ library through JNI.
88

9-
Current llama.cpp pinned version: **b9102**
9+
Current llama.cpp pinned version: **b9103**
1010

1111
## Upgrading CUDA Version
1212

@@ -249,6 +249,7 @@ Also review the project `CMakeLists.txt` for build-system-level breaks (e.g. ren
249249
| ~b9094–b9102 | `src/llama-model.cpp` | `n_vocab` loading moved from `llama_model_base::load_hparams()` to per-model `load_arch_hparams()` (e.g. `src/models/deepseek2.cpp`, `src/models/llama.cpp`); internal model-loading refactor, no project changes required |
250250
| ~b9094–b9102 | `src/llama-model.cpp` | `ggml/src/ggml-virtgpu/ggml-backend-device.cpp` gains `#include <mutex>` for `std::once_flag`; internal backend fix, no project changes required |
251251
| ~b9094–b9102 | `vendor/cpp-httplib/httplib.cpp` + `httplib.h` | Security fix: chunk-size parsing replaced `strtoul` with manual hex-digit scanning to prevent overflow and reject invalid chunk extensions; version bumped to 0.43.4; compiled automatically, no project changes required |
252+
| ~b9102–b9103 | `vendor/cpp-httplib/httplib.cpp` + `httplib.h` | cpp-httplib bumped to v0.44.0: (1) RFC 9110 §5.5 compliance — header field values are no longer percent-decoded by the recipient in `parse_header`; `Location`/`Referer` special-casing removed; callers that need URI-component decoding must call `decode_uri_component()` explicitly; (2) `ThreadPool` constructor is now exception-safe — if thread creation fails partway through, already-started workers are signalled to exit and joined before rethrowing, preventing `std::terminate` from joinable threads in the destructor; compiled automatically, no project changes required |
252253

253254
## Build Commands
254255

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ set(GGML_AVX512 OFF CACHE BOOL "" FORCE)
9797
FetchContent_Declare(
9898
llama.cpp
9999
GIT_REPOSITORY https://github.com/ggerganov/llama.cpp.git
100-
GIT_TAG b9102
100+
GIT_TAG b9103
101101
)
102102
FetchContent_MakeAvailable(llama.cpp)
103103

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
![Java 8+](https://img.shields.io/badge/Java-8%2B-informational)
2-
[![llama.cpp b9102](https://img.shields.io/badge/llama.cpp-%23b9102-informational)](https://github.com/ggml-org/llama.cpp/releases/tag/b9102)
2+
[![llama.cpp b9103](https://img.shields.io/badge/llama.cpp-%23b9103-informational)](https://github.com/ggml-org/llama.cpp/releases/tag/b9103)
33
[![Snapshot](https://img.shields.io/badge/snapshot-latest-informational)](https://github.com/bernardladenthin/java-llama.cpp/releases/tag/snapshot)
44

55
# Java Bindings for [llama.cpp](https://github.com/ggerganov/llama.cpp)

0 commit comments

Comments
 (0)