[PR #5053] [CLOSED] [Benchmark] historical mixed-size rotation patch for #5050 #5300

Closed
opened 2026-11-07 16:34:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 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 patch
  • 5674812 [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

  • Passed: python3 bench/proposals/2026-11-03-mixed-exchange-reference/run_tests.py on 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.
  • Corrected packaging failure: first host runner used an incomplete include search path; corrected before the passing run.
  • Not run for this draft: current-main engine integration, CUDA/HIP/SYCL builds or GPU execution. The host alias arrays do not establish DMA correctness. Earlier hardware measurements belong to the preserved experimental overlay, not this PR's current-main base.

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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/5053 **Author:** [@AlanJager](https://github.com/AlanJager) **Created:** 11/3/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `draft/mixed-exchange-reference-5050` --- ### 📝 Commits (2) - [`281ad4c`](https://github.com/Niko1221/Strata/commit/281ad4c174e090a2bf21e33779a3dea028aaed1f) [Benchmark] document historical mixed-size rotation patch - [`5674812`](https://github.com/Niko1221/Strata/commit/5674812a5e37d20a6078e3e1893dcf7abaef3021) [Benchmark] attach tested rotation patch, host checks and ABBA samples ### 📊 Changes **13 files changed** (+1094 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `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) </details> ### 📄 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 - **Passed:** `python3 bench/proposals/2026-11-03-mixed-exchange-reference/run_tests.py` on 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. - **Corrected packaging failure:** first host runner used an incomplete include search path; corrected before the passing run. - **Not run for this draft:** current-main engine integration, CUDA/HIP/SYCL builds or GPU execution. The host alias arrays do not establish DMA correctness. Earlier hardware measurements belong to the preserved experimental overlay, not this PR's current-main base. 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:34:10 +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#5300
No description provided.