Repository navigation
EXL3 Flash Next: CUDA graphs and the device planner (7/8) - #1445
BlivionIaG wants to merge 80 commits into
Conversation
4fa1e74 to
a799ca6
Compare
|
CUDA graphs for Flash Next are welcome. Acceptance staying in the core lane engine, with the device code only proposing
This PR depends on #1441 to #1444, so it inherits their blockers. |
f13fa73 to
556eb09
Compare
3a3714f to
5ca7783
Compare
…rid, as this branch's signature has it
- Share the engine runtime with the secondary deep-prefill buffer.
Bound prompt-head scratch rows before doubling. Cover runtime-sized deep chunks and the maximum usize boundary.
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… within 120 columns)
e633d2d to
60206ea
Compare
|
Hardware update for #1445, #1522 and #1446: I no longer have the two RTX 5060 Ti system. I now have access to only one RTX PRO GPU, so I can run TP1 checks there but cannot reproduce the requested TP2 or peer-rank-loss cells locally. The previous 5060 Ti receipts remain available and are not exact-head results for the latest integrated stack. Would TP1 results on the RTX PRO be useful for the updated heads, and can the TP2/peer-loss cells be covered on your side or by another contributor? I will not label TP1 or older results as TP2 qualification. |
|
Hardware detail: the remaining card is an NVIDIA RTX PRO 2000 Blackwell, 16 GiB (driver 580.178.04). It is reachable, but the prior benchmark checkpoint and Zig/CUDA build toolchain are not installed in the standard locations on that host. I will keep any new TP1 results distinct from the earlier 5060 Ti receipts. |
|
Correction to my host-readiness note: CUDA 13.2 is installed at |
|
On M5 Max with Zig 0.17.0, I ran
With those two changes in a scratch copy, the same command passed 290/290. A trial merge against Igor Lessio - AIFLOW LABS |
|
Correction to my storage update: an existing EXL3 checkpoint was already present under a different local user’s private home. Its seven model shard SHA-256s, n-gram and MTP files match Hugging Face revision |
The pool lane test's TF_FLASHNEXT_KV_PAGES case declared a local `t`, shadowing the file-level `std.testing` alias; it now reuses the alias. `Pool.mapAhead` passed `&p.pool`, whose field is already a pool pointer, so the call now passes `p.pool`.
|
Both compile errors @AIFlowML reported are fixed on
Verified on Darwin arm64 with official Zig 0.17.0, in a fresh worktree at this commit:
This is a host compile/test result only. Device graph, performance and TP2 peer-loss cells have not been run on this head; the earlier device receipts are from |
# Conflicts: # docs/kernel-contract.md # zig/src/native/cuda_refusal.zig # zig/src/platform/environment_test.zig # zig/tests/cuda/contract_limits.zig # zig/tests/cuda/main.zig # zig/tests/fixtures/gradient-serving.tsv
|
Merged current main |
|
Refreshed onto upstream main Verification on this head: |
|
CI note: |
|
Follow-up on the red |
|
I reproduced the release-paths difference on Zig 0.17.0.
The published head also passed 299 EXL3 host, trace-writer and serving-pin tests. The one-line repair above was tested in the Linux release build and needs to be applied to the branch before that check can pass there. Igor Lessio - AIFLOW LABS |
Summary
EXL3 decode graphs over shared attention and a device planner.
TF_FLASHNEXT_EXL3_GRAPH=eager|1is opt-in; the default remains the host planner. Excess experts are staged in budgeted device memory.TF_FLASHNEXT_EXL3_UNIFORM_LINES=0means off.The last two commits initialize the experimental two-chunk prefill buffer with its owning runtime and bound the deep-prefill MTP head's scratch-row calculation for Zig 0.17 ReleaseSafe.
e633d2d9029fef0cf7de4085ad80a7c0be8767b2. The maintainer owns integration and restacking, including the later EXL3 Flash Next: KV pages from the core pool (4/8) #1444 paging 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. Native binary SHA-256502bf67dbefd64fe932ee115ff3b5fd2f5b4def0bbb998225d5222fc2ecfd299.RankDisconnectedand[DONE]within 20 seconds; rank 0 remained alive and refused a follow-up completion with HTTP 503engine_unavailable./v1/modelsstill returned 200. This run did not independently prove graph replay. Receipt.zig build test-flashnext-exl3-host -Doptimize=ReleaseSafeexited 0. The original ReleaseSafe overflow also reproduced in a standalone Linux x86-64 program; guarded boundary cases passed. Investigation.Earlier evidence
On
d4df21978f, TP2 experimental two-chunk 16,384-input/1,024-output prose and code completed with output hashes matching the default single-chunk baseline, one stream, graph off. Earlier device-plan/graph and EXL3 kernel contracts passed, but are not current-head server or kernel coverage. Two-chunk receipt.Open
Repeat seeded and drafted TP1/TP2 graph alternation, cacheless-reference restore and active-request peer-loss checks on the integrated head, with independent graph-execution evidence. Investigate the profiled timeout without assuming causation. No server throughput test isolates staged overflow. The maintainer owns routine coordination, CI and integration.
Earlier model-fidelity testing found 70/72 top-token matches against an independent reference; no tie waiver or perfect-equivalence claim. Main refuses this checkpoint and is not a runnable performance baseline on this box. No checkpoint weights are distributed; the checkpoint uses Qwen Community License 1.0.