Archived
qwen4exp: verify/decode pass launch order, prefetch width, chain polling, turnover slots
Lossless (no kernel arithmetic or operand change): the router weight is read beside the mixer all-reduce; k/v projections before q|gate; the indexer's keys behind the attention launches within the exact bound; verify-height prefetch at 32 workgroups (`prefetch` takes an optional `blocks` param) and the shared down arm before the routed down from 2 rows (kVerifyRows); chain waits poll by grid size (R4D_CHAIN_TINY/SMALL/MID); the mover's kept-free turnover slots follow the swaps the engine asked for (MoverConfig::turnover_adaptive) instead of a fixed 640. arch_test: new a_flash_next_decode_step_orders_its_small_launches; the pinned graph fingerprints and step hashes of qwen4exp_fp8 move (re-pinned). place_test: the adaptive turnover. r4d_selftest: the `blocks` param of prefetch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
946a6f9e2b
commit
ca7a7212ec
20 files changed
+598
-44
No files matched your search
@@ -3737,6 +3737,9 @@ int Engine::load_weights() {
|
||||
* aligned (rad_format.h), DirectFile's alignment, so stages take the no-bounce path. */
|
||||
MoverConfig mc{};
|
||||
mc.container_path = file_ ? cfg_.model : std::string();
|
||||
/* The lent slots kept free for swaps follow the swaps asked for (mover.h): a rank that
|
||||
* holds nearly all its experts gets the idle ones back as residents. */
|
||||
mc.turnover_adaptive = true;
|
||||
RAD_TRY(r->mover.init(r->program, r->plan, mc, &r->pools));
|
||||
/* What the mover took, before the first copy. Its slabs are allocated in init, so the pool
|
||||
* is as full as it will get; a load stopping with zero free is a placement failure, not
|
||||
|
||||
Reference in new issue
Block a user