mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1520] [CLOSED] prefill: release copied Windows expert pages after host staging #3505
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#3505
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/1520
Author: @W1nge
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:codex/windows-prefill-staging-release📝 Commits (1)
83d4f1aprefill: release copied Windows expert pages during staging📊 Changes
3 files changed (+22 additions, -13 deletions)
View changed files
📝
docs/DETAILS.md(+4 -3)📝
include/strata/core/expert_source.hpp(+4 -4)📝
src/prefill/prefill.cpp(+14 -6)📄 Description
On Windows, prefill copies expert weights from file mappings into the Stager's buffers, but the source pages can remain in the process working set after the copy. With a resident CPU expert pool, these duplicate pages can consume the remaining RAM during a long prompt.
Keep the source and expert identity on stable-pointer jobs and call the existing
ExpertSource::releaseafter the host copies complete, before publishing each job as ready. Stable pointers still usememcpy; transient blobs keep 0.1.41'scopy_blobsbatching. The mapping, resident RAM copies and CUDA-registered buffers remain intact. This uses the existing opt-inSTRATA_FILE_RELEASE=1; it adds no setting or numerical change.Validation:
fb58e0d); three files, +22/-13. The Stager definition matches the model-tested integrated build byte for byte.file_expert_source_testandgr_parity --selftestpass.Full model validation was on this Windows helper-GPU configuration and native IQ3_XXS pack. Other backends, GGUF-in-place staging and concurrent layer-split batches were not exercised by those model runs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.