serve: --adapt-async 1 in the arena mode (one GPU, copy-in only, opt-in)
In the arena mode the blocking adaptive tier creates and joins a thread every verify window and the next window waits for its copies (#1863: the time outside the decode timing breakdown). --adapt-async 1 now also runs with the arena on one GPU, not only in the resident RAM mode. The arena holds every expert, so a round is a copy-in only: no copy back, no RAM move, no exchange buffers. - gates for the arena; ArenaExpertSource::blob_at() reads a blob from the job thread without the read counter - the evicted slot is marked non-resident and uploaded before the round's copies are posted; an expert becomes resident only once its copy's event has completed - STRATA_ADAPT_ASYNC_WAIT=1 (arena default): the next tick waits for the round, so the window an expert turns GPU-resident does not depend on timing; STRATA_ADAPT_PICK_INLINE=1 (arena default): one round per window; STRATA_ADAPT_ASYNC_BATCH=N caps the copies per tick (default 0 = all); arena rounds are not capped at 96 - adapt_quiesce(): every K/V grow, kv_quiesce and the VRAM command land the round in flight (they only called apply_pending(true)); a failed round still drains its copies. This also covers the resident mode's async tier. - STRATA_DECODE_TIMING: "adapt wait X join Y, Z swaps/window"; --adapt-async help text RTX 3090 + Ryzen 5 5600X, cold prompts: x1.07-1.11 decode, faster on 12 of 12 prompts; 25.9 -> 21.6 ms per window (bench/results/2026-10-11-community-rtx3090-5600x-arena-async, docs/DETAILS.md). Opt-in (--adapt-async 1, default 0); the default path is that of v0.1.42. With the tier on, answers are not bit-exact run to run (which window first computes a swapped-in expert on the GPU).
This commit is contained in:
1 parent
caac711395
commit
1aa0abf63a
11 files changed
+723
-23
No files matched your search
@@ -4786,6 +4786,13 @@ const uint8_t* ArenaExpertSource::blob(int64_t layer, int64_t expert) {
|
||||
return base_ + strata::kernels::cpu::expert_layout().blob_offset(layer, expert);
|
||||
}
|
||||
|
||||
const uint8_t* ArenaExpertSource::blob_at(int64_t layer, int64_t expert) const {
|
||||
if (base_ == nullptr || layer < 0 || expert < 0 || expert >= n_expert_) return nullptr;
|
||||
const int64_t idx = layer * n_expert_ + expert;
|
||||
if (idx < 0 || idx >= blobs_) return nullptr;
|
||||
return base_ + strata::kernels::cpu::expert_layout().blob_offset(layer, expert);
|
||||
}
|
||||
|
||||
} // namespace strata::core
|
||||
|
||||
// ---- Foresight swap space (see include/strata/core/foresight_swap.hpp) ------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user