🖥️ 本地部署
llama.cpp 免费吗?价格、免费额度与海外可用性
C/C++ 写的推理引擎,GGUF 格式与 k-quant / i-quant 量化的发源地。CPU、CUDA、Metal、Vulkan、ROCm 全后端覆盖,从 8B 笔记本到 405B 服务器都能跑,也是绝大多数本地工具(Ollama、LM Studio、KoboldCpp 等)的底层。
The C/C++ inference engine where GGUF and k-quant / i-quant quantization were born. Backends for CPU, CUDA, Metal, Vulkan and ROCm cover everything from an 8B model on a laptop to 405B on a server, and it underpins most local tools (Ollama, LM Studio, KoboldCpp and more).
这个工具擅长什么 / Highlights
量化工具链与跨平台后端最全,是本地推理生态的地基
The most complete quantization toolchain and backend coverage — the foundation of local inference
价格与免费额度 / Pricing & free tier
免费开源(MIT)
详细介绍 / Overview
GGUF 与 k-quant / i-quant 量化的事实标准实现,纯 C/C++ 编写,不依赖 PyTorch。CPU、CUDA、Metal、Vulkan、ROCm、SYCL 全后端覆盖,同一份 GGUF 文件在 Windows、macOS、Linux、甚至手机上都能跑。自带 llama-server、llama-quantize、llama-bench 等工具,量化、压测、起服务全在命令行里解决。你在用的 Ollama、LM Studio、KoboldCpp,本质都是给它套了层壳。
站长心得 / Our take
本地推理世界的地基。想认真做量化,绕不开它:官方 README 里那张各量化档位的体积与吞吐实测表,是整个社区选档位的依据。缺点是纯命令行,文档靠 README 和 PR,新手第一天会有点懵。建议路径是先用 Ollama 跑通,需要精细控制量化参数时再回来啃 llama-quantize。
Overview (English)
The C/C++ inference engine where GGUF and k-quant / i-quant quantization originated. Runs on CPU, CUDA, Metal, Vulkan and ROCm, from an 8B model on a laptop to 405B on a server, and it underpins most local tools — Ollama, LM Studio, KoboldCpp and others are largely wrappers around it. Ships llama-quantize, llama-bench and llama-server.
Our take (English)
The foundation of the local inference world, and worth learning if you care about quantization.
Where it winsThe quantization toolchain is the reference — the published size and throughput tables for each quant level are what the whole community uses to choose. Backend coverage is unmatched, so the same GGUF runs everywhere.
Where to be carefulIt is command-line only, and documentation lives in the README and pull requests rather than a guide. The first day is confusing.
VerdictStart with Ollama to get running, then come back here when you need real control over quantization parameters. If you are choosing quant levels for production, you need to understand this tool.
常见问题 / FAQ
Q:这个工具免费吗?
有免费档位:免费开源(MIT)
Q: Is it free?
A: Yes, there is a free tier: 免费开源(MIT)
Q:免费额度有多少?
免费开源(MIT)
Q: How much free quota is there?
A: 免费开源(MIT)
Q:支持海外访问吗?
全球可访问;个别服务可能需要当地账号或网络条件。
Q: Is it available overseas?
A: Globally accessible; some services may need a local account or specific network conditions.
Q:有 API 吗?
提供 API / SDK,接入方式见官网文档。
Q: Does it have an API?
A: Yes — API / SDK access is documented on the official site.