mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #639] [CLOSED] layer split: with explicit split points each GPU loads only its own layers' dense weights #2737
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#2737
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/639
Author: @JeanP00l
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:pr-stage-trim📝 Commits (1)
5fe54e5layer split: with explicit split points each GPU loads only its own layers' dense weights📊 Changes
3 files changed (+61 additions, -3 deletions)
View changed files
📝
include/strata/core/native_dense.hpp(+3 -0)📝
src/core/native_dense.cpp(+9 -0)📝
src/program/generate.cpp(+49 -3)📄 Description
What
With a layer split every GPU keeps a full copy of the dense weights (~3.4 GB for the Coder), although each stage only reads its own layers. This PR lets each GPU load only its layers' dense weights when the split points are explicit (
--layer-split 27), and gives the freed VRAM to the expert cache.blk.N.*tensors outside its layer range (read from the pack'sindex.txt). PLE tensors stay on every GPU.NativeDense::set_layer_rangelimits the native projections the nextloaduploads in the same way.--layer-split autoand single-GPU runs are unchanged.STRATA_STAGE_TRIM=0keeps the full copies.Measured
2x AMD Instinct MI50 16 GB (gfx906, see #638), Coder IQ1_M, 128K context,
--layer-split 27:The trimmed tensors are never read by the GPU that skips them.
Status
Re-run on 2x MI50 with this branch on current
main, results in the comment below.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.