mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#5083
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/4549
Author: @cobra91
Created: 10/28/2026
Status: 🔄 Open
Base:
main← Head:draft-head-room📝 Commits (1)
cace4d4Layer split: keep the draft head's room out of the last card's cache (from Strata-DualGPU)📊 Changes
1 file changed (+7 additions, -2 deletions)
View changed files
📝
src/program/generate.cpp(+7 -2)📄 Description
Problem and result
A layer split's last stage also runs the drafter, and the drafter's draft head and its logits are allocated when it binds - after the expert caches are sized. One GPU already keeps their room out of its cache (#199); a split's last stage does not, so on a card without a display (the server reserves only 300 MiB there) they had to come out of that reserve, and on two 16 GB cards the engine stopped with "mtp: the draft head does not fit". With this change the last stage's cache leaves room for them, as on one GPU.
Related discussion
From Hardin22's Strata-DualGPU (
5a20ec58, part of what #642 described). The same two-16-GB-cards scenario is in our benchmark thread #4470.Approach
Seven lines: in the per-stage cache sizing loop, subtract
mtp.bind_bytes(st.head.row_bytes(), n_vocab)from the last stage's room. Main already declareslast_stand usesbind_byteselsewhere; this is the same subtraction #199 applies on one GPU, applied to the split's last card. No new flags, no behaviour change beyond the placement.Validation
Engine built from main at
46c152a1(MSVC 19.51 / Ninja / CUDA 13.4, arch 89;120). Host:serve/server.pywith--pipeline-windows 2,--layer-split auto; rates read from the engine log. Rig: RTX 5080 + RTX 4060 Ti 16 GB (chipset slot), Ryzen 7 9800X3D, 32 GB RAM, Windows 11; Swift 1.5 IQ2_XS, 64K, q4_0 KV, stock MTP draft.Passed:
431 MiB of VRAM freeon CUDA1 (no--vram-reserve-later-mib); a full bench suite (short + long greedy generations) completes, health 200 throughout.--pipeline-windows 2on the same rig: 34-39 tok/s).Failed:
Not run:
Limits
The room subtracted is the draft head and its logits only (
bind_bytes); the second verifier of--pipeline-windowsand its graphs are not in this subtraction (the fork carries a separate change for that, which I can bring if this is welcome).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.