Skip to content

[Benchmark] RTX 4070 SUPER 12 GB — Inkling 2 Mini UD-Q4_K_XL: v0.2.20-poly.5 vs fork (k8v4, partial-VRAM DSpark, multi-token doorbell, F8 v2 MMA, WDDM DXGI budget fix) #352

Backlog

Description

@KurrynDev13

Hardware & Environment

  • GPU: NVIDIA GeForce RTX 4070 SUPER 12 GB (sm_89, 12,282 MiB VRAM, Driver 621.24, CUDA 13)
  • CPU: AMD Ryzen 9 7900X (12C / 24T, --threads 12)
  • RAM: 32 GB DDR5-6000 (6000 MHz)
  • OS: Windows 11 Pro (x64)
  • Date: 2026-11-26 (same-day 3-round alternating runs, median of 3 reported with min–max range)

Builds & Model Tested

  • Model: Inkling-2-Mini-UD-Q4_K_XL.gguf (17.6 GB, --max-context 131072 --vram-reserve-mib 768 --prompt-batch 1024)
  • Official v0.2.20-poly.5: strata-poly-windows-x64-adf95bbb55348db7.zip (engine=0.1.66, src=44f8847bd6b7fd1a) + dspark-Inkling-2-Mini-Q8_0_Old.gguf (402,278,560 bytes, SHA-256 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773).
    (Note: the newer 503,889,952-byte dspark-Inkling-2-Mini-Q8_0.gguf currently at the top of unsloth/Inkling-2-Mini-GGUF failed v0.2.20-poly.5 with not a DSpark drafter of this model (dflash.dspark.markov_rank), whereas dspark-Inkling-2-Mini-Q8_0_Old.gguf matches setup.py's pinned SHA-256 and loads cleanly.)
  • Fork: KurrynDev13/PolyStrata-Inkling2 (cf64270a4 + local WDDM DXGI non-pool fix 98f1a94bd) + inkling2-dspark.gguf

Measured Results (--vram-reserve-mib 768, Greedy temperature=0 seed=123)

All 6 configurations ran back-to-back in 3 alternating rounds (90 total runs, one process at a time, fresh copy of expert-profile.txt per run, --conversation-cache-mib 0). Prompts were built from source files in src/poly/ using the model's tokenizer (345 tokens with 256 generated; 2,048 to 32,768 tokens with 128 generated).

1. Unbiased / Raw Routing (--cache-bias 0, --tail-skip 0)

Prompt (gen) Config Prefill tok/s (min–max) Decode tok/s (min–max) p50 / p95 ms Cached Experts Hit % Drafts Acc (3-rd sum) Free VRAM
345 (256) Official v5 raw (no-draft, fp8) 317.7 (221.4–321.1) 66.0 (20.9–68.1) 14.7 / 19.3 1,766 / 3,072 88.0% 0 / 0 348 MiB
345 (256) Fork raw (+DSpark, k8v4) 316.9 (310.9–321.1) 80.7 (68.7–83.8) 0.3 / 37.1 1,821 / 3,072 80.0% 443 / 626 840 MiB
2,048 (128) Official v5 raw (no-draft, fp8) 777.0 (771.3–1080.2) 46.6 (45.8–64.2) 22.2 / 27.2 1,766 / 3,072 92.2% 0 / 0 393 MiB
2,048 (128) Fork raw (+DSpark, k8v4) 1,104.1 (1103.2–1142.1) 67.2 (66.8–69.4) 0.5 / 37.9 1,780 / 3,072 82.5% 200 / 311 890 MiB
8,192 (128) Official v5 raw (no-draft, fp8) 1,285.1 (1273.5–1288.9) 62.9 (60.9–63.6) 15.5 / 19.6 1,766 / 3,072 91.9% 0 / 0 485 MiB
8,192 (128) Fork raw (+DSpark, k8v4) 1,708.6 (1697.2–1730.4) 66.8 (62.7–72.6) 0.7 / 39.1 1,835 / 3,072 82.0% 200 / 302 794 MiB
16,384 (128) Official v5 raw (no-draft, fp8) 1,205.3 (1170.6–1226.2) 58.4 (57.7–60.0) 16.5 / 22.6 1,766 / 3,072 90.5% 0 / 0 515 MiB
16,384 (128) Fork raw (+DSpark, k8v4) 1,866.3 (1828.8–1878.2) 64.7 (63.9–67.1) 0.5 / 39.5 1,850 / 3,072 79.7% 201 / 324 904 MiB
32,768 (128) Official v5 raw (no-draft, fp8) 1,106.9 (1047.4–1107.3) 55.6 (54.5–56.4) 17.5 / 24.0 1,766 / 3,072 89.5% 0 / 0 482 MiB
32,768 (128) Fork raw (+DSpark, k8v4) 1,794.1 (1672.3–1794.3) 63.4 (60.7–66.3) 0.4 / 42.4 1,821 / 3,072 80.2% 213 / 324 928 MiB

(Raw summary: Fork is +33.0% to +62.1% faster on prompt reading at 2K–32K and +6.2% to +44.2% faster writing across all 5 lengths.)

2. Small-Card / Tuned Settings (including Official --vram-pool and Official +DSpark)

Prompt (gen) Config Prefill tok/s (min–max) Decode tok/s (min–max) p50 / p95 ms Cached Experts Hit % Drafts Acc (3-rd sum) Free VRAM
345 (256) Official v5 small-card (no-draft, fp8) 308.9 (288.9–324.6) 51.7 (41.7–83.8) 19.2 / 23.3 1,815 / 3,072 92.5% 0 / 0 373 MiB
345 (256) Official v5 small-card (no-draft, --vram-pool) 313.9 (309.3–317.6) 81.3 (80.2–82.3) 12.0 / 14.9 1,815 / 3,072 92.0% 0 / 0 439 MiB
345 (256) Official v5 small-card (+DSpark, fp8) 304.8 (304.5–305.4) 51.5 (46.5–86.2) 19.4 / 27.1 1,586 / 3,072 90.5% 91 / 194 260 MiB
345 (256) Fork tuned (+DSpark, k8v4, no-pool) 326.8 (319.9–332.8) 96.6 (89.6–103.5) 0.3 / 28.6 1,835 / 3,072 90.2% 449 / 677 805 MiB
2,048 (128) Official v5 small-card (no-draft, fp8) 1,104.0 (783.7–1107.6) 76.1 (51.3–82.0) 12.9 / 15.9 1,815 / 3,072 97.1% 0 / 0 381 MiB
2,048 (128) Official v5 small-card (no-draft, --vram-pool) 1,017.8 (986.6–1021.8) 79.5 (76.5–80.5) 12.2 / 16.8 1,815 / 3,072 97.0% 0 / 0 428 MiB
2,048 (128) Official v5 small-card (+DSpark, fp8) 660.0 (587.6–1003.0) 49.3 (47.5–75.1) 15.4 / 33.8 1,586 / 3,072 95.2% 18 / 37 360 MiB
2,048 (128) Fork tuned (+DSpark, k8v4, no-pool) 1,116.1 (1099.4–1128.0) 77.6 (71.9–80.1) 16.9 / 30.2 1,767 / 3,072 92.9% 178 / 339 902 MiB
8,192 (128) Official v5 small-card (no-draft, fp8) 1,280.0 (789.0–1298.4) 78.5 (45.2–79.1) 12.5 / 14.8 1,815 / 3,072 96.9% 0 / 0 483 MiB
8,192 (128) Official v5 small-card (no-draft, --vram-pool) 1,232.1 (1202.3–1246.6) 78.9 (75.9–79.1) 12.4 / 15.6 1,815 / 3,072 96.9% 0 / 0 418 MiB
8,192 (128) Official v5 small-card (+DSpark, fp8) 1,175.1 (722.7–1200.5) 72.2 (40.8–72.9) 13.4 / 19.0 1,586 / 3,072 94.9% 6 / 28 417 MiB
8,192 (128) Fork tuned (+DSpark, k8v4, no-pool) 1,699.9 (1664.5–1726.3) 82.7 (82.4–83.9) 17.1 / 28.7 1,808 / 3,072 93.7% 186 / 292 795 MiB
16,384 (128) Official v5 small-card (no-draft, fp8) 1,230.6 (1193.6–1235.8) 73.7 (72.5–74.0) 13.3 / 17.9 1,815 / 3,072 96.0% 0 / 0 479 MiB
16,384 (128) Official v5 small-card (no-draft, --vram-pool) 1,188.0 (1168.2–1201.3) 74.5 (70.4–74.8) 13.1 / 17.4 1,815 / 3,072 96.2% 0 / 0 513 MiB
16,384 (128) Official v5 small-card (+DSpark, fp8) 1,145.5 (1142.2–1159.2) 71.3 (70.6–72.1) 13.5 / 19.2 1,586 / 3,072 94.6% 5 / 23 490 MiB
16,384 (128) Fork tuned (+DSpark, k8v4, no-pool) 1,845.8 (1834.2–1882.0) 88.4 (87.6–90.8) 0.3 / 30.2 1,850 / 3,072 92.7% 217 / 313 960 MiB
32,768 (128) Official v5 small-card (no-draft, fp8) 1,069.7 (1020.6–1110.4) 68.9 (65.2–69.1) 14.2 / 18.5 1,815 / 3,072 95.8% 0 / 0 515 MiB
32,768 (128) Official v5 small-card (no-draft, --vram-pool) 1,083.4 (1026.3–1095.0) 68.7 (62.1–69.7) 14.2 / 18.5 1,815 / 3,072 95.7% 0 / 0 414 MiB
32,768 (128) Official v5 small-card (+DSpark, fp8) 1,123.0 (1049.0–1125.9) 61.6 (57.4–63.5) 15.2 / 23.4 1,586 / 3,072 92.8% 5 / 37 353 MiB
32,768 (128) Fork tuned (+DSpark, k8v4, no-pool) 1,801.3 (1654.7–1815.6) 81.6 (79.2–82.2) 0.4 / 34.1 1,739 / 3,072 92.8% 225 / 324 985 MiB

(Vs Official non-pool small-card: Fork is +1.1% to +68.4% faster reading and +2.0% to +86.8% faster writing. Vs Official --vram-pool: Fork is +4.1% to +66.3% faster reading across all 5 lengths and +4.8% to +18.8% faster writing at 345, 8K, 16K, 32K, and -2.4% at 2K.)


Exact Commands Run

Shared base arguments across all 6 series:

--model Inkling-2-Mini-UD-Q4_K_XL.gguf --serve --max-context 131072 --vram-reserve-mib 768 --prompt-batch 1024 --threads 12 --ram-experts-mib -1 --expert-profile <temp-copy-of-expert-profile.txt> --conversation-cache-mib 0 --eos-ids 0

Prompt command piped to stdin:

GEN <256|128> temperature=0 seed=123 <comma-separated-token-ids>
QUIT

Per-series extra arguments and environment variables:

  1. Official v5 (raw, no-draft, fp8): --kv fp8
  2. Official v5 (small-card, no-draft, fp8): --kv fp8 --attn-requant q5_k --loop-bf16 --tail-skip 4
  3. Official v5 (small-card, no-draft, --vram-pool): --kv fp8 --attn-requant q5_k --loop-bf16 --tail-skip 4 --vram-pool
  4. Official v5 (small-card, +DSpark, fp8): --kv fp8 --attn-requant q5_k --loop-bf16 --tail-skip 4 --draft-model dspark-Inkling-2-Mini-Q8_0_Old.gguf
  5. Fork fixed (raw, +DSpark, k8v4): --kv k8v4 --draft-model inkling2-dspark.gguf --cache-bias 0 --tail-skip 0 --expert-swaps 0 --window 4 with STRATA_FAST_REL_BIAS=1 STRATA_MOE_DEDUP=1 STRATA_INK_FAST_CTRL=1 STRATA_POLY_STREAM_STAGE=1 STRATA_ROUTE_TAIL_SKIP=0
  6. Fork fixed (tuned, +DSpark, k8v4): --kv k8v4 --draft-model inkling2-dspark.gguf --cache-bias 0.08 --tail-skip 4 --expert-swaps 0 --window 4 with STRATA_FAST_REL_BIAS=1 STRATA_MOE_DEDUP=1 STRATA_INK_FAST_CTRL=1 STRATA_POLY_STREAM_STAGE=1 STRATA_ROUTE_TAIL_SKIP=4

What We Did Differently in Our Fork (and Findings on Upstream v0.2.20-poly.5)

  1. Windows WDDM DXGI budget + reserve floor on non-pool VMM paths (98f1a94bd):
    • v0.2.20-poly.5 checks Windows DXGI gpu_local_memory_budget() only inside vpool_claim_to_budget() (--vram-pool), whereas default non-pool runs allow cover(), widen_stage(), carry_take(), read_groups(), and mind_card_vram() to consume down to reserve_mib_ / 4 (192 MiB here) using cudaMemGetInfo alone.
    • On Windows 11 with ~1 GB of desktop VRAM in use, non-pool v0.2.20-poly.5 occasionally exceeded DXGI's local VRAM budget during prompt reading and triggered WDDM eviction stalls (20.9 at 345 raw, 45.8 at 2K raw, 41.7–51.3 at 345/2K/8K small-card). Adding --vram-pool eliminated those stalls on Official (68.7–81.3 tok/s).
    • In our fork (src/poly/engine.cpp), we added vram_free_budget_bytes() (DXGI budget - usage cap), vram_keep_bytes() (full reserve_mib_ floor instead of reserve_mib_ / 4), and vmm_map_budgeted() (per-kArenaPiece budget checks during cache allocation/growth). That eliminated the WDDM eviction stalls across all 30 non-pool fork runs (min 71.9 tok/s tuned, p95 = 28.6–34.1 ms).
  2. --kv k8v4 (Q8_0 K + Q4_0 V) + quantized FlashAttention-2 (eacdfb182):
    • Shrinks KV VRAM vs fp8 / q8_0 while keeping Tensor Core FlashAttention-2 (ink_flash_kernel<G, true>) active on k8v4 prefill (driving +33% to +68% faster prompt reading at 8K–32K).
  3. Partial-VRAM DSpark support (3ad0b6ac5, 21dcdf266) — relevant to DSpark speculative decoding provides little measurable speed-up on RTX 5070 Ti (16 GB) #349:
    • On v0.2.20-poly.5, forcing DSpark on our 12 GB card lost 229 cached experts (1,815 → 1,586) because DSpark tables stayed in VRAM, and inkling2.cpp disables the 2-bit vocabulary head screen whenever !every_expert_fits(). As a result, Official +DSpark only accepted 5–18 drafts across 3 rounds at 2K–32K and decoded slower than Official no-draft at every context length (49.3–72.2 vs 73.7–78.5 tok/s).
    • Our fork offloads DSpark markov_w1 and fold_w to host RAM (~300 MiB freed for routed experts), keeps the 2-bit head screen enabled on partial-VRAM cards (Q8_0 and Q6_K), runs DSpark stage CUDA graphs, and applies confidence-calibrated Basalt DraftPolicy. Across 2K–32K tuned runs, our fork accepted 178–225 drafts across 3 rounds (449 / 677 at 345 tokens) while keeping 1,739–1,850 experts in VRAM.
  4. Multi-token GPU doorbell (n = 1..4) + whole-pass CUDA graphs (67ebf1c67, eacdfb182):
    • Keeps CPU-spilled MoE routing on the GPU doorbell during speculative verify windows (n > 1) instead of falling back to host-routed moe() (bell_on(n) is n == 1 only upstream).
  5. Prompt-batch & staging VRAM loan during decode (ed1f42229):
    • Unmaps prompt-only VMM scratch (691.8 MiB) and staging buffers between prompts so unused bytes are loaned to additional routed expert slots during decode (bounded by the DXGI budget fix above).
  6. Decode fusions (F1–F7, 450a218f5) + F8 v2 register-softmax two-tile Tensor Core MMA decode attention (cf64270a4):
    • Fused QKV/clip/KV-store, loop-controller gating, fused Block AttnRes + RMSNorm + Q8_1, fused attention-join Q8_1, fused SiTU+Q8_1, and shared-KV mma.sync multi-row decode attention for DSpark verify windows.
  7. Tuned routing flags (separated from raw runs above):
    • --cache-bias 0.08 --tail-skip 4 --expert-swaps 0 (vs Official's small-card --attn-requant q5_k --loop-bf16 --tail-skip 4; raw --cache-bias 0 --tail-skip 0 runs are reported separately in Table 1).

What We Did Not Test

  • Context lengths beyond 32,768 (64K–256K), non-greedy sampling (temperature > 0), vision/image inputs, or a full HumanEval+ accuracy comparison against v0.2.20-poly.5.
  • Other quantizations (IQ3_XS, UD-Q3_K_XL, IQ4_XS) in this side-by-side v0.2.20-poly.5 sweep, or Linux / AMD HIP / Apple Metal.

Reproduction status: Measured locally

Activity

  1. cobra91 commented on Nov 26, 2026

    @cobra91
    Contributor

    Great write-up @KurrynDev13 — there is a strong overlap with PR #357 ([Engine] Enable GPU-to-GPU doorbell for --expert-gpu with CUDA graphs and DSpark, stacked functionally on the #356 #355 fix):

    • Point 4 (Multi-token GPU doorbell n > 1): PR [Engine] Enable GPU-to-GPU doorbell for --expert-gpu with CUDA graphs and DSpark #357 generalizes ExpertBell / bell_ring() to n = 1..8 (kBellJobs = 128, per-job row[]) so card_moe() and whole-pass CUDA graphs stay active during DSpark verification windows, and routes GPU-0 misses either to --expert-gpu 1 (ExpertCard with async bell_ack directly from GPU 1's stream) or to CPU fallback.
      • On our Windows 11 asymmetric dual-GPU rig (RTX 5080 16 GB + RTX 4060 Ti 16 GB PCIe Gen4 x2, Inkling-2-Mini-UD-Q4_K_XL.gguf, 302-token prompt, 256 generated, --kv fp8 --max-context 32768), this takes --expert-gpu 1 from 60.17 -> 102.84 tok/s (--no-draft) and 55.97 -> 135.59 tok/s (+ DSpark), and reaches 14.87 tok/s on UD-Q8_K_XL (21.30 GiB) where --layer-split auto drops to 3.21 tok/s.
    • Point 3 (Partial-VRAM DSpark / every_expert_fits()): That also matches what we saw on UD-Q4_K_XL (--expert-gpu 1), where DSpark acceptance is noticeably lower (~71–74%, e.g. 136/183) than when all experts fit on GPU 0 (UD-IQ3_XXS: 84.9%, 180/212 at --window 4).

    If you ever want to compare notes or rebase/test the multi-token doorbell piece (#357), happy to coordinate!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions