读见

推出面向 AMD Ryzen 和 Radeon 的 llama.cpp 基准测试仪表板

原题Introducing the llama.cpp benchmark dashboard for AMD Ryzen and Radeon

约 2 分钟约 498 字原文英文已翻译

读前速览

4 个要点

本文介绍了一个公开的基准测试仪表板,用于追踪 llama.cpp 在 AMD Ryzen 和 Radeon 硬件上的推理性能,帮助开发者长期比较不同量化方案、构建版本和模型。

  1. 该仪表板帮助 AMD 开发者长期追踪和比较不同硬件、模型、构建版本与量化方案下的 llama.cpp 推理性能

    开发者可以选择特定硬件(Radeon 8060S 或 Radeon AI Pro R9700S)、模型和 llama.cpp 构建版本,分析性能趋势,并据此做出明智的优化决策。

  2. 两项基准测试衡量推理性能的不同方面:PP512 用于提示词处理,TG128 用于文本生成

    两项测试均以每秒 token 数报告吞吐量,并从上下文深度为零时开始测试,为比较不同配置提供标准化的参考工作负载。

  3. 基准测试每周运行一次,使用来自 llama-install.sh 的预构建二进制文件,分别在启用和禁用 Flash Attention 的情况下进行,每种配置重复 10 次

    自动化工作流程确保测量结果一致且可复现,并能随着模型、内核和构建版本的演进持续更新;测试结果也向公众开放,便于查看和复用。

  4. 原始基准测试数据存储在公开的 Hugging Face 存储桶中,用户可以据此创建自定义可视化图表或验证本地运行结果

    数据采用结构化格式(<build>/<hardware>/<model>/<quant>.jsonl),因此用户可以灵活分析数据,不必局限于仪表板提供的界面。

完整摘要

本文宣布,Hugging Face 上的 llama.cpp × AMD 基准测试仪表板现已开放。该仪表板旨在追踪不同 llama.cpp 构建版本、模型和量化方案在 AMD Ryzen 和 Radeon 硬件上的提示词处理与文本生成性能。文章介绍了仪表板的三个主要标签页——概览、构建版本历史和上下文扩展——分别用于比较量化方案、追踪性能变化,以及分析上下文增长时的吞吐量。文章还介绍了两项基准测试:用于提示词处理的 PP512 和用于文本生成的 TG128,两者均以每秒 token 数衡量;并详细说明了每周自动运行基准测试的工作流程:使用 llama-install.sh 提供的预构建二进制文件,并分别启用和禁用 Flash Attention。文章列出了当前测试的模型,包括 Inkling 2 Mini、Qwen、Gemma、gpt-oss 和 LFM 系列模型,以及从 Q4_K_M 到 BF16 的可用 GGUF 格式。测试结果存储在公开的 Hugging Face 存储桶中,用户可以查看原始数据、创建自定义可视化图表,或与本地运行结果进行比较。

目录 · 5 节

查看原文
Team Article
Published November 26, 2026

llama.cpp × AMD 基准测试仪表板现已在 Hugging Face 上线。它可以帮助你跟踪不同 llama.cpp 构建版本、模型和量化方案下的提示词处理与文本生成性能,从而了解本地推理在 AMD Ryzen 和 Radeon 硬件上的表现。The llama.cpp × AMD Benchmark dashboard is available on Hugging Face. It lets you track prompt processing and text generation performance across llama.cpp builds, models, and quantizations, so you can explore how local inference performs on AMD Ryzen and Radeon hardware.

随着模型、内核和构建版本不断演进,本地推理性能也会随之变化。我们希望每位 AMD 开发者都能轻松查看这些变化:选择硬件、模型和构建版本,对比不同量化方案,并追踪性能随时间的变化。基准测试流程和底层结果均公开,因此你也可以了解我们如何对推理性能进行基准测试。Local inference performance changes as models, kernels, and builds evolve. We want those changes to be easy to inspect for any AMD developer: pick a hardware, a model and a build, compare quantizations, and follow performance over time. The benchmark workflow and underlying results are public, so you can also inspect how we benchmark inference performance.

快速入门 Quick start

你可以在 Configuration 侧边栏中选择硬件、模型和 llama.cpp 构建版本。目前可选的硬件包括 Radeon 8060S (gfx1151) 和 Radeon AI Pro R9700S (gfx1201)。You can choose Hardware, Model, and llama.cpp build in the Configuration sidebar. The current hardware choices are Radeon 8060S (gfx1151) and Radeon AI Pro R9700S (gfx1201).

  1. 在“概览”选项卡中,比较同一硬件、模型和构建版本下的不同量化版本。两个图表分别显示 PP512(512 个输入令牌,不生成内容)和 TG128(生成 128 个令牌)的数据,二者的上下文深度均从零开始。
    In the Overview tab, compare quantizations for one hardware, model, and build. The two charts show PP512 (512 input tokens, no generation) and TG128 (128 generated tokens), both starting at context depth zero.
  2. 在“构建历史”选项卡中,跟踪所选硬件、模型和量化配置下所有已记录构建的 PP512 和 TG128。
    In the Build history tab, track PP512 and TG128 across all recorded builds for the selected hardware, model, and quantization.
  3. 在“上下文扩展”选项卡中,查看所选构建、硬件、模型和量化方式下,随着现有上下文增长,令牌生成吞吐量如何变化。
    In the Context scaling tab, see how token-generation throughput changes as the existing context grows, for the selected build, hardware, model, and quantization.

