Pick Your Quantization With Data: llama.cpp's AMD Benchmark Dashboard

What PP512 and TG128 actually measure, why the context-scaling tab changes the answer for long prompts, and how to read llama.cpp's public AMD benchmark data so a build regression never reaches your machine.

November 27, 2026
llama-cppamdrocmgfx1151gfx1201benchmarkingquantizationlocal-inferencellama-benchradeon

ggml-org publishes a benchmark dashboard for llama.cpp on AMD hardware, backed by a public data bucket that anyone can query. It is easy to read as a leaderboard and get the wrong answer: on one APU, the same model, quantization and Flash Attention setting produced prompt-processing results spanning 334 to 406 tokens per second across 23 recorded builds, and the evidence is at least as consistent with when the benchmark ran as with what changed in llama.cpp.

Read it correctly and it answers three questions before you upgrade: which quantization decodes fastest on your card, how much throughput long context costs you, and whether a build you are about to adopt is slower than the one you are running. This is a guide to reading the numbers, not a GPU review.

I did not run a GPU for this piece. Everything below comes from the public bucket, the two GitHub Actions workflows that fill it, and the dashboard's own client code, all fetched on 28 November 2026 against build b12765 (commit 9c003a97a). Where I say a number changed, I re-derived it from the raw JSONL records.

What the dashboard is measuring

ItemValue
HardwareRadeon 8060S (gfx1151, inside a Ryzen AI Max+ 395) and Radeon AI Pro R9700S (gfx1201)
Cadencecron: '0 0 * * 3' — Wednesdays, 00:00 UTC, on self-hosted runners
Toolllama-bench, via llama-install.sh prebuilt binaries
Standard runllama bench -v -fa 0,1 -hf MODEL:QUANT -o jsonl -r 10
Context sweepllama bench -p 0 -n 128 -d 512-32768*2 (same -fa 0,1, -r 10)
ModelsInkling 2 Mini, Qwen 3.5/3.6/3.8, Gemma 4, gpt-oss, LFM3-Omni
FormatsBF16, F16, Q8_0, Q6_K through Q3_K_S, Q4_1, Q4_0, plus IQ4_NL and MXFP4_MOE on some models
Bucketggml-org/install.sh-benches-data, 34 build folders at the time of writing

Each standard file carries four records: prompt processing with Flash Attention off, generation with Flash Attention off, then the same two with it on. The context sweep writes a separate QUANT-tg.jsonl with seven depths per attention setting; prompt-processing sweeps are retired, and the dashboard skips any -pp.jsonl it finds in the bucket.

The methodology panel states that timing excludes tokenization and output-token sampling. These are inference throughput figures, not end-to-end response times.

PP512 and TG128 answer different questions

PP512 processes a 512-token prompt and generates nothing. TG128 generates 128 tokens from an empty context. Both are recorded at context depth zero, and the dashboard enforces that: its classifier only accepts rows where n_depth is 0 and the prompt/generation shape is exactly 512/0 or 0/128. Anything measured at a non-zero depth is filed under the Context scaling tab instead of the Overview charts.

That split matters because the two metrics behave differently. Run the Overview tab at build b12765, Radeon 8060S, Qwen3.8-27B, Flash Attention off, and compare the quantization ladder:

QuantSizePP512TG128
Q4_K_S14.29 GiB392.813.58
Q4_014.94 GiB423.713.43
Q4_K_M15.42 GiB398.612.83
Q4_116.33 GiB386.012.34
Q5_K_S17.47 GiB377.211.44
Q5_K_M18.50 GiB361.810.84
Q6_K20.46 GiB345.79.96
Q8_027.04 GiB389.27.76
BF1650.89 GiB399.23.98

Tokens per second, one build, one GPU, one model, Flash Attention off. Sizes are the reported model size, not runtime memory.

TG128 ranks the K-quants cleanly by size: 13.58 down to 7.76, a 43% drop from Q4_K_S to Q8_0, and BF16 decodes 3.4 times slower than Q4_K_S. If you are choosing a quantization for a chat or agent loop, that column is the decision.

