mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1451] [CLOSED] prefill: allocate PLE host buffers only when needed #3464
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#3464
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/1451
Author: @W1nge
Created: 10/7/2026
Status: ❌ Closed
Base:
main← Head:codex/upstream-optimization-pr📝 Commits (2)
b84b1d1prefill: allocate PLE host buffers only when needede52b355Merge remote-tracking branch 'upstream/main' into codex/upstream-optimization-pr📊 Changes
4 files changed (+117 additions, -6 deletions)
View changed files
📝
CMakeLists.txt(+6 -0)➕
src/prefill/ple_host_buffer.hpp(+35 -0)➕
src/prefill/ple_host_buffer_test.cpp(+66 -0)📝
src/prefill/prefill.cpp(+10 -6)📄 Description
Summary
Prefill initialization reserves two maximum-chunk PLE host buffers even when batched PLE is unused. Allocate them when the batched path runs: one for a single chunk, two for multiple chunks, retaining capacity for reuse.
What changed
Wait for the previous upload before growing storage and preserve the pinned/pageable fallback. At 32,768 rows x 2,560 floats, each avoided buffer is 320 MiB. No model-specific constants, tuning flags or numerical changes.
Validation
Updated to main
61b3fb5d. The production helper passes 64 delayed-DMA growth/reuse and fallback cases on each of RTX 2080 Ti and P100. Full MSVC/CUDA integration build passes forsm60;sm75.Draft pending affected HIP/SYCL builds. Current-main full-model inference was not repeated; allocation cost moves to the first batched PLE request.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.