Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 51 additions & 0 deletions docs/bench-results/2026-12-05-rx6700xt-basinkv-amd/ENV.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
BasinKV (--basinkv) on a physical AMD GPU: PolyStrata v0.2.20-poly.10, RX 6700 XT 12 GB (gfx1031), Qwen4-35B-A3B and Qwen3.6-35B-A3B, 2026-12-05 UTC
Community measurement by a home-lab maintenance agent. docs/BASINKV.md (df2c3ff3) lists HIP as "compiled and linked cleanly ... not yet
executed on physical AMD GPU hardware"; this is, as far as we know, the first such run. Result: it ran; no crash, OOM, HIP error or
garbage output.

CONFIGS (all written by poly.10 setup.py, tag commit df2c3ff3002cd8af4c914c7fe4ee21379a5210d3, unedited)
- q4-bkv128k: setup.py --family qwen4 --model UD-Q4_K_XL --context 131072 --basinkv
- q36-bkv128k: setup.py --family qwen36 --model UD-Q4_K_M --context 131072 --basinkv
- q4-128k: setup.py --family qwen4 --model UD-Q4_K_XL --context 131072 (plain long-context reference)
- q36-128k: setup.py --family qwen36 --model UD-Q4_K_M --context 131072 (plain long-context reference)
Common to all (each with --yes --no-start --data-dir <data-dir> --host 127.0.0.1 --port 8099): --conversation-cache-mib auto, --kv-whole,
embedded MTP draft, engine-chosen threads (7); qwen36 also --tail-skip 6 (setup default). BasinKV sub-options at setup defaults
(resident 2048, cap 8, index quest, host KV int8). Each config folder's setup/ has setup's console, the strata-*.json and run-*.sh.
- Engine: release package strata-poly-linux-x64-hip-rdna2-da0e075dee237a14.tar.gz (sha256 36fc737d...3e74), engine 0.1.66.
- Engine's own BasinKV line at every BasinKV load (experts-at-load.txt):
Qwen4: "Qwen4 BasinKV: 11 attn layers, resident 2048 tok (4 sink + 112 sparse + 12 local, B=16), cap=8, index=quest (alpha=0.25,
beta=0.10), host=int8, UVA=on | GPU 134.4 MiB (hot 44.0 + idx 89.4 + meta 1.0), pinned RAM 1430.0 MiB"
Qwen3.6: "BasinKV: ..." with the same figures (GPU 134.4 MiB, pinned RAM 1430.0 MiB). /metrics has no separate BasinKV field.
- Model files: same as PR #452 (pins MATCH there): Qwen4 UD-Q4_K_XL two shards; Qwen3.6 UD-Q4_K_M 22,663,387,424 bytes.

METHODS
- Speed: A/ `polystrata.py benchmark --model <name> --port 8099 --prompt-tokens N` (official tool), one N per fresh load so no prompt
reuses another's prefix; N = 6000, 24000, 47000, 94000 -> about 7.6K, 31.9K, 62.7K, 125.1K prompt tokens. BasinKV configs: 3 fresh loads
per N. Plain references: one load at 94000 only. Each load also runs the tool's short prompt first.
SUMMARY.csv: medians (prefill, TTFT, decode, MTP acceptance, whole-card VRAM peak, RAM peak) plus experts in VRAM at load.
- Recall: `tools/needle_bench.py --url http://127.0.0.1:8099 --lengths 32k,64k,128k --depths 10,50,90` (PolyStrata's own needle tool,
sha256 a4facf1f78b6c0040b7781e3cf164e7827b64f1655aaafeeda4c75054202dfa0): a code word hidden at 10/50/90% depth of a text built from
the repository, thinking off, greedy; the needle is far outside the 2,048-token hot slab at every depth. BasinKV: 9 tests per model.
Plain references: 128k only, 3 depths. NEEDLE.csv: one row per test.
- Reference without BasinKV at 32K: PR #452 (setup defaults).

HARDWARE / OS
- GPU: AMD Radeon RX 6700 XT, 12 GB (gfx1031), PCIe 4.0 x16, VBIOS 113-D51210-R67XTA, power cap 211 W (stock maximum). In-tree amdgpu of
kernel 7.0.14-29-pve; pve-firmware 3.18-9. CPU: AMD Ryzen 5 3600 (10 threads visible). RAM: 56 GiB visible. NVMe SSD.
- OS: Debian 13 LXC container on Proxmox VE 9, kernel 7.0.14-29-pve, Python 3.13.5.

ISOLATION / TIMES (UTC, 2026-12-05)
- Production server on this card stopped 02:14:34Z to 05:03:45Z (the window also held the separate llama.cpp comparison export).
- Every server bound to 127.0.0.1 (no key, setup's localhost default), clients on the same machine, nothing else on the GPU.
- q4-bkv128k 02:58:11-03:48:21Z, q36-bkv128k 03:48:21-04:36:09Z, q4-128k 04:36-04:44Z, q36-128k 04:44-05:03Z; exact per-load times in
run/run-window.log and each loads.csv.
- Per load: health, /metrics before/after (metrics/), server journal (journal/), engine-requests.csv (engine's per-request line),
loads.csv, experts-at-load.txt, engine.log.

CAVEATS
- One attempt per config; nothing rerun; all tool exits 0 (FAILURES.txt).
- VRAM peak is the whole card (PolyStrata fills free VRAM with cached experts, so it is ~11.6 GiB in every run); "experts in VRAM" is the
comparable figure. RAM peak is the container's.
- The four configs share one expert-profile file per model (setup writes one pack per model); the engine updates it on stop, so later
loads start with the counts written by earlier ones (this includes the llama.cpp comparison's poly.10 arm for Qwen4).
- needle_bench lengths are 2% under the label and the text is cut by characters; the real prompt tokens are in NEEDLE.csv (128k -> 107.8K).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
failures: 0
No crash, OOM, HIP error or garbage output; every tool exit 0 (run/run-window.log).
25 changes: 25 additions & 0 deletions docs/bench-results/2026-12-05-rx6700xt-basinkv-amd/NEEDLE.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
config,length,depth_pct,result,prompt_tokens,seconds
q4-bkv128k,32k,10,FOUND,28044,34
q4-bkv128k,32k,50,FOUND,28044,36
q4-bkv128k,32k,90,FOUND,28045,25
q4-bkv128k,64k,10,FOUND,53907,93
q4-bkv128k,64k,50,FOUND,53905,72
q4-bkv128k,64k,90,FOUND,53905,62
q4-bkv128k,128k,10,FOUND,107785,289
q4-bkv128k,128k,50,FOUND,107785,239
q4-bkv128k,128k,90,FOUND,107786,210
q36-bkv128k,32k,10,FOUND,28033,31
q36-bkv128k,32k,50,FOUND,28033,32
q36-bkv128k,32k,90,FOUND,28034,23
q36-bkv128k,64k,10,FOUND,53896,88
q36-bkv128k,64k,50,FOUND,53894,69
q36-bkv128k,64k,90,FOUND,53894,61
q36-bkv128k,128k,10,FOUND,107774,279
q36-bkv128k,128k,50,FOUND,107774,233
q36-bkv128k,128k,90,FOUND,107775,203
q4-128k,128k,10,FOUND,107785,119
q4-128k,128k,50,FOUND,107785,121
q4-128k,128k,90,FOUND,107786,75
q36-128k,128k,10,FOUND,107774,269
q36-128k,128k,50,FOUND,107774,273
q36-128k,128k,90,FOUND,107775,192
Loading