Repository navigation
EXL3 Flash Next: host-resident K/V on the tier (6/8) - #1522
BlivionIaG wants to merge 249 commits into
Conversation
f6ec41c to
2af002f
Compare
a0583b1 to
5809006
Compare
05f8933 to
41de356
Compare
41de356 to
86f499c
Compare
86f499c to
d7d6a59
Compare
d7d6a59 to
f402526
Compare
|
Thanks @BlivionIaG. We reviewed this PR's own commit on #1501 independently. Off, it's main exactly: the same arena bytes and layout, and the one-plane kernels get
With those, it lands together with #1501. |
f402526 to
8e51ea9
Compare
|
Public head One check to carry into the stack integration with #1501 is whether That fixture models the retired-slot state expected from the parent change. Please carry the sentinel check into the resolved stack and keep the sampled TP2 restore rerun tied to the integrated SHA. My results cover the host path. Igor Lessio - AIFLOW LABS |
|
I checked the missing #1501 guard on published The exact parent fix zig build test-kv-pool -Dcpu=apple_m1 -Doptimize=ReleaseSafe -j2 --summary all
zig build test-flashnext-exl3-host test-kv-safety-host \
-Dcpu=apple_m1 -Doptimize=ReleaseSafe -j2 --summary allThe published child still has 23 conflict paths against main Igor Lessio - AIFLOW LABS |
Avoid indexing tier state with the pool sentinel left by a retired page.
Keep main's nemotron chunked-prefill shape and the strict environment rows: the chunk-solo row takes 0 (off) and a real keeps main's untrimmed text. The EXL3 receipts cover the pending launches only, and the prompt rows keep 13.3's numbers, so the tests assert that. resumeKept keeps anytype; the host-tier test takes the lane type as a parameter.
…p graphs Main's 630eeda removed the eager guard and tests the graphs with a collective attached; the merge kept the older guard. Adopt main's runPiece and runGroup conditions.
The merge kept both the branch's reuse() call and main's resumeKept() calls, so a rank restore ran twice and the second ack timed out into poison(). Keep main's ordering and fold the branch's refusal warnings into resumeKept.
ArrayList.toOwnedSlice remaps in place when it can, so the pack reader's allocation count varied with allocator state and checkAllAllocationFailures reported NondeterministicMemoryUsage. Duplicate the slice so the count is fixed.
|
Thanks @AIFlowML for the #1501 guard check; it is carried here too (
Head |
|
Thanks @BlivionIaG. Two smaller fixes are needed before this can land. The lockstep digest of the host KV tier covers the mapping, generations, LRU order, pins, holders and promises, but not which pages are dirty. Two ranks with different unflushed writes can report equal digests. Please include the dirty state. Also, if a later lane's index-table allocation or lane-selection setup fails while the host-tier lanes are created, the current lane's index table and the earlier lanes' index tables and lane-selection buffers are not released. Please free all three on that error path, as normal teardown does.
|
- a rank holding an unflushed page it cannot evict no longer matches one that flushed, so the open check sees it
|
Both fixes are in on
While merging current main I moved the EXL3 rows out of the central settings table into
|
|
Thanks @BlivionIaG. Both are fixed on
That's everything from our last note. The stack still lands in order, and the next step there is ours.
|
|
Thanks @BlivionIaG. Both requests from our last review are fixed: the digest includes which pages are dirty, and lane setup releases the failing lane and earlier lanes through the shared teardown. The new tests cover dirty-page differences and device allocation failures across three lanes. The stack remains held for ordered integration and the integrated-head tier-on/off, eviction and restore checks, including paged-all. The older composite diagnostics remain separate evidence. Integration stays on our side; there is no further change requested for those two fixes.
|
|
Merged |
This branch adds f64 to the contract's Accum. The Inkling 2 glue and SenseNova mHC Metal fixtures and the Inkling 2 modelopt CUDA fixture came from main with exhaustive switches over it; f64 maps to their unrounded none, as rows.zig and rounding_bound.zig map it.
A merge of main took main's info(gpu) call, while this branch keeps info in runtime_tests.zig, so tf-cuda-test did not compile (zig build compile-cuda-tests).
|
CI on |
cuda_batch_cache.zig's rows() begins the host tier's window before its cache writes, for the full and the cache-only MTP path alike; the lean prefill test sets seq.sel; EXL3 valid cases share environment_valid_cases.zig's Case; the serving pins take the merged files' hashes with both sides' reasons.
|
Merged main into this branch ( Cause: main and this branch changed the same Flash Next CUDA code. Main moved attention's rope, cache-write and pooling steps into Resolutions:
Verified on an M4 Pro, Zig 0.17.0: Not run: GPU contract runs, and the host tier with the cache-only MTP prefill on CUDA hardware. |
|
Thanks, @BlivionIaG. The dirty-page digest and lane-allocation cleanup remain fixed, and the tier's begin call now sits before cache writes on both prefill paths. Two small contract fixes remain. Main moved Inkling's accumulator switch into The three conflicts are small enough for us to handle during integration. Landing still needs the integrated stack's tier parity, eviction and restore checks, including paged-all and cache-only MTP prefill. The older composite runs remain separate evidence.
|
Summary
Attach the shared host K/V tier to EXL3 Flash Next with separate indexer-plane views. The tier is off by default.
a8126820454c8dfe3e3c1af4608d8d2ab98259cc. The maintainer is handling restacking, including the later EXL3 Flash Next: KV pages from the core pool (4/8) #1444 paging fix and EXL3 Flash Next: CUDA graphs and the device planner (7/8) #1445 bounded-scratch fix.Current-head evidence
Two RTX 5060 Ti 16 GiB GPUs, CUDA 13.4.92, Zig 0.17.0;
turboderp/Qwen3.8-Flash-Next-exl3revision69e33439ae950f17bcbe95c98f117d80f759ab6d.flashnext-pagespassed with a retained exit status of 0. The host tier/pool suite passed 74/74. Page rerun, host suite.Diagnostic composite, not the PR head
a812682plus an isolated copy of #1445's bounded head-scratch calculation passed TP1/TP2 two-lane drafted greedy and sampled restore, and TP2 four-request drafted greedy and sampled restore, with cache-disabled reference hashes and logged flush/fetch. This is not the integrated head or paged-all qualification. Four-request greedy, sampled.Open
Repeat tier parity, cacheless-reference restore, contracts and one/four-stream TP1/TP2 cost on the integrated head, including paged-all and actual eviction/restore evidence. Maintain the distinction between shared-prefix cache reuse and independently cold lanes. The maintainer owns the main-versus-tier-off comparison, stack integration and CI. Main refuses this checkpoint, so it is not a runnable checkpoint-performance baseline on this box.
Earlier model-fidelity testing found 70/72 top-token matches against an independent reference; no tie waiver or perfect-equivalence claim. No checkpoint weights are distributed; the checkpoint uses Qwen Community License 1.0.