mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#5300
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/5053
Author: @AlanJager
Created: 11/3/2026
Status: ❌ Closed
Base:
main← Head:draft/mixed-exchange-reference-5050📝 Commits (2)
281ad4c[Benchmark] document historical mixed-size rotation patch5674812[Benchmark] attach tested rotation patch, host checks and ABBA samples📊 Changes
13 files changed (+1094 additions, -0 deletions)
View changed files
➕
bench/proposals/2026-11-03-mixed-exchange-reference/README.md(+46 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/after-exchange_storage.hpp(+176 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/before-exchange_storage.hpp(+114 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/exchange_bucket_test.cpp(+71 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/exchange_capacity96_test.cpp(+18 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/exchange_storage_legacy_test.cpp(+133 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/exchange_three_bucket_test.cpp(+72 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/fixtures.json(+64 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/historical-bucket-rotation.patch(+286 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/host-tests.txt(+16 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/provenance.json(+24 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/requests.csv(+29 -0)➕
bench/proposals/2026-11-03-mixed-exchange-reference/run_tests.py(+45 -0)📄 Description
Refs https://github.com/Niko1221/Strata/issues/5050.
This draft makes the actual mixed-size buffer-rotation changes from our earlier RTX 3090 experiment inspectable alongside the benchmark discussion. Current upstream already implements mixed-size rotation. The proposed files are a historical reference patch and host-test package under
bench/proposals/; this PR does not apply the old overlay to current engine sources or change runtime defaults. It is not a new lookahead/spin optimization.The preserved four-file patch adds size-specific spare buffers, capacity-aware ownership transfer, and layer-aware buffer selection in the expert source and generation callers. The exact before/after header, four original host tests, SHA256 provenance, 28 individual requests, and input fixtures are included. Its preimage contains earlier 64-slot/timing overlays and is not a clean release checkout. The integration patch is for review; a standalone engine rebuild is not provided.
Observed tradeoff
The original same-budget, 64-slot / zero-CPU-fallback ABBA measured code 122.7→132.0, Chinese 86.8→96.9 and repair 90.7→100.1 output token/s. Four 1420-token repairs passed the same 14 custom checks with identical output hashes. Bucket allocation costs an additional 227.34375 MiB of pinned host payload for this model and slot count; the formula and exclusions are documented. These small custom measurements do not predict current-main performance.
Issue #5050 has the later official-version results, CPU attribution and unresolved quality findings. Those runs used 16 staging slots and nonzero CPU fallback. Its latest unprofiled repairs passed only 1/2 in each arm; all 12 repair executions combined passed A 5/6 and B 3/6. We retain those failures and do not attribute them to rotation.
Validation and limits
python3 bench/proposals/2026-11-03-mixed-exchange-reference/run_tests.pyon macOS: header SHA256 verification, exact patch round trip, all four original host ownership/payload/alias tests. Per-request CSV recomputation matches the historical throughput report. Public files checked for credentials and private machine paths.Please keep this as a draft discussion artifact. The intended next decision is whether the historical patch/tests are useful for reviewing #5050; there is no request to merge a duplicate runtime implementation or change a default.
Prepared with AI assistance via Codex; measurements and failed requests come from the retained experiments.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.