这些数字的含义 What the numbers mean

仪表板显示了两项独立测试,两者都以每秒令牌数为单位进行测量:The dashboard shows two separate tests, both measured in tokens per second:

Test Workload What it helps you assess
PP512 Process 512 input tokens How quickly the model processes a prompt
TG128 Generate 128 tokens How quickly the model produces output

两项测试都从上下文深度为零(n_depth=0)开始。PP512 测量处理 512 个输入 token(不进行生成)的性能;TG128 测量在没有预先存在上下文的情况下生成 128 个 token 的性能。图中数值为平均吞吐量(avg_ts)。这些是有用的参考工作负载,而“上下文扩展”选项卡可让你探索随着上下文增长,token 生成吞吐量的变化。Both tests start at context depth zero (n_depth=0). PP512 measures processing 512 input tokens without generation; TG128 measures generating 128 tokens without a pre-existing context. The plotted value is the mean throughput (avg_ts). These are useful reference workloads, while the Context scaling tab lets you explore token generation throughput as the context grows.

我们如何运行基准测试 How we run the benchmarks

我们对通过 llama-install.sh 分发的预构建二进制文件进行基准测试;llama-install.sh 是 llama.app 背后的构建和安装项目。公开的 gfx1151 和 gfx1201 工作流每周定期运行,使用 llama-bench 工具执行标准基准测试,并分别测试启用和禁用 Flash Attention 的情况,每种配置重复 10 次。We benchmark the prebuilt binaries distributed through llama-install.sh, the build and installation project behind llama.app. The public gfx1151 and gfx1201 workflows are scheduled weekly and run the standard benchmarks using the llama-bench tool with Flash Attention on and off, with 10 repetitions per configuration.

模型集合不断演进,目前包括 Inkling 2 Mini、Qwen、Gemma、gpt-oss 和 LFM 模型,涵盖稠密架构和混合专家架构。可用的 GGUF 格式包括 Q4_K_M、Q8_0、其他量化格式,以及 BF16 和 F16 等更高精度格式。The model set evolves and currently includes Inkling 2 Mini, Qwen, Gemma, gpt-oss, and LFM models, covering both dense and mixture-of-experts architectures. Available GGUF formats include Q4_K_M, Q8_0, other quantizations, and higher-precision formats such as BF16 and F16.

检查并重用结果 Inspect and reuse the results

该浏览器直接读取 Hugging Face 上公开的 ggml-org/install.sh-benches-data 存储桶。图表标题旁的数据源链接会打开与所选构建版本、硬件和模型对应的文件夹。The explorer reads directly from the public ggml-org/install.sh-benches-data Storage Bucket on Hugging Face. The data source link beside the chart title opens the folder for the selected build, hardware, and model.

标准结果使用 <build>/<hardware>/<model>/<quant>.jsonl。工作负载扫描使用相同文件夹中的 <quant>-tg.jsonl 文件名。Standard results use <build>/<hardware>/<model>/<quant>.jsonl. Workload sweeps use the same folder <quant>-tg.jsonl filename.

使用它们来调查结果、制作自己的图表,或与本地运行结果进行比较。Use them to investigate a result, make your own charts, or compare with a local run.

加入对话 Join the conversation

感谢 AMD 团队提供测试基础设施并协助验证配置!欢迎试用仪表板、查看数据,并告诉我们您希望接下来看到哪些模型和工作负载。Thanks to the AMD team for providing test infrastructure and helping validate the setup! Try the dashboard, inspect the data, and let us know which models and workloads you would like to see next.

值得记下

  1. llama.cpp × AMD 基准测试仪表板现已在 Hugging Face 上开放。它可以帮助你追踪不同 llama.cpp 构建版本、模型和量化方案下的提示词处理与文本生成性能,从而了解本地推理在 AMD Ryzen 和 Radeon 硬件上的表现。
  2. 随着模型、内核和构建版本不断演进,本地推理性能也会发生变化。我们希望每位 AMD 开发者都能轻松查看这些变化:选择硬件、模型和构建版本,比较不同量化方案,并追踪长期性能表现。
  3. 仪表板展示了两项独立测试,均以每秒 token 数衡量:PP512(处理 512 个输入 token)和 TG128(生成 128 个 token)。