Skip to content

docs/recipes: training a block drafter from --record recordings into a drafter release, with Kolibri-1's steps and numbers as Kolibri's - #894

Merged
ashhart merged 1 commit into
ashhart:mainfrom
jschmied:drafter-recipe
Oct 18, 2026
Merged

ashhart merged 1 commit into
ashhart:mainfrom
jschmied:drafter-recipe

Conversation

@jschmied

@jschmied jschmied commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Item 5 of #620: a recipe for training a learned block drafter from --record (#848) into a drafter release (#893). Docs only.

  • docs/recipes/training-a-drafter.md, in the form of "adding a Zig family":
    • What to record: --record DIR, drafts on, the files and their layout, disk per row, the 25 GiB floor, and why the tap past the last layer should be one of the taps.
    • Before recording for days: the same prompts with and without --record, drafted and "draft": false, give equal token_sha.
    • The steps in order, each with what it gained on Kolibri-1, and Kolibri's final hyper-parameters.
    • How to check a result in TensorFold: replies drafted equal "draft": false; acceptance and tok/s as speed measures only; the release passes the format's checks.
    • "Don't bother", serving notes from Kolibri, and what Nemotron, the second target, gives today (one tap; its MTP head as the baseline).
  • docs/recipes/README.md: one line linking it.

Training stays outside TensorFold. The recipe points to our scripts at a fixed commit (jschmied/qwen38-flash-next-gb10, tools/kolibri/drafter). No Python is added to the tree.

Receipt

  • Every number is Kolibri-1's, on one DGX Spark (GB10), 3-10 Oct 2026, and says so.
    • Decode speed and acceptance are from our research checkpoint (josch15366/Kolibri-1-block-drafter @ 4d6cf7be) and its card. It was never shipped, and Kolibri is not a TensorFold family: it was recorded and served on our fork of the Python engine.
    • Acceptance figures are from development slices that chose the checkpoint; the recipe says they are not a test set.
  • Recorder facts (files, row identity with drafts on and off, 1-5 % prompt-pass vs decode rows, 5,376 bytes a Nemotron row) are from lanes/recorder: --record writes each stream's committed rows and tapped features for drafter training; Nemotron CUDA gives its final norm's rows #848's receipt.
  • zig build test 46/46 steps, 743/748 tests (5 skipped), as on main. lean_check.py: 527 findings, as on main.
  • Not run, and why: no new training. Nemotron has no learned drafter yet; the recipe says what it gives today.

The recipe links docs/drafter-release.md and names checkRecording, check and Release.open, which arrive with #893, and --record, which arrives with #848. It should land after both.

The Kolibri trainer reads the Python fork's recording layout, which wrote the head's top-32 for every row. #848 writes .top only for reply rows of requests that ask for logprobs. The recipe works around it with the final-norm tap, from which the logits at every row can be computed offline. If you'd rather the recorder wrote a top-k for every row, that is a decision for #848.

Checklist

  • Every token still goes through the lane rounds. No serial path, and nothing that needs drafts off. (Docs only.)
  • Drafted output equals "draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (Docs only.)
  • No precision traded for speed. If the bits change, the description says which sums change and why. (No bits change.)
  • Prompt processing is no slower than the last release. (Docs only.)
  • The description says which platforms I ran, Metal M1 to M5 and CUDA, and which I could not.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. (No code.)
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths. No AI attribution lines.

…a drafter release, with Kolibri-1's steps and numbers as Kolibri's
@ashhart ashhart mentioned this pull request Oct 17, 2026
@ashhart
ashhart merged commit f8ee02e into ashhart:main Oct 18, 2026
4 checks passed
ashhart added a commit that referenced this pull request Oct 18, 2026
ashhart added a commit that referenced this pull request Oct 18, 2026
…he 27B's K splits (#887), drafter releases (#893, #894), GLM's split check (#899) and Intel Arc (#802)
@ashhart

ashhart commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Thank you, @jschmied, for documenting the drafter training steps while keeping training outside the engine.

We merged the recipe for 1.1.0 in f8ee02e. Our correction joins .top rows through .pos: reply token j's logprob is at prompt_len - 1 + j, rather than the first kind-1 row.

A 36-token prompt therefore pairs the first reply row with .top[1]. Resumed recordings start at first_row, and gaps end them early. The recipe retains resumed/fresh equality checks; serving does not load these release folders yet.

Posted by Ash's AI Assistant Synthena

BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
@jschmied
jschmied deleted the drafter-recipe branch October 23, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants