macOS
brew install llama.cpplocal Homebrew formula metadata
sudo port install llama.cppMacPorts ports tree · llm/llama.cpp/Portfile · 来源: api.github.com
安装
brew install llama.cpplocal Homebrew formula metadata
sudo port install llama.cppMacPorts ports tree · llm/llama.cpp/Portfile · 来源: api.github.com
sudo dnf install llama-cppFedora Rawhide package metadata · llama-cpp · 来源: dl.fedoraproject.org
nix profile install nixpkgs#llama-cppnixpkgs package indexes · pkgs/by-name/ll/llama-cpp/package.nix · 来源: api.github.com
sudo apk add llama-serverAlpine Linux edge package indexes · llama-server · 来源: dl-cdn.alpinelinux.org
winget install --id ggml.llamacpp -eWindows Package Manager source index · ggml.llamacpp · 来源: cdn.winget.microsoft.com
概览
LLM inference in C/C++
历史
llama.cpp is one of the defining packages of the local-LLM era: a C/C++ inference stack that made it practical to run quantized transformer models on laptops, desktops, servers, and small devices without a heavyweight Python runtime.
The repository was created on GitHub on March 10, 2023, shortly after Meta's LLaMA model release changed the center of gravity for local language-model experimentation. The README states the project goal as LLM inference with minimal setup and strong performance across local and cloud hardware.
The project is closely tied to ggml. Its README describes llama.cpp as the main playground for developing new ggml features, and the implementation grew around plain C/C++, integer quantization, CPU backends, and hardware accelerators such as Metal, CUDA, Vulkan, SYCL, HIP, and related GPU paths.
As model support broadened beyond the original LLaMA family, llama.cpp became a runtime and tooling umbrella: converters, quantizers, benchmarking tools, embedding tools, an OpenAI-compatible server, multimodal support, and many model-family loaders are represented in the command set and documentation.
Package adoption spread because llama.cpp lowered the cost of trying local inference: build from source, install from Homebrew, Nix, winget, conda-forge, Docker, or download release binaries, then run a model file or fetch one from Hugging Face-oriented workflows.
The README's bindings list shows the surrounding ecosystem that formed around the C/C++ core, including Python, Go, Node.js, Ruby, browser/Wasm, editor-completion plugins, and server clients. That ecosystem made llama.cpp both an end-user CLI and a library/runtime target for other packages.
Its high-frequency build-tag release pattern reflects active downstream pressure: package managers, bindings, model hubs, and local-AI applications all depend on fast propagation of backend, quantization, and model-format changes.
Users run llama-cli for local prompts, llama-server for an OpenAI-compatible HTTP API, llama-bench for performance testing, llama-quantize for smaller model files, and many auxiliary tools for embeddings, perplexity, retrieval, tokenization, and model-file manipulation.
The package is especially useful when a developer wants a self-contained inference engine: compile once, point it at a model, and choose a CPU/GPU backend without adopting a full ML framework stack.
For package maintainers, llama.cpp is unusually dynamic: hardware backend flags, model-format transitions, CLI renames, bundled tools, and release cadence all matter. It turned local AI into something package managers had to treat like a fast-moving systems tool rather than a single Python application.
It is also a packaging bridge between model hubs and Unix tooling. The same project can be installed as a formula, used as a server daemon, linked by language bindings, wrapped by desktop apps, or embedded in another inference product.
安全态势
没有找到 llama.cpp 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
llama | cli | 全局可执行文件 | |
llama-batched | cli | 全局可执行文件 | |
llama-batched-bench | cli | 全局可执行文件 | |
llama-bench | cli | 全局可执行文件 | |
llama-cli | cli | 全局可执行文件 | |
llama-completion | cli | 全局可执行文件 | |
llama-debug | cli | 全局可执行文件 | |
llama-debug-template-parser | cli | 全局可执行文件 | |
llama-diffusion-cli | cli | 全局可执行文件 | |
llama-embedding | cli | 全局可执行文件 | |
llama-eval-callback | cli | 全局可执行文件 | |
llama-finetune | cli | 全局可执行文件 | |
llama-fit-params | cli | 全局可执行文件 | |
llama-gen-docs | cli | 全局可执行文件 | |
llama-gguf | cli | 全局可执行文件 | |
llama-gguf-hash | cli | 全局可执行文件 | |
llama-gguf-split | cli | 全局可执行文件 | |
llama-idle | cli | 全局可执行文件 | |
llama-imatrix | cli | 全局可执行文件 | |
llama-lookahead | cli | 全局可执行文件 | |
llama-lookup | cli | 全局可执行文件 | |
llama-lookup-create | cli | 全局可执行文件 | |
llama-lookup-merge | cli | 全局可执行文件 | |
llama-lookup-stats | cli | 全局可执行文件 | |
llama-mtmd-cli | cli | 全局可执行文件 | |
llama-parallel | cli | 全局可执行文件 | |
llama-passkey | cli | 全局可执行文件 | |
llama-perplexity | cli | 全局可执行文件 | |
llama-quantize | cli | 全局可执行文件 | |
llama-results | cli | 全局可执行文件 | |
llama-retrieval | cli | 全局可执行文件 | |
llama-server | cli | 全局可执行文件 | |
llama-simple | cli | 全局可执行文件 | |
llama-simple-chat | cli | 全局可执行文件 | |
llama-speculative | cli | 全局可执行文件 | |
llama-speculative-simple | cli | 全局可执行文件 | |
llama-template-analysis | cli | 全局可执行文件 | |
llama-tokenize | cli | 全局可执行文件 | |
llama-tts | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/ggml-org/llama.cpp
安装元数据
| 软件包键 | brew:llama.cpp |
|---|---|
| 版本 | 9910 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/llama.cpp |
| 主页 | https://llama.app |
| 仓库 | https://github.com/ggml-org/llama.cpp |
| 上游文档 | https://github.com/ggml-org/llama.cpp#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/ggml-org/llama.cpp.git |
| 最后更新 | 2026-07-08T09:32:56Z |
| Pulse | updated |
| 依赖 | ggml, openssl@3 |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | llama.cpp |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
llama-cpp
nix profile install nixpkgs#llama-cppllama-server 0.0.9564-r0
llama.cpp server
https://github.com/ggml-org/llama.cpp
sudo apk add llama-serverllama-server-openrc 0.0.9564-r0
llama.cpp server (OpenRC init scripts)
https://github.com/ggml-org/llama.cpp
sudo apk add llama-server-openrcllama.cpp 0.0.9564-r0
LLM inference in C/C++ (with Vulkan GPU acceleration)
https://github.com/ggml-org/llama.cpp
sudo apk add llama.cppllama.cpp-cpu 0.0.9564-r0
LLM inference in C/C++ (with Vulkan GPU acceleration)
https://github.com/ggml-org/llama.cpp
sudo apk add llama.cpp-cpullama.cpp-dev 0.0.9564-r0
LLM inference in C/C++ (with Vulkan GPU acceleration) (development files)
https://github.com/ggml-org/llama.cpp
sudo apk add llama.cpp-devllama.cpp-extras 0.0.9564-r0
llama.cpp additional binaries
https://github.com/ggml-org/llama.cpp
sudo apk add llama.cpp-extrasllama.cpp-libs 0.0.9564-r0
LLM inference in C/C++ (with Vulkan GPU acceleration) (shared libraries)
https://github.com/ggml-org/llama.cpp
sudo apk add llama.cpp-libsllama.cpp-vulkan 0.0.9564-r0
LLM inference in C/C++ (with Vulkan GPU acceleration)
https://github.com/ggml-org/llama.cpp
sudo apk add llama.cpp-vulkanllama-cpp b8064-1.fc45
Port of Facebook's LLaMA model in C/C++
https://github.com/ggerganov/llama.cpp
sudo dnf install llama-cppllama-cpp-devel b8064-1.fc45
Port of Facebook's LLaMA model in C/C++
https://github.com/ggerganov/llama.cpp
sudo dnf install llama-cpp-develllama.cpp
sudo port install llama.cppggml.llamacpp
winget install --id ggml.llamacpp -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.