Repository navigation
feat(llama-cpp): bump llama.cpp and add the moe_cache_cpu_share option - #13155
Merged
Merged
Conversation
…996dd22f0fe` Move the pin to the merge commit of ggml-org/llama.cpp#30966, which adds --moe-cache-cpu-share. The pin was 12 commits behind it. The score task patch applies with line offsets only, no fuzz or rejects. grpc-server builds and links on CPU, and its unit tests pass. Assisted-by: Claude:claude-sonnet-5-5 Signed-off-by: Ettore Di Giacinto <[email protected]>
Map the new model option to the upstream --moe-cache-cpu-share flag. Once the MoE cache is full, this share of the cache misses is computed by the CPU from the host experts instead of uploaded to the GPU. The value is a float from 0 to 1. Anything else is ignored with a warning, like moe_cache_mib. A build macro, set by prepare.sh from common.h, keeps older upstream forks building: they log a warning and ignore the option. Document the option next to moe_cache_mib, with a pointer to the upstream scripts/moe-cache-tune.py tuning script. Assisted-by: Claude:claude-sonnet-5-5 Signed-off-by: Ettore Di Giacinto <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Moves the pinned llama.cpp to ggml-org/llama.cpp#30966 and adds the model option for the flag that PR introduces.
e95426f1, 12 commits after the old one. Only that PR touches code the backend uses; the score task patch applies with line offsets only.moe_cache_cpu_share(upstream--moe-cache-cpu-share): the share of MoE cache misses that the CPU computes from the host experts instead of uploading them to the GPU once the cache is full. It takes a number from 0 to 1 and does nothing unlessmoe_cache_mibis above 0. A value outside the range is ignored with a warning.LOCALAI_HAS_MOE_CACHE_CPU_SHARE, set inprepare.shfromcommon/common.h, so a fork on an older llama.cpp still builds and logs a warning.moe_cache_mib. The best value depends on the hardware; upstream shipsscripts/moe-cache-tune.pyto find it, and the docs point to it.Notes for Reviewers
grpc-serverat the new pin, andctest13 of 13 including the new parser tests.Signed commits
🤖 Generated with Claude Code