[GH-ISSUE #1304] Prefill/Reading the prompt with multi-gpu cards is slow #532

Closed
opened 2026-11-04 01:43:50 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @sense1024 on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1304

I have 2x 2080TI 22GB with NVLink.
I use them to run llama.cpp with Qwen 3.8 27B Q6. The prefill speed is between 2300 and 700 t/s.

Now, I set up Strata with 3.8 Flash Next IQ3_S. The prefill speed is always less than 400 t/s.
Why and how to improve prefill speed?

I know that the current version of Strata does not support P2P/NCCL communication.
Do I need to remove NVLink to run Strata?

Thanks.

Originally created by @sense1024 on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1304 I have 2x 2080TI 22GB with NVLink. I use them to run llama.cpp with Qwen 3.8 27B Q6. The prefill speed is between 2300 and 700 t/s. Now, I set up Strata with 3.8 Flash Next IQ3_S. The prefill speed is always less than 400 t/s. Why and how to improve prefill speed? I know that the current version of Strata does not support P2P/NCCL communication. Do I need to remove NVLink to run Strata? Thanks.
Author
Owner

@KLNHOMEALONE commented on GitHub (Oct 7, 2026):

The same with 2 5060Ti 16gb. The prefill is around 288 t/s. No NVLink. But my PCIE is 8/4. With 1 5060Ti the prefill is around 1400-1500 t/s.

<!-- gh-comment-id:6033676703 --> @KLNHOMEALONE commented on GitHub (Oct 7, 2026): The same with 2 5060Ti 16gb. The prefill is around 288 t/s. No NVLink. But my PCIE is 8/4. With 1 5060Ti the prefill is around 1400-1500 t/s.
Author
Owner

@Niko1221 commented on GitHub (Oct 7, 2026):

Two RTX 2080 Ti with NVLink: the default layer split cannot use NVLink, so each prompt chunk crosses PCIe from card to card. Try --peer-device (it uses peer-to-peer copies, which is what NVLink speeds up) and --pipeline-windows N (it overlaps the two cards while the prompt is read); on two-GPU boxes the peer path is the faster prompt route. Please post the full command line, the startup log (the GPU, split and expert cache lines) and the prompt tok/s you get with each flag, plus how you measured the llama.cpp numbers (model, quant, prompt length), and we will see what is left.

<!-- gh-comment-id:6038133699 --> @Niko1221 commented on GitHub (Oct 7, 2026): Two RTX 2080 Ti with NVLink: the default layer split cannot use NVLink, so each prompt chunk crosses PCIe from card to card. Try --peer-device (it uses peer-to-peer copies, which is what NVLink speeds up) and --pipeline-windows N (it overlaps the two cards while the prompt is read); on two-GPU boxes the peer path is the faster prompt route. Please post the full command line, the startup log (the GPU, split and expert cache lines) and the prompt tok/s you get with each flag, plus how you measured the llama.cpp numbers (model, quant, prompt length), and we will see what is left.
Author
Owner

@MarsLuay commented on GitHub (Oct 13, 2026):

I ran the requested A/Bs on Strata v0.1.43.1 CUDA 12 with an RTX 3080 Ti 12 GB (CUDA0) + Tesla V100 32 GB PCIe (CUDA1) on Windows/WDDM. This is PCIe-only (no NVLink). Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_S; 131,072-token context; --spec 4 --mtp; 10,064-token prompts; 128 greedy output tokens; two measured requests per arm after warm-up. Prompt tok/s is the engine's reported prompt rate; decode is the reported generated-token rate.

Manual layer split baseline

Arguments added:

--layer-split 28 --trim-stage-weights

Startup:

layer split: layers 0-27 (CUDA0), 28-47 (CUDA1), one hand-off per window

Prompt: 1,460.0 / 1,494.1 tok/s (mean 1,477.0). Decode: 68.4 / 72.0 tok/s (mean 70.2).

--pipeline-windows 2

Arguments added:

--layer-split 28 --trim-stage-weights --pipeline-windows 2

I omitted --remote-expert-opt for this arm. Startup reported:

--pipeline-windows 2: two verifiers per stage, 2 stages overlap across windows
layer split: layers 0-27 (CUDA0), 28-47 (CUDA1), one hand-off per window

Prompt: 1,445.7 / 1,532.8 tok/s (mean 1,489.2). Decode: 78.6 / 76.7 tok/s (mean 77.7). All verify captures reported upload/sync without error.

--peer-device 1

Arguments added:

--peer-device 1

The model remained on CUDA0; both CUDA ordinals were visible to the engine. Startup reported:

peer GPU 1: 16078 experts, 30.50 GiB
peer GPU 1 computes its experts' rows ... no P2P: through mapped host memory

Prompt: 634.2 / 665.1 tok/s (mean 649.7). Decode: 86.0 / 89.2 tok/s (mean 87.6). The peer path moved about 82% of routed decode traffic through the peer/PCIe path in these requests, so it improved decode but substantially slowed prompt reading versus the layer split. No request or verification errors occurred.

On this PCIe-only pair, --pipeline-windows 2 is the useful prompt/decode tradeoff; --peer-device is faster for decode but not for prompt ingestion. The peer result is not an NVLink result.

<!-- gh-comment-id:6138292901 --> @MarsLuay commented on GitHub (Oct 13, 2026): I ran the requested A/Bs on **Strata v0.1.43.1 CUDA 12** with an **RTX 3080 Ti 12 GB (CUDA0) + Tesla V100 32 GB PCIe (CUDA1)** on Windows/WDDM. This is PCIe-only (no NVLink). Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_S; 131,072-token context; `--spec 4 --mtp`; 10,064-token prompts; 128 greedy output tokens; two measured requests per arm after warm-up. Prompt tok/s is the engine's reported prompt rate; decode is the reported generated-token rate. ### Manual layer split baseline Arguments added: ```text --layer-split 28 --trim-stage-weights ``` Startup: ```text layer split: layers 0-27 (CUDA0), 28-47 (CUDA1), one hand-off per window ``` Prompt: **1,460.0 / 1,494.1 tok/s** (mean **1,477.0**). Decode: **68.4 / 72.0 tok/s** (mean **70.2**). ### `--pipeline-windows 2` Arguments added: ```text --layer-split 28 --trim-stage-weights --pipeline-windows 2 ``` I omitted `--remote-expert-opt` for this arm. Startup reported: ```text --pipeline-windows 2: two verifiers per stage, 2 stages overlap across windows layer split: layers 0-27 (CUDA0), 28-47 (CUDA1), one hand-off per window ``` Prompt: **1,445.7 / 1,532.8 tok/s** (mean **1,489.2**). Decode: **78.6 / 76.7 tok/s** (mean **77.7**). All verify captures reported upload/sync without error. ### `--peer-device 1` Arguments added: ```text --peer-device 1 ``` The model remained on CUDA0; both CUDA ordinals were visible to the engine. Startup reported: ```text peer GPU 1: 16078 experts, 30.50 GiB peer GPU 1 computes its experts' rows ... no P2P: through mapped host memory ``` Prompt: **634.2 / 665.1 tok/s** (mean **649.7**). Decode: **86.0 / 89.2 tok/s** (mean **87.6**). The peer path moved about **82% of routed decode traffic** through the peer/PCIe path in these requests, so it improved decode but substantially slowed prompt reading versus the layer split. No request or verification errors occurred. On this PCIe-only pair, `--pipeline-windows 2` is the useful prompt/decode tradeoff; `--peer-device` is faster for decode but not for prompt ingestion. The peer result is not an NVLink result.
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156059415 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
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#532
No description provided.