PP512 does not rank them at all. Q6_K is the slowest prompt processor in the table at 345.7 while Q8_0, a third larger, sits at 389.2 and Q4_0 tops the table at 423.7. The lesson is not that PP512 is noisy garbage; it is that prompt processing is measuring a different bottleneck, so a large prompt-processing number does not mean the model will feel fast when it answers. Use PP512 to check that a build has not broken prompt handling, and TG128 to compare weights.

One thing the table cannot do is tell you whether Q4_K_S is good enough for your work. The bucket records throughput only. Q4_K_S decodes 5.8% faster than Q4_K_M from a 7% smaller file, and that is the end of what these numbers know.

Open one row and look at the samples

The bar is a mean. Click it and the dashboard shows what the mean was built from: commit, test time, batch and microbatch (2048 / 512), thread count (16 on the APU, 32 on the R9700S), KV cache type, backend, sample count, and the exact bucket file and line.

Take the PP512 bar for b12765 / gfx1151 / Qwen3.8-27B / Q4_K_M / Flash Attention off. Mean 398.6, standard deviation 16.3 — and the ten repetitions behind it:

418.1  422.0  421.4  406.2  388.1  386.3  386.4  385.6  385.9  386.0

The first three runs are 8% above the rest, and the last five average 386.0 rather than 398.6. The reported mean is a blend of a warm-up regime and a steady one, and the bucket records no clock or power data, so treat the pattern as observed rather than explained.

The same row's TG128 samples for comparison:

12.8352  12.8350  12.8362  12.8322  12.8336  12.8299  12.8322  12.8268  12.8290  12.8274

That is a 0.07% spread across ten reps. Decode throughput on this machine is reproducible to a tenth of a percent; prompt processing is not.

The warm-up direction is not consistent across hosts, which is why the samples matter more than a rule of thumb. On the R9700S, the b12765 gemma-4-E4B-it Q4_K_M prompt-processing row reports 7,306.9 ± 1,045.5 tok/s from samples that start at 4,339.8 and settle near 7,700. First repetition is the outlier there, and the standard deviation is honest about it.

Practical rule: compare the last-five mean and the standard deviation, not the headline. A 3% move in a PP512 number with a ±16 SD is not a finding. A 1% move in TG128 usually is.

The context tab: Flash Attention is a 2.2× decision at 32K

The Overview tab is depth zero by construction, so it cannot tell you what your prompt costs once it carries real context. The Context scaling tab answers that, and it only plots token generation. For b12765, Radeon 8060S, Qwen3.8-27B, Q4_K_M:

Context depthTG128, FA offTG128, FA on
51212.6912.89
1,02412.5212.82
2,04812.2712.74
4,09611.7512.62
8,19210.8112.38
16,3848.4911.73
32,7684.9610.73

Tokens per second at 128 generated tokens per point.

At 512 tokens of context the two lines are 1.6% apart and Flash Attention off is fine. At 8,192 it is 13% behind. At 32,768 it has lost 61% of its own 512-token throughput while the Flash Attention on line has lost 17%, a 2.2× gap. If your prompts sit at 20K to 32K tokens — a codebase slice, a long document, a tool-heavy agent loop — the depth-zero TG128 number you compared quants with is describing a workload you do not run.

The two GPUs disagree on the sign as well as the size. On the R9700S at b12765 the same model and quant gives PP512 1,393.0 tok/s with Flash Attention off and 1,429.4 with it on, so enabling it helps prompt processing there by 2.6%, while on the APU it costs 3.3% (398.6 down to 385.5). Check your own hardware's row rather than carrying over a preference.

Read the build history as a test, not a leaderboard

The Build history tab plots one quantization across every recorded build for a hardware and model, and the dashboard is explicit that the axis is build number with equal spacing, not calendar time. That is the right axis for bisecting a commit and the wrong axis for judging whether you should upgrade, because a build folder records the llama.cpp build number, not when the measurement ran.

