本地跑模型:Ollama / LM Studio / llama.cpp / vLLM 怎么选Local runners: Ollama vs LM Studio vs llama.cpp vs vLLM
按硬件、量化格式、并发与服务化四面选 runtime;桌面图形、单机脚本、生产服务是三条不同路线。
Choose by hardware, quantization format, concurrency and serving needs; desktop GUI, single-machine scripting and production serving are three different routes.
先问三件事Three questions first
- 你在什么硬件上跑:Mac 统一内存、单张 NVIDIA、多卡服务器,路线不同。
- 你要图形界面还是脚本:桌面应用与 CLI / server 是两种使用方式。
- 你要一个人用,还是多人并发:并发会改变 runtime 与服务配置的需求。
- What hardware will you use? Mac unified memory, one NVIDIA GPU and a multi-GPU server require different paths.
- Do you want a GUI or scripts? A desktop application and a CLI/server are different ways of working.
- Is this for one user or concurrent users? Concurrency changes runtime and serving requirements.
四行对照Four runners
| 维度 | Ollama | LM Studio | llama.cpp | vLLM |
|---|---|---|---|---|
| 形态 | CLI + 本地 server | 桌面图形应用 | C/C++ 库 + llama-server | Python 服务 |
| 量化 | GGUF 为主 | GGUF(llama.cpp)与 MLX | GGUF 定义者 | 以 Hugging Face 权重与自量化为主 |
| 硬件 | macOS / Linux / Windows | macOS / Windows / Linux | 几乎全平台,CPU 也能跑 | NVIDIA GPU 为主 |
| 并发 | 单机轻量 | 单机 | 单机 | 面向多并发服务 |
| 许可 | 工具 MIT;权重许可随模型 | 应用闭源;条款全文未直抓 | MIT | Apache-2.0 |
| 强项 | 一条命令拉起、OpenAI 兼容 | 图形下载与双运行时 | 运行配置与集成 | PagedAttention、生产服务 |
| Dimension | Ollama | LM Studio | llama.cpp | vLLM |
|---|---|---|---|---|
| Form | CLI and local server | Desktop GUI | C/C++ library and llama-server | Python service |
| Quantisation | Mainly GGUF | GGUF through llama.cpp and MLX | Defines GGUF | Mainly Hugging Face weights and supported quantisation methods |
| Hardware/platform | macOS / Linux / Windows | macOS / Windows / Linux | Broad platform support, including CPU | Mainly NVIDIA GPUs in this snapshot |
| Concurrency | Lightweight single-machine use | Single machine | Single machine | Concurrent serving |
| Licence | Tool: MIT; model terms are separate | Closed-source application; full terms not directly retrieved | MIT | Apache-2.0 |
| Features to examine | Model startup and OpenAI-compatible endpoint | GUI downloads and two runtimes | Runtime configuration and integration | PagedAttention and serving |
逐个适用条件When each fits
Ollama:适合快速把开源模型跑起来、给本地应用接 OpenAI 兼容端点。能力边界:工具是 MIT,但权重许可跟着模型走,商用前要单独查模型许可。什么情况下选另一个:要图形界面与 MLX 加速,选 LM Studio。
LM Studio:适合不写代码、要在应用内下载并起本地服务器的人;MLX + llama.cpp 双运行时是它的差异点。能力边界:应用闭源,条款全文未能直抓,商用前要读官网条款。什么情况下选另一个:要脚本化与可嵌入,选 Ollama 或 llama.cpp。
llama.cpp:适合要 CPU 运行、或要自己调量化与上下文的场景;GGUF 格式由它定义,models 站的量化索引按它的口径建。什么情况下选另一个:要图形化或一条命令,选 Ollama / LM Studio。
vLLM:适合要把模型做成多人并发服务的人;PagedAttention 管显存,OpenAI 兼容 server 直接对接现有客户端。能力边界:以 NVIDIA GPU 为主,不是单机开箱工具。什么情况下选另一个:只是本机自用,先看桌面或 CLI 运行器是否符合需求。
Ollama: a candidate for starting an open-weight model and connecting a local application to an OpenAI-compatible endpoint. The tool's MIT licence does not determine model rights; check each model's licence separately before commercial use. Consider LM Studio if you need a GUI and MLX.
LM Studio: a candidate for downloading models and starting a local server through an application without writing code. It offers MLX and llama.cpp runtimes. The application is closed-source; the full terms were not directly retrieved in this snapshot. Read the official terms before commercial use. Consider Ollama or llama.cpp for scripting and embedding.
llama.cpp: a candidate when you need CPU execution or control over quantisation and context configuration. It defines GGUF, whose conventions inform this site's model index. Consider Ollama or LM Studio when you prefer their startup or GUI workflow.
vLLM: a candidate for serving a model to concurrent users, with PagedAttention and an OpenAI-compatible server. This snapshot focuses on NVIDIA GPU serving, rather than a desktop GUI. For local personal use, examine a desktop or CLI runtime first.
量化档怎么选Picking a quantization tier
本站 models 站的快照(2026-10-30)是:129 个量化仓、1,262 个量化档、1,337 个 GGUF 文件。选档顺序:
- 先预算可用内存,包括上下文与运行器开销,再定档位。
- 再核对量化者使用的基座、方法、版本与说明;不能只凭量化者名字判断质量。
- 最后看文件:同档可能有多个 GGUF 文件,按 bpw、总体积与是否需要全部分片核对。
不写「某档一定最好」;模型、任务与硬件三者一起决定。
The model site's 2026-10-30 snapshot lists 129 quantisation repositories, 1,262 variants and 1,337 GGUF files. Work through:
- Budget available memory, including context and runtime overhead, before selecting a tier.
- Check the quantiser's source model, method, version and documentation. A quantiser name alone does not establish quality.
- Check the actual files: one tier can contain several GGUF files; verify bits per weight, total size and whether all shards are required.
There is no tier that is always best. Model, task and hardware constraints must be considered together.
核验事实Dated facts
- llama.cpp 定义 GGUF,许可证 MIT,llama-server 提供官方 REST 端点(仓库,2026-10 快照)。
- vLLM 使用 PagedAttention,提供 OpenAI 兼容 server,Apache-2.0(官方文档,2026-10 快照)。
- LM Studio 应用内下载模型,MLX + llama.cpp 双运行时,内置本地服务器;应用闭源(官方站,2026-10 快照)。
- Ollama 工具 MIT,但权重许可随模型;官方 README 另写有云端线(官方仓库,2026-10 快照)。
- 本站量化索引为 129 仓 / 1,262 档 / 1,337 文件(models 站,2026-10-30 快照)。
- llama.cpp defines GGUF, is MIT-licensed and supplies the llama-server REST endpoint (repository; October 2026 snapshot).
- vLLM uses PagedAttention, supplies an OpenAI-compatible server and is Apache-2.0-licensed (official documentation; October 2026 snapshot).
- LM Studio downloads models inside the application, offers MLX and llama.cpp runtimes and has a built-in local server; the application is closed-source (official site; October 2026 snapshot).
- Ollama's tool licence is MIT; model licences are separate. Its README also describes a cloud offering (official repository; October 2026 snapshot).
- This site's quantisation snapshot lists 129 repositories, 1,262 variants and 1,337 files (model site; 2026-10-30 snapshot).
常见误判Common misreads
- 把「工具开源」当成「模型可商用」:许可证是两份文件。
- 把「能跑」当成「跑得快」:显存、量化与并发三者一起决定吞吐。
- 把「桌面应用」当成「生产服务」:并发与稳定性不是同一目标。
- 把「GGUF 通用」当成「所有 runtime 都支持」:不同 runtime 的算子覆盖不同。
- An open-source tool does not establish commercial rights for a model; the licences are separate.
- Being able to load a model does not establish its speed. Memory, quantisation and concurrency affect throughput.
- A desktop application and a production service have different concurrency and reliability requirements.
- GGUF does not imply universal runtime support. Architecture and operator coverage vary by runtime and version.
出处Sources
| 来源Source | 链接URL |
|---|---|
| Ollama · 官方站与文档(一条命令、OpenAI 兼容 API;工具 MIT,权重许可随模型;2026-10 快照)Ollama: official site and documentation (startup, OpenAI-compatible API; tool MIT, model licences separate; October 2026 snapshot) | https://ollama.comhttps://ollama.com/ |
| LM Studio · 官方站(MLX + llama.cpp 双运行时、内置本地服务器、应用闭源;2026-10 快照)LM Studio: official site (MLX and llama.cpp runtimes, local server, closed-source application; October 2026 snapshot) | https://lmstudio.aihttps://lmstudio.ai/ |
| llama.cpp · 官方仓库(定义 GGUF、MIT、llama-server REST;2026-10 快照)llama.cpp: official repository (GGUF, MIT, llama-server REST; October 2026 snapshot) | https://github.com/ggml-org/llama.cpphttps://github.com/ggml-org/llama.cpp |
| vLLM · 官方文档(PagedAttention、OpenAI 兼容 server、Apache-2.0;2026-10 快照)vLLM: official documentation (PagedAttention, OpenAI-compatible server, Apache-2.0; October 2026 snapshot) | https://docs.vllm.aihttps://docs.vllm.ai/ |
| models.specul.com · 量化索引(129 量化仓 / 1,262 量化档 / 1,337 GGUF,2026-10-30 快照)This site: quantisation index (129 repositories, 1,262 variants and 1,337 GGUF files; 2026-10-30 snapshot) | https://models.specul.com/https://models.specul.com/ |
资料快照日期:2026-11-03;单项复核范围与日期见对应正文或来源记录。产品功能与条款可能变化,使用前请核对原始来源。Source snapshot: 2026-11-03; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.