mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #294] [CLOSED] Layer split auto: extract the planner into layer_split.hpp, pin the whole arena outside Windows #2559
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#2559
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/294
Author: @giostrives
Created: 9/30/2026
Status: ❌ Closed
Base:
main← Head:feature/multi_planner-0.1.30📝 Commits (3)
a970cfalayer split: pin the whole expert arena outside Windows696db0elayer split auto: the planner in layer_split.hpp, tested, with a hand-off term128caa9docs: MULTI_GPU.md after #216 (per-layer sessions, borrowed prompt buffers); 2 x RTX 2080 Ti measured📊 Changes
5 files changed (+310 additions, -102 deletions)
View changed files
📝
CMakeLists.txt(+4 -0)📝
docs/MULTI_GPU.md(+26 -11)➕
include/strata/program/layer_split.hpp(+135 -0)📝
src/program/generate.cpp(+33 -91)➕
src/program/layer_split_test.cpp(+112 -0)📄 Description
This PR is scavenged from https://github.com/Niko1221/Strata/pull/223, limiting the changes to the memory pinning and multi-gpu planner.
--layer-split autocost model out ofgenerate.cppinto a header-only, unit-testedPlannerChanges
include/strata/program/layer_split.hpp). The placement arithmetic is now inlayer_split::Planner,Card,CostsandPlacement, apart from the devices.generate.cpponly gathers per-card VRAM and SM/clock data and callsplanner.best(cards).STRATA_SPLIT_HANDOFF_MS, default 1.0 ms; about 1.1 ms measured on 2 x RTX 2080 Ti over PCIe gen3). The startup log'spredicted ... ms per decode windowincludes it.STRATA_SPLIT_HANDOFF_MSandSTRATA_SPLIT_MASS_EXPjoinSTRATA_SPLIT_MISS_MS. Defaults are unchanged from the previous hard-coded values (190 ms, exponent 1.2).arena_pin_cap(several_contexts, wddm)caps the pin at 8 GiB only under WDDM with several contexts. Linux now pins the whole arena, as with one card.layer_split_test(registered in CMake) covers the pin cap, per-layer time, the fill-stops-at-first-misfit rule, hand-off terms, placement search for 2, 3 and 4 cards, and the carve pricing.docs/MULTI_GPU.mddescribes the new model, the per-layer sessions and borrowed prompt buffers, and adds a 2 x RTX 2080 Ti measurement.Measurements
Qwen3.8-Flash-Next IQ2_XS (33 GiB of experts, more than both cards hold), 2 x RTX 2080 Ti (11 GB, PCIe gen3 x16, i7-7700K), Linux, 32K context,
--spec 4. Auto chose K=25.Decode is +32-37%. Prompts gain with length: +4-5% at 1.9K, +53-56% at 29K.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.