The bucket does record test_time per record. When the two disagree, believe test_time.

Here is the whole PP512 series for gfx1151 / Qwen3.8-27B / Q4_K_M / Flash Attention off, sorted by measurement date rather than build number, produced by the script below:

b10679   2026-09-02T16:43     351.0   24.2   342.8          50f068fff
b10826   2026-09-09T04:42     367.6   10.0   361.3    +4.7  73a43d1f6
b10909   2026-09-16T05:38     367.8   11.0   360.7    +0.1  a2878d30d
b11046   2026-09-21T21:12     366.3   10.1   359.0    -0.4  60081bb2b
b11429   2026-11-03T11:14     334.5    9.5   328.5    -1.9  d81235049
b11200   2026-11-03T13:21     355.5   11.4   347.9    +1.9  81bc6b83f
b11160   2026-11-03T21:18     349.0   10.7   341.7    -4.7  70c4e1582
b11370   2026-11-04T15:08     340.9   10.0   334.2    -4.1  bed0a8566
b12110   2026-11-07T12:55     389.9   13.1   380.0    +1.2  cd959bae9
b12019   2026-11-07T14:49     385.4   12.5   376.7    -3.0  1052f7e1d
b12015   2026-11-07T16:12     397.3   13.3   387.0    +6.1  a34de8618
b11941   2026-11-07T17:59     374.3   11.2   366.7    -2.1  19ff817fb
b11852   2026-11-07T20:00     382.6   12.5   374.0    +0.5  7894e8b92
b11706   2026-11-07T20:54     380.7   10.9   374.6    +2.3  f74e2fa6a
b11671   2026-11-07T23:14     372.0    9.3   365.8    +0.2  ba3c05f71
b11630   2026-11-08T00:03     371.1    8.5   366.0    +1.9  6868a52cb
b11574   2026-11-08T01:50     364.2   10.3   357.5    +0.8  8bb3cf0d2
b11540   2026-11-08T02:41     361.3   11.0   354.0    +8.0  1e6f04a75
b12182   2026-11-12T10:47     382.8   12.6   373.6    -1.8  fd27b2034
b12375   2026-11-19T10:08     393.0   16.2   381.1    +2.7  9d25e0014
b12607   2026-11-21T22:26     406.2   17.6   392.1    +3.4  1fdda89a4
b12652   2026-11-25T09:44     393.7   15.5   381.9    -3.1  212c547fe
b12765   2026-11-26T10:54     398.6   16.3   386.0    +1.2  9c003a97a

Read the dates, not the build column. There are four September measurements, a six-week gap, four measurements taken inside a 28-hour window on 3–4 November, ten inside a fourteen-hour window on 7–8 November, then single measurements on 12, 19, 21, 25 and 26 November. The delta% column compares against the previous row in build order, which is why it swings wildly: those numbers are not a time series.

The finding is real inside the data: measured steady state drops from 359.0 (b11046, 21 September) to 328.5 (b11429, 3 November), 8.5%. A second model confirms the direction — Qwen3.6-27B Q4_K_M PP512 falls from 344.8 last-five at b11046 to 311.6 at b11200 and 322.4 at b11429, 9.6% and 6.5% down — and then the primary series recovers, reaching 386.0 last-five at b12765 (Qwen3.6-27B: 377.6).

Two explanations fit and the dataset cannot separate them: a llama.cpp regression that was later fixed, or a benchmark-host condition during the 3–4 November session. The evidence for the second is that every low-reading build was measured in that one window, and that the same host's earlier and later sessions sit higher. The evidence for the first is that both models moved together and both recovered. The bucket records no ROCm version, driver, GPU clocks or ambient temperature, so there is nothing to check.

Verify before you upgrade

  1. Pin the comparison: same machine, model, quant, metric and Flash Attention setting. Comparing one build's FA-on row to another build's FA-off row manufactures a 3% regression on the APU from the flag alone.
  2. Sort by test_time. A build number is not a date, and backfilled sessions break the ordering.
  3. Compare last-five means and standard deviations, not the headline average.
  4. Reproduce the two candidate builds locally, back to back, before you change anything. The CI command is portable:
