Repository navigation
Conversation
|
Thanks @jschmied, this is careful work. The receipts in the body make it easy to review. What's good:
Must fix:
Optional:
We have two small commits of our own ready, with no behaviour change, and will add them on top once the branch is rebased: one moves a comment in Device check: GB10 (CUDA), exactness and speed with and without
|
b850645 to
818c7df
Compare
|
@ashhart Thanks. Rebased on main Must fix
Optional
Your two commits can go on top. The fixed-1 GiB line in |
|
Thanks @jschmied. Our GB10 run on this head ( On the 8-stream question we owed you: yes, please feed
A faster opt-in path that is slower in any cell doesn't land with us, so (1) is the bar. Once you post those, we'll run the
|
|
@ashhart Thanks. Done; the new head is What changed
1. Speed (binary A-B-B-A as before: each server runs c=1, then c=4, then c=8. Same replies on all servers, 0 empty.
2. Exactness (same binary): all true, 0 empty.
Tests
Default path: your GREEN run on Not run
The proposed CHANGELOG line is in the body; there is no CHANGELOG commit. |
|
Thank you @jschmied for the hold-cost rule and for re-running the exactness gates. Drafted replies still equal plain replies, and copy-only still matches main. The bar we set was no slower in any cell. On a fresh server at c=8 your four drafter runs are all slower, by about 1.6% at the median, so that cell is still open. Could you run c=1, c=4 and c=8 first on fresh servers with A-B-B-A, on a head rebased on current main? The two Zig files and the README recipe do not apply at this head.
|
|
Thanks @jschmied. The hold-cost plumbing, reserve-time facts and exactness receipts answer those asks. The fresh-server eight-stream slowdown remains open. Please rebase on current main, preserving its test registrations and moved model documentation, then post A-B-B-A runs with one, four and eight streams each first on fresh servers. The same exactness gates still apply.
|
68fda81 to
5e0d06b
Compare
|
@ashhart Thanks. Rebased and re-run; the new head is Rebase. The 14 commits are cherry-picked; code unchanged. Main's test registrations are kept in Speed. Binary
A/A spread: 0.5 / 1.2 / 0.8 % (main), 0.6 / 1.6 / 1.9 % (drafter). The c=8 cause is visible. The servers' own Exactness (same binary): all true, 0 empty.
Tests. GB10 host (kolibri, cuda, hold-pass, shared-price-learning, lane-api): 434/434 steps, 0 failed. x86 lane: The body names the new head; the proposed CHANGELOG line is in it, no CHANGELOG commit. |
|
Thanks @jschmied for the clean rebase keeping The
|
|
@ashhart Thanks. I built the per-stream bound and measured it. It makes things worse, so I have not pushed it. What the bound does (local commit Exactness on that binary ( Speed. Fresh servers, A-B-B-A-A-B-B-A, each stream count run alone; A is main
Without the bound, the current head gives +27.0 / +4.9 / -1.9 %. So the bound costs about 6.6 points at c=4 and Why. The bound does stop most drafting: tokens per round fall from 1.62 to 1.16-1.19 at c=4, and from 1.65 to Next. A fix has to make a copy round under Tests on the bound commit. On the GB10 host: 434/434 steps. On x86: fmt 0, and gradient and cuda are green; |
|
Thanks @jschmied for measuring the bound and keeping the worse experiment off the PR. The rebase, hold-cost plumbing, reserve-time facts and reported exactness checks answer the earlier asks, but the published head still loses at eight streams. Please share the isolated cost measurement with a loaded drafter and no holds, then the proposed absorb/catch-up design before changing that state path. The no-slowdown and exactness gates remain open on the eventual updated head.
|
|
@ashhart I measured the cost I promised: it is the drafter's absorb pass. Don't land yet. The PR head stays at How. I used a local diagnostic build: PR head plus switches, never pushed. It loads
Where it sits (c=8, two servers per arm, in mirrored order):
nsys on a short c=8 run, same binary, absorb on vs off: +1,512 Proposed design (not built yet; tokens cannot change, because the target still verifies every draft):
Steps 1, 2 and 4 are lane-core changes. Step 3 is a backend fact. The gates would be a host test that eager and Expected effect (an estimate, not measured): a round without holds would then cost the same as on main (the Should I build it this way (lazy absorb plus the per-stream bound) and re-run the gates and the fresh c=1/4/8? |
5e0d06b to
0667f74
Compare
0667f74 to
2ffa4f9
Compare
|
Thanks @jschmied for narrowing the overhead to the drafter's absorb pass: -3.9% at eight streams with holds off, -0.1% with absorb skipped, and level without With
|
|
@ashhart, the sketch is in #3590 (comment); in short, for agreement before I touch the state path (nothing is built yet, head stays
Steps 1, 2 and 4 are lane core and opt-in by fact; step 3 is a backend fact. Gates: a host test with a fake drafter that eager and deferred absorbing give the same held drafts after N hold-free rounds and across a ring wrap; the served gates as before (drafted == plain, c4/c8 == solo, resumed == fresh); then fresh A-B-B-A at 1, 4 and 8 streams against main. The bound would come back with it, since on its own the deferral saves little (about 4 % of eight-stream rounds hold nothing without the bound). If that matches what you want, I'll build it on this branch. |
6946958 to
230d1c9
Compare
|
@jschmied Thanks for the careful Kolibri-1 drafter work and the absorb measurements. One small fix in The red build on this head is not from your code. Our rebase changed the
|
230d1c9 to
440b9e3
Compare
|
Thanks @jschmied for the rebase and the fresh-server speed measurements. The drafter still has three correctness blockers:
The recipe also gives only abbreviated drafter revision After the initialization and allocation fixes, please rerun the c=1/4/8 fresh-server A-B-B-A gate. The current receipt still has c=8 at -1.9%, slower in all four pairs, so the no-slower-cell condition is not met yet.
|
|
@ashhart Thanks. Both reviews are answered on 1. Clear before timing ( 2. 3. Early memory check (
The first stream's drafter slot and the timing slot are not in the server's stream plan, so they are now allocated 4. Recipe ( Exactness. Binary
Speed.
Why. One nsys round on the cold prompt: of +1.51 s of kernel time, x86 full set: green (0 failed), apart from one lean finding (a two-line comment), fixed in the head; |
|
Thanks @jschmied. The cache clears, calibration for one to three streams, slot/window accounting and full drafter pin are present. One memory gap remains: calibration allocates a 300 MiB tap ring after the page-pool plan, without pricing it. Please include that allocation in admission and add a tight-budget boundary check. The eight-stream and cold first-token losses still block landing. You have supplied the absorb sketch; its design decision and the graph/tap integration on main are ours.
|
|
I replayed the paged admission case on a scratch merge of For the tap-ring boundary Ash flagged, I extended the existing eight-stream Igor Lessio - AIFLOW LABS |
|
Thank you @jschmied. The cache clears now precede timing, calibration works with one to three configured streams, the full drafter revision and Apache-2.0 provenance are pinned, and tap rows plus the per-slot ring are included in early admission. The rollback fix frees a replaced ring before reallocation. One startup rollback case remains: The pushed branch still contains the acknowledged The performance hold in the title also remains: eight streams are 1.9% slower and a cold 7,900-token prompt's first token is 41.8% slower. These need the agreed absorb work and fresh-server A/B evidence before the hold can be lifted; the admission fix does not change them. Exactness must be checked again on the merged default-graph path.
|
a006fe9 to
ae1ae12
Compare
|
@ashhart Thanks. All three asks are in 1. Ring rollback ( 2. The type error. Your rebase onto main removed 3. Round graphs (
Before you rebased, I had prepared the same merge locally (main
Also fixed ( Checks on
|
|
Thank you @jschmied. The final ring-lifetime fix is in place: the device ring stays guarded until Two landing conditions remain. First, please implement the agreed absorb work: defer and catch up depth-zero rows in the lane core's Second, on GB10, please run the complete final-head default-graph gate: drafted-equals-plain for greedy and seeded serving, c=4/c=8-equals-solo, resumed-equals-fresh, and exact copy-only/main/drafted hashes with zero empty replies. The fresh-server A-B-B-A speed table must cover c=1, c=4, c=8, c=1 served defaults and the cold 7,900-token prompt. Eight streams are still 1.9% slower and cold first-token latency is still 41.8% slower, so the no-slower-cell bar is not met. We’ll handle the current-main rebase, preserving main’s new CUDA exports, lifecycle test and gradient-serving pin.
|
…ad as format v1 Configs under the same checks eagle3 joins the format's architectures (one row a pass); drafter_layout names a file's tensors under a published layout (blocks.N, the target's own embed and head, unused tensors admitted by name).
… lane core's Drafted wrapper The forward copies the drafter's tapped rows (layers 44/47/49, normed as the next layer reads them) and the backend hands them out as Features (prepare_features/features); cuda/eagle3.zig runs the drafter's passes on shared operators only (dense rows, norms, qk rows, window attention, SwiGLU, embedding gather, argmax): no new kernel. Without --drafter nothing is tapped and no forward changes.
…he depth rule Absorbs ran one drafter pass per stream, reading the weights once per stream. absorbMany stages every stream's rows into one pass. Kolibri reported no window costs, so the depth rule could not trade drafts against verify rows and drafted at full depth at every stream count. row_costs.zig times the target's rounds at 1 to 64 rows when the drafter reserves (lanes.cost_rule's fastest and smooth, as the other families time theirs) and the drafter passes them as window and lane costs.
…fts) The lane core applies the rule's depth cap to a shared round's holds only under limit_shared_drafts, as Qwen's MTP head and Gemma's drafters set it. Without it every stream drafted the release's full depth at any stream count.
dense_rows' 32-row tile runs Kolibri's 128000 x 2560 head about 5x slower than two 16-row launches on the GB10 (nsys: 15.4 vs 3.0 ms at 17-32 rows, 25.2 ms past 32), and a drafted round at 8 streams verifies about 24 rows. dense_rows.cu sums each row in one order whatever the tile, so the bits do not change. Rows past a round (prompt chunks) keep one launch.
…y is allocated openDrafter refused below a fixed 1 GiB, after the weights were uploaded. Drafter.admit now computes the need from the config alone: weights as upload puts them, the scratch (sizes shared with Eagle3.init), and every stream's caches plus the timing slot (Dims.streamBytes). It runs before the first allocation; DrafterPastMemory keeps its name.
…ds kept only while they beat a copy round A Drafted model with limit_shared_drafts and Facts.hold_costs (no granted depth) now prices each head's reserved depth through Rule.payHoldsFor, the granted path's existing costing: the drafter's pass against the round without it. Draft sources change, never tokens. Host test test-hold-pass-host: a cheap pass keeps every depth, a dear one falls back to none, no timed pass leaves the legacy cap as it was.
wrap read Drafted.facts when the drafter opened, before Served.reserve timed it, so a drafter that times at reserve (Kolibri-1's EAGLE-3: step, round costs) reached the lane core untimed: no shared prices at all. Served.reserve now re-applies the drafter's facts after its reserve (idempotent; no --drafter: untouched).
…_costs) At reserve, chains of 1, 2, 4 and 8 streams at depth 1 and the serving depth, best of three, on the streams' slots (zeroed after, before any stream opens); the lane core prices a drafter round with them.
…servers; 8 streams still slower
…ses, and again after them The step and hold timing passes ran on freshly allocated caches, so the costs the depth rule reads came from uninitialized device memory. reserve now clears the caches right after allocating them, and keeps the clear after the timing passes. No stream opens before reserve returns, so tokens do not change.
…ry before any drafter allocation row_costs times only the widths the served streams' slots hold (16 rows a slot), so --parallel 1, 2 and 3 open instead of returning TimingSlots. The early DrafterPastMemory check now counts what the load will hold: every drafter slot reserve() makes (with --parallel N on pages: N + 1) and, on pages, the first stream's target window. The first stream's drafter slot and the timing slot, which the server's stream plan does not count, are allocated at open, before the server reads its room.
…s own licence; speed rows by abba5, two cells slower
…ate it before the pool plan The target's tap rows (a prompt chunk's, 8,192 rows) and its ring for every slot a round can name (64 x 320 rows on pages) were allocated by the first calibration forward, after the server had planned the page pool, and Drafter.admit never counted them. Taps.prepare now allocates both when the drafter names its taps, before the server reads its room, and Drafter.Load carries their rows so admit refuses by name when they do not fit.
reserve stored the new device ring in t.ring before allocating the host `written` slice. When that allocation failed, prepare freed the prompt rows but left the ring allocated until teardown. The ring now stays in a local, freed by an errdefer, and is published with `written` once both exist. Test: with a counting driver and a FailingAllocator that fails the first host allocation, prepare returns OutOfMemory and leaves no live device allocation; the old reserve fails it (expected 0, found 1).
keep shortened the lane's length but left Taps.written at the end of the verify, so after verifying four rows and keeping two, features could still hand out the rejected rows (the lane contract, drafted_test.zig, expects RowsNotHeld there). keep now calls Taps.keepTo(slot, len), which never extends what the ring holds. The drafter asks only the kept prefix, so no served token changed; this closes the contract gap. Test: after a verify of four rows keeps two, a view of two rows succeeds, three is RowsNotHeld, and a longer keepTo leaves the held rows alone.
… one does Main's round graphs (cd00818) replay a decode round of several rows, but only the eager branch called Taps.kept after the forward. With graphs on (the default) a drafted round's rows never reached the ring, so the drafter's next read found stale positions. kept now follows both branches; the graph's launches already hold the tap copies into tap_rows. A round graph captured before the drafter named its taps copies none, so prepare_features drops the round graphs as it drops the step graphs, and the round fingerprint holds tap_rows and the tap count.
b915f8b to
f9fbf2c
Compare
|
Thanks @jschmied. The ring rollback, rejected-row handling, eager and graphed tap updates, graph invalidation, admission accounting, and provenance fixes are present. Two agreed pieces are still missing:
After those changes, the complete final-head equality and fresh-server speed matrices still need to pass. The supplied results still lose at eight streams and on the cold 7,900-token prompt, and they do not yet cover every final default-graph equality cell. We will handle the current-main integration, preserving the CUDA exports, lifecycle coverage, and gradient-serving pin.
|
kolibri1: the published EAGLE-3 drafter behind --drafter on CUDA (don't land yet: 8 streams and cold prompts slower)
Closes the ask in #3491. Head
b915f8b57f: three commits on your rebaseae1ae12911(maine209630f74), no rebaseof mine. The head builds as pushed; this round's GPU check ran on its own binary (md5
669e4881). The older exactness rows ranon
57b037e491's code plus a localenvOfffix (binary1c88dadd), the speed rows onc4f6cc1c. Main753fb34a28binary
fb0127ea.This round (review 7175539791).
3d4082026f:Taps.reservekeeps a new device ring in a local with anerrdeferuntil the hostwrittensliceis allocated too, then publishes both. Test
prepare: a failed host allocation leaves no device allocation behind, the new ring included(counting driver,FailingAllocatorfailing the first host allocation): red on the oldreserve(expected 0, found 1), green after.ee80198d9e:keeprolls the tap ring's held rows back to the kept length (Taps.keepTo). Before, after verifyingfour rows and keeping two,
featurescould still hand out the rejected rows; the lane contract indrafted_test.zigexpectsRowsNotHeldthere. The drafter only asks for the kept prefix, so no served tokenchanged. Test
keepTo: after a verify of four rows keeps two, the rejected rows are not handed out; withkeepToplanted as a no-op it fails by name.
b915f8b57f:verifycallsTaps.keptafter both multi-row branches,rounds.forward(graphed, the default) andthe eager forward; the graph's launches already hold the tap copies.
prepare_featuresdrops the round graphs as itdrops the step graphs, and the round fingerprint holds
tap_rowsand the tap count (host testkolibri rounds: naming a drafter's taps changes the fingerprint ...).envOfftype error is gone with your rebase (main readsTENSORFOLD_KOLIBRI_GRAPHSas a setting).The round before (reviews 7153805873, 7154630205).
a006fe9015: the target's tap rows are priced and allocated beforethe pool plan (memory refusal section below):
Taps.preparenow allocates a prompt chunk's tap rows (8,192 rows) and the ring for every slot a round can name(64 x 320 rows on pages) when the drafter names its taps, before the server reads its room to plan the page pool.
Before, the first calibration forward allocated the ring, after the plan.
Drafter.Load.tap_rows(taps.heldRows) carries those rows, soDrafter.admitcounts them: 314,572,800 bytes ofring plus 125,829,120 of tap rows at the production shapes.
Two rounds before (reviews 7107253665, 7118420875).
cb9f870663:reservezeroes the EAGLE-3 caches right afterx.e.reserve, before the step and hold timing passes,and again after them (
clearCaches).7a792d46d5:row_costs.timetimes only the widths the target's slots can take (widthsFor: 16 rows a slot) andreturns the count, so
--parallel 1,2and3open instead of returningTimingSlots. The early memory checktakes a
Drafter.Load(below) and counts the final allocation before the drafter allocates anything.57b037e491: the recipe pins the drafter at its full revision with the release's own licence, and gets thisround's speed rows.
Don't land yet.
abba5.py(noise floor from 3 A-vs-A rounds, then 5 rounds of A-B-B-A, one fresh server a run),main's copy drafts against
--drafter: c=1 FASTER +27.9 %, c=4 FASTER +4.1 %, served defaults at c=1 FASTER+32.1 %, but c=8 SLOWER -1.9 % (5 of 5 rounds, floor 1.4 %) and the cold first token of a 7,900-token prompt
SLOWER -41.8 % (3.64 -> 5.16 s, 5 of 5). Both slow cells come from the drafter's absorb pass (speed section).
What
--drafter DIRloadsjosch15366/Kolibri-1-EAGLE3-drafter(revision6430e5dc7453dd4ea57022a4cde46178afe89094,Apache-2.0 per its model card) on CUDA through the lane core's
Drafter/Drafted. It is off unless asked. Every draft is verified by the target, so replies are token for token those without it.The two published releases predate #893's format v1:
blocks.0.*and stores f32 norms;inp.weight.core/drafter_published.zigreads both into a v1release.Configunder the samevalidate/check/parseVocab/weight checks.docs/drafter-release.mdgains a "Published before version 1" section.Code sharing:
drafter_release.zig:eagle3architecture,most_chain.drafter_layout.zig:Names,checkWeightsNamed.drafter_published.zigwith tests.cuda/eagle3.zig. It runs EAGLE-3 absorb (every stream's rows in one pass) and chain (every stream's step in one pass) on the shared operators only:dense_rows,norms,qk_rows,window_attention.decode,act_rows.swiglu,embed_rows,tf_argmax_rows_i32,tf_f32_to_bf16. No new kernels, no.cuchanged (git diff a1781885e9..HEAD -- '*.cu'is empty), so the kernel contract does not apply. Fatbins compared head vs main: 115/115 identical.taps.zig: a tap ring per stream, read asFeatures.forward.zig: tap copies after layers 44/47/49.backend.zig:prepare_features/features.drafter.zig: upload, slots, the vtable.native.zig: open/reserve/refusals.drafter.zigadmit: the memory refusal from the release's config, before anything is allocated.drafter.zigtimeHolds: the hold pass by streams and depth (Facts.hold_costs).row_costs.zig: round costs for the depth rule, over the widths the served slots hold. It useslanes.cost_rule.fastest/smooth, as the other families time theirs; the lane core has no shared startup timer.kernels.zig: the 16-row split below.shared_drafts.zigpayPass(above).--drafter):cuda_drafted.zigServed.reservere-reads the drafter's facts.Graphed rounds: the stale-row case (receipt)
Measured before your rebase, on my local merge with main
82c4e6cce3, whose Kolibri code equals this head's apart fromtests. GB10,
--drafterat--parallel 1/2/3, the gate above. Both merge binaries carry a local-only log line with theround cache's outcome counts, so the receipt shows the graphs replayed and nothing fell back to eager:
237cfeac)ae1ae12911(2df05105)a round failed (RowsNotHeld), HTTP 500TENSORFOLD_KOLIBRI_GRAPHS=0(eager rounds,2df05105)So only the graphed round lost the ring update. The eager path already had it.
Exactness (GB10, binary 1c88dadd = 57b037e's code + the local envOff fix, main 753fb34 binary fb0127ea)
Every reply is hashed as reasoning_content + content + token ids; an empty reply FAILs. 24 prompts (chat, German,
code), 128 tokens.
parity_controls.pyon the base server (main, copy drafts) and on the head with--drafter:CONTROLS: PASS (4 prompts, seeds differ on 4)both."draft": false), greedy / seeded293d716e74b701a6, 24 distinct, 0 empty--parallel 1,2,3with--drafter: opens, drafted == plain greedy and seeded, N streams == soloa006fe9015's code (binarybde0ae6c, tap ring made at open) and on the headb915f8b57fas pushed (binary669e4881, default round graphs, tokens a round 2.06 / 2.07 / 2.07): true for eachHost on the GB10 on the head
b915f8b57fas pushed (test-kolibri-host check-native-cuda-host test-gradient-serving -Dfixed-cpu): 18/18 steps succeeded, 42/43 tests passed (1 skipped). Earlier: host onb016588cce(the head's code before a comment join) + the local envOff fix (test-kolibri-host check-native-cuda-host test-gradient-serving -Dfixed-cpu): 16/16 steps succeeded, 35/36 tests passed (1 skipped).Planted controls: the old memory accounting, and a calibration that needs four slots, fail the three new or changed
tests by name.
Refusals (by name, at load, server never serves)
a block-drafter release; Kolibri-1 on CUDA serves eagle3 releases(DrafterArchitectureNotServed)draft_vocab.json has 32768 ids; config.json says 32767the release drafts for Aleph-Alpha/Kolibri-2; the loaded target is Aleph-Alpha/Kolibri-1blocks.0.gate.weight is { 4096, 2560 }; config.json implies { 4608, 2560 }--drafter-bits 8invalid choice) before load. Kolibri takes 0 or 4, both bf16 as published. Kolibri's ownDrafterBitsUnsupportedis therefore not reachable from the CLI.TapsAfterStreamsDrafterPastMemory:--drafter DIR: needs N GiB of device memory for S streams and a timing slot, the target's taps T GiB and the first stream's window W GiB; the budget leaves M GiB--drafterpath to refuseThe host tests in
drafter_published_test.zigcover the layout, target, vocab and v1-not-published refusals in the reader, which runs before anything is allocated.Memory refusal, counted on the final allocation.
Drafter.admit(kolibri1/drafter.zig) takes aLoadand runsbefore the drafter allocates anything; it takes numbers only (its type is checked in the test), no allocator or device:
uploadputs them: 348,813,568 bytes; scratch: 70,528,256 bytes (Dims.scratchBytes, the size listEagle3.initallocates from);Dims.streamBytes()(24,253,440 bytes each), where S is whatreservewillmake: every stream's on linear caches; with a fixed
--parallel Non pages, N; with auto on pages, 1, since thepage plan pays each later stream's drafter slot as part of its fixed bytes;
pages(window + 16) x pageBytes), which the plan sets aside after;a006fe9015): a prompt chunk's tap rows and a ring for every slot(
taps.heldRows: 8,192 + 64 x (256 + 64) rows on pages, each 3 taps x 2,560 bf16), 440,401,920 bytes.The first stream's drafter slot and the timing slot, which the server's stream plan does not count, are now allocated
at open, so the room the server reads already excludes them;
reservegrows to N + 1 later. Tests:the drafter's device bytes come from its config alone; one byte short refuses by name, nothing allocatedandDrafterPastMemory: --parallel 8 on pages counts 9 drafter slots and the first window, nothing allocated before(onebyte short refuses; the old one-stream accounting let that budget through), and
DrafterPastMemory: the target's tap ring for 64 paged slots and a prompt chunk's tap rows count, one byte short(one byte short of 4,299,250,176 refuses, exactly that admits; the same budget without the taps is admitted at
3,858,848,256). Planted control:
admitwithout the tap term fails that test by name (expected error.DrafterPastMemory, found 3858848256). The tap rows and ring are now allocated inprepare_features, inside--drafter's open, so the room the server reads for the page pool already excludes them; the first calibrationforward finds the ring made.
Speed: main's copy drafts vs --drafter (abba5, each stream count first on fresh servers)
SPEED=speed5.py python3 abba5.py compare OUT main head --rounds 5, one job per stream count. Every run is a freshserver (page cache dropped before each start, GPU clock cap as always,
--parallel 8) that measures only that streamcount: 24 prompts, 256 tokens, greedy, a distinct prompt per stream. A warm-up per arm, a noise floor from 3 A-vs-A
rounds, then 5 rounds of A,B,B,A; a round's value is each arm's mean of two runs. Replies equal across all runs of both
arms in every cell (
TOKENS: EQUAL).| 1, served defaults (seed 7+i, 8 prompts) | 52.32 52.26 52.84 52.79 52.70 | 69.63 69.53 69.73 68.83 69.62 | +33.1 +33.0 +32.0 +30.4 +32.1 % | FASTER +32.115 %, 0.789 %, 0 of 5 | |
| cold first token, 7,900-token prompt, s | 3.640 3.637 3.638 3.636 3.637 | 5.160 5.155 5.175 5.159 5.152 | -41.8 -41.7 -42.2 -41.9 -41.6 % | SLOWER -41.766 %, 0.502 %, 5 of 5 | |
Verdict lines as printed:
VERDICT c1_tok_s: FASTER (median 27.868%, floor 0.622%, B worse 0 of 5),VERDICT default_c1_tok_s: FASTER (median 32.115%, floor 0.789%, B worse 0 of 5),VERDICT ttft_cold_8k_s: SLOWER (median -41.766%, floor 0.502%, B worse 5 of 5),VERDICT c4_tok_s: FASTER (median 4.141%, floor 0.391%, B worse 0 of 5),VERDICT c8_tok_s: SLOWER (median -1.866%, floor 1.401%, B worse 5 of 5).The cold prompt (7,899 tokens by the server's own log, 45 of them the cached template head; one nsys round, one token out, head without and with
--drafter): GPUkernel time 3,606 ms vs 5,116 ms. Of the +1,510 ms,
tf_dense_rows_32takes +1,409 ms (236 launches vs 50) andtf_window_decode_tc+86 ms: the drafter absorbs every prompt row through the row kernels, 32 rows a tile, about0.19 ms a row. The target's prompt pass is unchanged (
qmmfand expert kernels within 4 ms). Short prompts pay thesame rate (a 652-token prompt: 0.37 -> 0.49 s to the first token in the speed runs).
What c=8 shows. Measured on
5e0d06bd81(7027914287) with holds forced off: a loaded drafter costs 3.9 % atc=8 through its absorb pass (about 1 ms a round, reading its ~181 MB of weights), and skipping that pass brings it
level with main. This round changed reserve and calibration only, not the absorb path, so that cause stands; the
lazy-absorb/catch-up design sketched in 7063086063 is waiting for your agreement. Both slow cells point at absorb: a
fix for the prompt would absorb only the prompt rows the drafter's attention window can still read, and absorb long
runs through a prefill-shaped GEMM. I have not built either; both change the drafter's state path, so I'd like your
call first.
The 16-row split, and copy-only vs main (three checks, run in the previous rounds on main
699094f705)nsys over a short c=8 run, before the split. The GPU is busy for the whole wall time in both arms.
dense_rows' 32-row tile. On Kolibri's 128000 x 2560 head that tile runs 5x slower than two 16-row launches (25.2 ms past 32 rows).kernels.zignow launches the router and head in 16-row tiles for 17..64 rows (split_rows= a round). That moved c=8 from -6.2 % to -2.3 %.Bytes.
tile_eq.cubuilds the repo'sdense_rows.cuand compares the fp32 output bytes of one 32-row launch (main) against the 16-row launches (this branch) at every m in 17..64, on the head (128000 x 2560) and router (384 x 2560) shapes with random bf16. Result: 0 of 48 row counts differ for both shapes. The planted control (one flipped input) is caught for both. The final reply hash == main's stays in the gates above.Prompt. Prompt chunks (> 64 rows) keep one launch. Cold prompts,
max_tokens1, a fresh first line per request, median of 3, A-B-B-A against main699094f705(default paged caches), binaryeba82984(0a0cc7504c, the previous round; this round leaves the copy-only path as it was):Copy-only, served by default, vs main
699094f705(same A-B-B-A, 256 tokens, the same replies on all four servers,244929b4d290cead):Copy-only c=1 and c=4 come out 0.2 % and 0.5 % below main in both pairs. Both are inside the head's own A/A spread (0.4 %, 0.6 %). Copy rounds rarely pass 16 rows, and without
--drafterno taps are copied, so the copy-only path rarely differs from main at all. On the old base the same check read -0.6 / -0.2 / +0.5 %.The lane core change, and its tests
shared_drafts.budgets(zig/src/core/lanes/shared_drafts.zig):payReservedruns undergranted_depthas before;otherwise, when the drafter gave
hold_costs, the newpayPasssets each head's reserved depth as the hold to price(its rows and the chances it expects to keep) and calls
Rule.payHoldsFor/payHolds. That keeps holds, mostexpected tokens a row first, while they raise tokens a ms over the round without them. No new pricing code. With
hold_costsempty (every family but Kolibri's drafter today) the branch is not taken.shared_hold_pass_test.zig(steptest-hold-pass-host): four streams, three drafts at 0.8 a depth. A pass of 2 mskeeps 3,3,3,3; a pass of 60 ms gives 0,0,0,0 (copy rounds); no
hold_costskeeps the legacy 3,3,3,3.cuda_drafted.zigtest: a drafter untimed at open and timed at reserve; the served facts carry its step (1.5 ms),hold costs and window costs after
reserve, and the rest as the drafter set it.payPassdisabled the "dearer" test fails (expected 0,0,0,0); withthe re-read in
Served.reservedisabled thecuda_draftedtest fails atcuda_drafted.zig:155.Default path (no
--drafter): your GB10 run on818c7df81ais GREEN. Since then, rebase aside, the default path's codeis the same:
payPassneedshold_costs(only Kolibri's drafter sets them),Served.reserve's re-read needs a drafter(
heldis null without one), andkolibri1/drafter.zigloads only with--drafter. The copy-only head's repliesequal main's (gate above). This round's speed rows measure against main's own binary; the head's copy-only timing
rows were not re-run.
x86 lane
This round, on the head
b915f8b57fas pushed, x86 box, the targeted set for its changed files: 75/75 steps, 512/521tests passed (9 skipped);
check-native-cuda-host compile-cuda-tests21/21;tools/pr_check.py --base e209630f74 --pr 35900 errors (lean 123 vs 123, 0 new);zig fmt --checkandgit diff --checkclean.Earlier, the full set on
d7f1259577(local, not on the branch:7a792d46d5's code before the comment join) plus the local envOff fix, x86 box:-Dfixed-cpu test-host test test-golden test-kernel-contract test-server-security test-pull-security fuzz-cortheon check-release-pathscheck-native-cuda-host compile-cuda-testszig fmt --check,git diff --checktools/pr_check.pykolibri1/native.zigdrafterLoadThe finding is fixed in
7a792d46d5(one-line comments, same lines otherwise).tools/pr_check.py --base 753fb34a28on the head: 0 errors, lean 164 vs 165, 0 new; 1 advisory warning (the Unreleased line, which is yours to place).
Not in this PR
Kolibri-1-block-drafter, context keys, mask row, spine, predecessor head) is a stacked follow-up. It is not started. Its release is read and checked by core here and refused on CUDA by name.atc overlap: incomplete (ATC 0.9.5 read limits). Shared files with open PRs are onlyzig/src/core/root.zig,zig/src/cuda/root.zigandzig/tests/fixtures/gradient-serving.tsv(cuda/root.zigre-pinned:cuda.eagle3exported). No shared code paths. Your rebase put the branch on maine209630f74; I have not rebased.Proposed CHANGELOG line (you said you will add it; no CHANGELOG commit here):
- kolibri1: \--drafter` serves the published Kolibri-1 EAGLE-3 drafter on CUDA through the lane core (off unless asked; replies unchanged), and a round's router and head launch in 16-row tiles; the lane core prices a drafter's timed hold pass under a legacy cap.`