[GH-ISSUE #437] A real multi-user lab for DeepSeek on Maya: admin staff, programmers and research data work all sharing one server — volunteers ready to stress-test #178

Open
opened 2026-10-29 21:22:09 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @talisp on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/437

In short

First, thank you. This week we filed an issue in the morning and had it fixed and released by dinner, twice. It's getting a bit embarrassing on our side: we're still writing the next issue and you've already shipped the answer. We went from 15 to 45 tok/s in a week on the same card, and a good part of that was you.

Who we are. We are a university in Brazil running DeepSeek-V4.1-Flash on Project Maya, and it works well for us. Thanks to #356, #403 and v1.1.26, one user now gets about 40-45 tok/s on a single L40S, and agents with sub-agents no longer re-read their prompts.

What we want to do next. We want to put several kinds of users on the same Maya server at the same time, as a lab, not a production service:

  • administrative staff, writing and reviewing documents;
  • programmers, using coding agents in VS Code and DeepSeek Harness with tools and long contexts;
  • scientific data work: tabulating, cleaning and analysing research data, often in long batch-like sessions.

Several professors and programmers have already volunteered to use it hard and try to make Maya "cry", as we joke here. Everyone involved knows it is an experiment. The goal is to generate real multi-user data for the Maya project.

The problem we will hit. Today the DeepSeek engine serves one conversation at a time. Thanks to #356, switching between conversations is cheap now, but a second person still waits for the first person's whole answer, which is often a minute or more. With three groups competing, that becomes the main thing people notice. #332 and #409 already ask about concurrent decoding. This issue is about the whole picture around it, and an offer to test it for real.

What we propose, from the smallest step to the largest:

  1. Take turns fairly: let a long answer pause so a short request can go first. The server already supports this for GLM (MAYA_FAIR_SLICE_S); the DeepSeek engine only needs a pause.
  2. Show the queue: a waiting request can see its position and an estimate, instead of looking frozen.
  3. Control context per user: each user (API key) gets a context limit and a share of the kept conversations, so one huge session does not push everyone else's out.
  4. Priorities between users: for example, an interactive programmer or a class demo ahead of a long data-tabulation job.
  5. Real concurrency: several conversations decoding at once (#332), first across GPUs and later on one GPU.

An idea on the hardware side, if it helps. We don't know if this is possible or sensible. We could add RAM and a second identical GPU, if that would let Maya serve two conversations at once, one per GPU: for example, one DeepSeek engine per card. If a setup like that would be easy for you, or useful to test, tell us and we'll ask for it.

What we offer. Whatever gets implemented, even partly or as an opt-in branch, we will:

  • test it with real users and mixed workloads;
  • post numbers and logs here;
  • keep you updated as the lab runs.

We have one L40S now and have asked for a second identical one.

The technical part follows: our usage data, how other servers handle parallelism, and what we think transfers to Maya's DeepSeek engine.


Technical notes

1. Our setup

  • Project Maya v1.1.26, maya-ds4.
  • unsloth DeepSeek-V4.1-Flash-1017 UD-Q8_K_XL, context 262,144, DSpark on.
  • --cpu-threads 28 --mmap-experts off, with MAYA_DS4_SLOT_KEEP=1 and MAYA_DS4_SLOT_CAP=8.
  • 1× NVIDIA L40S-48Q (vGPU, 48 GB), Xeon Platinum 8580 VM with 32 vCPUs, ~504 GB RAM, Linux. A second identical GPU has been requested.
  • Clients: DeepSeek Harness (pi-ai, OpenAI Chat Completions), VS Code agent extensions (Cline-style, OpenAI-compatible), and chat.

2. Usage data so far (one user at a time)

Measure Value
Decode, our benchmark (code, temperature 0) 42.7 / 44.9 / 48.3 tok/s
Decode, real agent traffic (112-179K-token context) 29-56 tok/s, typically ~40
DSpark drafts accepted (agent traffic) 83-87%
Prompt reading, new 20K prompt ~920-1,050 tok/s
Resuming a kept conversation 56-68 new tokens read, 1.0-2.6 s
Real agent session, 51 requests 2 cold reads (start-up), 49 continued with 14-3,952 new tokens each
Experts per token 240 (6 × 40 layers): ~40% in VRAM, ~60% (~145) on the CPU lane
Per-conversation state (engine report) ≤ 0.24 GB at 256K context
Before #356 (v1.1.21), main agent + 4 sub-agents 0 reused in 12 of 12 requests, 70% of the time re-reading prompts (#375)

Two numbers matter most for concurrency. A conversation's state is small. The CPU lane computes most of each token's experts, and every concurrent user would share it.

3. How DeepSeek is served elsewhere, and what transfers

We looked at how vLLM and llama-server get parallelism, in case it helps.

The common idea: continuous batching. Decode is limited by reading weights, not by arithmetic. So one decode step can carry one token from each of several sequences, and every weight that is read serves all of them. Up to the point where the step becomes compute-bound, N users cost little more than one.

vLLM:

  • Continuous batching over many sequences.
  • PagedAttention: the KV cache is allocated in pages, so memory follows actual use.
  • Automatic prefix caching: sequences that share a prefix, such as an agent harness's system prompt and tools, reuse its KV.
  • Tensor, expert and pipeline parallelism.
  • For DeepSeek-V4.1-Flash, the published recipes keep all weights in GPU memory, with only the Engram tables offloaded to host RAM. Third-party guides start at 4× H200 or 2× B200, and vLLM-Ascend runs it with DP4/TP4 plus Engram host offload. So it does not cover the "one GPU + experts in RAM" case that Maya targets.

llama-server (llama.cpp):

  • --parallel N slots with continuous batching.
  • The KV cache can be per slot or unified (--kv-unified).
  • Per-slot prompt reuse, and slot save/restore to disk.
  • Routed experts can live on the CPU (-cmoe, --n-cpu-moe), so it does cover RAM-heavy boxes.
  • Mainline llama.cpp supports DeepSeek V4 Flash. We could not confirm that V4.1 (with Engram) is merged.
  • With CPU experts, batching helps less: different sequences pick different experts, and the CPU has to compute the union.

What we think transfers to maya-ds4:

Idea Transfers? Why
KV paging (vLLM) mostly not needed DeepSeek's compressed attention keeps a 256K state ≤ 0.24 GB, so 8-16 fixed per-conversation states fit easily
Prefix sharing (vLLM APC) yes, as a checkpoint sibling sub-agents and users of the same tool share a 10-15K system and tools block. GLM already keeps a conversation's system prompt in a slot (#387); the DS4 equivalent would serve this
Continuous batching yes, but CPU-bound here shared reads cover the dense weights and the VRAM experts. The CPU-lane experts are per sequence, so on our box, 2 users might give ~1.3-1.6× total throughput, not 2×. We would like to measure this
Slots + save/restore (llama-server) already done #356
Prefill while others decode yes GLM has it (MAYA_GLM_PREFILL_INTERLEAVE, #386); in a lab, a 100K-token prompt arriving should not freeze everyone
Batched drafting yes, later GLM got MAYA_GLM_MULTI_MTP (#385) after --parallel; DSpark per sequence is the DS4 equivalent

4. Where the difficulty is in maya-ds4 (our reading of the code)

  • Already solved: a separable per-conversation state (#356: slot_save / slot_load) and a server that opens N places when the engine announces multi=N (FairLock).
  • Easy: per-sequence Engram lookups; per-sequence memory.
  • Hard: batched sparse attention. Each sequence has its own position, window ring, compressors' partial groups and index selection, so the kernels must take a ragged batch of sequences instead of one.
  • Medium, with limited gain on CPU-heavy boxes: batched experts, where the VRAM experts are shared and the CPU lane computes the union of all sequences' picks.
  • Hard, later: DSpark verify windows per sequence inside a batch.
  • The #332 plan (pipelining conversations across a layer split) avoids batched attention, since each GPU still runs one sequence per stage. That is a good first step for multi-GPU, but it does not help a one-GPU box.

4b. The "one engine per GPU" idea (untested, possibly naive)

Before #332 lands, two independent maya-ds4 engines, one per GPU, each on its own port, would give two conversations at once. We could assign user groups to ports. What we think it would take:

  • RAM.
    • With --mmap-experts off, each engine copies its CPU-lane experts: ~262 GB each, so ~525 GB for two, plus Engram's hot rows and the system. We can ask for more RAM if this is the way.
    • With experts read in place (--mmap-experts auto), both engines would read the same GGUF through the page cache. RAM would then be paid once, but we have not checked whether the engine copes well with two processes sharing it.
  • CPU. The CPU lane would be split, for example 14 threads each on our 32 vCPUs. Each engine alone would be slower than one engine with all the cores. This is the same CPU-lane limit as batching, just divided differently.
  • Kept conversations. Each engine has its own slots and its own MAYA_DS4_SLOT_DIR, so a user should stay on one engine.
  • Topology. On our host, the GPU and the VM's RAM sat on different sockets during a RAM upgrade, and loading more than 16 GB into the card froze the VM. A second GPU would have to sit on the same socket, or the VM would have to expose NUMA, which it doesn't today: the guest sees one node.

If this is a dead end, or if #332's layer-split pipeline on two GPUs is clearly the better use of a second card, that answer alone helps us decide what hardware to request.

5. The proposal, with the current state of each piece

Step What it needs Current state
1. Fair turns DS4 announces pause (stop, keeping the state with what it wrote); the server's existing MAYA_FAIR_SLICE_S then applies. A park costs a slot save/load (~0.1-0.5 s) GLM has it; DS4 has slots now
2. Queue visibility for waiting requests: position and an estimate, in /v1/status or /slots, and in the stream (e.g. a prompt_progress-style field), so clients show "waiting for 2 others" and do not hit idle timeouts (cf. Strata #1619, #1951) the FIFO exists
3. Context control per user per API key: a maximum context, a share of MAYA_DS4_SLOT_CAP, and a minimum kept size several keys exist (--api-key K1,K2), with no policy
4. Priorities a priority per API key (or per request) that orders the FIFO and decides who gets the next fair slice; aging, so low priority still progresses -
5. Concurrent decode #332's layer-split pipeline, then batching on one GPU / --tp in progress (#332)

6. The lab and what we will report

Three user groups competing for one server:

  • Administrative: short, interactive chats and document drafting. Latency-sensitive.
  • Programmers: agents with tools, 50-180K contexts, sub-agents, long file writes.
  • Scientific data work: long sessions over tables and data cleaning. Throughput-sensitive, and good candidates for lower priority.

What we will report, with the same benchmark script before and after any branch or opt-in setting:

  • per request: prompt / reused / read, decode tok/s, drafts kept, queue wait, slot hits and evictions;
  • per group: wait time distributions, abandoned requests, timeouts;
  • one GPU now, and two identical GPUs if approved;
  • logs on request, with users' consent; it is a lab, not production.

Happy to start with whatever piece you consider the most useful first.

Originally created by @talisp on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/437 ## In short First, thank you. This week we filed an issue in the morning and had it fixed and released by dinner, twice. It's getting a bit embarrassing on our side: we're still writing the next issue and you've already shipped the answer. We went from 15 to 45 tok/s in a week on the same card, and a good part of that was you. **Who we are.** We are a university in Brazil running DeepSeek-V4.1-Flash on Project Maya, and it works well for us. Thanks to #356, #403 and v1.1.26, one user now gets about 40-45 tok/s on a single L40S, and agents with sub-agents no longer re-read their prompts. **What we want to do next.** We want to put **several kinds of users on the same Maya server at the same time**, as a lab, not a production service: - **administrative staff**, writing and reviewing documents; - **programmers**, using coding agents in VS Code and DeepSeek Harness with tools and long contexts; - **scientific data work**: tabulating, cleaning and analysing research data, often in long batch-like sessions. Several professors and programmers have already volunteered to use it hard and try to make Maya "cry", as we joke here. Everyone involved knows it is an experiment. The goal is to generate real multi-user data for the Maya project. **The problem we will hit.** Today the DeepSeek engine serves **one conversation at a time**. Thanks to #356, switching between conversations is cheap now, but a second person still waits for the first person's whole answer, which is often a minute or more. With three groups competing, that becomes the main thing people notice. #332 and #409 already ask about concurrent decoding. This issue is about the whole picture around it, and an offer to test it for real. **What we propose**, from the smallest step to the largest: 1. **Take turns fairly:** let a long answer pause so a short request can go first. The server already supports this for GLM (`MAYA_FAIR_SLICE_S`); the DeepSeek engine only needs a `pause`. 2. **Show the queue:** a waiting request can see its position and an estimate, instead of looking frozen. 3. **Control context per user:** each user (API key) gets a context limit and a share of the kept conversations, so one huge session does not push everyone else's out. 4. **Priorities between users:** for example, an interactive programmer or a class demo ahead of a long data-tabulation job. 5. **Real concurrency:** several conversations decoding at once (#332), first across GPUs and later on one GPU. **An idea on the hardware side, if it helps.** We don't know if this is possible or sensible. We could add RAM and a second identical GPU, if that would let Maya serve **two conversations at once, one per GPU**: for example, one DeepSeek engine per card. If a setup like that would be easy for you, or useful to test, tell us and we'll ask for it. **What we offer.** Whatever gets implemented, even partly or as an opt-in branch, we will: - test it with real users and mixed workloads; - post numbers and logs here; - keep you updated as the lab runs. We have one L40S now and have asked for a second identical one. The technical part follows: our usage data, how other servers handle parallelism, and what we think transfers to Maya's DeepSeek engine. --- ## Technical notes ### 1. Our setup - Project Maya v1.1.26, `maya-ds4`. - unsloth DeepSeek-V4.1-Flash-1017 UD-Q8_K_XL, context 262,144, DSpark on. - `--cpu-threads 28 --mmap-experts off`, with `MAYA_DS4_SLOT_KEEP=1` and `MAYA_DS4_SLOT_CAP=8`. - 1× NVIDIA L40S-48Q (vGPU, 48 GB), Xeon Platinum 8580 VM with 32 vCPUs, ~504 GB RAM, Linux. A second identical GPU has been requested. - Clients: DeepSeek Harness (pi-ai, OpenAI Chat Completions), VS Code agent extensions (Cline-style, OpenAI-compatible), and chat. ### 2. Usage data so far (one user at a time) | Measure | Value | |---|---| | Decode, our benchmark (code, temperature 0) | 42.7 / 44.9 / 48.3 tok/s | | Decode, real agent traffic (112-179K-token context) | 29-56 tok/s, typically ~40 | | DSpark drafts accepted (agent traffic) | 83-87% | | Prompt reading, new 20K prompt | ~920-1,050 tok/s | | Resuming a kept conversation | 56-68 new tokens read, 1.0-2.6 s | | Real agent session, 51 requests | 2 cold reads (start-up), 49 continued with 14-3,952 new tokens each | | Experts per token | 240 (6 × 40 layers): ~40% in VRAM, **~60% (~145) on the CPU lane** | | Per-conversation state (engine report) | ≤ 0.24 GB at 256K context | | Before #356 (v1.1.21), main agent + 4 sub-agents | 0 reused in 12 of 12 requests, 70% of the time re-reading prompts (#375) | Two numbers matter most for concurrency. A conversation's state is **small**. The **CPU lane** computes most of each token's experts, and every concurrent user would share it. ### 3. How DeepSeek is served elsewhere, and what transfers We looked at how vLLM and llama-server get parallelism, in case it helps. **The common idea: continuous batching.** Decode is limited by reading weights, not by arithmetic. So one decode step can carry one token from each of several sequences, and every weight that is read serves all of them. Up to the point where the step becomes compute-bound, N users cost little more than one. **vLLM:** - Continuous batching over many sequences. - PagedAttention: the KV cache is allocated in pages, so memory follows actual use. - Automatic prefix caching: sequences that share a prefix, such as an agent harness's system prompt and tools, reuse its KV. - Tensor, expert and pipeline parallelism. - For DeepSeek-V4.1-Flash, the published recipes keep all weights in GPU memory, with only the Engram tables offloaded to host RAM. Third-party guides start at 4× H200 or 2× B200, and vLLM-Ascend runs it with DP4/TP4 plus Engram host offload. So **it does not cover the "one GPU + experts in RAM" case** that Maya targets. **llama-server (llama.cpp):** - `--parallel N` slots with continuous batching. - The KV cache can be per slot or unified (`--kv-unified`). - Per-slot prompt reuse, and slot save/restore to disk. - Routed experts can live on the CPU (`-cmoe`, `--n-cpu-moe`), so it does cover RAM-heavy boxes. - Mainline llama.cpp supports DeepSeek V4 Flash. We could not confirm that V4.1 (with Engram) is merged. - With CPU experts, batching helps less: different sequences pick different experts, and the CPU has to compute the union. **What we think transfers to `maya-ds4`:** | Idea | Transfers? | Why | |---|---|---| | KV paging (vLLM) | mostly not needed | DeepSeek's compressed attention keeps a 256K state ≤ 0.24 GB, so 8-16 fixed per-conversation states fit easily | | Prefix sharing (vLLM APC) | **yes**, as a checkpoint | sibling sub-agents and users of the same tool share a 10-15K system and tools block. GLM already keeps a conversation's system prompt in a slot (#387); the DS4 equivalent would serve this | | Continuous batching | **yes, but CPU-bound here** | shared reads cover the dense weights and the VRAM experts. The CPU-lane experts are per sequence, so on our box, 2 users might give ~1.3-1.6× total throughput, not 2×. We would like to measure this | | Slots + save/restore (llama-server) | already done | #356 | | Prefill while others decode | yes | GLM has it (`MAYA_GLM_PREFILL_INTERLEAVE`, #386); in a lab, a 100K-token prompt arriving should not freeze everyone | | Batched drafting | yes, later | GLM got `MAYA_GLM_MULTI_MTP` (#385) after `--parallel`; DSpark per sequence is the DS4 equivalent | ### 4. Where the difficulty is in `maya-ds4` (our reading of the code) - **Already solved:** a separable per-conversation state (#356: `slot_save` / `slot_load`) and a server that opens N places when the engine announces `multi=N` (`FairLock`). - **Easy:** per-sequence Engram lookups; per-sequence memory. - **Hard:** batched sparse attention. Each sequence has its own position, window ring, compressors' partial groups and index selection, so the kernels must take a ragged batch of sequences instead of one. - **Medium, with limited gain on CPU-heavy boxes:** batched experts, where the VRAM experts are shared and the CPU lane computes the union of all sequences' picks. - **Hard, later:** DSpark verify windows per sequence inside a batch. - **The #332 plan** (pipelining conversations across a layer split) avoids batched attention, since each GPU still runs one sequence per stage. That is a good first step for multi-GPU, but it does not help a one-GPU box. ### 4b. The "one engine per GPU" idea (untested, possibly naive) Before #332 lands, two independent `maya-ds4` engines, one per GPU, each on its own port, would give two conversations at once. We could assign user groups to ports. What we think it would take: - **RAM.** - With `--mmap-experts off`, each engine copies its CPU-lane experts: ~262 GB each, so ~525 GB for two, plus Engram's hot rows and the system. We can ask for more RAM if this is the way. - With experts read in place (`--mmap-experts auto`), both engines would read the same GGUF through the page cache. RAM would then be paid once, but we have not checked whether the engine copes well with two processes sharing it. - **CPU.** The CPU lane would be split, for example 14 threads each on our 32 vCPUs. Each engine alone would be slower than one engine with all the cores. This is the same CPU-lane limit as batching, just divided differently. - **Kept conversations.** Each engine has its own slots and its own `MAYA_DS4_SLOT_DIR`, so a user should stay on one engine. - **Topology.** On our host, the GPU and the VM's RAM sat on different sockets during a RAM upgrade, and loading more than 16 GB into the card froze the VM. A second GPU would have to sit on the same socket, or the VM would have to expose NUMA, which it doesn't today: the guest sees one node. If this is a dead end, or if #332's layer-split pipeline on two GPUs is clearly the better use of a second card, that answer alone helps us decide what hardware to request. ### 5. The proposal, with the current state of each piece | Step | What it needs | Current state | |---|---|---| | 1. Fair turns | DS4 announces `pause` (stop, keeping the state with what it wrote); the server's existing `MAYA_FAIR_SLICE_S` then applies. A park costs a slot save/load (~0.1-0.5 s) | GLM has it; DS4 has slots now | | 2. Queue visibility | for waiting requests: position and an estimate, in `/v1/status` or `/slots`, and in the stream (e.g. a `prompt_progress`-style field), so clients show "waiting for 2 others" and do not hit idle timeouts (cf. Strata #1619, #1951) | the FIFO exists | | 3. Context control per user | per API key: a maximum context, a share of `MAYA_DS4_SLOT_CAP`, and a minimum kept size | several keys exist (`--api-key K1,K2`), with no policy | | 4. Priorities | a priority per API key (or per request) that orders the FIFO and decides who gets the next fair slice; aging, so low priority still progresses | - | | 5. Concurrent decode | #332's layer-split pipeline, then batching on one GPU / `--tp` | in progress (#332) | ### 6. The lab and what we will report **Three user groups competing for one server:** - **Administrative:** short, interactive chats and document drafting. Latency-sensitive. - **Programmers:** agents with tools, 50-180K contexts, sub-agents, long file writes. - **Scientific data work:** long sessions over tables and data cleaning. Throughput-sensitive, and good candidates for lower priority. **What we will report**, with the same benchmark script before and after any branch or opt-in setting: - per request: prompt / reused / read, decode tok/s, drafts kept, queue wait, slot hits and evictions; - per group: wait time distributions, abandoned requests, timeouts; - one GPU now, and two identical GPUs if approved; - logs on request, with users' consent; it is a lab, not production. Happy to start with whatever piece you consider the most useful first.
Author
Owner

@mrsirg97-rgb commented on GitHub (Oct 24, 2026):

Hey! I worked on #356, would love to connect 🙂 won't have access to my home lab for another day but my inbox is open

<!-- gh-comment-id:6378846351 --> @mrsirg97-rgb commented on GitHub (Oct 24, 2026): Hey! I worked on #356, would love to connect 🙂 won't have access to my home lab for another day but my inbox is open
Author
Owner

@talisp commented on GitHub (Oct 28, 2026):

A lab update: we measured --parallel on v1.1.34. Thanks @mw00 for shipping it (#332), and @mrsirg97-rgb for pushing it with #557: it's exactly what this issue was asking for.

In short: on our single L40S, two people at once now both move, at ~18 tok/s each, instead of one waiting for the other's whole answer. That's the fairness we wanted. But the total doesn't go up: 34.5 tok/s for two at once against ~41 taking turns. The reason is DSpark. A request alone drafts, with ~85% of drafts accepted, and runs at ~42 tok/s. Two or more go through step_multi, which doesn't draft (the comment at src/ds4/ds4_main.cpp:1418 says so: "two or more go through Model::step_multi - a token of each through the model together, no drafts"). With DSpark off on both sides, the joint step is a real 1.43x (24.3 → 34.7 tok/s), in line with the 1.6x on the V100 in the release notes. On a box like ours the two gains are about the same size, so they cancel out.

What we'd ask: DSpark drafts inside the joint step, even if only for 2-4 conversations. If part of both gains stacked, two users could go well past the 41 tok/s of taking turns. The v1.1.34 notes say MiniMax's drafter is off while more than one conversation runs; for DeepSeek it's only in that code comment, so a line in the notes would help too.


Numbers (1× L40S 48 GB, DeepSeek-V4.1-Flash UD-Q8_K_XL, ~270 GB of the experts in RAM)

Total = tokens written by all requests / wall time. Code prompts of 600 tokens at temperature 0, each with its own salt (no conversation reused); two rounds each, the second shown.

Engine start 1 request 2 at once 4 at once
DSpark on, --parallel 1 (take turns) 42.0 (45.5) 41.4 (47.4 and 42.6, one after the other) -
DSpark on, --parallel 2 39.1 (42.2) 34.5 (17.8 and 18.5) -
DSpark on, --parallel 4 40.8 (44.1) 34.0 (17.5 and 18.2) 39.6 (10.1-10.6 each)
DSpark off, --parallel 1 25.1 (26.3) 24.3 (26.0 and 24.8) -
DSpark off, --parallel 2 24.3 (25.4) 34.7 (18.6 and 17.9) -

(In parentheses: each request's own decode speed from the server's timings.)

  • Drafts: alone, 477-510 drafted per 600 tokens with 394-440 accepted. Two or four at once: 0-5 drafted.
  • Cost: turning --parallel on costs nothing for a request alone (38-44 tok/s, within our usual spread) and little VRAM: +0.24 GB for 2 conversations, +0.73 GB for 4 (1,357 → 1,343 experts in VRAM for 2). RAM is unchanged.
  • Prompts arriving together (~8K tokens each, 300-token answers, DSpark on): taking turns, the two finish at 24.8 s and 49.4 s; with --parallel 2, both at ~48 s; with --parallel 4, four at once all finish at 83.2 s (prompt read at 731-773 tok/s each).

Setup

1× NVIDIA L40S-48Q (vGPU, 48 GB, sm_89), Xeon Platinum 8580 VM (32 vCPUs, no SMT), ~504 GB RAM, Ubuntu 22.04, Linux 6.8, CUDA 12.9. Maya v1.1.34, maya-ds4 with --max-context 262144 --tp 2 --threads on --cpu-threads 28 --mmap-experts off --dspark on|off [--parallel N], MAYA_DS4_SLOT_KEEP=1. Page cache dropped before each start, one start per row.

Our volunteers are still keen to make Maya cry 😄. If you put drafts in the joint step on a branch, we'll run the same test on it the same day.

<!-- gh-comment-id:6472883259 --> @talisp commented on GitHub (Oct 28, 2026): **A lab update: we measured `--parallel` on v1.1.34.** Thanks @mw00 for shipping it (#332), and @mrsirg97-rgb for pushing it with #557: it's exactly what this issue was asking for. **In short:** on our single L40S, two people at once now both move, at ~18 tok/s each, instead of one waiting for the other's whole answer. That's the fairness we wanted. But the total doesn't go up: **34.5 tok/s for two at once against ~41 taking turns.** The reason is DSpark. A request alone drafts, with ~85% of drafts accepted, and runs at ~42 tok/s. Two or more go through `step_multi`, which doesn't draft (the comment at `src/ds4/ds4_main.cpp:1418` says so: "two or more go through Model::step_multi - a token of each through the model together, no drafts"). With DSpark off on both sides, the joint step is a real **1.43x** (24.3 → 34.7 tok/s), in line with the 1.6x on the V100 in the release notes. On a box like ours the two gains are about the same size, so they cancel out. **What we'd ask:** DSpark drafts inside the joint step, even if only for 2-4 conversations. If part of both gains stacked, two users could go well past the 41 tok/s of taking turns. The v1.1.34 notes say MiniMax's drafter is off while more than one conversation runs; for DeepSeek it's only in that code comment, so a line in the notes would help too. --- ### Numbers (1× L40S 48 GB, DeepSeek-V4.1-Flash UD-Q8_K_XL, ~270 GB of the experts in RAM) Total = tokens written by all requests / wall time. Code prompts of 600 tokens at temperature 0, each with its own salt (no conversation reused); two rounds each, the second shown. | Engine start | 1 request | 2 at once | 4 at once | |---|---|---|---| | DSpark on, `--parallel 1` (take turns) | 42.0 (45.5) | **41.4** (47.4 and 42.6, one after the other) | - | | DSpark on, `--parallel 2` | 39.1 (42.2) | **34.5** (17.8 and 18.5) | - | | DSpark on, `--parallel 4` | 40.8 (44.1) | 34.0 (17.5 and 18.2) | 39.6 (10.1-10.6 each) | | DSpark off, `--parallel 1` | 25.1 (26.3) | 24.3 (26.0 and 24.8) | - | | DSpark off, `--parallel 2` | 24.3 (25.4) | **34.7** (18.6 and 17.9) | - | (In parentheses: each request's own decode speed from the server's timings.) - **Drafts:** alone, 477-510 drafted per 600 tokens with 394-440 accepted. Two or four at once: 0-5 drafted. - **Cost:** turning `--parallel` on costs nothing for a request alone (38-44 tok/s, within our usual spread) and little VRAM: +0.24 GB for 2 conversations, +0.73 GB for 4 (1,357 → 1,343 experts in VRAM for 2). RAM is unchanged. - **Prompts arriving together** (~8K tokens each, 300-token answers, DSpark on): taking turns, the two finish at 24.8 s and 49.4 s; with `--parallel 2`, both at ~48 s; with `--parallel 4`, four at once all finish at 83.2 s (prompt read at 731-773 tok/s each). ### Setup 1× NVIDIA L40S-48Q (vGPU, 48 GB, sm_89), Xeon Platinum 8580 VM (32 vCPUs, no SMT), ~504 GB RAM, Ubuntu 22.04, Linux 6.8, CUDA 12.9. Maya v1.1.34, `maya-ds4` with `--max-context 262144 --tp 2 --threads on --cpu-threads 28 --mmap-experts off --dspark on|off [--parallel N]`, `MAYA_DS4_SLOT_KEEP=1`. Page cache dropped before each start, one start per row. Our volunteers are still keen to make Maya cry 😄. If you put drafts in the joint step on a branch, we'll run the same test on it the same day.
Author
Owner

@mrsirg97-rgb commented on GitHub (Oct 29, 2026):

@talisp you are welcome to test #587

<!-- gh-comment-id:6487073703 --> @mrsirg97-rgb commented on GitHub (Oct 29, 2026): @talisp you are welcome to test #587
Author
Owner

@talisp commented on GitHub (Oct 29, 2026):

An update with v1.1.36: the drafter inside --parallel (#611) turned it into a real gain here. Thanks @mw00 and @needmorevram!

Same box and pack as my last comment (1× L40S 48 GB, DeepSeek-V4.1-Flash-1017 UD-Q8_K_XL, ~91% of the experts on the CPU lane), same script (code prompts with 600-token answers at temperature 0, second round; total = tokens written / wall time):

Requests at once v1.1.34 v1.1.36
1 (a queue) 41-42 tok/s 36-42 (38-45 per request, server timings)
2 with --parallel 2 34.5 47.4 (~25 each)
2 with --parallel 4 34.0 47.9
4 with --parallel 4 39.6 38.7 (~10 each)

So two at once are now ~16% faster than a queue. With four, the drafters don't fit one pass (as the release notes say), and it's back to queue speed. For our lab, two is the sweet spot: we moved production to v1.1.36 with --parallel 2 this morning, and the first check gave 49.2 tok/s in total for two requests.

@mrsirg97-rgb thanks! #587 just landed in v1.1.37, and we'll try it on our agent traffic next. A short sub-agent question waiting behind a long prompt read is exactly what we see.

<!-- gh-comment-id:6491388246 --> @talisp commented on GitHub (Oct 29, 2026): **An update with v1.1.36: the drafter inside `--parallel` (#611) turned it into a real gain here.** Thanks @mw00 and @needmorevram! Same box and pack as my last comment (1× L40S 48 GB, DeepSeek-V4.1-Flash-1017 UD-Q8_K_XL, ~91% of the experts on the CPU lane), same script (code prompts with 600-token answers at temperature 0, second round; total = tokens written / wall time): | Requests at once | v1.1.34 | v1.1.36 | |---|---|---| | 1 (a queue) | 41-42 tok/s | 36-42 (38-45 per request, server timings) | | 2 with `--parallel 2` | 34.5 | **47.4** (~25 each) | | 2 with `--parallel 4` | 34.0 | **47.9** | | 4 with `--parallel 4` | 39.6 | 38.7 (~10 each) | So two at once are now ~16% faster than a queue. With four, the drafters don't fit one pass (as the release notes say), and it's back to queue speed. For our lab, two is the sweet spot: we moved production to v1.1.36 with `--parallel 2` this morning, and the first check gave 49.2 tok/s in total for two requests. @mrsirg97-rgb thanks! #587 just landed in v1.1.37, and we'll try it on our agent traffic next. A short sub-agent question waiting behind a long prompt read is exactly what we see.
Sign in to join this conversation.
No labels
pull-request
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
mw00/project-maya#178
No description provided.