mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1340] [CLOSED] Experimental retained RAM originals for native asynchronous exchanges #3398
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#3398
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/1340
Author: @CC-David-CC
Created: 10/7/2026
Status: ❌ Closed
Base:
main← Head:perf/q8-retained-originals-main📝 Commits (4)
2d3ca1dcore: retain fixed RAM originals across native async expert exchangesb47225cdocs: record focused qualification and measured resultse55607bMerge commit '61b3fb5dd3' into HEAD75cf45adocs: 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=8andSTRATA_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:
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.