mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #864] [CLOSED] perf: opt-in resident expert exchange buffer rotation #2883
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#2883
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/864
Author: @CC-David-CC
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:perf/exchange-rotation-only📝 Commits (3)
18a30adperf: opt in to resident expert exchange buffer rotation13936d2bench: verify rotation-only build with an exact native 1K pair92a6517bench: document the standard Q2 token-identical rotation pair📊 Changes
10 files changed (+849 additions, -9 deletions)
View changed files
📝
CMakeLists.txt(+8 -0)➕
bench/results/exchange-rotation-ab.json(+288 -0)➕
bench/results/exchange-rotation-token-ids.json(+1 -0)➕
docs/EXCHANGE_ROTATION.md(+139 -0)➕
include/strata/core/exchange_storage.hpp(+114 -0)📝
include/strata/core/expert_source.hpp(+7 -0)📝
src/core/expert_source.cpp(+59 -8)📝
src/program/generate.cpp(+4 -0)➕
tests/core/exchange_storage_test.cpp(+133 -0)📝
tests/core/file_expert_source_test.cpp(+96 -1)📄 Description
Resident RAM exchanges copy each evicted expert from a temporary buffer into the promoted expert's old slot. This patch rotates buffer ownership after the existing reader/transfer completion boundary, removing that host copy.
Clean extraction of
aa6e0e3+1a50d91and their tests, as requested in #689, based on upstream6f32ec0. Includes the focused guide and one Q2_0 A/B. Q8 PLE support and the broader performance experiments remain separate.STRATA_EXCHANGE_ROTATE=1opts in; default off. It requires equal-size expert blocks and fully pinned/mapped resident and exchange buffers. Other layouts keep the existing copy path. Presets, placement policy and GPU synchronization are unchanged; configurations without the resident RAM complement do not use rotation.Validation
18a30ad775bce86e99a54e6dc552ccb72c66d16e; same binary in both arms. RTX PRO 6000 Blackwell 96GB, Ryzen 7950X, GCC 13.3, CUDA 13.2.01The GPU cache was deliberately capped at 12,000 slots to exercise the 16.19 GiB RAM complement; Q2 can fit fully on this card. One pair, rates exclude startup/prefill, EOS sentinel forces the exact length. No general speedup, model-quality or speculative-path parity claim. AMD and Windows GPU execution remain untested.
Guide and verification commands | Receipt | Raw token IDs
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.