Skip to content

[Benchmark] BasinKV on RX 6700 XT (first physical AMD run), Qwen4 and Qwen3.6 at 128K, Qwen4 to 262K - #469

Open
firetussin wants to merge 5 commits into
simplexai-labs:mainfrom
firetussin:bench/rx6700xt-basinkv-amd-20261205
Open

firetussin wants to merge 5 commits into
simplexai-labs:mainfrom
firetussin:bench/rx6700xt-basinkv-amd-20261205

Conversation

@firetussin

@firetussin firetussin commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Adds a community report: BasinKV (--basinkv) on a physical AMD GPU. It ran on an RX 6700 XT 12 GB (gfx1031, RDNA2) with a Ryzen 5 3600, on v0.2.20-poly.10 (df2c3ff3), with the ready-made rdna2 HIP engine 0.1.66 that setup.py downloaded. docs/BASINKV.md lists HIP as "not yet executed on physical AMD GPU hardware". As far as we know, this is the first such run. Every config was written by setup.py (--context 131072 --basinkv, and plain --context 131072 as the reference), with no hand edits. One row is added to the community table. There are no engine or code changes. A later commit adds a Qwen4 context ramp to 262K (below).

It works on gfx1031. There was no crash, out-of-memory error, HIP error or garbage output, and 0 failures. terminal/tools/needle_bench.py found the needle 24/24 at 32k, 64k and 128k, at depths 10, 50 and 90%.

At a 125K-token prompt (polystrata.py benchmark --prompt-tokens 94000):

Decode Prefill First token Experts in VRAM
Qwen3.6 UD-Q4_K_M, BasinKV 102.3 339 369 s 4,547
Qwen3.6 UD-Q4_K_M, plain 35.2 352 356 s 3,101
Qwen4 UD-Q4_K_XL, BasinKV 69.5 325 386 s 3,873
Qwen4 UD-Q4_K_XL, plain 49.5 864 145 s 2,432
  • Decode stays flat with BasinKV from 7.6K to 125K prompts: Qwen3.6 97.5 → 102.3 tok/s, Qwen4 71.7 → 69.5. That is about 2.9× plain at 125K for Qwen3.6 and 1.4× for Qwen4, with about 1,450 more experts in VRAM for each.
  • The footprint matches the doc exactly. The engine reported GPU 134.4 MiB and pinned RAM 1,430.0 MiB, the same as the 128K quest + int8 + MTP row measured on the 4090 D.
  • Qwen4 prefill is much slower with BasinKV at long prompts: 325 against 864 tok/s at 125K, and already 748 against 1,013 at 32K ([Benchmark] Ten models on RX 6700 XT at poly.10 setup defaults (engine 0.1.66) #452). Qwen3.6 is about the same with and without it. The 4090 D table shows the same direction for Qwen4 (4,393 native against about 2,450 BasinKV at 128K), and it is larger here. For one long read on this card, plain is faster; for decode, BasinKV wins.

Context ramp: Qwen4 to its full 262K (added in a later commit, context-ramp/, with the same setup and card). The configs are
setup.py --context 196608 --basinkv, --context 262144 --basinkv and plain --context 262144, with one fresh load each:

Qwen4 UD-Q4_K_XL Prompt Decode Prefill First token Experts in VRAM Needle, 50%
BasinKV, 196K 176,888 68.8 248 715 s 3,857 found at 160.5K
BasinKV, 262K 236,135 67.5 191 1,237 s 3,832 found at 210.4K
plain, 262K 236,135 36.6 717 330 s 905 found at 210.4K
  • BasinKV decode stays flat out to a 236K-token prompt (71.7 at 7.6K → 67.5).
  • Plain also fits at 262K, but its KV leaves only 905 experts in VRAM, so BasinKV decodes about 1.8× faster.
  • The prefill gap grows: 73% lower with BasinKV at 236K, against 62% at 125K.
  • The BasinKV footprint grows with the context: GPU 179.4 / 224.5 MiB and pinned RAM 2,145 / 2,860 MiB at 196K / 262K.
  • One script error came before any engine started and is documented in the README; no engine run was repeated.

Limits, also in the README:

  • One card and one attempt per config. The context ramp is n = 1, with recall at 50% depth only.
  • The plain references are one load at 125K only.
  • Speed and needle recall only.
  • /metrics has no BasinKV field, so the footprint comes from the engine's load line.
  • needle_bench lengths come out 14–18% under their labels ("128k" = 107.8K tokens).

All tables are recomputed from the raw JSON (tables.py). SHA256SUMS covers the 219 exported files, and
context-ramp/SHA256SUMS covers the ramp's 80.

🤖 Generated with Claude Code

firetussin added a commit to firetussin/PolyStrata that referenced this pull request Dec 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@firetussin firetussin changed the title Bench: BasinKV on RX 6700 XT (first physical AMD run), Qwen4 and Qwen3.6 at 128K Bench: BasinKV on RX 6700 XT (first physical AMD run), Qwen4 and Qwen3.6 at 128K, Qwen4 to 262K Dec 5, 2026
@VecSzn

VecSzn commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

Awesome physical RX 6700 XT BasinKV 128K/262K results, @firetussin! To merge this cleanly:

  1. Please prefix the PR title with [Benchmark].
  2. Please remove any stray files outside docs/bench-results/..., rebase on main, and run python tools/bench_results_index.py to update docs/bench-results/README.md. Ready to merge once those checks pass!

firetussin and others added 4 commits December 5, 2026 20:19
…3.6 at 128K

Configs by poly.10 setup.py with --basinkv, no hand edits. Speed with polystrata.py benchmark to 125K prompts,
recall with terminal/tools/needle_bench.py (24/24). Adds docs/bench-results/2026-12-05-rx6700xt-basinkv-amd and one community row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…700 XT BasinKV report

setup.py --context 196608/262144 --basinkv and plain 262144, configs unedited.
One fresh load each; needle found at 50% depth at 160.5K and 210.4K tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ch-results index

Keeps the pull request to docs/bench-results/ only, as asked in review.
The index is written by python tools/bench_results_index.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@firetussin
firetussin force-pushed the bench/rx6700xt-basinkv-amd-20261205 branch from 7e02ce3 to 99c1b85 Compare December 6, 2026 02:27
@firetussin firetussin changed the title Bench: BasinKV on RX 6700 XT (first physical AMD run), Qwen4 and Qwen3.6 at 128K, Qwen4 to 262K [Benchmark] Bench: BasinKV on RX 6700 XT (first physical AMD run), Qwen4 and Qwen3.6 at 128K, Qwen4 to 262K Dec 6, 2026
@firetussin firetussin changed the title [Benchmark] Bench: BasinKV on RX 6700 XT (first physical AMD run), Qwen4 and Qwen3.6 at 128K, Qwen4 to 262K [Benchmark] BasinKV on RX 6700 XT (first physical AMD run), Qwen4 and Qwen3.6 at 128K, Qwen4 to 262K Dec 6, 2026
…plate

The README now follows the template in docs/COMMUNITY_BENCHMARKS.md: Hardware and software, Model and
configuration (with the engine arguments setup wrote), Method, Results (the template table first),
Correctness and limitations. Every number and caveat is kept; the per-prompt speed tables stay in
tables.md and their MTP figures are listed in the README. tables.py also writes the template table from
A/*.json with reused tokens from engine-requests.csv, checks every request against the engine's line and
the medians against both SUMMARY.csv files, and writes tables.md itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants