mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1342] [CLOSED] feat: progressive loading (streaming trunk) baseline #3399
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#3399
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/1342
Author: @cybort
Created: 10/7/2026
Status: ❌ Closed
Base:
main← Head:cybort-progressive-loading📝 Commits (2)
4f0aeecfeat: progressive loading (streaming trunk) baselineea3805efix: memory deallocation and enable TrunkStreamer in generate.cpp📊 Changes
5 files changed (+1652 additions, -1443 deletions)
View changed files
📝
AGENTS.md(+2 -0)📝
CMakeLists.txt(+1444 -1443)➕
include/strata/core/trunk_stream.hpp(+89 -0)➕
src/core/trunk_stream.cpp(+104 -0)📝
src/program/generate.cpp(+13 -0)📄 Description
This PR introduces the baseline implementation for progressive loading (streaming trunk) in Strata.
The goal is to lower the memory floor required to run the engine by avoiding reading the entire
dense.bin(trunk weights) into memory at once. Instead,blk.*layers are streamed from disk on demand using a ring buffer.Changes
trunk_stream.hppandtrunk_stream.cppto handle asynchronous reading of dense weights via an unbuffered ring buffer slot strategy.generate.cppto initialize theTrunkStreamerfor dynamic layer mapping alongside the existingWeightTableintegration.trunk_stream.cppto use standardstd::freefor deallocating slots.AGENTS.md.CMakeLists.txtto compile the newtrunk_stream.cppcomponent.This is a baseline implementation targeting proof-of-concept compilation and validation without breaking existing workflows.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.