mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2385] [CLOSED] planner: rank auto layer splits for prompt pipelines #4018
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#4018
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/2385
Author: @MarsLuay
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:fix/long-context-split-objective📝 Commits (4)
c49639fplanner: rank auto layer splits for prompt pipelines3e96348planner: guard prompt gains against decode regressions0f18f6bplanner: label tiny-stage objective correctlyb318adcMerge upstream/main into fix/long-context-split-objective📊 Changes
4 files changed (+176 additions, -44 deletions)
View changed files
📝
docs/MULTI_GPU.md(+6 -3)📝
include/strata/program/split_rules.hpp(+24 -0)📝
src/program/generate.cpp(+137 -41)📝
tests/program/split_rules_test.cpp(+9 -0)📄 Description
Summary
--layer-split-objective interactive|prompt|decodefor--layer-split auto.interactiveobjective first select the legacy serial-decode optimum, then optimize the slowest prompt-pipeline stage only among placements whose predicted serial decode cost does not regress.promptas an explicit unconstrained prompt-throughput priority anddecodeas the serial stage-sum ranking.This addresses the heterogeneous-GPU planner mismatch where maximizing cache coverage or prompt throughput can select a decode-slow split. The planner remains model-based and does not benchmark at startup. The decode guard is a prediction constraint, not a universal hardware guarantee.
Tracking issue: #2393
Related: #2052, #509, #2085
Measured evidence
These are actual same-host measurements from 2026-10-14 using Strata 0.1.40 (version-scoped evidence, not a claim about current 0.1.44 throughput): RTX 3080 Ti + Tesla V100, SC117 IQ3_S, 262,144 context, 259,841-token prompt,
int8, 32K KV resident, speculative decoding 4, and no prompt reuse.--layer-split auto--layer-split 24The balanced split reduced prompt time by 26.0% and improved prompt throughput by 35.1%, despite its lower cache-hit percentage. These measurements motivate the prompt objective; they are not post-PR binary results.
A fresh 128K request was also run against the already-running 0.1.40 runtime with explicit balanced
--layer-split 24: 124,631 prompt tokens, 76.91 s prompt time, 1,620.5 prompt tok/s, 7.86 s decode, 32.6 decode tok/s, 74.5% cache hit, no prompt reuse. This is version-scoped runtime remeasurement only; it does not validate this unbuilt PR head.Validation
cmake --build build-pr --config Debug --target split_rules_testctest --test-dir build-pr -C Debug --output-on-failure -R '^(split_rules_test|share_rules_test|host_limits_test|arch_defaults_test|batch_read_test|batch_groups_test|split_ring_test|draft_kv_plan_test|coupled_draft_test|controller_test|message_boundary_test|conv_cache_test)$'— 12/12 passedgit diff --check🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.