[GH-ISSUE #4123] [Engine] DeepSeek: pull the CPU-lane experts in place and stream the DSpark windows (Project Maya v1.1.28, their PR #476) #1806

Closed
opened 2026-11-04 01:54:13 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @whitespades on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4123

Area

  • [Engine] (speed, kernels, models, the server and API)

What do you want to do?

Goal: on a single NVIDIA GPU in Linux, where the CPU-lane experts fit in RAM, have strata-dsv41 move those experts to the GPU as cheaply as Project Maya's maya-ds4 now does, and make DSpark drafting worthwhile on that class of PC.

Project Maya shipped this today as v1.1.28 (PR #476, release notes). Its own notice file in this repo says the dsv41 code is Maya's src/ds4 at v1.1.17 with later changes from v1.1.18 to v1.1.26 re-written onto Strata's engine, so this reads as the next step of a sync that is already the agreed practice — I am asking for scope agreement before anyone writes code.

What v1.1.28 changes, item by item:

  1. Where every CPU-lane expert is a pinned, mapped copy on one NUMA node, the GPU pulls the expert in place — it crosses RAM once instead of three times and uses no CPU core.
  2. DSpark verify windows use the stream lane (up to 16 experts a layer). Today only single-token steps use it, so with drafting on, nearly every non-VRAM expert went to the CPU lane while the GPU waited.
  3. A streamed expert stays in VRAM: it lands in that layer's "recent" slots (32 a layer, taken from the profile's coldest VRAM experts) and serves the following windows.
  4. The lane's time is measured on the device clock (%globaltimer); the host clock counted the device queue, so decode streamed less and less over a session.
  5. IQ1_S multi-token CPU rows, bit-exact to ggml.

Who needs it: the common case — one 12–24 GB card, 64–128 GB of RAM, the model's CPU-lane experts all in RAM. Strata 0.2.6 already targets exactly those machines with the copy-all-into-RAM step; these lane changes are what make that RAM copy cheap for the GPU. Together they are one feature, and 0.2.6 half of it is shipped.

Their measurements (same machine, frozen expert profile, RTX 3090 24 GB + Ryzen 5 5600X + 125 GB, Maya-XS): --bench decode at 64K 12.9 → 27.8 tokens/s; decode after a 128K / 256K prompt 14.0 / 15.9 → 23.2 / 26.1; prompt reading unchanged (563 → 560 at 8K, 1158 → 1148 at 128K, 1417 → 1407 at 256K). The maintainer's own check on a V100: +14%, +35% with less VRAM free, prompts unchanged. Exact-path perplexity equal to v1.1.27 (304.87 vs 304.77 over 300 windows); DS4_CHECK_SWAPS=1 9,877 landings, fills and swaps each byte-equal to the model file. It is on by default only for Linux + NVIDIA + one GPU + no helper GPU, and the start log names the path taken.

What I see in Strata today (see below for my environment; these are my own runs, and the log lines are verbatim):

my configuration decode prompt read (cold part)
--tp 1 (3090 only), default --mmap-experts (read in place) 17.1–18.0 tokens/s 147–207 tokens/s
--tp 1 --mmap-experts off (all CPU-lane experts copied into RAM, 99.3 GB) median 26.2–27.5, max 30.6 (≈250 requests) up to 633 tokens/s
--tp 2 (3090 + 3060, 3060 on PCIe 3.0 x4), ctx 8192 10.2–24.2, unstable ≤57
3090 + 3060 layer split with --dspark on --cpu-threads 32 22.8 tokens/s (drafts 223 of 294 kept) —

So the RAM copy alone is worth +55% here, and the 3090 alone beats a two-card split. The remaining piece is the lane: DSpark is never used on this machine, and the engine says why at every start —

ds4: DSpark not loaded: the routed experts (115 GB) are far more than the GPU holds (24 GB),
     where its verify rounds read 3.3x a token's bytes and gain nothing (--dspark on loads it anyway)

That verdict is about windows whose experts cannot stream. Item 2 is what changes the arithmetic, which is why I think it is worth a look for the 0.2.6 copy-all machines.

What the work would touch, as far as I can tell from the docs (a design question for you, not a proposal):

  • one policy for "all CPU-lane experts in pinned RAM" with the demand store off, plus the pinned/mapped registration (0.2.6 already sizes the RAM store);
  • reserving the per-layer recent slots in the VRAM plan, so strata_control/dsv41_fit.py, strata launch --plan and the app's preview say what the card really holds;
  • device-clock timing with the host path kept where %globaltimer is unavailable (HIP returns 0), and the start log naming which path ran;
  • the gate (Linux, NVIDIA, one GPU, no helper GPU) and a line in docs/DEEPSEEK41.md;
  • strata launch --tune's DSpark step would decide differently on affected machines.

Limits I expect to stay as they are: prompt reading unchanged; no gain where the CPU lane is bigger than RAM (a 2.25 set on one 24 GB card); multi-GPU and layer-split keeps today's path; answers may differ in the last bits as more experts are computed on the GPU. I am not asking to change the fit rules, the 8192 default context, or the model list.

What do you do today instead?

--tp 1 --mmap-experts off --prefill-chunk 4096 on the 3090, with --dspark auto (the engine declines it, so drafting never runs) and --cpu-threads 16. That is a good, stable 26–27 tokens/s and it is what I use.

Project Maya v1.1.28 gives the rest today, but not on this PC: its DeepSeek quants need 277 GB (Maya-XS) or 340 GB (Maya-S) with their own 161 GB Q6_K Engram, and the free space here is 57 GB and 226 GB, so an A/B is not possible without deleting the IST-DAS sets. Staying inside Strata for Qwen and DeepSeek is the point of my setup, so a backport is what I am asking for.

Environment: Strata 0.2.6 (build 0.1.51); engine-dsv41/0.1.49.2-linux-x86_64-cuda-cuda13, the 0.1.51 package staged; Linux, RTX 3090 24 GB + RTX 3060 12 GB (the 3060 on a PCIe 3.0 x4 slot), Ryzen 9 7950X3D, 125 GB RAM, NVMe; model ist-das-1.75bpw (IQ1_M, 121 GB + the shared IQ4_NL Engram). Reproduced locally, over roughly 250 requests in the run log.

Prepared with an AI assistant from my own logs; every number above comes from the runs named in the environment section, and the log lines are quoted verbatim.

Originally created by @whitespades on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4123 ## Area - [x] [Engine] (speed, kernels, models, the server and API) ## What do you want to do? **Goal:** on a single NVIDIA GPU in Linux, where the CPU-lane experts fit in RAM, have `strata-dsv41` move those experts to the GPU as cheaply as Project Maya's `maya-ds4` now does, and make DSpark drafting worthwhile on that class of PC. Project Maya shipped this today as **v1.1.28** ([PR #476](https://github.com/mw00/project-maya/pull/476), [release notes](https://github.com/mw00/project-maya/releases/tag/v1.1.28)). Its own notice file in this repo says the dsv41 code is Maya's `src/ds4` at **v1.1.17** with later changes from **v1.1.18 to v1.1.26** re-written onto Strata's engine, so this reads as the next step of a sync that is already the agreed practice — I am asking for scope agreement before anyone writes code. What v1.1.28 changes, item by item: 1. Where every CPU-lane expert is a pinned, mapped copy on one NUMA node, the GPU **pulls the expert in place** — it crosses RAM once instead of three times and uses no CPU core. 2. **DSpark verify windows use the stream lane** (up to 16 experts a layer). Today only single-token steps use it, so with drafting on, nearly every non-VRAM expert went to the CPU lane while the GPU waited. 3. A streamed expert **stays in VRAM**: it lands in that layer's "recent" slots (32 a layer, taken from the profile's coldest VRAM experts) and serves the following windows. 4. The lane's time is measured on the **device clock** (`%globaltimer`); the host clock counted the device queue, so decode streamed less and less over a session. 5. IQ1_S multi-token CPU rows, bit-exact to ggml. **Who needs it:** the common case — one 12–24 GB card, 64–128 GB of RAM, the model's CPU-lane experts all in RAM. Strata 0.2.6 already targets exactly those machines with the copy-all-into-RAM step; these lane changes are what make that RAM copy cheap for the GPU. Together they are one feature, and 0.2.6 half of it is shipped. **Their measurements** (same machine, frozen expert profile, RTX 3090 24 GB + Ryzen 5 5600X + 125 GB, Maya-XS): `--bench` decode at 64K **12.9 → 27.8 tokens/s**; decode after a 128K / 256K prompt 14.0 / 15.9 → **23.2 / 26.1**; prompt reading **unchanged** (563 → 560 at 8K, 1158 → 1148 at 128K, 1417 → 1407 at 256K). The maintainer's own check on a V100: +14%, +35% with less VRAM free, prompts unchanged. Exact-path perplexity equal to v1.1.27 (304.87 vs 304.77 over 300 windows); `DS4_CHECK_SWAPS=1` 9,877 landings, fills and swaps each byte-equal to the model file. It is on by default only for Linux + NVIDIA + one GPU + no helper GPU, and the start log names the path taken. **What I see in Strata today** (see below for my environment; these are my own runs, and the log lines are verbatim): | my configuration | decode | prompt read (cold part) | | --- | --- | --- | | `--tp 1` (3090 only), default `--mmap-experts` (read in place) | 17.1–18.0 tokens/s | 147–207 tokens/s | | **`--tp 1 --mmap-experts off`** (all CPU-lane experts copied into RAM, 99.3 GB) | **median 26.2–27.5, max 30.6** (≈250 requests) | up to 633 tokens/s | | `--tp 2` (3090 + 3060, 3060 on PCIe 3.0 x4), ctx 8192 | 10.2–24.2, unstable | ≤57 | | 3090 + 3060 layer split with `--dspark on --cpu-threads 32` | 22.8 tokens/s (drafts 223 of 294 kept) | — | So the RAM copy alone is worth +55% here, and the 3090 alone beats a two-card split. The remaining piece is the lane: DSpark is never used on this machine, and the engine says why at every start — ``` ds4: DSpark not loaded: the routed experts (115 GB) are far more than the GPU holds (24 GB), where its verify rounds read 3.3x a token's bytes and gain nothing (--dspark on loads it anyway) ``` That verdict is about windows whose experts cannot stream. Item 2 is what changes the arithmetic, which is why I think it is worth a look for the 0.2.6 copy-all machines. **What the work would touch**, as far as I can tell from the docs (a design question for you, not a proposal): - one policy for "all CPU-lane experts in pinned RAM" with the demand store off, plus the pinned/mapped registration (0.2.6 already sizes the RAM store); - reserving the per-layer recent slots in the VRAM plan, so `strata_control/dsv41_fit.py`, `strata launch --plan` and the app's preview say what the card really holds; - device-clock timing with the host path kept where `%globaltimer` is unavailable (HIP returns 0), and the start log naming which path ran; - the gate (Linux, NVIDIA, one GPU, no helper GPU) and a line in `docs/DEEPSEEK41.md`; - `strata launch --tune`'s DSpark step would decide differently on affected machines. **Limits I expect to stay as they are:** prompt reading unchanged; no gain where the CPU lane is bigger than RAM (a 2.25 set on one 24 GB card); multi-GPU and layer-split keeps today's path; answers may differ in the last bits as more experts are computed on the GPU. I am not asking to change the fit rules, the 8192 default context, or the model list. ## What do you do today instead? `--tp 1 --mmap-experts off --prefill-chunk 4096` on the 3090, with `--dspark auto` (the engine declines it, so drafting never runs) and `--cpu-threads 16`. That is a good, stable 26–27 tokens/s and it is what I use. Project Maya v1.1.28 gives the rest today, but not on this PC: its DeepSeek quants need **277 GB (Maya-XS)** or 340 GB (Maya-S) with their own 161 GB Q6_K Engram, and the free space here is 57 GB and 226 GB, so an A/B is not possible without deleting the IST-DAS sets. Staying inside Strata for Qwen and DeepSeek is the point of my setup, so a backport is what I am asking for. **Environment:** Strata 0.2.6 (build 0.1.51); `engine-dsv41/0.1.49.2-linux-x86_64-cuda-cuda13`, the 0.1.51 package staged; Linux, RTX 3090 24 GB + RTX 3060 12 GB (the 3060 on a PCIe 3.0 x4 slot), Ryzen 9 7950X3D, 125 GB RAM, NVMe; model `ist-das-1.75bpw` (IQ1_M, 121 GB + the shared IQ4_NL Engram). Reproduced locally, over roughly 250 requests in the run log. *Prepared with an AI assistant from my own logs; every number above comes from the runs named in the environment section, and the log lines are quoted verbatim.*
Author
Owner

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

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660041660 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1806
No description provided.