[GH-ISSUE #5247] [Benchmark] 4x RTX 4090 48 GB (sm_89) + DeepSeek-V4.1-Flash 2.25 bpw (IQ2_XS), 0.2.10: 256K and 1M context, DS4_SPLIT=9,11,10,10 fits all 15,744 experts in VRAM #3123

Closed
opened 2026-11-07 14:38:15 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Moeblack on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5247

What did you measure, or what went wrong

Measurements of the stock 0.2.10 release (strata-dsv41 0.1.56 sm_89 build) on a 4 x RTX 4090 48 GB machine with the 2.25 bpw IQ2_XS set at 256K and 1M context (--parallel 4), including multi-turn sessions up to 301K tokens and DS4_SPLIT=9,11,10,10 to fit all 15,744 experts in VRAM at 1M context. (docs/DEEPSEEK41.md notes that sm_89 had only a single-card 2.00 bpw report so far.)

Setup

  • Hardware: 4 x NVIDIA GeForce RTX 4090 48 GB (sm_89, 49,140 MiB each, PCIe, no NVLink, 450 W power limit), 2 x Intel Xeon Gold 6330 @ 2.00 GHz (56C/112T across 2 NUMA nodes), 251 GiB RAM, Ubuntu 22.04.5 LTS (Linux 6.8.0-138-generic), driver 595.99.02, CUDA 13.2
  • Software: Strata 0.2.10, stock prebuilt engine 0.1.56-linux-x86_64-cuda-cuda13 (06698c674)
  • Model: deepseek-v4.1-flash-ist-das-2.25bpw (IQ2_XS 4-shard abliterated set AtomicChat/DeepSeek-V4.1-Flash-1017-Abliterated-GSQ-RCO-GGUF, where shards 1-3 are byte-identical to ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF, plus DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf, Unsloth DSpark-Q8_0, and mmproj-BF16.gguf), packed with tools/dsv41/pack_gguf.py and the shipped data/dsv41/profile-2.25.bin
  • Launch arguments:
    strata-dsv41 --serve --pack <pack>/deepseek-v4.1-flash-ist-das-2.25bpw \
      --max-context <262144|1048576> --eos 1 --vision on --dspark auto \
      --dspark-conf 0.65 --tp 2 --reserve-mib 900 --layer-split auto --parallel 4
    
    (On the stock engine, --tp 2 logs tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers) and runs layer-split across the 4 cards.)

Method

  • All throughput numbers come directly from the engine's timing lines (maya ds4 serve: request N: prompt ... generated ...).
  • Tested three stock configurations:
    1. 256K context (--max-context 262144), default auto layer split (5,12,11,12).
    2. 1M context (--max-context 1048576), default auto layer split (5,12,11,12), including live multi-turn conversations reaching 286K-301K tokens.
    3. 1M context (--max-context 1048576 --vision-resident) with DS4_SPLIT=9,11,10,10 in the environment so GPU0 takes 9 trunk layers instead of 5.

Results

1. VRAM placement & expert residency across stock configurations
Arm Context Layer split (GPU0..3) VRAM experts (GPU0 / GPU1 / GPU2 / GPU3) Free VRAM (MiB) CPU-lane spill
Arm 1 (default) 262,144 5, 12, 11, 12 2304/2304, 4608/4608, 4224/4224, 4542/4608 20015 / 963 / 2239 / 893 66 experts (0.6 GB)
Arm 2 (default) 1,048,576 5, 12, 11, 12 2304/2304, 4419/4608, 4180/4224, 4404/4608 19301 / 889 / 885 / 883 437 experts (4.2 GB)
Arm 3 (DS4_SPLIT=9,11,10,10) 1,048,576 9, 11, 10, 10 3840/3840, 4224/4224, 3840/3840, 3840/3840 3969 / 2987 / 5143 / 6365 0 experts (0.0 GB)