~/.llama-app/llama bench -fa 0 -hf unsloth/Qwen3.8-27B-GGUF:Q4_K_M -o jsonl -r 10

Or with a standalone llama.cpp checkout and the same GGUF file:

./llama-bench -m Qwen3.8-27B-Q4_K_M.gguf -p 512 -n 128 -fa 0 -r 10 -o jsonl

Run it twice on the old build, twice on the new one, and keep the last five reps. If the 8% gap follows the build on your hardware, it is the build. If both builds land on the same number, the gap was the bench host, and you have avoided a pointless downgrade.

The opposite case: a step that is not attributable to a commit

The same reading method produces a different answer on the R9700S. For gfx1201 / Qwen3.8-27B / Q4_K_M, TG128 with Flash Attention off measured 21.3 tok/s on 16 September and 23.6 on 23 September. Every build measured from 12 November onward — nineteen of them, from b11160 through b12765 — lands between 29.9 and 31.1, roughly a third higher. No single build was measured on both sides of that step.

gemma-4-E4B-it shows the same shape much larger: from 46.4 tok/s on 21 September to 95–108 across the November builds, with two rows in the middle (b11160, b11429) reporting standard deviations of ±14.6 and ±13.4 — unstable measurements worth ignoring rather than averaging in.

Those nineteen builds for the same model, measured over two weeks, agree within 4%. Whatever changed happened before the November session started, not at a single build inside it. The bucket cannot tell you whether that was a llama.cpp commit, a ROCm update, or a driver change. What it can tell you is that if you are running an older build on gfx1201 for this model size, the numbers say re-measure before assuming your current throughput.

The script

The dashboard's loader walks the same public API the script does: the bucket tree endpoint, paginated, then one GET per JSONL file.

#!/usr/bin/env python3
"""Diff llama.cpp AMD benchmark builds for one model, quant, and metric.

Usage:
  python3 amd_bench_diff.py --model Qwen3.8-27B --quant Q4_K_M --metric pp --fa 0
"""
import argparse
import json
import os
import signal
import urllib.request
from statistics import mean

BUCKET = "https://huggingface.co/buckets/ggml-org/install.sh-benches-data"
TREE = "https://huggingface.co/api/buckets/ggml-org/install.sh-benches-data/tree"
CACHE = os.path.expanduser("~/.cache/amd-bench")
UA = {"User-Agent": "amd-bench-diff/1.0"}

signal.signal(signal.SIGPIPE, signal.SIG_DFL)  # `| head` should not traceback


def get(url):
    return urllib.request.urlopen(urllib.request.Request(url, headers=UA), timeout=60)


def catalog():
    """Every .jsonl path in the bucket. The tree API paginates at 1000 entries."""
    url, paths = f"{TREE}?recursive=true&limit=1000&sort=path", []
    while url:
        resp = get(url)
        paths += [e["path"] for e in json.load(resp)
                  if e["type"] == "file" and e["path"].endswith(".jsonl")]
        nxt = [p for p in resp.headers.get("Link", "").split(",") if 'rel="next"' in p]
        url = nxt[0].split(";")[0].strip().strip("<>") if nxt else None
    return paths


def rows(path):
    os.makedirs(CACHE, exist_ok=True)
    local = os.path.join(CACHE, path.replace("/", "__"))
    if not os.path.exists(local):
        with get(f"{BUCKET}/resolve/{path}") as resp, open(local, "wb") as out:
            out.write(resp.read())
    with open(local) as f:
        return [json.loads(line) for line in f if line.strip()]


