[PR #1340] [CLOSED] Experimental retained RAM originals for native asynchronous exchanges #3398

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1340
Author: @CC-David-CC
Created: 10/7/2026
Status: ❌ Closed

Base: main ← Head: perf/q8-retained-originals-main


📝 Commits (4)

  • 2d3ca1d core: retain fixed RAM originals across native async expert exchanges
  • b47225c docs: record focused qualification and measured results
  • e55607b Merge commit '61b3fb5dd3' into HEAD
  • 75cf45a docs: qualify retained-originals refresh with current-main evidence

📊 Changes

56 files changed (+27953 additions, -15 deletions)

View changed files

📝 CMakeLists.txt (+10 -2)
➕ docs/experiments/retained-originals-main/README.md (+38 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/1340-default-main/engine.log (+66 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/1340-default-main/result.json (+850 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/1340-default-new/engine.log (+66 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/1340-default-new/result.json (+850 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/1340-phase6-asan-status.json (+15 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/1340-phase6-asan-test.log (+1 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/README.md (+32 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/cuda-phase6-1340-ownership.log (+10 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/cuda-status.json (+33 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/current-audit.json (+270 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/current-retained-default-mtp/engine.log (+66 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/current-retained-default-mtp/result.json (+846 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t1-arm0/engine.log (+67 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t1-arm0/result.json (+1362 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t1-arm1/engine.log (+71 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t1-arm1/result.json (+1370 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t4-arm0/engine.log (+71 -0)
➕ docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t4-arm0/result.json (+1362 -0)

...and 36 more files

📄 Description

Adds default-off retention of fixed RAM expert originals across native asynchronous exchanges. When an outgoing primary expert already has its canonical retained RAM copy, its D2H download can be skipped. The batch commit preserves authoritative outgoing RAM ownership before recycling an incoming buffer. Refreshed onto current main 61b3fb5d, preserving its native worker/owner contract and guards.

Enable STRATA_EXCHANGE_RETAIN_GIB=8 and STRATA_EXCHANGE_SEED_PROFILE_TAIL=1. Requires single-device/request native asynchronous serving, uniform mapped/pinned complement, rotation, fixed profile-tail seeds and --no-prefill-borrow; unsupported helpers, pipeline windows and lending are refused. Approximately eight additional GiB of pinned RAM and startup copies are charged separately. Host/cgroup availability and pin-allocation checks can refuse the experiment.

Fresh CUDA/HIP/SYCL builds passed. CUDA/HIP ownership fixtures passed; the retained fixture covers 55,392 exchanges. Host ASan/UBSan passed on both compiler hosts. These checks do not claim full-model HIP/SYCL feature validation.

Fifteen CUDA model cases completed with exact-routing controls (STRATA_ROUTE_TAIL_SKIP=0). Default-off matches current main's full 512-token output. Four 8K/32K plain/MTP lifecycle cases pass twelve STOP/drain/following-function checks at streamed prefixes 7, 19 and 65, without an internal state digest claim. All fifteen narrow arithmetic function checks pass.

Fresh Qwen3.8-Flash-Next Q8_0 / FP16 KV / RTX PRO 6000 Blackwell observations, 1024 benchmark output tokens:

Input / width Off decode tok/s On decode tok/s Full output IDs
32K / 1 77.134 75.599 First difference 16
32K / 4 131.719 136.539 First difference 16
128K / 1 68.798 81.349 All 1024 match
128K / 4 124.559 131.023 First difference 797

One fixed-order observation per arm, warm filesystem caches and changed adaptive placement work do not establish a general speedup or quality equivalence. Cumulative avoided-D2H counter deltas surrounding the benchmarks were 1.911/2.507/2.058/2.700 GB; asynchronous boundary completions can include earlier work. These are neither measured PCIe totals nor isolated decode traffic. No sampled peak-memory series was collected. Keep the feature experimental/default off.

Fresh full records, cancellation audit, source/binary provenance, component logs, timings and reproduction. Ownership contract and preserved historical observations.


🔄 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/1340 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `perf/q8-retained-originals-main` --- ### 📝 Commits (4) - [`2d3ca1d`](https://github.com/Niko1221/Strata/commit/2d3ca1def412c4aa4e1b0ab8bfa8d897f7eba433) core: retain fixed RAM originals across native async expert exchanges - [`b47225c`](https://github.com/Niko1221/Strata/commit/b47225cee8f26ce47bd5fd837f1fe9b62e0829ec) docs: record focused qualification and measured results - [`e55607b`](https://github.com/Niko1221/Strata/commit/e55607b036dd5346dceaabadc44bafd8f38d522e) Merge commit '61b3fb5dd3f1e8ec09cf7e4e05208bc6d3c46406' into HEAD - [`75cf45a`](https://github.com/Niko1221/Strata/commit/75cf45a056de71a2715c8ac74f1f6221f382649a) docs: qualify retained-originals refresh with current-main evidence ### 📊 Changes **56 files changed** (+27953 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+10 -2) ➕ `docs/experiments/retained-originals-main/README.md` (+38 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/1340-default-main/engine.log` (+66 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/1340-default-main/result.json` (+850 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/1340-default-new/engine.log` (+66 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/1340-default-new/result.json` (+850 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/1340-phase6-asan-status.json` (+15 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/1340-phase6-asan-test.log` (+1 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/README.md` (+32 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/cuda-phase6-1340-ownership.log` (+10 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/cuda-status.json` (+33 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/current-audit.json` (+270 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/current-retained-default-mtp/engine.log` (+66 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/current-retained-default-mtp/result.json` (+846 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t1-arm0/engine.log` (+67 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t1-arm0/result.json` (+1362 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t1-arm1/engine.log` (+71 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t1-arm1/result.json` (+1370 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t4-arm0/engine.log` (+71 -0) ➕ `docs/experiments/retained-originals-main/current-main-refresh/current-retained-i131072-t4-arm0/result.json` (+1362 -0) _...and 36 more files_ </details> ### 📄 Description Adds default-off retention of fixed RAM expert originals across native asynchronous exchanges. When an outgoing primary expert already has its canonical retained RAM copy, its D2H download can be skipped. The batch commit preserves authoritative outgoing RAM ownership before recycling an incoming buffer. Refreshed onto current main `61b3fb5d`, preserving its native worker/owner contract and guards. Enable `STRATA_EXCHANGE_RETAIN_GIB=8` and `STRATA_EXCHANGE_SEED_PROFILE_TAIL=1`. Requires single-device/request native asynchronous serving, uniform mapped/pinned complement, rotation, fixed profile-tail seeds and `--no-prefill-borrow`; unsupported helpers, pipeline windows and lending are refused. Approximately eight additional GiB of pinned RAM and startup copies are charged separately. Host/cgroup availability and pin-allocation checks can refuse the experiment. Fresh CUDA/HIP/SYCL builds passed. CUDA/HIP ownership fixtures passed; the retained fixture covers 55,392 exchanges. Host ASan/UBSan passed on both compiler hosts. These checks do not claim full-model HIP/SYCL feature validation. Fifteen CUDA model cases completed with exact-routing controls (`STRATA_ROUTE_TAIL_SKIP=0`). Default-off matches current main's full 512-token output. Four 8K/32K plain/MTP lifecycle cases pass twelve STOP/drain/following-function checks at streamed prefixes 7, 19 and 65, without an internal state digest claim. All fifteen narrow arithmetic function checks pass. Fresh Qwen3.8-Flash-Next Q8_0 / FP16 KV / RTX PRO 6000 Blackwell observations, 1024 benchmark output tokens: | Input / width | Off decode tok/s | On decode tok/s | Full output IDs | |---|---:|---:|---| | 32K / 1 | 77.134 | 75.599 | First difference 16 | | 32K / 4 | 131.719 | 136.539 | First difference 16 | | 128K / 1 | 68.798 | 81.349 | All 1024 match | | 128K / 4 | 124.559 | 131.023 | First difference 797 | One fixed-order observation per arm, warm filesystem caches and changed adaptive placement work do not establish a general speedup or quality equivalence. Cumulative avoided-D2H counter deltas surrounding the benchmarks were 1.911/2.507/2.058/2.700 GB; asynchronous boundary completions can include earlier work. These are neither measured PCIe totals nor isolated decode traffic. No sampled peak-memory series was collected. Keep the feature experimental/default off. [Fresh full records, cancellation audit, source/binary provenance, component logs, timings and reproduction](https://github.com/CC-David-CC/Strata-a5500/tree/75cf45a056de71a2715c8ac74f1f6221f382649a/docs/experiments/retained-originals-main/current-main-refresh). [Ownership contract and preserved historical observations](https://github.com/CC-David-CC/Strata-a5500/blob/75cf45a056de71a2715c8ac74f1f6221f382649a/docs/experiments/retained-originals-main/README.md). --- <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:12 +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#3398
No description provided.