Startup log excerpt for Arm 3 (1M context + DS4_SPLIT=9,11,10,10 + --vision-resident):

ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers)
ds4: --parallel 4: 4 conversations at once, each its own rings and KV (4.51 GB more VRAM for the other 3, from the experts' room)
ds4: RAM store: up to 13099 slots of 11.4 MB (149.0 GB), policy 0, 8 reader threads, unbuffered reads
ds4: RAM store: 13099 of the profile's hottest experts read in (119.8 GB) in 56.4 s
ds4: prompt path: the chunked pass from 96 tokens, windows of 16 below
ds4: CUDA0 layers [0, 42]: weights 1.91 GB, experts 39.13 GB (3840 of 3840 in VRAM), caches 1.55 GB, 3969 MiB free
ds4: CUDA1 layers [9, 19]: weights 1.52 GB, experts 41.19 GB (4224 of 4224 in VRAM), caches 1.38 GB, 2987 MiB free
ds4: CUDA2 layers [20, 29]: weights 1.30 GB, experts 39.09 GB (3840 of 3840 in VRAM), caches 1.55 GB, 5143 MiB free
ds4: CUDA3 layers [30, 39] + head: weights 1.84 GB, experts 37.25 GB (3840 of 3840 in VRAM), caches 1.55 GB, 6365 MiB free
ds4: 0 routed experts on the CPU lane (0.0 GB, in place in the model's files), 56 threads
2. Throughput measurements (stock 0.1.56 engine)
Arm & Workload Prompt tokens (reused + fresh) Prompt tok/s Generated tokens Decode tok/s Drafts kept Notes
Arm 1 (256K) · single-stream decode 0 + 25 181.3 600 131.76 451 / 519 (86.9%) 1 conversations running
Arm 1 (256K) · 9K cold prompt 0 + 9,010 1,809.7 12 89.64 6 / 6 4,979 ms prefill
Arm 1 (256K) · 5.7K cold prompt 0 + 5,752 1,150.5 63 84.70 34 / 40 5,000 ms prefill
Arm 1 (256K) · 4-way concurrent 0 + 9..15 each 113–167 130–400 each 21.9 / 28.3 / 52.0 / 45.0 564 / 643 total ~125 tok/s aggregate across 4 slots
Arm 2 (1M, default split) · single-stream 0 + 25 179.8 600 121.91 438 / 526 (83.3%) 437 experts on CPU lane
Arm 2 (1M, default split) · 286K–300K context 284,628 + 1,701
286,727 + 6,563
293,384 + 6,100
299,546 + 568
686.9
829.0
843.1
484.1
398
94
62
62
125.14
145.29
139.11
142.45
308 / 339
78 / 78
51 / 55
51 / 55
Multi-turn session at ~300K depth (1 conversations running)
Arm 3 (1M, DS4_SPLIT=9,11,10,10) · Python LRU code 0 + 40 192.1 768 122.80 — Temp 0, thinking off, TTFT 212.9 ms, 100% experts in VRAM

Findings

  1. Default layer split leaves ~19–20 GiB unused on GPU0 on 4 x 48 GB cards: Because GPU0 holds the MTP drafter, the automatic splitter assigns only 5 trunk layers ([0..4]) to GPU0 and 35 trunk layers ([5..39]) to GPU1–3 before accounting for the 1M KV cache (--parallel 4). At 1M context this spills 437 experts (4.2 GB) from GPU1–3 to the CPU lane while GPU0 has 19.3 GiB free. Setting DS4_SPLIT=9,11,10,10 moves 4 trunk layers to GPU0 and keeps all 15,744 experts in VRAM with 3–6 GiB free on every card.
  2. 300K context stability: In a 1M context configuration (--parallel 4), multi-turn conversations reaching 286K–301K tokens reused prefix slots cleanly (0.0 s restore from RAM) and maintained 125–145 tok/s single-stream decode and 829–843 tok/s incremental prefill on 6K-token turns.
  3. Concurrency behavior: With 4 concurrent conversations active, total aggregate decode throughput (~120–125 tok/s) matches single-stream throughput (~122–132 tok/s) while eliminating queueing delay.

Reproduction status

Measured locally

Originally created by @Moeblack on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5247 ### What did you measure, or what went wrong Measurements of the stock 0.2.10 release (`strata-dsv41` 0.1.56 `sm_89` build) on a 4 x RTX 4090 48 GB machine with the 2.25 bpw `IQ2_XS` set at 256K and 1M context (`--parallel 4`), including multi-turn sessions up to 301K tokens and `DS4_SPLIT=9,11,10,10` to fit all 15,744 experts in VRAM at 1M context. (`docs/DEEPSEEK41.md` notes that `sm_89` had only a single-card 2.00 bpw report so far.) #### Setup - **Hardware**: 4 x NVIDIA GeForce RTX 4090 48 GB (`sm_89`, 49,140 MiB each, PCIe, no NVLink, 450 W power limit), 2 x Intel Xeon Gold 6330 @ 2.00 GHz (56C/112T across 2 NUMA nodes), 251 GiB RAM, Ubuntu 22.04.5 LTS (Linux 6.8.0-138-generic), driver 595.99.02, CUDA 13.2 - **Software**: Strata 0.2.10, stock prebuilt engine `0.1.56-linux-x86_64-cuda-cuda13` (`06698c674`) - **Model**: `deepseek-v4.1-flash-ist-das-2.25bpw` (`IQ2_XS` 4-shard abliterated set `AtomicChat/DeepSeek-V4.1-Flash-1017-Abliterated-GSQ-RCO-GGUF`, where shards 1-3 are byte-identical to `ISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF`, plus `DeepSeek-V4.1-Flash-Engram-IQ4_NL.gguf`, Unsloth `DSpark-Q8_0`, and `mmproj-BF16.gguf`), packed with `tools/dsv41/pack_gguf.py` and the shipped `data/dsv41/profile-2.25.bin` - **Launch arguments**: ```text strata-dsv41 --serve --pack <pack>/deepseek-v4.1-flash-ist-das-2.25bpw \ --max-context <262144|1048576> --eos 1 --vision on --dspark auto \ --dspark-conf 0.65 --tp 2 --reserve-mib 900 --layer-split auto --parallel 4 ``` (On the stock engine, `--tp 2` logs `tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers)` and runs layer-split across the 4 cards.) #### Method - All throughput numbers come directly from the engine's timing lines (`maya ds4 serve: request N: prompt ... generated ...`). - Tested three stock configurations: 1. **256K context (`--max-context 262144`)**, default auto layer split (`5,12,11,12`). 2. **1M context (`--max-context 1048576`)**, default auto layer split (`5,12,11,12`), including live multi-turn conversations reaching **286K-301K tokens**. 3. **1M context (`--max-context 1048576 --vision-resident`) with `DS4_SPLIT=9,11,10,10`** in the environment so GPU0 takes 9 trunk layers instead of 5. #### Results ##### 1. VRAM placement & expert residency across stock configurations | Arm | Context | Layer split (GPU0..3) | VRAM experts (GPU0 / GPU1 / GPU2 / GPU3) | Free VRAM (MiB) | CPU-lane spill | | --- | ---: | --- | --- | --- | --- | | **Arm 1 (default)** | 262,144 | `5, 12, 11, 12` | `2304/2304`, `4608/4608`, `4224/4224`, `4542/4608` | `20015 / 963 / 2239 / 893` | **66 experts (0.6 GB)** | | **Arm 2 (default)** | 1,048,576 | `5, 12, 11, 12` | `2304/2304`, `4419/4608`, `4180/4224`, `4404/4608` | `19301 / 889 / 885 / 883` | **437 experts (4.2 GB)** | | **Arm 3 (`DS4_SPLIT=9,11,10,10`)** | 1,048,576 | `9, 11, 10, 10` | `3840/3840`, `4224/4224`, `3840/3840`, `3840/3840` | `3969 / 2987 / 5143 / 6365` | **0 experts (0.0 GB)** | Startup log excerpt for **Arm 3 (`1M context + DS4_SPLIT=9,11,10,10 + --vision-resident`)**: ```text ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers) ds4: --parallel 4: 4 conversations at once, each its own rings and KV (4.51 GB more VRAM for the other 3, from the experts' room) ds4: RAM store: up to 13099 slots of 11.4 MB (149.0 GB), policy 0, 8 reader threads, unbuffered reads ds4: RAM store: 13099 of the profile's hottest experts read in (119.8 GB) in 56.4 s ds4: prompt path: the chunked pass from 96 tokens, windows of 16 below ds4: CUDA0 layers [0, 42]: weights 1.91 GB, experts 39.13 GB (3840 of 3840 in VRAM), caches 1.55 GB, 3969 MiB free ds4: CUDA1 layers [9, 19]: weights 1.52 GB, experts 41.19 GB (4224 of 4224 in VRAM), caches 1.38 GB, 2987 MiB free ds4: CUDA2 layers [20, 29]: weights 1.30 GB, experts 39.09 GB (3840 of 3840 in VRAM), caches 1.55 GB, 5143 MiB free ds4: CUDA3 layers [30, 39] + head: weights 1.84 GB, experts 37.25 GB (3840 of 3840 in VRAM), caches 1.55 GB, 6365 MiB free ds4: 0 routed experts on the CPU lane (0.0 GB, in place in the model's files), 56 threads ``` ##### 2. Throughput measurements (stock 0.1.56 engine) | Arm & Workload | Prompt tokens (reused + fresh) | Prompt tok/s | Generated tokens | Decode tok/s | Drafts kept | Notes | | --- | --- | ---: | ---: | ---: | --- | --- | | **Arm 1 (256K)** · single-stream decode | `0 + 25` | 181.3 | 600 | **131.76** | `451 / 519` (86.9%) | `1 conversations running` | | **Arm 1 (256K)** · 9K cold prompt | `0 + 9,010` | **1,809.7** | 12 | 89.64 | `6 / 6` | 4,979 ms prefill | | **Arm 1 (256K)** · 5.7K cold prompt | `0 + 5,752` | **1,150.5** | 63 | 84.70 | `34 / 40` | 5,000 ms prefill | | **Arm 1 (256K)** · 4-way concurrent | `0 + 9..15` each | 113–167 | 130–400 each | **21.9 / 28.3 / 52.0 / 45.0** | `564 / 643` total | ~125 tok/s aggregate across 4 slots | | **Arm 2 (1M, default split)** · single-stream | `0 + 25` | 179.8 | 600 | **121.91** | `438 / 526` (83.3%) | 437 experts on CPU lane | | **Arm 2 (1M, default split)** · 286K–300K context | `284,628 + 1,701`<br>`286,727 + 6,563`<br>`293,384 + 6,100`<br>`299,546 + 568` | 686.9<br>**829.0**<br>**843.1**<br>484.1 | 398<br>94<br>62<br>62 | **125.14**<br>**145.29**<br>**139.11**<br>**142.45** | `308 / 339`<br>`78 / 78`<br>`51 / 55`<br>`51 / 55` | Multi-turn session at ~300K depth (`1 conversations running`) | | **Arm 3 (1M, `DS4_SPLIT=9,11,10,10`)** · Python LRU code | `0 + 40` | 192.1 | 768 | **122.80** | — | Temp 0, thinking off, TTFT 212.9 ms, 100% experts in VRAM | #### Findings 1. **Default layer split leaves ~19–20 GiB unused on GPU0 on 4 x 48 GB cards**: Because GPU0 holds the MTP drafter, the automatic splitter assigns only 5 trunk layers (`[0..4]`) to GPU0 and 35 trunk layers (`[5..39]`) to GPU1–3 before accounting for the 1M KV cache (`--parallel 4`). At 1M context this spills 437 experts (4.2 GB) from GPU1–3 to the CPU lane while GPU0 has 19.3 GiB free. Setting `DS4_SPLIT=9,11,10,10` moves 4 trunk layers to GPU0 and keeps all 15,744 experts in VRAM with 3–6 GiB free on every card. 2. **300K context stability**: In a 1M context configuration (`--parallel 4`), multi-turn conversations reaching 286K–301K tokens reused prefix slots cleanly (`0.0 s` restore from RAM) and maintained 125–145 tok/s single-stream decode and 829–843 tok/s incremental prefill on 6K-token turns. 3. **Concurrency behavior**: With 4 concurrent conversations active, total aggregate decode throughput (~120–125 tok/s) matches single-stream throughput (~122–132 tok/s) while eliminating queueing delay. ### Reproduction status Measured locally
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.

The Strata project

<!-- gh-comment-id:6658809624 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report. The Strata project
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3123
No description provided.