def pick(lines, metric, fa):
    """One row per file: depth 0, requested FA setting, requested workload."""
    for row in lines:
        if row.get("flash_attn") != fa or row.get("n_depth", 0) != 0:
            continue
        if metric == "pp" and row.get("n_prompt") == 512 and row.get("n_gen") == 0:
            return row
        if metric == "tg" and row.get("n_prompt") == 0 and row.get("n_gen") == 128:
            return row
    return None


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("--machine", default="gfx1151")
    ap.add_argument("--model", required=True)
    ap.add_argument("--quant", required=True)
    ap.add_argument("--metric", choices=["pp", "tg"], default="pp")
    ap.add_argument("--fa", type=int, choices=[0, 1], default=0)
    args = ap.parse_args()

    wanted = f"{args.quant}.jsonl"
    paths = [p for p in catalog()
             if len(p.split("/")) == 4
             and p.split("/")[1:3] == [args.machine, args.model]
             and p.split("/")[3] == wanted]
    paths.sort(key=lambda p: int(p.split("/")[0].lstrip("b").split("-")[0]))

    name = {"pp": "PP512", "tg": "TG128"}[args.metric]
    print(f"{args.machine} / {args.model} / {args.quant} / {name} / FA {args.fa} - "
          f"{len(paths)} builds")
    print(f"{'build':<9}{'tested (UTC)':<18}{'mean':>8}{'SD':>7}{'last5':>8}{'delta%':>8}  commit")
    prev = None
    for path in paths:
        row = pick(rows(path), args.metric, args.fa)
        if not row:
            continue
        tail = mean(row["samples_ts"][-5:]) if row.get("samples_ts") else float("nan")
        delta = "" if prev is None else f"{(row['avg_ts'] / prev - 1) * 100:+.1f}"
        print(f"{path.split('/')[0]:<9}{row['test_time'][:16]:<18}"
              f"{row['avg_ts']:>8.1f}{row['stddev_ts']:>7.1f}{tail:>8.1f}"
              f"{delta:>8}  {row['build_commit']}")
        prev = row["avg_ts"]


if __name__ == "__main__":
    main()

Then sort the output by measurement date instead of build number:

python3 amd_bench_diff.py --model Qwen3.8-27B --quant Q4_K_M --metric pp --fa 0 \
  | tail -n +3 | sort -k2

The first run downloads every file for that model and quant into ~/.cache/amd-bench (23 files for this series; my run of the full listing plus all 23 downloads took 13 seconds). Repeat runs are local and near-instant. pick() returns the first matching row in each file, where the dashboard shows the latest test_time; no configuration in this 23-build series is recorded twice, so both rules select the same row here. Swap --metric tg for the decode column, --machine gfx1201 for the workstation card, or --model gemma-4-E4B-it for another model — the same flags answer every comparison the dashboard's Build history tab draws.

What this data cannot tell you

  • Two GPUs. A Ryzen AI Max+ 395 APU and a Radeon AI Pro R9700S. Nothing here transfers to an RX 7900 XTX, an Instinct card, or a different Strix Halo configuration.
  • Throughput only. No accuracy, no perplexity, no task score. Quantization decisions need a quality check the bucket does not contain.
  • Prebuilt binaries. Measurements come from llama-install.sh builds, so your own compile flags, backend or ROCm version are not represented.
  • Fixed workloads. PP512 and TG128 at depth zero, and a generation sweep at 128 output tokens. Your 4K-token coding prompt with tool calls is not one of these shapes.
  • No environment fields. The records carry commit, hardware, batch settings and KV types, but no driver or ROCm version, and no clock or power data — which is exactly why a step change like the R9700S one above cannot be attributed.
  • Cadence is not continuity. The cron is weekly, but the data shows batch sessions and a six-week gap. Build order is not a timeline.
  • One measurement per configuration. Where a config was recorded more than once, the dashboard shows the most recent test_time and hides the duplicate. Gaps in a chart mean missing data, never zero.

If a decision depends on one of those gaps, measure it yourself with the same command the CI uses. That is the whole point of the bucket being public.

Sources: Introducing the llama.cpp benchmark dashboard for AMD Ryzen and Radeon (ggml-org, accessed 28 November 2026); benchmark dashboard; ggml-org/install.sh-benches-data bucket; bench-gfx1151.yml and bench-gfx1201.yml; llama-bench.