mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #223] [CLOSED] Multi gpu: Layer split: pinned arena, lent prompt buffers, tested planner (2 x 2080 Ti decode +34%, 29K prompts +61%) #2510
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2510
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/223
Author: @giostrives
Created: 9/30/2026
Status: ❌ Closed
Base:
main← Head:multi-gpu-split📝 Commits (5)
e08ffbdverify: cudaFuncGetName only with CUDA 12.3+ (an sm_75 build with CUDA 12.0 failed)bb321e5layer split: pin the whole expert arena outside Windowsb578d5elayer split: every card lends its prompt buffers from its own cache251fb73layer split auto: the planner in layer_split.hpp, tested, with a hand-off term6bc110abench: the layer split on 2 x RTX 2080 Ti, before and after (bench/results/2026-09-30-layer-split-2080ti)📊 Changes
26 files changed (+5690 additions, -186 deletions)
View changed files
📝
CMakeLists.txt(+4 -0)➕
bench/results/2026-09-30-layer-split-2080ti/README.md(+98 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/0127-lend-one.json(+165 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/0127-lend-split.json(+213 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/0127-one.json(+375 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/0127-split.json(+472 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/base-one.json(+372 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/base-split.json(+468 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/lend-split.json(+11 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/pcie-default.json(+308 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/pcie0.40.json(+309 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/pcie0.55.json(+309 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/remote.json(+184 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/v1-split.json(+469 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/v2-auto.json(+469 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/v2-k18.json(+226 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/v2-k31.json(+226 -0)➕
bench/results/2026-09-30-layer-split-2080ti/data/v2-k36.json(+226 -0)➕
bench/results/2026-09-30-layer-split-2080ti/split_bench.py(+194 -0)📝
docs/MULTI_GPU.md(+30 -10)...and 6 more files
📄 Description
On 2 x RTX 2080 Ti the layer split was barely faster than one card for decode and about 30% slower for prompts. This branch fixes how the split is set up. On this setup the split is now the faster configuration for both decode and long prompts.
Changes
bb321e5). The 8 GiB pin cap is a WDDM workaround and now applies on Windows only. With the cap on Linux, only the first ~10 layers' misses could take the PCIe share, and the prompt path staged ~80% of the streamed experts through host copies.b578d5e). Each card used to reserve 2048-token buffers for the whole session (~1.5 GiB a card), and prompts ran in 2048-token chunks. Now every card lends its buffers from its expert cache, and all cards read the same chunk, the largest every card can lend.251fb73). This is layer_split::Planner, with unit tests in src/program/layer_split_test.cpp. It adds a hand-off term per later card and makes the routing-curve exponent a parameter. The commit also fixes the later card's reserve, which counted the drafter twice: it was 1 GiB and is now 128 MiB.6bc110a). Harness, raw results and tables in bench/results/2026-09-30-layer-split-2080ti/, plus a section in docs/MULTI_GPU.md. Most of the added lines are here.Related
The first commit is the same fix as #209 (cudaFuncGetName guarded for CUDA < 12.3). If #209 lands first, I'll drop the commit and rebase. Otherwise this MR carries it, and #209 can be closed as superseded.
Results
Qwen3.8-Flash-Next IQ2_XS, 2 x RTX 2080 Ti 11 GB, i7-7700K, 32K context, int8 KV, --spec 4. Same harness for every row, and every needle was found.
Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.