Repository navigation
ricursive: serve Ripple-65B on two GB10s with up to 1M tokens of context - #2522
ajensenwaud wants to merge 24 commits into
Conversation
8e8cbd7 to
b133bc5
Compare
eff9be0 to
3b237f9
Compare
3b237f9 to
bfb6234
Compare
bfb6234 to
ddf4bc4
Compare
|
@ajensenwaud thank you for this. It's a careful piece of work, and the admission tests and planted controls make it easy to read. Two things are on our side first: the ricursive family decision (#2171), and the notice's wording that these files follow the release "as ExLlamaV3's ricursive architecture runs it". Could you say exactly which parts (rounding points, fp16 activations, layer order) came from ExLlamaV3's ricursive code, rather than from
|
ddf4bc4 to
a27e54f
Compare
a27e54f to
833195c
Compare
833195c to
aee22a1
Compare
aee22a1 to
6c6a250
Compare
|
Thanks, Ash, and for the kind words. On the notice
On your five points
The branch is rebased on main |
…e input the clamps leave non-finite, so the nonfinite gate has a NaN to check
… never measured on CUDA Metal: Config.metal() refuses an EXL3 pack with UnsupportedRicursivePrecision, the by-name refusal nvfp4Mlp gave it before quant_method exl3 was read, instead of a missing tensor at load. CUDA (two ranks): only 5.0 and 6.0 bits with an 8-bit head, the packs measured against ExLlamaV3, are admitted; the config's bits are checked again on every trellis. Others: UnmeasuredRicursiveBitrate, explained by name.
…y; TF_RICURSIVE_COPIES dropped admit() refuses any world but 2, so the world == 1 paths in tp2_forward.zig and tp2_weights.zig, the optional rank group and Cut's one-rank default were unreachable. The unmeasured opt-in TF_RICURSIVE_COPIES goes (the lanes keep the default copy policy).
…precision points from ExLlamaV3's ricursive support
The norms' outputs, every EXL3 projection's input, the value residual and its seed, the gate and the MLP's intermediate move from fp16 to bf16. The residual stream, the rank sums and the logits stay fp32.
The notice no longer names ExLlamaV3's precision points, and the recipe states the bf16 activations and the pack comparison's metrics.
The config must name 5.0 bits with an 8-bit head, as in ashhart#2514. The loader no longer checks each tensor's bit width.
nvcc 13.0 and 13.3 give tf_rtp2_lerp 12 registers on sm_80 to sm_89. The other kernels' records are unchanged.
At an 8-bit weight the two lerp forms round to the same bf16, so the start-anchored control stayed green. A full fp32 weight tells them apart.
…ces at 600 lines
Follow main 4b997f8 (glm metal dflash2: account tap-stage bytes, fix host build core import, trim comments). Keep all current dispatches and refusals beside the incoming Ripple entries. Remove two interior blank lines to restore the 600-line source limit.
…tays at 600 lines
… (seven blank lines fewer) Main's cuda.zig (last 833c695, the MOSS-Image recognizer) is at 590 lines with the special families moved into open_family.zig; ashhart#2522's ranked registry loop, its ranks refusal and its test put it at 607. Seven blank lines between adjacent tests at the end of the file go; no code changes.
b40b14b to
e4d48c2
Compare
|
Thanks @ajensenwaud for the two-rank work. Three things need fixing:
|
…does The blend is now the bf16 sigmoid of the stored lambda, shared with Metal's blendOf, and a lambda that is not a bf16 value is refused.
Model.load and Ripple.init now release what earlier steps made, and a failed open stops rank 1's follow loop.
|
Thanks, Ash. All three are fixed on
At TP=2, greedy decode matches the exllamav3 reference 32/32 on all three prompts, and eager NCCL and CUDA graphs over RoCE give byte-identical outputs. Served at 4 x 262,144, drafted and plain replies are identical, and plain decode runs at 9.76 tok/s. ResultsAgainst the exllamav3 reference, 5.0 bpw pack,
Served on
|
|
Thanks @ajensenwaud. All three are fixed on
Thanks for the two-rank results too. That closes our review of the code. There are a few overlaps with main (the CUDA family lists and the serving pins), and we'll sort those out on our side.
|
The refusal tests called refusals.family directly, so they passed when openWith stopped calling it. This test goes through cuda.open for every registered family and fails with the call removed.
What this is
This PR serves Ripple-65B-Preview on two NVIDIA GB10s (DGX Spark, sm_121) at
--tp 2, from the 5.0 bpw ExLlamaV3 pack of the release. The full (global) layers run to a 1,048,576-token context, and the two ranks serve through main's lanes with kept prompt states.It is the two-GPU counterpart to #2302, which serves one GPU from the NVFP4 release. As agreed in review, it will fold into #2302's
ricursivefamily once #2302 lands, and drop its copy of #2231's commits then.exl3.Dense.o_projanddown_projsums and the logits stay in fp32.o_projanddown_projare gathered over NCCL, or over RoCE writes for the small gathers, and added once in rank order.ajensenwaud/Ripple-65B-Preview-exl3-5.0bpw, which averages 5.0 bits a weight with an 8-bit head. The loader identifies it by its config and refuses any other pack by name.modeling_ricursive.py, and the notice now credits the release alone./v1/modelsentry now hascapabilities.reasoning_optional. It istruefor Ripple, whose reply opens its own think block or answers bare, andfalsefor every other model.docs/api.mdlists it.Results on this head
ricursive-tp2-contract: 10 kernels pass gates 1-4, and all 8 planted controls fail as planted.--tp 2, drafted equals plain under greedy and seeded sampling, two concurrent streams equal their solo runs, and a resumed prompt equals a fresh one.Closeness, builds and commits
Closeness against ExLlamaV3 (5.0 pack, teacher-forced, TP=2). KL is KL(ExLlamaV3 || ours). The floor is ExLlamaV3 against itself with attention rounded to bf16, on the same rows as the path.
Agent top-1 misses. All five (2 prompt rows, 3 decode rows) are near-ties in ExLlamaV3's logits, and in each our pick is ExLlamaV3's second choice:
The median top-two gap on agent rows is 1.7 to 1.8 logits. Most of the agent decode KL is one row, 130, which is not a miss (both pick the same token): KL 0.338 there, where the bf16-attention floor itself is 0.164. Without row 130 the agent decode KL is 9.6e-4, below that path's floor of 1.7e-3.
Decode speed (
tools/bench_openai.py, one stream, tok/s, median of five).Prompt speed on fibonacci-raw, from the same runs: 120.5 and 121.5 tok/s on the fp16 build, 120.4 and 118.7 on this head.
Run. Two DGX Sparks (GB10, 128 GB unified memory), the nvcc 13.3 build image and Zig 0.17.0, on 18 Nov 2026. The fp16 build is
6c6a250af. The device runs used6c2fbf2b5, and the contract was run again on2574838e0, whose only change is the contract fixture. Since then, the rebases and Ash's commits moved tests, build helpers, the reasoning flags and a registry pin; no kernel or forward code changed.Main against branch (after the rebase, one GB10, 21 Nov). Spark-X2.6-4B 8-bit (main's
spark25family) served by mainf0b9cb855and by this head, same flags, eight runs: main, branch, main, branch, then branch, main, branch, main. Greedy 256-token replies (code, chat, agent with tools) have the same token hashes in all eight runs. Decode speed (tools/bench_openai.py, mean of the four runs each, tok/s):Each run is slightly slower than the one before, whichever build it is, so both orders are needed. Over the first four runs alone, the branch looked 0.6 to 0.9 % slower.
Host checks on this head.
zig build test-ricursive-tp2-host ricursive-tp2-cuda native compile-cuda-tests test-kernel-contract test-gradient-servingpasses all 66 steps and 286 tests on Linux x86, without a GPU. The lean checker finds 168 problems on mainf0b9cb855and on this head, the same findings (one at a shifted line).git diff --checkis clean.Launch records. nvcc 13.0 and 13.3 compile
ricursive_tp2.cufor sm_80, 86, 89, 120 and 121. Onlytf_rtp2_lerpchanged, from 14 to 12 registers on sm_80 to sm_89, and both record files say so.Reply check. Chat, a tool call and a tool round trip pass. The two cases where
max_tokenscuts a tool call need #2511, as before.Long context. The 1M-token runs were measured on the fp16 build: a needle at 1,018,419 tokens was answered, with 52.69 GiB a rank. The bf16 change leaves the cache sizes unchanged.
Known. On the default prompt path, the full layers' prompt rows are not bit-equal to their decode rows, because a different attention kernel sums in a different order. Resumed equals fresh because both cut at the same marks, and the backend reports
chunk_invariant = false.Stack. On main
f0b9cb855: #2231's five commits by @BobClawblaw, kept as authored, then this PR's commits.12fd25a12: the config reads an ExLlamaV3 pack asexl3.0b49bc343,ce8020710,357b70b9d: the two-rank family, its kernel contract, the recipe and the notice.c8a1ded84,7144b7103,65ab3ff7d,f67c41301: fixes for line limits, Zig 0.17, a contract fixture andreasoning_optional.012141473,3e17f54c5,6923bb1e5: the first review round.511b91e25,caa47bf23: bf16 activations, and the notice credits the release alone.10d7e4442: only the measured 5.0 bpw pack loads.78ed503ab,2357f2428: the lerp kernel's new records, and a lerp fixture whose control fails in bf16.f7a7bee9e,8ff2ed132,c3cf4891c,3262b0cc5,8ea8d62a9(Ash): sources kept at 600 lines, the reasoning flags throughfamilyInfo, and the kernel registry's pin.Changelog line (suggested). Ripple-65B-Preview runs on two GB10s at
--tp 2from the 5.0 bpw ExLlamaV3 pack, to a 1,048,576-token context; every/v1/modelsentry gainscapabilities.reasoning_optional(truefor Ripple,falseelsewhere) (#2522).Credits
@BobClawblaw for the host package this builds on (#2231). turboderp's ExLlamaV3 for the EXL3 format and the reference forward, and @auryn-macmillan for its ricursive support, which made the pack. ricursiveAI for the release.