[PR #641] DeepSeek --parallel, every conversation drafting: two verify windows in flight on a two-GPU layer split (MAYA_DS4_MD_PIPE, off by default) #643

Open
opened 2026-10-29 21:27:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/641
Author: @somnergy
Created: 10/28/2026
Status: 🔄 Open

Base: main ← Head: pr/ds4-md-pipe


📝 Commits (4)

  • 4698ec5 DeepSeek --parallel: prompts read a piece at a time (a chunk per pipeline stage), every answer a token between pieces, a one-piece prompt ahead of longer reads; MAYA_DS4_READ_ORDER=arrival keeps the old order. agent_bench 4x8 on 3 GPUs: first token 5.23 s mean / 13.5 s p95 against 6.14 / 29.1, turn done and wall the same; parallel_test --lanes 4 token for token
  • 93aa1f9 DeepSeek --parallel on events (ds4_evt.hpp, #557's): the reader's lines and the turns - a round of tokens or a prompt's piece - each queueing the next; a line outranks a turn, nothing polls (Lines::poll goes). parallel_test --lanes 4 and 2 every check; agent_bench 4x8 first token 5.20 s mean / 13.4 s p95, wall 190.3 s (as before)
  • 9423c9f DeepSeek --parallel: every conversation drafts (MAYA_DS4_MULTI_DRAFT=1, off by default) - each answering conversation's DSpark drafts and token verified together in one window
  • 3fa3cb7 DeepSeek --parallel, every conversation drafting: two verify windows in flight on a two-GPU layer split (MAYA_DS4_MD_PIPE=1, off by default) - one window's second GPU's layers and head run while the other window's first GPU's layers do

📊 Changes

9 files changed (+3871 additions, -259 deletions)

View changed files

📝 docs/SETTINGS.md (+79 -4)
➕ src/ds4/ds4_evt.hpp (+162 -0)
📝 src/ds4/ds4_kernels.cu (+92 -0)
📝 src/ds4/ds4_kernels.cuh (+7 -0)
📝 src/ds4/ds4_main.cpp (+1569 -126)
📝 src/ds4/ds4_model.cu (+1166 -129)
📝 src/ds4/ds4_model.hpp (+70 -0)
➕ tools/ds4/agent_bench.py (+283 -0)
➕ tools/ds4/parallel_test.py (+443 -0)

📄 Description

DeepSeek --parallel with every conversation drafting, on a two-GPU layer split: two verify windows in flight at once. One window's second GPU's layers and head run while the other window's first GPU's layers do. One window at a time left each GPU idle through the other's stage. Off by default (MAYA_DS4_MD_PIPE=1). Without the setting, nothing changes.

Depends on #636 (every conversation drafting, MAYA_DS4_MULTI_DRAFT), which depends on #587. Of this branch's commits, only the last is this PR: the ones before it are #587's two and #636's one, and they drop out as those are merged. Draft until #636 lands. Overlap with #611: this PR builds on the previous PR's verify_multi / draft_multi, not #611's. If #611's core goes in instead, this would be rebased onto it.

What it does

  • Issue and take (Model::verify_multi_issue / verify_multi_take).

    • verify_multi_issue makes the window as verify_multi does and runs its first GPU's layers.
    • verify_multi_take runs the second GPU's layers and the head, waits, and gives each conversation its verdict, rollback and drafter seeding exactly as verify_multi does.

    A window's second stage is enqueued at the next window's issue, after the first window's logits were sampled and the drafter ran, so all three queue on the head's stream. Otherwise it is enqueued at its own take.

  • A slot per window (WinPlan::pslot). Whatever a second window would collide with gets a slot of its own:

    • the embedding rows;
    • the Engram rows and batches;
    • the hand-off between the stages;
    • the sources' staging;
    • the verify backups;
    • the taps;
    • the logits rows. The drafter's head writes logits rows of its own after the two windows', because a pass can run while a window's logits wait to be sampled.

    Slot 0 is byte for byte where every other path has these. The rows, kernels and reduction orders are the one window's.

  • A request ring per GPU. Experts on the CPU lane are served through a request ring per GPU: each GPU's layers publish into their own ring, in their own sequence, and the service thread polls the rings in turn. With one ring answered in order, the second window's first-stage requests queued behind the first window's second-stage ones.

  • The expert cache. The cache never ticks while a window is in flight. A tick switches the host's expert tables at once and the devices' tables in stream order, queues swaps into the slot it just freed, and takes the CPU lane's hit lists from under the service thread. The serve loop holds the cache for the round (Model::cache_hold) and ticks once at the round's end.

  • The serve loop. The answering conversations are split into two groups. Each group has its own plan, drafter pass and window, and runs MAYA_DS4_MD_PIPE_WINDOWS (3) windows a round: issue A, issue B, take A, issue A′, take B, issue B′, and so on. A landed window's tokens are written at once, except the last, which is the group's next window's input. A request whose next token ends it leaves its group.

  • Pricing the overlapping windows (MAYA_DS4_MD_PIPE_PRICE). The windows overlap, so the cost policy needs a price per window:

    • stage (the default): the slower of the window's two stages' GPU time, from events on each GPU's stream (the second stage's wait for the first is left out), plus an equal share of what the round spent beyond the stages and the drafter.
    • share: the round's time less the drafter's, split in proportion to the cost model's cost of each window's rows.
    • equal: the same time in equal parts.

    MAYA_DS4_MD_PIPE_DRAFT_PRICE=gpu prices the drafter's passes by their GPU time instead of the host's wait for them. A pass drafted beside the other window's first stage queues behind that stage.

  • The reference (MAYA_DS4_MD_PIPE_SERIAL=1). It runs the same groups and windows one at a time and ticks the cache at the same points. A pipelined run must match it token for token.

  • pipe_ok says what a layout lacks: two GPUs in threads mode, a layer split with the head second, no tensor-parallel group, a request ring per GPU, no layer streaming over the PCIe lane, no helper, no dumps. The engine prints the missing piece at start and runs one window at a time.

  • --multi-check. The check holds the experts where the load put them for its whole run, so every comparison counts on any placement. With the setting on, its drafting phase:

    • runs twice, two windows in flight and the same windows one at a time, and compares the streams;
    • checks the drafter's pass beside a window in flight against the same pass with none;
    • exits 2 with NOT CHECKED if the setting is asked for and refused, rather than passing on what it did not compare.
  • tools/ds4/parallel_test.py gains --ref-lanes N --ref-env K=V: the same comparison against a reference engine, through the serve protocol.

  • Logs. The drafter pass's GPU time is timed (blocks and head apart). With MAYA_DS4_MULTI_DRAFT_LOG=1:

    • a pipe: line per round and a line per window (rows, stage times, price, mode, expected rates);
    • the per-request line adds its drafted rounds by acceptance band.

Memory cost: a second set of the verify backups, hand-off buffers and request rings, plus 32 logits rows.

Settings

setting default what it does
MAYA_DS4_MD_PIPE 0 1 at load: two verify windows in flight (with MAYA_DS4_MULTI_DRAFT=1, a two-GPU layer split, --threads on)
MAYA_DS4_MD_PIPE_WINDOWS 3 windows a group runs a round (1: two windows with no overlap after the first)
MAYA_DS4_MD_PIPE_PRICE stage how a pipelined window is priced for the policy: stage, share or equal
MAYA_DS4_MD_PIPE_DRAFT_PRICE wall gpu: the drafter's passes priced by their GPU time
MAYA_DS4_MD_PIPE_SERIAL 0 1: the same windows one at a time (the reference for exactness checks)

Exactness

Each window's rows, kernels and reduction orders are the one window's, so two windows in flight give the same tokens as the same windows one at a time. Greedy, with windows of up to 8 rows, both give each conversation's tokens alone.

  • --multi-check with the setting on compares the pipe against the serial reference inside one process, plus the drafter pass in flight against the same pass with none. It holds the expert cache for the whole run, so on a CPU-lane placement every comparison counts too.
  • The cache caveat. With the cache on and experts on the CPU lane, the cache moves experts between VRAM and the lane, and the two round an expert differently. Two runs agree only as far as the cache moved the same experts at the same points, so parallel_test.py --ref-lanes N --ref-env MAYA_DS4_MD_PIPE_SERIAL=1 there is a smoke test, not a certificate. The serving path itself never moves an expert while a window is in flight.

Measured at 512K with the expert cache on, the drafter in VRAM, and ~300-540 of the trunk's experts on the CPU lane:

  • alone == together bit for bit (252 of 252 rows at 4 conversations);
  • two windows in flight == the same windows one at a time;
  • the drafter's passes == the lone drafter's;
  • parallel_test.py --lanes 4 and --lanes 2 pass every check.

Results

Setup: two 72 GB Blackwell cards (GPU peer copies at 54 GB/s each way), a 64-core Zen 4 host. DeepSeek-V4.1-Flash, IQ2_XXS GSQ-RCO pack, DSpark drafter on (in VRAM). Layer split, 512K context, ~300-540 of the trunk's experts on the CPU lane, --parallel 4 --tp 1 --threads on, MAYA_DS4_MULTI_DRAFT=1. "Off" is the same build and settings without MAYA_DS4_MD_PIPE. Pooled tok/s, greedy (T=0), 1/2/3/4 conversations started together.

Verdict by hardware class:

  • Two GPUs, layer split, most experts in VRAM: prose is +11% / +12% / +20% at 2/3/4 conversations, copy +37% / +33% / +40%, coding-agent windows +25-42%. One conversation is unchanged (the lone path).
  • Two GPUs, tensor parallel: not supported (pipe_ok refuses a TP group); the previous PR's path applies.
  • One GPU, or more than two GPUs: not supported (the pipe is two stages on two GPUs).
  • Two GPUs, experts streamed over the PCIe lane: not supported (pipe_ok refuses a streaming layer).

Essay (prose, ~60% of drafts kept)

1 2 3 4
pipe off 85.7 105.2 127.7 145.0
pipe on 87.6 116.3 142.6 173.8
the same windows one at a time (MAYA_DS4_MD_PIPE_SERIAL=1) 83.2 83.7 98.0 106.4

Copy prompt (~95-100% of drafts kept)

1 2 3 4
pipe off 122.3 113.7 115.7 116.6
pipe on 124.6 155.5 154.2 162.9

Coding-agent windows. Each run is 6 minutes: 32-64K-token code prompts, 700-token answers, T 0.7. The table gives the tokens written in all; "pipe on" is the range over the runs.

pipe off pipe on
2 agents 30,955 39,219-43,990
4 agents 31,884 39,773-43,540

Window pricing (MAYA_DS4_MD_PIPE_PRICE). The same build in each mode; pooled tok/s greedy, then the coding-agent windows (tokens written, two runs each):

price essay, 4 copy, 2 copy, 4 2 agents 4 agents
stage (default) 165.6 150.3 168.4 43,990 / 39,907 39,773 / 40,556
equal 161.8 159.6 170.4 43,105 / 39,219 42,366 / 42,256
share 165.0 154.7 163.5 40,385 / 40,536 41,416 / 40,724
stage, DRAFT_PRICE=gpu 163.3 158.4 163.4 39,788 / 39,898 41,586 / 43,540

The modes agree within run-to-run noise here: one mode's two runs differ by up to 4,000 tokens, more than any gap between modes. stage stays the default because it prices each window by what it used. Other hardware, where the two stages are less even, may separate them.

Suggested settings

requests at once two GPUs, layer split, most experts in VRAM two GPUs, TP2 one GPU / experts mostly in RAM
1 no effect no effect no effect
2-4 MAYA_DS4_MULTI_DRAFT=1 MAYA_DS4_MD_PIPE=1, --threads on not supported (the previous PR's MAYA_DS4_MULTI_DRAFT=1) not supported
8 not measured not supported not supported

Not in this PR

  • Keeping a window in flight across rounds. The pipe fills and drains each round, and MAYA_DS4_MD_PIPE_WINDOWS=3 amortizes that.
  • A stream of its own for the drafter. Its pass runs on the stages' streams, so a pass drafted mid-round waits for the other window's first stage.

Checks

  • Build: maya-ds4 (sm_120, CUDA 13.4) with no new warnings.
  • tools/check_hip_compat.py: passes.
  • Unit tests: serve/test_multi.py (13), tools/test_maya_parallel.py (11) and tools/test_ds4*.py (33) pass.
  • Platforms: Linux only, two GPUs. Not tested on AMD or Windows.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mw00/project-maya/pull/641 **Author:** [@somnergy](https://github.com/somnergy) **Created:** 10/28/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `pr/ds4-md-pipe` --- ### 📝 Commits (4) - [`4698ec5`](https://github.com/mw00/project-maya/commit/4698ec5bb00fdae2c88584efe946510d0ab49910) DeepSeek --parallel: prompts read a piece at a time (a chunk per pipeline stage), every answer a token between pieces, a one-piece prompt ahead of longer reads; MAYA_DS4_READ_ORDER=arrival keeps the old order. agent_bench 4x8 on 3 GPUs: first token 5.23 s mean / 13.5 s p95 against 6.14 / 29.1, turn done and wall the same; parallel_test --lanes 4 token for token - [`93aa1f9`](https://github.com/mw00/project-maya/commit/93aa1f97c558b586755aa7e6e3b9949380aa0ce5) DeepSeek --parallel on events (ds4_evt.hpp, #557's): the reader's lines and the turns - a round of tokens or a prompt's piece - each queueing the next; a line outranks a turn, nothing polls (Lines::poll goes). parallel_test --lanes 4 and 2 every check; agent_bench 4x8 first token 5.20 s mean / 13.4 s p95, wall 190.3 s (as before) - [`9423c9f`](https://github.com/mw00/project-maya/commit/9423c9f0b6d371782c0237c16c2a56a50a1c1819) DeepSeek --parallel: every conversation drafts (MAYA_DS4_MULTI_DRAFT=1, off by default) - each answering conversation's DSpark drafts and token verified together in one window - [`3fa3cb7`](https://github.com/mw00/project-maya/commit/3fa3cb7749f6aa8c7c7af4e0b1bdc1045293b696) DeepSeek --parallel, every conversation drafting: two verify windows in flight on a two-GPU layer split (MAYA_DS4_MD_PIPE=1, off by default) - one window's second GPU's layers and head run while the other window's first GPU's layers do ### 📊 Changes **9 files changed** (+3871 additions, -259 deletions) <details> <summary>View changed files</summary> 📝 `docs/SETTINGS.md` (+79 -4) ➕ `src/ds4/ds4_evt.hpp` (+162 -0) 📝 `src/ds4/ds4_kernels.cu` (+92 -0) 📝 `src/ds4/ds4_kernels.cuh` (+7 -0) 📝 `src/ds4/ds4_main.cpp` (+1569 -126) 📝 `src/ds4/ds4_model.cu` (+1166 -129) 📝 `src/ds4/ds4_model.hpp` (+70 -0) ➕ `tools/ds4/agent_bench.py` (+283 -0) ➕ `tools/ds4/parallel_test.py` (+443 -0) </details> ### 📄 Description DeepSeek `--parallel` with every conversation drafting, on a two-GPU layer split: two verify windows in flight at once. One window's second GPU's layers and head run while the other window's first GPU's layers do. One window at a time left each GPU idle through the other's stage. Off by default (`MAYA_DS4_MD_PIPE=1`). Without the setting, nothing changes. **Depends on #636** (every conversation drafting, `MAYA_DS4_MULTI_DRAFT`), which depends on #587. Of this branch's commits, only the last is this PR: the ones before it are #587's two and #636's one, and they drop out as those are merged. Draft until #636 lands. **Overlap with #611:** this PR builds on the previous PR's `verify_multi` / `draft_multi`, not #611's. If #611's core goes in instead, this would be rebased onto it. ## What it does - **Issue and take** (`Model::verify_multi_issue` / `verify_multi_take`). - `verify_multi_issue` makes the window as `verify_multi` does and runs its first GPU's layers. - `verify_multi_take` runs the second GPU's layers and the head, waits, and gives each conversation its verdict, rollback and drafter seeding exactly as `verify_multi` does. A window's second stage is enqueued at the next window's issue, after the first window's logits were sampled and the drafter ran, so all three queue on the head's stream. Otherwise it is enqueued at its own take. - **A slot per window** (`WinPlan::pslot`). Whatever a second window would collide with gets a slot of its own: - the embedding rows; - the Engram rows and batches; - the hand-off between the stages; - the sources' staging; - the verify backups; - the taps; - the logits rows. The drafter's head writes logits rows of its own after the two windows', because a pass can run while a window's logits wait to be sampled. Slot 0 is byte for byte where every other path has these. The rows, kernels and reduction orders are the one window's. - **A request ring per GPU.** Experts on the CPU lane are served through a request ring per GPU: each GPU's layers publish into their own ring, in their own sequence, and the service thread polls the rings in turn. With one ring answered in order, the second window's first-stage requests queued behind the first window's second-stage ones. - **The expert cache.** The cache never ticks while a window is in flight. A tick switches the host's expert tables at once and the devices' tables in stream order, queues swaps into the slot it just freed, and takes the CPU lane's hit lists from under the service thread. The serve loop holds the cache for the round (`Model::cache_hold`) and ticks once at the round's end. - **The serve loop.** The answering conversations are split into two groups. Each group has its own plan, drafter pass and window, and runs `MAYA_DS4_MD_PIPE_WINDOWS` (3) windows a round: issue A, issue B, take A, issue A′, take B, issue B′, and so on. A landed window's tokens are written at once, except the last, which is the group's next window's input. A request whose next token ends it leaves its group. - **Pricing the overlapping windows** (`MAYA_DS4_MD_PIPE_PRICE`). The windows overlap, so the cost policy needs a price per window: - `stage` (the default): the slower of the window's two stages' GPU time, from events on each GPU's stream (the second stage's wait for the first is left out), plus an equal share of what the round spent beyond the stages and the drafter. - `share`: the round's time less the drafter's, split in proportion to the cost model's cost of each window's rows. - `equal`: the same time in equal parts. `MAYA_DS4_MD_PIPE_DRAFT_PRICE=gpu` prices the drafter's passes by their GPU time instead of the host's wait for them. A pass drafted beside the other window's first stage queues behind that stage. - **The reference** (`MAYA_DS4_MD_PIPE_SERIAL=1`). It runs the same groups and windows one at a time and ticks the cache at the same points. A pipelined run must match it token for token. - **`pipe_ok`** says what a layout lacks: two GPUs in threads mode, a layer split with the head second, no tensor-parallel group, a request ring per GPU, no layer streaming over the PCIe lane, no helper, no dumps. The engine prints the missing piece at start and runs one window at a time. - **`--multi-check`.** The check holds the experts where the load put them for its whole run, so every comparison counts on any placement. With the setting on, its drafting phase: - runs twice, two windows in flight and the same windows one at a time, and compares the streams; - checks the drafter's pass beside a window in flight against the same pass with none; - exits 2 with `NOT CHECKED` if the setting is asked for and refused, rather than passing on what it did not compare. - **`tools/ds4/parallel_test.py`** gains `--ref-lanes N --ref-env K=V`: the same comparison against a reference engine, through the serve protocol. - **Logs.** The drafter pass's GPU time is timed (blocks and head apart). With `MAYA_DS4_MULTI_DRAFT_LOG=1`: - a `pipe:` line per round and a line per window (rows, stage times, price, mode, expected rates); - the per-request line adds its drafted rounds by acceptance band. **Memory cost:** a second set of the verify backups, hand-off buffers and request rings, plus 32 logits rows. ## Settings | setting | default | what it does | |---|---|---| | `MAYA_DS4_MD_PIPE` | 0 | 1 at load: two verify windows in flight (with `MAYA_DS4_MULTI_DRAFT=1`, a two-GPU layer split, `--threads on`) | | `MAYA_DS4_MD_PIPE_WINDOWS` | 3 | windows a group runs a round (1: two windows with no overlap after the first) | | `MAYA_DS4_MD_PIPE_PRICE` | `stage` | how a pipelined window is priced for the policy: `stage`, `share` or `equal` | | `MAYA_DS4_MD_PIPE_DRAFT_PRICE` | `wall` | `gpu`: the drafter's passes priced by their GPU time | | `MAYA_DS4_MD_PIPE_SERIAL` | 0 | 1: the same windows one at a time (the reference for exactness checks) | ## Exactness Each window's rows, kernels and reduction orders are the one window's, so two windows in flight give the same tokens as the same windows one at a time. Greedy, with windows of up to 8 rows, both give each conversation's tokens alone. - **`--multi-check`** with the setting on compares the pipe against the serial reference inside one process, plus the drafter pass in flight against the same pass with none. It holds the expert cache for the whole run, so on a CPU-lane placement every comparison counts too. - **The cache caveat.** With the cache on and experts on the CPU lane, the cache moves experts between VRAM and the lane, and the two round an expert differently. Two runs agree only as far as the cache moved the same experts at the same points, so `parallel_test.py --ref-lanes N --ref-env MAYA_DS4_MD_PIPE_SERIAL=1` there is a smoke test, not a certificate. The serving path itself never moves an expert while a window is in flight. Measured at 512K with the expert cache on, the drafter in VRAM, and ~300-540 of the trunk's experts on the CPU lane: - alone == together bit for bit (252 of 252 rows at 4 conversations); - two windows in flight == the same windows one at a time; - the drafter's passes == the lone drafter's; - `parallel_test.py --lanes 4` and `--lanes 2` pass every check. ## Results Setup: two 72 GB Blackwell cards (GPU peer copies at 54 GB/s each way), a 64-core Zen 4 host. DeepSeek-V4.1-Flash, IQ2_XXS GSQ-RCO pack, DSpark drafter on (in VRAM). Layer split, 512K context, ~300-540 of the trunk's experts on the CPU lane, `--parallel 4 --tp 1 --threads on`, `MAYA_DS4_MULTI_DRAFT=1`. "Off" is the same build and settings without `MAYA_DS4_MD_PIPE`. Pooled tok/s, greedy (T=0), 1/2/3/4 conversations started together. Verdict by hardware class: - **Two GPUs, layer split, most experts in VRAM:** prose is +11% / +12% / +20% at 2/3/4 conversations, copy +37% / +33% / +40%, coding-agent windows +25-42%. One conversation is unchanged (the lone path). - **Two GPUs, tensor parallel:** not supported (`pipe_ok` refuses a TP group); the previous PR's path applies. - **One GPU, or more than two GPUs:** not supported (the pipe is two stages on two GPUs). - **Two GPUs, experts streamed over the PCIe lane:** not supported (`pipe_ok` refuses a streaming layer). **Essay (prose, ~60% of drafts kept)** | | 1 | 2 | 3 | 4 | |---|---|---|---|---| | pipe off | 85.7 | 105.2 | 127.7 | 145.0 | | **pipe on** | 87.6 | **116.3** | **142.6** | **173.8** | | the same windows one at a time (`MAYA_DS4_MD_PIPE_SERIAL=1`) | 83.2 | 83.7 | 98.0 | 106.4 | **Copy prompt (~95-100% of drafts kept)** | | 1 | 2 | 3 | 4 | |---|---|---|---|---| | pipe off | 122.3 | 113.7 | 115.7 | 116.6 | | **pipe on** | 124.6 | **155.5** | **154.2** | **162.9** | **Coding-agent windows.** Each run is 6 minutes: 32-64K-token code prompts, 700-token answers, T 0.7. The table gives the tokens written in all; "pipe on" is the range over the runs. | | pipe off | pipe on | |---|---|---| | 2 agents | 30,955 | **39,219-43,990** | | 4 agents | 31,884 | **39,773-43,540** | **Window pricing** (`MAYA_DS4_MD_PIPE_PRICE`). The same build in each mode; pooled tok/s greedy, then the coding-agent windows (tokens written, two runs each): | price | essay, 4 | copy, 2 | copy, 4 | 2 agents | 4 agents | |---|---|---|---|---|---| | `stage` (default) | 165.6 | 150.3 | 168.4 | 43,990 / 39,907 | 39,773 / 40,556 | | `equal` | 161.8 | 159.6 | 170.4 | 43,105 / 39,219 | 42,366 / 42,256 | | `share` | 165.0 | 154.7 | 163.5 | 40,385 / 40,536 | 41,416 / 40,724 | | `stage`, `DRAFT_PRICE=gpu` | 163.3 | 158.4 | 163.4 | 39,788 / 39,898 | 41,586 / 43,540 | The modes agree within run-to-run noise here: one mode's two runs differ by up to 4,000 tokens, more than any gap between modes. `stage` stays the default because it prices each window by what it used. Other hardware, where the two stages are less even, may separate them. ## Suggested settings | requests at once | two GPUs, layer split, most experts in VRAM | two GPUs, TP2 | one GPU / experts mostly in RAM | |---|---|---|---| | 1 | no effect | no effect | no effect | | 2-4 | `MAYA_DS4_MULTI_DRAFT=1 MAYA_DS4_MD_PIPE=1`, `--threads on` | not supported (the previous PR's `MAYA_DS4_MULTI_DRAFT=1`) | not supported | | 8 | not measured | not supported | not supported | ## Not in this PR - **Keeping a window in flight across rounds.** The pipe fills and drains each round, and `MAYA_DS4_MD_PIPE_WINDOWS=3` amortizes that. - **A stream of its own for the drafter.** Its pass runs on the stages' streams, so a pass drafted mid-round waits for the other window's first stage. ## Checks - **Build:** `maya-ds4` (sm_120, CUDA 13.4) with no new warnings. - **`tools/check_hip_compat.py`:** passes. - **Unit tests:** `serve/test_multi.py` (13), `tools/test_maya_parallel.py` (11) and `tools/test_ds4*.py` (33) pass. - **Platforms:** Linux only, two GPUs. Not tested on AMD or Windows. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#643
No description provided.