feat: add llamacpp 0.1.0 C++23 module package - #138
Merged
Conversation
Sunrisepeak
self-requested a review
July 29, 2026 23:11
Sunrisepeak
approved these changes
Jul 29, 2026
Member
|
感觉0.0.2上面可以加几个模板功能, 这样就可以 具体可以参考 这个 imgui 模块化的封装层里的 模板示例 |
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.
Summary
mcpplibs.llamacpp0.1.0 as a minimal Form A descriptor backed by the releasedllama.cpp-marchivellamacppC++23 module and execute real API assertionsRelease identity
9af34d44349e520f2f9bd2eace29eb6a634ab4633a7f3bafa225f77be178ca84llama.cpp-m 0.1.0 -> llama.cpp b10069 (178a6c44937154dc4c4eff0d166f4a044c4fceba)8876f2cec7294a938fadb50dfbd9296dff6d0bebThe archive contains its own
mcpp.toml, so the index descriptor intentionally omits themcppfield. There is no authorized byte-identical CN mirror yet; the descriptor uses the plain upstream GitHub URL.Use
Consumers do not download or unpack the Release manually:
CPU is enabled by default. Enable Metal on macOS ARM64 in
mcpp.toml:Supported boundary
backend-metalimport llamacpp;exposing the audited llama.cpp C API surfacemtmd, CUDA, Vulkan, RPC, or other upstream backendsUpdate policy
llama.cpp-mdoes not chase every daily llama.cpp commit. Each package version pins one reviewed upstream checkpoint and keeps that mapping immutable. A new wrapper/index version is cut when an upstream change has consumer value, such as required model/API support, a relevant correctness or security fix, or a measured backend improvement.Each update imports a new checkpoint, regenerates and audits the module API, runs cold package builds and real inference across the supported matrix, then publishes a new
llama.cpp-mversion. The index appends that version; it never changes the URL or SHA-256 of0.1.0. The repository's scheduled upstream check reports drift without automatically publishing unreviewed snapshots. See the full update policy.Validation
mcpp 0.0.109 xpkg parse pkgs/l/llamacpp.lua: Form A, parse OKgit diff --check: passed(mcpplibs, llamacpp)packageLLAMACPP_INDEX_TEST=PASSbackend-metal, loaded the embedded Metal library, registeredMTL0 (Apple M4), and printedLLAMACPP_METAL_INDEX_TEST=PASSmcpp newconsumer:mcpp add llamacpp@0.1.0wrotellamacpp = "0.1.0", then cold-downloaded, built, and ran the package33/33layers, allocated a 2571.63 MiB Metal model buffer and 10.64 MiB Metal compute buffer, then decoded/sampled 32 tokens at 23.43 tokens/s on Apple M4llamacppandllamacpp-metalNo
index.tomlor workflow pin change is required; the existing mcpp floor remains0.0.109.