llama.cpp × AMD 基准测试仪表板已在 Hugging Face 上发布。它允许你追踪 llama.cpp 构建版本、模型和量化方案在提示词处理和文本生成方面的性能,从而探索本地推理在 AMD Ryzen 和 Radeon 硬件上的表现。
随着模型、内核和构建版本的演进,本地推理性能也会发生变化。我们希望任何 AMD 开发人员都能轻松检查这些变化:选择硬件、模型和构建版本,比较量化方案,并跟踪随时间推移的性能表现。基准测试工作流及底层结果均为公开状态,因此你也可以查看我们是如何对推理性能进行基准测试的。
快速入门
你可以在配置侧边栏中选择硬件、模型和 llama.cpp 构建版本。当前可选的硬件包括 Radeon 8060S (gfx1151) 和 Radeon AI Pro R9700S (gfx1201)。
在“概览”选项卡中,比较针对同一硬件、模型和构建版本的量化方案。两个图表分别显示 PP512(512 个输入 token,无生成)和 TG128(生成 128 个 token),两者均从上下文深度零开始。
在“构建历史”选项卡中,跟踪所选硬件、模型和量化方案在所有记录构建版本中的 PP512 和 TG128 性能。
在“上下文扩展”选项卡中,查看随着现有上下文的增加,针对所选构建版本、硬件、模型和量化方案的 token 生成吞吐量如何变化。
数字含义
仪表板展示了两个独立的测试,均以每秒 token 数(tokens per second)为单位进行测量:
| 测试 | 工作负载 | 有助于评估的内容 |
|---|---|---|
| PP512 | 处理 512 个输入 token | 模型处理提示词的速度 |
| TG128 | 生成 128 个 token | 模型生成输出的速度 |
两个测试均从上下文深度零(n_depth=0)开始。PP512 测量在不进行生成的情况下处理 512 个输入 token 的性能;TG128 测量在没有预先存在上下文的情况下生成 128 个 token 的性能。图中绘制的数据为平均吞吐量(avg_ts)。这些是实用的参考工作负载,而“上下文扩展”选项卡则让你能够探索随着上下文增长时的 token 生成吞吐量。
基准测试运行方式
我们对通过 llama-install.sh 分发的预构建二进制文件进行基准测试,该项目是 llama.app 背后的构建和安装项目。公开的 gfx1151 和 gfx1201 工作流每周定时运行,使用 llama-bench 工具并开启或关闭 Flash Attention,每种配置重复运行 10 次以执行标准基准测试。
模型集在不断演进,目前包括 Inkling 2 Mini、Qwen、Gemma、gpt-oss 和 LFM 模型,涵盖密集型和混合专家(mixture-of-experts)架构。可用的 GGUF 格式包括 Q4_K_M、Q8_0、其他量化方案以及 BF16 和 F16 等高精度格式。
检查结果并复用数据
资源管理器直接从 Hugging Face 上的公共 ggml-org/install.sh-benches-data 存储桶读取数据。图表标题旁边的数据源链接会打开所选构建版本、硬件和模型对应的文件夹。
标准结果使用
你可以利用这些数据调查特定结果、制作自己的图表,或与本地运行结果进行比较。
加入讨论
感谢 AMD 团队提供测试基础设施并协助验证设置!试用该仪表板,检查数据,并告诉我们你希望接下来看到哪些模型和工作负载。
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.
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
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).
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.
In the Build history tab, track PP512 and TG128 across all recorded builds for the selected hardware, model, and quantization.
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
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
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.
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
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.
Standard results use
Use them to investigate a result, make your own charts, or compare with a local run.
Join the conversation
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.
首次收录 · 2026-11-27 · 10.43 分