[PR #1451] [CLOSED] prefill: allocate PLE host buffers only when needed #3464

Closed
opened 2026-11-07 14:41:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • b84b1d1 prefill: allocate PLE host buffers only when needed
  • e52b355 Merge 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 for sm60;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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1451 **Author:** [@W1nge](https://github.com/W1nge) **Created:** 10/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/upstream-optimization-pr` --- ### 📝 Commits (2) - [`b84b1d1`](https://github.com/Niko1221/Strata/commit/b84b1d1320c46e167a99b7372f9ae31428706749) prefill: allocate PLE host buffers only when needed - [`e52b355`](https://github.com/Niko1221/Strata/commit/e52b355cfa5117c1752200491a5f2affc10b3a4f) Merge remote-tracking branch 'upstream/main' into codex/upstream-optimization-pr ### 📊 Changes **4 files changed** (+117 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 for `sm60;sm75`. Draft pending affected HIP/SYCL builds. Current-main full-model inference was not repeated; allocation cost moves to the first batched PLE request. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:41:40 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3464
No description provided.