Repository navigation
Description
Hardware & Environment
- GPU: NVIDIA GeForce RTX 4070 SUPER 12 GB (
sm_89,12,282 MiBVRAM, Driver621.40, CUDA 13) - CPU: AMD Ryzen 9 7900X (12C / 24T,
--threads 12) - RAM:
31.10 GiBusable (32 GB DDR5-6000) - OS: Microsoft Windows 11 Pro (
10.0.26300, x64) - Date: 2026-11-27 (same-day runs, one
strata-poly.exeprocess at a time, fresh copy ofexpert-profile.txtper process,--conversation-cache-mib 0,--eos-ids 0)
Builds, Model & Reference Files Tested
- Model:
Inkling-2-Mini-UD-Q4_K_XL.gguf(17,629,760,736 B/17.63 GB/16.42 GiB) - Official
v0.2.20-poly.5:strata-poly.exe(117,386,240 B, SHA-256E48BA861A7EB1137FEDEB378E112C9E2BCD8199EAE8082A7DCCD85241D65775D,BUILD.jsonversion: 0.1.66,src: 44f8847bd6b7fd1a,cuda: 13.0)- Official
v5ran without draft model (no-draft); in #352 on this same card, Officialv5 + DSparkdropped VRAM experts and decoded slower than Officialv5no-draft.
- Official
- Fork (
KurrynDev13/PolyStrata-Inkling2):strata-poly.exe(83,227,648 B, SHA-25622841A4EF8847B7D2A70E52BC0A96A3DFB49D39212CFE1CFD08AD0BC366B4AAC, built from commitccb4a18eb; repoHEADfb9880ff3)- DSpark drafter:
inkling2-dspark.gguf(635,800,448 B/0.59 GiB,--window 4) - ZHA reference file:
inkling-2-mini-refs-c64-r4.bin(131,152 B, SHA-256B2955FE448DFF40922694667852331BE9A6CD62E6BAF10DEF8CB9398A16CE38F) - ZHA & kernel env:
STRATA_INK_ZHA=...,STRATA_INK_ZHA_MAX=512,STRATA_FAST_REL_BIAS=1,STRATA_MOE_DEDUP=1,STRATA_INK_FAST_CTRL=1,STRATA_POLY_STREAM_STAGE=1, plusSTRATA_ROUTE_TAIL_SKIP=0(raw) or4(tuned)
- DSpark drafter:
Common flags across runs unless noted: --serve --vram-reserve-mib 768 --prompt-batch 1024 --threads 12 --conversation-cache-mib 0 --eos-ids 0, greedy sampling (temperature=0 seed=123), max_new=128.
- Phases 1 & 2 used
--ram-experts-mib 4096. Phase 3 (1M-token ramp on 32 GB RAM) used--ram-experts-mib 2048to preserve host RAM headroom alongside 9.00 GiB of pinned 1M ZHA leaves. - At
N=131,072, Officialv5was launched with--max-context 131328(vs131072at32K) because131072 + 128generation tokens failsv5's boundary check at131072. Fork used--max-context 1048576in all runs.
1. Head-to-Head Context Scaling (32,768 & 131,072 Tokens + Needle Recall)
Prompts used codebase text with a passkey planted at 10% depth (NEEDLE-32K-AURORA at 32K, NEEDLE-128K-ZENITH at 128K). 32,768 reports medians of 2 alternating rounds; 131,072 reports single runs.
Prompt (max_new) |
Configuration | Prefill tok/s |
Decode tok/s |
p50 / p95 ms |
Cached Experts | Hit % | Drafts Acc | Free VRAM | Proc WS (start -> end) |
Needle Recall |
|---|---|---|---|---|---|---|---|---|---|---|
32,768 (128) |
Official v5 raw (no-draft, fp8) |
1,064.8 |
35.5 |
25.1 / 54.6 |
1,767 / 3,072 |
90.5% |
0 / 0 |
672 MiB |
2.10 -> 5.19 GiB |
Pass (2/2) |
32,768 (128) |
Official v5 small-card (--vram-pool, q5_k, --tail-skip 4) |
1,036.8 |
41.9 |
19.6 / 47.6 |
1,812 / 3,072 |
95.5% |
0 / 0 |
680 MiB |
2.22 -> 5.22 GiB |
Pass (2/2) |
32,768 (128) |
Fork ZHA+DSpark raw (k8v4, 1M ctx, --cache-bias 0, --tail-skip 0) |
1,450.2 |
34.1 |
0.3 / 97.7 |
1,769 / 3,072 |
77.1% |
151 / 187 (2-rd) |
934 MiB |
4.27 -> 6.06 GiB |
Pass (2/2) |
32,768 (128) |
Fork ZHA+DSpark tuned (k8v4, 1M ctx, --cache-bias 0.08, --tail-skip 4) |
1,443.5 |
47.2 |
0.4 / 72.5 |
1,782 / 3,072 |
90.0% |
158 / 204 (2-rd) |
872 MiB |
4.08 -> 6.06 GiB |
Pass (2/2) |
131,072 (128) |
Official v5 raw (no-draft, fp8, 131K ctx) |
1,141.3 |
22.3 |
34.2 / 113.0 |
1,767 / 3,072 |
80.4% |
0 / 0 |
696 MiB |
1.92 -> 5.30 GiB |
Pass (1/1) |
131,072 (128) |
Official v5 small-card (--vram-pool, q5_k, --tail-skip 4, 131K ctx) |
1,123.2 |
26.3 |
29.2 / 85.6 |
1,812 / 3,072 |
89.9% |
0 / 0 |
695 MiB |
1.95 -> 5.36 GiB |
Pass (1/1) |
131,072 (128) |
Fork ZHA+DSpark raw (k8v4, 1M ctx, --cache-bias 0, --tail-skip 0) |
1,443.4 |
28.6 |
0.5 / 110.4 |
1,794 / 3,072 |
76.3% |
70 / 97 |
961 MiB |
5.16 -> 7.75 GiB |
Pass (1/1) |
131,072 (128) |
Fork ZHA+DSpark tuned (k8v4, 1M ctx, --cache-bias 0.08, --tail-skip 4) |
1,427.2 |
44.1 |
0.4 / 71.1 |
1,782 / 3,072 |
88.2% |
76 / 107 |
916 MiB |
5.41 -> 7.75 GiB |
Pass (1/1) |
- At
32,768tokens, ForkZHA+DSpark(tuned, 1M configured context) is+39.2%faster prefilling and+12.6%faster decoding than Officialv5small-card. - At
131,072tokens, ForkZHA+DSparkwidens the lead to+27.1%faster prefilling and+67.7%faster decoding than Officialv5small-card (44.1vs26.3 tok/s), and+26.5%prefill /+28.3%decode in the raw routing comparison (28.6vs22.3 tok/s), while still leaving916–961 MiBfree VRAM.
2. Official v0.2.20-poly.5 12 GB VRAM Context Ceiling / OOM Boundary
Tested with Official v5 small-card flags (--kv fp8 --attn-requant q5_k --loop-bf16 --tail-skip 4 --vram-pool --vram-reserve-mib 768).
| Probe | --max-context |
Prompt Tokens | Outcome | Prefill tok/s (s) |
Decode tok/s |
Cached Experts | Free VRAM | Needle Recall | Error / Notes |
|---|---|---|---|---|---|---|---|---|---|
Probe A (256K) |
262,144 |
256,000 |
OOM / Stopped | Last PP 922.5 at 231,479 / 256,000 |
— |
1,812 / 3,072 |
664 MiB |
— |
ERR no VRAM for the attention cache (2 MiB more) |
Probe B (192K) |
262,144 |
196,608 |
Passed | 983.4 (199.92s) |
24.1 |
1,812 / 3,072 |
646 MiB |
Pass |
NEEDLE-192K-PULSE recalled (p50/p95 = 34.6 / 84.1 ms, hit 88.1%) |
With Official v5's --kv-grow on a 12 GB RTX 4070 SUPER (768 MiB reserve), Inkling-2-Mini-UD-Q4_K_XL completes 196,608 tokens (192K) cleanly, then hits VRAM exhaustion around 231.5K–256K during dynamic KV allocation.
3. Fork ZHA+DSpark 32K -> 128K -> 256K -> 512K -> 1M -> 1K Multi-Turn Ramp & Dynamic Pinned Host-RAM Lifecycle
Single persistent strata-poly.exe process (--max-context 1048576 --kv k8v4 --draft-model ... --window 4 --cache-bias 0.08 --tail-skip 4 --expert-swaps 0 --ram-experts-mib 2048 --vram-reserve-mib 768).
- Startup log confirmed dynamic leaf allocation:
ZHA index: chunks of 64, 4 references, budget 0.160 (at most 512), a pool of 600 chunks a KV head, leaves grow from 64K. - At
READY:proc_WS = 3.012 GiB,proc_Priv = 12.471 GiB,availRAM = 17.035 GiB(sys_RAM_delta = 3.256 GiBfrom20.291 GiBbaseline),VRAM = 11,074 MiB used / 924 MiB free,1,769 / 3,072experts cached. - Peak hardware telemetry across all 6 turns:
peak_vram_used = 11,166 MiB(min_vram_free = 832 MiB),peak_gpu_temp = 57 °C,min_avail_ram = 6.184 GiB(peak_ram_load = 80%).
| Turn | Total Prompt | Reused Prefix | New Tokens | Inc. Prefill tok/s (s) |
Decode tok/s |
DSpark Acc | p50 / p95 ms |
Hit % | proc_WS (GiB) |
proc_Priv (GiB) |
availRAM (GiB) |
VRAM Used / Free (MiB) |
Multi-Turn Passkey Recall |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Turn 1 (32K, 64K leaves) |
32,768 |
0 |
32,768 |
1,501.9 (21.82s) |
37.7 |
76 / 92 (82.6%) |
0.3 / 85.4 |
89.5% |
4.051 |
13.079 |
14.671 |
11,048 / 950 |
ORBIT-101-ALPHA: Pass |
Turn 2 (128K, grows to 128K) |
128,000 |
32,895 |
95,105 |
1,091.9 (87.10s) |
32.7 |
63 / 82 (76.8%) |
30.1 / 93.6 |
87.8% |
4.635 |
13.557 |
13.777 |
10,952 / 1,046 |
T1 + ORBIT-202-BETA: Pass |
Turn 3 (256K, grows to 256K) |
256,000 |
128,127 |
127,873 |
959.0 (133.34s) |
27.9 |
55 / 81 (67.9%) |
38.9 / 99.6 |
87.0% |
5.762 |
14.703 |
12.762 |
10,938 / 1,060 |
T1 + T2 + ORBIT-303-GAMMA: Pass |
Turn 4 (512K, grows to 512K) |
512,000 |
256,127 |
255,873 |
839.3 (304.88s) |
29.5 |
84 / 97 (86.6%) |
0.3 / 126.5 |
85.8% |
8.014 |
16.952 |
10.406 |
10,924 / 1,074 |
T1 + ORBIT-404-DELTA: Pass |
Turn 5 (1,024K, grows to 1M) |
1,024,000 |
512,127 |
511,873 |
602.2 (850.04s) |
25.6 |
88 / 101 (87.1%) |
0.3 / 145.1 |
83.7% |
12.521 |
21.631 |
7.599 |
11,029 / 969 |
T1 (~1M back) + ORBIT-505-EPSILON: Pass |
Turn 6 (1K fresh, shrinks 1M -> 64K) |
1,024 |
0 |
1,024 |
314.2 (3.26s) |
30.4 |
70 / 83 (84.3%) |
0.5 / 101.9 |
60.0% |
3.589 |
12.779 |
16.715 |
10,983 / 1,015 |
ORBIT-606-ZETA: Pass |
- Between Turn 1 and Turn 5 (
1,024,000tokens), VRAM expert cache gracefully contracted from1,769(7.6 GiB) down to1,483(6.33 GiB) as ZHA VRAM summaries grew while keeping950–1,074 MiBfree VRAM and25.6–37.7 tok/sdecode with67.9%–87.1%DSpark acceptance. - On Turn 6 (
1,024-token fresh prompt), shrinking the pinned ZHA host leaves from1M -> 64Kreleased-8.932 GiBprocess Working Set (12.521 -> 3.589 GiB),-8.852 GiBprivate commit (21.631 -> 12.779 GiB), and returned+9.116 GiBsystem available RAM (7.599 -> 16.715 GiB).
Key Technical Differences vs Mainstream (v0.2.20-poly.5 & Open PR #336)
- Mainstream
PolyStrata(main@d62dfacbe,v0.2.20-poly.5) status on host-RAM KV offload:--kv-resident(PR [Engine] strata-poly: --kv-resident N (KV streaming for long contexts) #180) only supportsqwen35moe(Ornith 1.5 / Qwen 3.5 & 3.6); Inkling 2 has no merged active host-RAM KV offload (PR #336is still open).PR #343addsstrata_pinmulti-slot Host-RAM prefix pinning between turns, not active long-context KV offload.
- ZHA + DSpark (
--window 1..4) compatibility + multi-row decode (0fff8c5c7,c35490d31):- Upstream PR [Engine] Inkling 2: a ZHA index over the full-attention layers for long contexts on small cards (opt-in) #336 refuses
--draft-modelwheneverSTRATA_INK_ZHAis enabled. Our fork supports ZHA + DSpark via 2-part CUDA graph capture aroundzha_attention(), batched scoring/lookup for verification rows, and async leaf streaming, delivering44.1 tok/sdecode at131Kand25.6 tok/sat1,024Ktokens onUD-Q4_K_XL.
- Upstream PR [Engine] Inkling 2: a ZHA index over the full-attention layers for long contexts on small cards (opt-in) #336 refuses
- Dynamic growth and shrink-back of pinned host-RAM KV leaves (
ccb4a18eb):- Instead of pinning ~9.0 GiB upfront at startup for
--max-context 1048576(which causescudaHostAllocpressure on 32 GB systems alongside CPU-spilled experts), leaves start atmin(max_context, 65536)(0.56 GiB,3.012 GiBprocess WS atREADY), double cleanly up to 1M with one-buffer-at-a-time reallocation (<= 256 MiBtemporary overhead), and shrink back to 64K on short fresh prompts (-8.932 GiBWS /+9.116 GiBavailRAMreclaimed).
- Instead of pinning ~9.0 GiB upfront at startup for
- Full small-card stack active simultaneously:
k8v4KV (1088 K + 576 V B/row), partial-VRAM DSpark (w1+fold_win pinned host RAM +Q8_02-bit head screen), multi-token GPU doorbell (n=1..4), prompt-arena loan during decode,F8 v2MMA decode attention, and WDDM DXGI non-pool budget accounting.
What We Did Not Test
- Upstream
PR #336standalone (without DSpark) side-by-side against our fork at512K–1M. STRATA_INK_ZHA_MAX=256vs512speed/accuracy sweep onUD-Q4_K_XL, full perplexity / KL divergence evaluation against dense attention, or multi-needle stress tests beyond 1–3 passkeys per turn.- Non-greedy sampling (
temperature > 0),GSQ-RCO-IQ4_XS/IQ3_XSon this exact matrix (note:GSQ-RCO-IQ3_XS1M ramp was verified separately during earlier testing), vision inputs, Linux, AMD HIP, or Apple Metal. - Total benchmark wall time for the Phase 1 (128K), Phase 2 (OOM probe), and Phase 3 (32K–1M–1K multi-turn ramp) runs:
2,385.6 s(~39.8 min; the Phase 1 32K rounds ran ~5 min earlier on the same day).
Reproduction status: Measured locally
Activity