llama.cpp
由 ggml-org 维护的开源 C/C++ 推理引擎,可在 CPU 和 GPU 硬件上本地运行大型语言模型
llama.cpp 是由 ggml-org 维护的开源 C/C++ 推理引擎,用于在消费级和工作站硬件上本地运行大型语言模型。2026 年 11 月 26 日,ggml-org 在 Hugging Face 上发布了 AMD Ryzen 和 Radeon 基准测试仪表板,从零上下文深度出发,分别测量不同模型、构建版本和量化方式下的 PP512 提示处理和 TG128 token 生成性能。
- 维护者 / 代码仓库
- ggml-org (github.com/ggml-org/llama.cpp)3截至 2026-11-28
- 实现语言
- C / C++3截至 2026-11-28
- AMD 基准测试仪表板发布
- 2026 年 11 月 26 日(Radeon 8060S gfx1151 和 Radeon AI Pro R9700S gfx1201)1截至 2026-11-26
- 核心基准指标
- PP512(512 个输入 token,无生成)和 TG128(128 个输出 token,深度为 0)1截至 2026-11-26
llama.cpp 是在 ggml-org 下开发的开源 C 和 C++ 推理引擎,用于在个人电脑、工作站和 GPU 上本地执行大型语言模型。它包含用于标准化吞吐量测量的 `llama-bench` 工具,并为通过 `llama-install.sh` 分发的预构建本地安装版本以及独立的 Llama 桌面应用提供支持。2026 年 11 月 26 日,ggml-org 在 Hugging Face 上推出了面向 AMD Ryzen 和 Radeon 的公开基准测试仪表板,分别跟踪不同模型、构建版本和量化方式下的提示处理(PP512)和 token 生成(TG128)吞吐量。
别名 llama.cpp, 라마닷시피피
llama.cpp 架构与本地推理生态系统
llama.cpp 是托管在 ggml-org 下的开源 C/C++ 项目,无需依赖云端 API 即可在本地硬件上进行大型语言模型推理。3 除核心推理引擎外,该代码仓库还维护 llama-bench,用于在不同量化格式和硬件后端上进行可复现的命令行基准测试。4 预构建二进制文件通过 llama-install.sh 打包,该脚本同时也支撑了独立的 llama.app 本地桌面应用。16
- 3ggml-org/llama.cpp: LLM inference in C/C++GitHub (ggml-org)
- 4llama-bench READMEggml-org (GitHub)
- 1Introducing the llama.cpp benchmark dashboard for AMD Ryzen and Radeon hardwareggml-org (Hugging Face Blog)
- 6Llama - Your AI, on your computerggml-org / Llama
PP512 提示处理与 TG128 token 生成的分别测量方式
2026 年 11 月 26 日,ggml-org 在 Hugging Face Spaces 上发布了 llama.cpp x AMD 基准测试仪表板(llama.cpp x AMD Benchmark),用于长期跟踪 AMD Ryzen 和 Radeon 硬件上的本地推理性能,首批包括 Radeon 8060S (gfx1151) 和 Radeon AI Pro R9700S (gfx1201)。12 该仪表板并未将性能合并为单一分数,而是以每秒 token 数(平均吞吐量,avg_ts)报告两种不同的工作负载,两者均从上下文深度零开始(n_depth=0):1
- 1Introducing the llama.cpp benchmark dashboard for AMD Ryzen and Radeon hardwareggml-org (Hugging Face Blog)
- 2llama.cpp x AMD Performance Explorerggml-org (Hugging Face Spaces)
| 基准指标 | 测量的工作负载 | 起始上下文深度 | 含义 |
|---|---|---|---|
| PP512 | 处理 512 个输入 token,不生成文本 | 0(n_depth=0) | 提示摄入 / 预填充速度 |
| TG128 | 在没有既有上下文的情况下生成 128 个输出 token | 0(n_depth=0) | 自回归解码速度 |
| 上下文缩放标签页 | 上下文长度增加时的 token 生成吞吐量 | 逐步增长的上下文 | 较长上下文下的内存带宽影响 |
公开的每周基准测试工作流
ggml-org 同时发布基准测试结果以及自动化的 GitHub Actions 工作流(例如 llama-install.sh 中的 bench-gfx1151.yml),这些工作流每周使用 llama-bench 针对预构建二进制文件运行。15 公开这些工作流使开发者能够验证内核、构建版本和模型更新如何随时间影响 AMD 本地推理吞吐量。1
- 1Introducing the llama.cpp benchmark dashboard for AMD Ryzen and Radeon hardwareggml-org (Hugging Face Blog)
- 5bench-gfx1151.yml Benchmark Workflowggml-org (GitHub)
截至 2026 年 11 月的基准数据局限
截至 2026 年 11 月 28 日,AMD 仪表板上的吞吐量数据反映的是特定参考硬件上受控的零深度和上下文缩放测试配置,并不保证任何个人用户设备或实际应用环境中的速度。1 此外,每秒 token 吞吐量仅衡量执行速度,无法评估模型回答的准确性或质量。14
- 1Introducing the llama.cpp benchmark dashboard for AMD Ryzen and Radeon hardwareggml-org (Hugging Face Blog)
- 4llama-bench READMEggml-org (GitHub)
常见问题
可引用的句子
2026 年 11 月 26 日,ggml-org 在 Hugging Face 上推出了 llama.cpp x AMD 基准测试仪表板,涵盖 Radeon 8060S (gfx1151) 和 Radeon AI Pro R9700S (gfx1201)。
12AMD 基准测试仪表板区分了 PP512(处理 512 个输入 token,不生成)和 TG128(在没有先前上下文的情况下生成 128 个 token),两者均从上下文深度零开始。
1ggml-org 在通过 llama-install.sh 分发的预构建二进制文件上运行每周公开基准测试工作流,llama-install.sh 是 llama.app 背后的安装项目。
156llama.cpp 使用 C 和 C++ 在 ggml-org 下维护,并包含 llama-bench 基准测试工具。
34
时间线
来源
学术与新闻
- 1Introducing the llama.cpp benchmark dashboard for AMD Ryzen and Radeon hardware · ggml-org (Hugging Face Blog) · 发布于 2026-11-26 · 访问于 2026-11-28https://huggingface.co/blog/ggml-org/llamacpp-amd-bench
- 2llama.cpp x AMD Performance Explorer · ggml-org (Hugging Face Spaces) · 访问于 2026-11-28https://ggml-org-llamacpp-amd-bench.static.hf.space/index.html
- 3ggml-org/llama.cpp: LLM inference in C/C++ · GitHub (ggml-org) · 访问于 2026-11-28https://github.com/ggml-org/llama.cpp
- 4llama-bench README · ggml-org (GitHub) · 访问于 2026-11-28https://raw.githubusercontent.com/ggml-org/llama.cpp/master/tools/llama-bench/README.md
- 5bench-gfx1151.yml Benchmark Workflow · ggml-org (GitHub) · 访问于 2026-11-28https://github.com/ggml-org/llama-install.sh/blob/master/.github/workflows/bench-gfx1151.yml
官方网站
- 6Llama - Your AI, on your computer · ggml-org / Llama · 访问于 2026-11-28https://llama.app/
审阅与撰写记录
尚无专家签署此版本
签名将一位资质已核实者的实名,在特定日期,与版本 c5067c4c 绑定。正文一旦改动,签名即留在旧版本上。
本页的撰写方式
依据上列公开一手来源自动撰写。尚未经人工审阅,也没有任何人为其刊载付费。
版本
c5067c4c08b67ef17205ecf1e2c1b37a1997ec3fdd73b9e7d7b53e1fa049f70e
规范文档的 SHA-256 哈希。改动一个字符即产生新版本。
Mimirwiki. "llama.cpp." 版本 c5067c4c, 2026-11-28. https://mimirwiki.com/zh/wiki/llama-cpp
# Markdown curl https://mimirwiki.com/zh/wiki/llama-cpp.md # JSON-LD, by content negotiation curl -H "Accept: application/ld+json" \ https://mimirwiki.com/zh/wiki/llama-cpp
相同内容,相同 URL。添加扩展名或发送 Accept 请求头即可。