๐Ÿงช VelsTech Lab Spark-X2.5 4B is a brand-new 4.1B architecture โ€“ so new that my llama.cpp build refused to load it (unknown model architecture: 'spark2_5'). After updating and rebuilding, I ran all three quants โ€“ BF16, Q8_0 and Q4_K_M โ€“ side by side on the RX 6800M. The result is not the usual "smaller is faster" story: Q8_0 wins prompt processing, Q4_K_M wins generation, and full-precision BF16 loses a quality task to both of them.

๐Ÿ”ง Check your own fit first

LLM VRAM Calculator โ€“ do the weights plus your context fit your VRAM? ยท GPU AI Performance Calculator โ€“ what tok/s to expect before you run.

Open calculators โ†’
๐Ÿ“Š Measured with benchscope (open source)

Every number below โ€“ throughput, VRAM, GPU/CPU utilisation, temperature, power, and the context-fit estimate โ€“ was captured with benchscope, a llama-bench wrapper I built for exactly this kind of test. MIT licensed, runs anywhere llama-bench runs.

benchscope on GitHub โ†’

The test rig

How we ran it

python3 benchscope.py --per-test \
  --llama-bench-bin ./build/bin/llama-bench \
  --out-json bench.json --timeseries bench.csv --out-png bench.png -- \
  -m ~/models/Spark-X2.5-4B-Q4_K_M.gguf -p 512 -n 128 -r 3

Same command for all three files, only -m changes. (benchscope sets the ROCm library path itself, so no LD_LIBRARY_PATH export dance.)

What we measured

Metric               BF16              Q8_0              Q4_K_M
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Prompt eval          474.4 ยฑ 16.6 t/s  2148.7 ยฑ 214.9 t/s 1510.6 ยฑ 102.9 t/s
Decode (tg)          39.1 ยฑ 0.2 t/s    67.4 ยฑ 0.5 t/s     98.5 ยฑ 1.4 t/s
Context fit (est.)   101,673 tok       206,244 tok       254,389 tok
VRAM used            8461 / 12272 MiB  4736 / 12272 MiB  3041 / 12272 MiB
GPU util avg         82โ€“89%            64โ€“85%            66โ€“82%
Temp max             62 ยฐC             57 ยฐC             53 ยฐC
Power avg (decode)   120.7 W           101.5 W           116.0 W

Takeaway: there is no single winner. Q8_0 owns prompt processing (4.5ร— BF16) but with worrying run-to-run variance (ยฑ215 tok/s โ€“ re-test before trusting it). Q4_K_M owns decoding (2.5ร— BF16) and carries the biggest context budget (254K vs 101K) in under 3 GB of VRAM. BF16 is third everywhere while running the hottest. The surprise is that quantizing up from Q4 to Q8 buys prompt speed but costs decode speed โ€“ prompt eval is compute-bound (dequant cost matters) while decode is bandwidth-bound (bytes per weight matter).

The proof โ€“ run cards

benchscope result card for Spark-X2.5 4B BF16 on RX 6800M: 474 tok/s prompt, 39 tok/s decode, 101K context fit
BF16: correct but slow โ€“ 39 tok/s decode in 8.2 GB of VRAM.
benchscope result card for Spark-X2.5 4B Q8_0 on RX 6800M: 2149 tok/s prompt, 67 tok/s decode, 206K context fit
Q8_0: the prompt-eval king โ€“ but note the ยฑ215 tok/s spread.
benchscope result card for Spark-X2.5 4B Q4_K_M on RX 6800M: 1511 tok/s prompt, 98 tok/s decode, 254K context fit
Q4_K_M: fastest decode, biggest context, coolest card โ€“ the daily driver.

Quality check โ€“ one tough prompt, three quants

Speed is only half the story, so all three faced the same adversarial prompt (greedy decoding, seed 42, reproducible): a multi-step wattage calculation with an exact-answer format, a records-to-JSON transform with a strict schema, and a median() function written from scratch with sorted() banned. Each output was executed and checked, not eyeballed.

Quality              BF16     Q8_0     Q4_K_M
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Math ($9.46)         PASS     PASS*    PASS
Exact JSON           FAIL     PASS     PASS
Code runs (5.5)      PASS     PASS     PASS
Generation speed     36 t/s   59 t/s   82 t/s

Takeaway: BF16 โ€“ the "best" quant โ€“ is the only one that never emits the JSON transform, while Q4_K_M matches it task-for-task at more than twice the speed. Two honest caveats: the deliberately contradictory "output ONLY" instructions make every quant ramble (none finishes in 1024 tokens โ€“ budget 4096 for tests like this), and Q4's code leans on the .sort() method, which honours the letter of the ban more than its spirit. Strictly speaking, Q8_0's $9.46 never stands on its own line โ€“ it writes "So final answer: ANSWER: $9.46" โ€“ so its math PASS carries an asterisk for format.

What broke along the way

  1. unknown model architecture: 'spark2_5' โ€“ my llama.cpp checkout predated the architecture. Fix: git fetch + fast-forward to a build containing upstream #27868 (Spark2_5 support), then cmake --build build --target llama-bench llama-cli -j16. No reconfigure needed.
  2. libhipblas.so.3: cannot open shared object file โ€“ /opt/rocm/lib is not on the loader path. Workaround is the LD_LIBRARY_PATH export; benchscope now injects it into the bench subprocess itself.
  3. Verbose reasoning โ€“ this model family thinks out loud at length, so quality runs need a generous -n budget even for short answers.

Appendix โ€“ the exact build on this machine

For completeness, here is the ROCm build every number above came from (ROCm 7.15, CMake 4.2.3 โ€“ targeting gfx1031, the RX 6800M, only, which keeps compile time sane):

git fetch origin master && git merge --ff-only origin/master
# 5f436dddb โ€“ first build with spark2_5 support (upstream #27868)
cmake -B build -DCMAKE_BUILD_TYPE=Release \
  -DGGML_HIP=ON -DGPU_TARGETS=gfx1031 -DBUILD_SHARED_LIBS=ON
cmake --build build --target llama-bench llama-cli -j16

Sanity-check that the new architecture loads before benchmarking:

export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH
./build/bin/llama-bench -m ~/models/Spark-X2.5-4B.gguf -p 64 -n 0 -r 1 -o json

If you see unknown model architecture, your checkout is older than the model โ€“ update first, then rebuild. (benchscope injects the ROCm library path into the bench subprocess itself, so day-to-day runs skip the export.)

Bottom line

On a 12 GB RX 6800M, Q4_K_M is the Spark-X2.5 quant to run: ~98 tok/s decode, a 254K-token context budget, 53 ยฐC, and quality on par with full precision. Pick Q8_0 only if your workload is prompt-heavy and you can tolerate its variance. Skip BF16 unless you need bit-exact weights โ€“ it costs 3ร— the VRAM for third place and, on my test, dropped a formatting task both quants passed. Full method, telemetry and the measuring tool: benchscope on GitHub โ†’