Repository navigation
EXL3 Flash Next: expert-parallel TP=2 (same tokens as TP=1) and MTP drafts (2/8) - #1442
BlivionIaG wants to merge 49 commits into
Conversation
0b6880d to
519c235
Compare
|
Thanks for this. Three things block it, two of which came up on #1113:
This PR also changes NVFP4 Flash Next. Please take those changes out, or give them their own PR with NVFP4 receipts:
Two smaller points:
|
ae96d79 to
0d58795
Compare
0d58795 to
e8b66c3
Compare
e8b66c3 to
b36b385
Compare
f53ed60 to
66aca3f
Compare
28c7075 to
e8bc4a0
Compare
|
Thanks for the review. On the head (
Open on our side: runner tests for |
e8bc4a0 to
c516db8
Compare
|
I checked the TP and MTP layer at zig build test-environment-host test-flashnext-exl3-host test-gradient-serving check-native-cuda-host -Dcpu=apple_m1 -Doptimize=ReleaseSafe -j3 --summary all
zig build compile-cuda-tests -Dtarget=aarch64-linux-gnu -Dcpu=baseline -Doptimize=ReleaseSafe -j2 --summary allBoth exited 0 on M5 Max with Zig 0.17.0. All 136 tests passed, and both Linux ARM64 CUDA executables compiled. The TP=2 device and final train runs remain open. Igor Lessio - AIFLOW LABS |
|
Thanks @BlivionIaG. Four runtime/offload fixes are needed. Disk-resumed Flash Next states always allocate in VRAM, bypassing the configured host snapshot placement. With routed host offload plus Both serving qualification scripts also exit successfully after wrong output. Include both golden comparisons in the serving gate's status, and make that gate and the long-context needle gate exit nonzero whenever their required checks fail. Please add focused host regressions for these cases. Device A/B remains after the fixes.
|
Synthena Initial Review — Needs changes (
|
…pping - `now` and `round_no` are u32 stamps that order lines and swaps; a long-running server wrapped them into an overflow trap - test: from maxInt they step to 0 then 1 (trapped with integer overflow before)
…P_HOST puts kept states - the disk view allocates through snap.blank, which honors the host placement instead of always taking device memory - test: with TF_FLASHNEXT_SNAP_HOST=1 a read-back state sits on the host (it sat on the device before)
…loader keeps - headOptions reads TF_FLASHNEXT_EXL3_MTP_RESIDENT once; headBytes and the loader's mtp. roots both use it - test: a synthetic pack with the switch set counts the head's routed bytes (they were missing before)
… history - a profile written with or without MTP counts keeps the decoder counts; only MTP starts cold, and the fingerprint marks the head - test: prepare/finish across a residency change keep decoder counts (they were discarded before)
- the serve gate's status includes the golden check and exits 1 on failure; the long-context client exits 1 on a missed needle - tests/test_exl3_gates.py fails on the old scripts (2 failures) and passes now
- drop the duplicate TENSORFOLD_MEMORY_RESERVE_GIB and cuda-scoped TF_FLASHNEXT_SHARD_HEAD rules; main's single entries stay - the legacy fixture for an untrimmed reserve follows main: it is refused, and the EXL3 consumer applies its own floor
|
Pushed
Commands run on macOS arm64 with Zig 0.17.0:
Not done: there is no CUDA device here, so no device qualification was run for any of this. I did not add a CHANGELOG bullet. |
Summary
Expert-parallel TP2 for EXL3 Flash Next and MTP drafts. TP partials use canonical FP64 gather and one rounding step.
f8bb280b12163fb95de313dad1dbe2e1470f6b49.Current-head checks
Two RTX 5060 Ti 16 GiB GPUs, CUDA 13.4.92, Zig 0.17.0;
turboderp/Qwen3.8-Flash-Next-exl3revision69e33439ae950f17bcbe95c98f117d80f759ab6d.tools/pr_check.py --base upstream/main --pr 1442reported 0 errors and 0 warnings on this head at the time of the check. Its earlier Linux CI run passed eight checks with two nightly skips; current CI and integration remain with the maintainer.Earlier evidence and open work
The changed CUDA kernel was covered by the earlier filtered contract. No checkpoint weights are distributed; the checkpoint uses Qwen Community License 1.0.