Repository navigation
Conversation
The CUDA plan typed every projection as an EXL3 group, so another weight format would have to thread branches through every reader. GroupPlan and ExpertsPlan now hold their stored form in a tagged union with an EXL3 arm, readers go through it, and the expert width splits on a per-format block (expertShare: 128 for EXL3, 64 for the release format). EXL3 plans, emitted calls and pinned fingerprints are unchanged; block.Options gains the checkpoint format for the release arms to come.
26352aa to
aa201b3
Compare
|
@ashhart rebased onto main |
|
Thanks @laudney for the patch-identical rebase. This step applies cleanly to current main. EXL3 remains the default and keeps its 128-column expert split; the release's 64-column split is explicit and covered at worlds 2 and 4. The legacy fingerprint conversion keeps the pinned world-4 plan digests meaningful, and the production readers now use the form payloads consistently. I found no remaining issue in this plan-only step. It goes on a landing train with the other ready steps now.
|
Step 1 of #3527: the CUDA plan holds each projection's form, so a release checkpoint can plan FP8 and BF16 groups and MXFP4 experts beside EXL3's trellises. No behavior change.
Form = exl3 / fp8_block / bf16; expertsexl3 / mxfp4partition.expertShare)Why
Serving the checkpoint as DeepSeek released it is crucial for benchmarking and for adoption: SGLang, vLLM and TRT-LLM serve these same bytes, so comparisons are like for like with no conversion step, and users run the checkpoint they already download, with no TensorFold-specific requant (#3527).
What this changes
The plan's
GroupPlanandExpertsPlangain a form union, and every reader of the EXL3 parts reads them through.form.exl3. The expert width share takes its unit from the checkpoint format.atc overlap --json: run on the stack head against main e7e2424: textual conflicts with idol: Idol's denoiser on CUDA (stacked on #1766) #1767 and CUDA: #1764's BF16 prompt tile for Qwen ModelOpt, Nemotron and Dory, plus two exact Qwen prompt kernels (#1762) #2008 (shared registries:registry_joins.zig,build/cuda.zig,contract_family_sets.zig,kernel-contract.md) and DeepSeek-V4.1: read the pack's weight spans past the page cache (core/direct_io) #1924 (prepared.zig,build/dsv41_shared.zig); 10 open pull requests untested (ATC coverage limits). The registry entries are additive; whichever lands second rebases.Checks on this head
zig build test test-golden test-dsv41-cuda-host test-dsv41-forward test-dsv41-device-host test-kernel-contract compile-dsv41-cuda compile-dsv41-serveron the stack head: 5296/5334 passed, 37 skipped, 1 failed (cli_config_test"serve --config: expand ...", which fails identically on main e7e2424 on the same host: inherited).zig fmt --check build.zig zigandgit diff --checkpass at every stack head. Each commit ran the family host suites when it was made (on main 811c384).zig build kernel-contract(the release filterdsv41_relran; see the kernel section); other SMs (the release images aresm_121aonly).Receipt
Checklist
The title and description match the head commit, including the receipt and the stack.
New tests fail before the change, pass after it, and skip cleanly without their dependency.
Comments and docstrings are one line. No measurements or history in the source.
No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.
Every token still goes through the lane rounds. No serial path, and nothing that needs drafts off.
Drafted output equals
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (Drafts and concurrency: equal, receipt above. Resume: not run, sessions are off at 4 slots.)No precision traded for speed. The release arithmetic is the checkpoint's own (DeepSeek-V4.1-Flash release weights (FP8 + MXFP4) on CUDA at world 4 on four GB10s #3527); EXL3 bits are unchanged.
Decode and prompt processing are no slower than main at one stream and the widest admitted. (n/a for the release checkpoint: main refuses it. EXL3 paths are untouched by format gating; not re-measured, no EXL3 pack on the test machines.)