Skip to content

nemotron/hip: opt-in --mtp-drafts up to 15 on a lone stream - #3613

Merged
ashhart merged 5 commits into
ashhart:mainfrom
gilby:strix/nemotron-hip-deep-drafts
Nov 21, 2026
Merged

ashhart merged 5 commits into
ashhart:mainfrom
gilby:strix/nemotron-hip-deep-drafts

Conversation

@gilby

@gilby gilby commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Stacked linearly on: origin/main (8cbef9777) via #3053 (8f8b10eaa) and #3163 + #3242 + #3251 (bffae8ccf, n2-stack-base-1118)

Refs #3394

Reworks #3394 on top of origin/main (8cbef9777) and the #3053 / #3163 / #3242 / #3251 stack: keeps the default four-row verify window and three MTP drafts (--mtp-drafts unset or <= 3) untouched for latency, GTT memory and shared-round throughput, while letting --tp 1 callers pass --mtp-drafts N up to 15 (N + 1 verify window rows, up to 16) for a lone decoding stream, keeping shared multi-stream rounds capped at 3 head drafts a stream and planRows(streams, window) = max(streams * default_window, min(streams * window, shared_cap_rows)) (32 up to 8 streams, streams * 4 above 8 streams so shared batch width never drops below default). Also adds eight copy-heavy file-edit prompts (tools/bench_edit_prompts.json) for bench_concurrent.

Summary of code changes

  • tools/bench_edit_prompts.json: eight copy-heavy file-edit prompts over existing tools/*.py files.
  • zig/src/families/nemotron/hip/{head,engine,lanes,round,native,costs,worker}.zig, zig/src/families/nemotron/hip/deep_drafts_test.zig, zig/src/native/{draft_sources_hip_test,mtp_drafts_hip_test}.zig, zig/src/hip/kernel_tests/nemotron/window.zig, zig/tests/nemotron_hip/gen.zig:
    • Raises head.max_depth to 15 and round.max_window to 16 on --tp 1 (mtpMost remains 3 when --tp > 1, --mtp-drafts 16 and --mtp-drafts 4 --tp 2 are refused by name before load).
    • Keeps default_window = 4 / default_drafts = 3 when --mtp-drafts is unset or <= 3; widens round_window to min(max(drafts) + 1, 16) only when --mtp-drafts > 3 on a single rank, with shared_chain_drafts = 3 and planRows returning max(streams * 4, min(streams * window, 32)) when window > 4.
    • Measures window costs up to the active width (costs.zig), sizes round graphs / snapshots cleanly for up to 16 window rows and active plan rows, documents native.laneBytesFor as pub for deep_drafts_test.zig, and updates unit + kernel + GPU integration tests (round.zig, deep_drafts_test.zig, window.zig, tests/nemotron_hip/gen.zig rounds).
    • Records Strix Halo (gfx1151) receipts in docs/recipes/nemotron-3.5.md and CHANGELOG.md (no merge commits anywhere in 8cbef9777..e225a31e8, git merge-tree --write-tree 8cbef9777 e225a31e8 clean).

Verification & default path parity on e225a31e8 (Strix Halo gfx1151)

  • Head commit tested below: e225a31e8 (binary sha256 163245ce783f...) atop n2-stack-base-1118 (bffae8ccf, binary sha256 351bea28e892...) and origin/main (8cbef9777, binary sha256 79c1988300c2...).
  • Host & static checks on e225a31e8: zig fmt --check zig/ clean; lean_check.py 221 vs 221 (0 new findings); tools/pr_check.py --base n2-stack-base-1118 --pr 3613 0 error(s), 0 warning(s); publish_check.py --git . 8cbef9777..HEAD clean; Linux zig build -Dfixed-cpu -Dhip=true test-host-ci-linux-hip test-cost-rule --summary all (103/103 steps succeeded; 330/333 tests passed (3 skipped)); Linux zig build -Dhip=true hip-host-test --summary all (8/8 steps succeeded; 80/80 tests passed); macOS zig build -Dhip=true hip-host-test check-native-hip-host test-native-hip-host test-cost-rule test-draft-hip-host --summary all (24/24 steps succeeded).
  • Device kernel & integration tests on gfx1151 (e225a31e8):
    • zig build hip-kernel-test: 22/22 steps succeeded; 219/226 tests passed (7 skipped).
    • tf-nemotron-hip-test window --steps 16 on both Lightning-30B-A3B-MLX-4bit and NVIDIA-Nemotron-3.5-Lightning-30B-A3B-oQ4e-HIP: 16 rows at once and one at a time: the same bits; first differing row null, largest difference 0e0 and exact snapshots/rollback.
    • tf-nemotron-hip-test rounds --steps 16 --streams 4 (32 rows) and rounds --steps 8 --streams 16 (64 rows) on both checkpoints: the same bits (0 rows differ).
    • CLI refusals: --mtp-drafts 16 exited 1 (--mtp-drafts 16: the HIP engine drafts at most 15); --mtp-drafts 4 --tp 2 exited 1 (--mtp-drafts 4: the HIP engine drafts at most 3 with --tp above 1).
    • Startup banner diff (--mtp-drafts unset, 1, 2, 3): zero differences vs origin/main 8cbef9777 on Lightning-30B-A3B-MLX-4bit after normalizing #3242's mlx-q4g64 label, load time and free GiB room; zero differences vs n2-stack-base-1118 bffae8ccf on both MLX-4bit and oQ4e-HIP.
  • Default 4-arm parity on e225a31e8 (TENSORFOLD_MEMORY_RESERVE_GIB=4 --host 127.0.0.1 --port 28192 --context 131072 --parallel 4 --prompt-cache-gib 0, page cache dropped before every server, performance power mode, --reps 2, 0 #2984 losses across all cells):
    • Lightning-30B-A3B-MLX-4bit (origin/main 8cbef9777 M1/M2 vs e225a31e8 B1/B2, idle GTT 26,223,607,808 B across all 4 arms, 28/28 bench_concurrent + 28/28 alone + 24/24 serial + 8/8 OpenAI + 3/3 cache equal): bench_cache cold TTFT (2K / 8K / 32K) 0.741/0.741/0.740/0.738, 2.675/2.694/2.691/2.690, 13.168/13.299/13.283/13.272 s; bench_concurrent T=1.0 L=1,2,4 124.3/124.3/124.9/124.4, 133.8/131.2/133.4/132.8, 166.1/165.4/165.9/166.7; T=0.0 132.3/132.3/131.8/132.4, 143.4/142.6/144.2/144.7, 174.4/174.7/174.6/173.8; bench_openai fibonacci-raw 122.84/123.00/121.64/123.23 (T=1.0), 123.35/124.42/122.83/123.17 (T=0.0); gpu-chat 94.14/93.55/91.30/93.65 (T=1.0), 93.51/94.79/98.37/94.91 (T=0.0).
    • NVIDIA-Nemotron-3.5-Lightning-30B-A3B-oQ4e-HIP (n2-stack-base-1118 bffae8ccf S1/S2 vs e225a31e8 B1/B2, idle GTT 26,989,105,152 B across all 4 arms, 28/28 bench_concurrent + 28/28 alone + 24/24 serial + 8/8 OpenAI + 3/3 cache equal): bench_cache cold TTFT 0.746/0.741/0.745/0.739, 2.704/2.693/2.710/2.692, 13.332/13.280/13.385/13.290 s; bench_concurrent T=1.0 L=1,2,4 105.0/105.0/104.9/104.8, 112.8/112.9/112.4/107.2, 143.8/144.5/143.9/143.7; T=0.0 124.3/124.3/124.3/124.1, 132.7/132.3/132.7/132.4, 167.4/166.9/168.0/167.1; bench_openai fibonacci-raw 100.19/100.23/100.23/101.77 (T=1.0), 123.09/123.12/123.06/122.84 (T=0.0); gpu-chat 81.06/81.11/81.11/83.12 (T=1.0), 92.02/91.94/91.80/91.56 (T=0.0).

--parallel 16 --mtp-drafts 7 cell & --mtp-drafts 15 identity on e225a31e8 (gfx1151)

  • --parallel 16 --mtp-drafts 7 vs d=3 (TENSORFOLD_MEMORY_RESERVE_GIB=4 --context 16384 --parallel 16 --prompt-cache-gib 0, 128 reply tokens):
    • Startup confirms 16 streams at once (windows of 8 rows, 0.57 GiB/stream for d=7 vs windows of 4 rows, 0.38 GiB/stream for d=3; planRows(16, 8) = 64).
    • Lightning-30B-A3B-MLX-4bit: 100/100 bench_prompts (100/100 alone, 96/96 serial) and 50/50 bench_edit_prompts (50/50 alone, 72/72 serial) hashes match d=3. bench_prompts L=1,8,16: T=0 141.6/172.9/198.8 (d=3) vs 136.2/172.9/198.5 (d=7), T=1.0 119.3/172.4/194.4 vs 117.9/168.6/191.3; bench_edit_prompts L=1,8,16: T=0 152.1/136.3/138.5 vs 187.5/143.1/141.8 (+23.3%/+5.0%/+2.4%), T=1.0 150.6/132.6/136.8 vs 186.1/140.4/140.1 (+23.6%/+5.9%/+2.4%).
    • NVIDIA-Nemotron-3.5-Lightning-30B-A3B-oQ4e-HIP: 100/100 bench_prompts (100/100 alone, 96/96 serial) and 50/50 bench_edit_prompts (50/50 alone, 72/72 serial) hashes match d=3. bench_prompts L=1,8,16: T=0 122.0/170.7/188.5 (d=3) vs 117.9/170.2/188.5 (d=7), T=1.0 117.9/160.7/184.4 vs 119.3/158.6/186.3; bench_edit_prompts L=1,8,16: T=0 136.6/133.7/136.3 vs 176.6/141.8/141.1 (+29.3%/+6.1%/+3.5%), T=1.0 131.5/131.0/136.6 vs 170.4/139.0/139.7 (+29.6%/+6.1%/+2.3%).
  • --mtp-drafts 3 vs 15 on e225a31e8 (--context 131072 --parallel 4 --prompt-cache-gib 0, 256 reply tokens):
    • On both Lightning-30B-A3B-MLX-4bit and NVIDIA-Nemotron-3.5-Lightning-30B-A3B-oQ4e-HIP, 28/28 bench_edit_prompts (28/28 alone, 24/24 serial), 4/4 bench_prompts L=1 (4/4 alone, 2/2 serial), and 8/8 bench_openai hashes match d=3 identically (L=1 edit: 149.1 -> 229.1 T=1.0 and 149.6 -> 214.1 T=0.0 on MLX-4bit; 133.0 -> 194.0 T=1.0 and 134.6 -> 204.6 T=0.0 on oQ4e-HIP).

Full opt-in deep-draft sweep (d = 3, 4, 5, 6, 7, 11, 15, 8bfb495a at --parallel 4, 256 reply tokens)

Above eight streams only planRows changed after 8bfb495a; --parallel 4 behavior is identical, and d=3, 15 were re-verified directly on e225a31e8 above. On 8bfb495a (gfx1151, --context 131072 --parallel 4):

  • Lightning-30B-A3B-MLX-4bit (bench_edit_prompts L=1 T=1.0: 149.0 / 155.2 / 165.5 / 175.6 / 184.3 / 212.6 / 229.1; T=0.0: 149.6 / 155.2 / 164.8 / 175.5 / 179.4 / 207.8 / 214.0; gpu-chat T=0: 98.8 -> 94.5; idle GTT +2,243.3 MiB at d=15).
  • NVIDIA-Nemotron-3.5-Lightning-30B-A3B-oQ4e-HIP (bench_edit_prompts L=1 T=1.0: 132.9 / 138.1 / 151.9 / 159.9 / 165.1 / 186.3 / 194.0; T=0.0: 134.3 / 144.0 / 153.3 / 163.5 / 167.9 / 198.0 / 204.7; bench_prompts L=1 T=0: 124.1 -> 120.9).
  • Prior 8bfb495a checks also covered ROCm 10.1 zig build hip-kernel-contract (SUMMARY gfx1151 164 kernels: 164 pass gates 1-4, 0 fail, 2 known findings; 45 controls: 45 red as planted, 0 missed; 26 limit problems, matching base; unchanged kernels on e225a31e8) and --prompt-cache-gib 8 cache reuse at --mtp-drafts 7, 11, 15 x --streams 1, 2 (12/12 qualified, 42/42 reused rows equal).
  • Full sanitized receipts and logs: https://gist.github.com/gilby/213ed2909c2ea3985c7514d0fa55185b

Checklist

  • zig fmt --check zig/ clean and strictly linear commit history atop origin/main 8cbef9777 (zero merge commits, git merge-tree clean)
  • hip-host-test, test-host-ci-linux-hip, test-cost-rule, hip-kernel-test, tf-nemotron-hip-test window/rounds (16-row lone, 32-row 4-stream, 64-row 16-stream), and CLI refusals verified on gfx1151 (e225a31e8)
  • Interleaved 4-arm default parity (main vs e225a31e8 on MLX-4bit, n2-stack-base-1118 vs e225a31e8 on oQ4e-HIP), --mtp-drafts 15, and --parallel 16 --mtp-drafts 7 verified on both checkpoints with 100% token identity
  • docs/recipes/nemotron-3.5.md and CHANGELOG.md updated cleanly; tools/pr_check.py and publish_check.py clean

@ashhart

ashhart commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Thanks @gilby for the deep-draft work, and for keeping the default path out of it.

What's good:

  • At the default (--mtp-drafts unset or 3 or less), windowFor gives 4 rows and planRows gives streams * 4. That matches main's max_window = 4 and streams * rounds.max_window (round.zig:24-31, engine.zig:112,177). The timed head step stays at 3 (costs.zig timed_depth), and the shared cap of 3 doesn't change anything when the asked depth is already 3 or less.
  • The refusal past 15, and past 3 above --tp 1, is named before load and tested (mtp_drafts_hip_test.zig).
  • Your receipts cover the identity checks we ask for: every depth from 3 to 15 matches d=3, "draft": false serial and alone rows match, and reused prompts match cold ones. The 16-row window and 32-row rounds are bit-equal on both checkpoints.
  • The recipe says plainly where higher depths are slower on prose and chat, and why 3 stays the default.

Must fix:

  1. Rebase onto main. This branch carries hip flashnext: a lone stream chains up to seven MTP drafts when asked #3053, Nemotron on HIP: read each matrix at its own oQ width (part 2 of 3) #3242 and Nemotron on HIP: read the MTP head file at its own width (part 3 of 3) #3251, none of which are on main yet, so it can land only after them. In this PR's own commit, only CHANGELOG.md conflicts, and we place that at landing. The hip flashnext: a lone stream chains up to seven MTP drafts when asked #3053 commits conflict in code:
    • flashnext/hip/lanes.zig: ring is now pub.
    • main now sets .draft_streams = drafting in the Flash Next facts, but facts.zig's factsFor hardcodes false. The rebase has to keep main's value.
    • core/lanes/depth.zig: the body of budgets moved into budgetsFor, so the shared_cap / top changes have to go there.
    • native/hip_families.zig: confidenceFloor was added next to mtpMost.
    • native/hip.zig: the test block now imports hip_confidence_test.zig.
  2. Above eight streams, the opt-in plan is smaller than the default one. With --mtp-drafts 4 or more, planRows returns min(streams * window, 32) (round.zig:28-31). At --parallel 16 that is 32 rows, against the 64 the default gives. The lane core caps a shared round's drafts at batch_rows (shared_drafts.zig capRows), so a busy server that opts in gets fewer shared drafts than one that doesn't. Your tables stop at --parallel 4, so this isn't measured. Please keep the plan at least as large as the default, for example @max(streams * default_window, @min(streams * window, shared_cap_rows)), and update the round.zig test and the rounds check in gen.zig to match.
  3. Please say which commit the receipts ran on. The body names src-this cfd86162, but the head is 8bfb495a. After the rebase, please post main-vs-branch numbers for the default parity (four arms) at the new head.

Optional:

  • The recipe says the defaults "stay equal to main". Readers of the docs don't have a main, so "stay as before" reads better.
  • The changelog line could be shorter. The L=1 edit-prompt numbers and the one slower cell are enough; the full table lives in the recipe.
  • native.zig laneBytesFor is pub only for the test. A short note that the test is what reads it would help the next reader.

Device cells: Strix Halo gfx1151 (HIP): the default four-arm parity and the --mtp-drafts 15 lone-stream identity on both checkpoints, plus --parallel 16 with --mtp-drafts 7 (at a --context that admits 16 streams) once item 2 is in. We will run the device check on our side.

  • Synthena

@gilby
gilby force-pushed the strix/nemotron-hip-deep-drafts branch from 8bfb495 to e225a31 Compare November 18, 2026 16:58
@gilby

gilby commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Updated #3613 on linear head e225a31e8 atop origin/main 8cbef9777 to address every review item:

  • Must-fix 1 (linear rebase onto origin/main 8cbef9777): Rebased cleanly as four linear commits with zero merge commits (8f8b10eaa #2730+#3053 -> bffae8ccf #3163+#3242+#3251 -> c706ab8db bench_edit_prompts.json -> e225a31e8 main change), resolving all five #3053 conflicts (flashnext/hip/lanes.zig keeping pub const ring, flashnext/hip/facts.zig keeping .draft_streams = drafting, core/lanes/depth.zig budgetsFor with probs[0..whos.len] and top, native/hip_families.zig keeping confidenceFloor beside mtpMost, and native/hip.zig keeping both hip_confidence_test.zig and mtp_drafts_hip_test.zig under 600 lines). git merge-tree --write-tree 8cbef9777 e225a31e8 is completely clean.
  • Must-fix 2 (planRows above 8 streams): Updated zig/src/families/nemotron/hip/round.zig planRows to @max(streams * default_window, @min(streams * window, shared_cap_rows)), and updated the unit/integration tests in round.zig, deep_drafts_test.zig (streams = 1..16), and zig/tests/nemotron_hip/gen.zig rounds (planRows(n, e.window)).
  • Must-fix 3 & Device cells on e225a31e8 (gfx1151):
    • tf-nemotron-hip-test window --steps 16, rounds --steps 16 --streams 4 (32 rows), and rounds --steps 8 --streams 16 (64 rows) all report 0 rows differ on both Lightning-30B-A3B-MLX-4bit and NVIDIA-Nemotron-3.5-Lightning-30B-A3B-oQ4e-HIP.
    • Default 4-arm parity (--mtp-drafts unset): directly against origin/main 8cbef9777 on Lightning-30B-A3B-MLX-4bit (0 #2984 losses, 28/28 + 8/8 + 3/3 identical, 0 banner diff beyond #3242's format label) and against n2-stack-base-1118 bffae8ccf on NVIDIA-Nemotron-3.5-Lightning-30B-A3B-oQ4e-HIP (0 #2984 losses, 0 banner diff, 100% equal).
    • --mtp-drafts 15 identity: 28/28 bench_edit_prompts (28/28 alone, 24/24 serial), 4/4 bench_prompts, and 8/8 OpenAI match d=3 on both checkpoints (L=1 edit rises 149.1 -> 229.1 tok/s sampled on MLX-4bit, 134.6 -> 204.6 greedy on oQ4e-HIP).
    • --parallel 16 --mtp-drafts 7 cell (--context 16384 --parallel 16): both checkpoints admit 16 streams at once (windows of 8 rows, 64 plan rows vs 32 before); 100/100 bench_prompts and 50/50 bench_edit_prompts match d=3 (alone and "draft": false serial inclusive), L=16 general prompts stay at parity (198.5 vs 198.8 T=0 on MLX-4bit, 188.5 vs 188.5 T=0 on oQ4e-HIP), and L=16 edit prompts gain +2.4% / +3.5% (+23.3% / +29.3% at L=1).
  • Optionals: Reworded stay equal to `main` -> stay as before in docs/recipes/nemotron-3.5.md, shortened the CHANGELOG.md bullet to the L=1 edit numbers and slower gpu-chat cell, and documented native.laneBytesFor as pub for deep_drafts_test.zig.

Updated sanitized receipts on e225a31e8 are in the gist (20261118_* files): https://gist.github.com/gilby/213ed2909c2ea3985c7514d0fa55185b

@ashhart
ashhart force-pushed the strix/nemotron-hip-deep-drafts branch from e225a31 to 2f4eb22 Compare November 19, 2026 02:40
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thanks @gilby. To get this moving, we rebased it onto current main ourselves, keeping every one of your commits as it was (author and message) and fitting it to the code main has gained since; no behaviour changes. It is in the landing queue now, and if anything else is needed from you we will say so here.

  • Synthena

@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thanks @gilby, and an update on our note from this morning: main has moved again, and this time our rebase stopped where it needs your call.

Main has since added BF16 embeddings to Nemotron on HIP, and your second commit changes the same four files with rules that assume a quantized (affine) embedding:

  • admit.zig: main accepts a BF16 embedding through config.parseWith, refuses an MTP sidecar beside a model that is not 4-bit group-64, and takes the head width from the model. Your commit reads the head's own metadata instead.
  • widths.zig: main returns no affine width for a BF16 embedding and labels it +bf16-embed. Yours always returns and checks the affine width.
  • plan.zig: main counts BF16 storage through embedBytes. Yours always counts an affine matrix.
  • load.zig: main reads the embedding through readEmbed, which detects BF16 on disk. Yours reads it through l.proj.

Please rebase onto main, keeping main's BF16 embedding path in all four files, with your head metadata added beside it. A BF16-embedding model should still load and size as it does on main, with your MTP admission applying on top. If your head-metadata rule should replace main's 4-bit group-64 refusal for MTP sidecars, please say why here, since main's test at admit.zig:350 expects that refusal for 6- and 8-bit models.

  • Synthena

@gilby

gilby commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto origin/main (632dac4f185) as five linear commits with zero merge commits (8087208e5 #3053 -> 119105e36 #3251 -> 867a1eb43 bench_edit_prompts.json -> 9eb2427bb #3613 -> 3d78afd31 changelog: #3613 under Unreleased; git merge-tree --write-tree against f298d191b conflicts on CHANGELOG.md only).

  • BF16 embedding path preserved across all four files:
    Kept main's config.parseWith in admit.zig, +bf16-embed width handling in widths.zig, embedBytes in plan.zig, and readEmbed in load.zig, with Commit 2's (119105e36, matching rebased #3251) mtp_quantization head metadata admission and loading layered beside it. admit.zig tests were split into zig/src/families/nemotron/hip/admit_test.zig (281L + 350L; max touched .zig file length is 594 lines in zig/src/native/hip.zig).
  • Why Commit 2 (119105e36 / #3251) replaces admit.zig:350's 4-bit group-64 sidecar refusal:
    Prior to #3251, #3242 (64e6db63e) had to assume mtp-4bit.safetensors shared the body's quantization width, so admit.zig:350 (and 563-564 in the BF16 test) refused the sidecar beside 6-bit and 8-bit models. Commit 2 intentionally replaces that restriction by reading mtp_quantization from the head file itself (defaulting to 4/64 when unstated) so mtp-4bit.safetensors can draft beside oQ6, oQ8, and BF16-embedding bodies alike, while still refusing unserved head formats (4/32, nvfp4, etc.) and mtp.layers.* inside main shards.
  • Verification on 3d78afd31 (gfx1151 & host):
    • Host: zig fmt --check zig/ clean; tools/pr_check.py clean (0 error(s), 0 warning(s); lean 168 vs 168, 0 new) from both --base 119105e36 and --base 632dac4f185; macOS and Linux HIP host test targets passed; unfiltered nemotron/hip host tests passed (59 passed; 1 skipped; 0 failed, skipped: local Bolt checkpoint config test when absent on disk).
    • tf-nemotron-hip-test (gfx1151): load on oQ4e-bf16embed-HIP (18.41 GiB, weights match the plan) and TensorFold/oQ8 + mtp-4bit.safetensors (32.10 GiB, weights match the plan, attention split 0e0 diff); window --steps 16 (0e0 diff) and rounds --steps 8 --streams 16 (0 rows differ) on both oQ4e-bf16embed-HIP and MLX-4bit.
    • tensorfold-native serve (gfx1151, --context 16384 --parallel 2 --prompt-cache-gib 0 --no-thinking):
      • unigilby/oQ4e-bf16embed-HIP (default 0.38 GiB and --mtp-drafts 15 0.93 GiB, windows of 16 rows): 18.41 GiB, +bf16-embed, MTP head loaded, greedy matches origin/main 632dac4f185 and draft=false.
      • unigilby/oQ4e-HIP (--mtp-drafts 15): 18.11 GiB, windows of 16 rows, greedy matches origin/main 632dac4f185 and draft=false.
      • TensorFold/MLX-4bit (--mtp-drafts 15): 17.34 GiB, windows of 16 rows, greedy matches draft=false.
      • TensorFold/oQ8 + mtp-4bit.safetensors (default): 32.10 GiB, MTP head loaded, greedy matches origin/main oQ8 (MTP head off) and draft=false.

Receipt added to the gist (20261120_rebase_bf16_receipt.md): https://gist.github.com/gilby/213ed2909c2ea3985c7514d0fa55185b

gilby added a commit to gilby/TensorFold that referenced this pull request Nov 20, 2026
@gilby
gilby force-pushed the strix/nemotron-hip-deep-drafts branch from 2f4eb22 to 3d78afd Compare November 20, 2026 09:09
@AIFlowML

Copy link
Copy Markdown
Contributor

@gilby @ashhart Independent check at 3d78afd31: zig build -Dhip=true hip-host-test check-native-hip-host test-native-hip-host test-cost-rule test-draft-hip-host --summary all ran with Zig 0.17.0 on macOS arm64 (-Dcpu=apple_m1) and Linux x86-64 (-Dfixed-cpu). Both passed 150 tests with one skip. The macOS build completed 26/26 steps and Linux completed 24/24.

The rebased receipt in the thread names this head. Putting the same head and host command in the PR description beside the earlier device receipt would make it easier to choose the right revision. A local test merge against 9ad727fcd found a conflict only in CHANGELOG.md. These are CPU-side checks. The gfx1151 workload results remain the device receipt in the thread.

Igor Lessio - AIFLOW LABS

@AIFlowML

AIFlowML commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

I reran the host command on the exact #4272 train tip a270d20ba, which includes the Flash Next and independent-width MTP-head dependencies. M5 Max, Zig 0.17.0.

zig build -Dhip=true -Dcpu=apple_m1 hip-host-test check-native-hip-host test-native-hip-host test-cost-rule test-draft-hip-host --summary all -j3

Exit 0, 153 tests passed and one skipped. The Linux ARM64 HIP native runner also compiled. The host flag test covers fifteen drafts for Nemotron at TP=1, three at higher TP, seven for Flash Next at TP=1, and named refusal above the supported limit. The train currently shows ten skipped hosted checks. The gfx1151 run in your receipt remains the device evidence.

After #3251 landed, I trial-merged the same train into dc71af9d2. The only Git conflict was CHANGELOG.md; the scratch test kept main's changelog. The same commands again passed 153 with one skip and built the ARM64 runner. The #3251 code commit carried by the train has the same stable patch ID as the landed commit.

Igor Lessio - AIFLOW LABS

gilby and others added 5 commits November 21, 2026 08:51
Wraps eight existing public tools/*.py files from this repository so concurrent copy-heavy drafting can be measured with tools/bench_concurrent.py.
Keep the four-row window and three drafts by default (and in shared rounds and at --tp > 1), while widening a lone stream's window up to 16 rows under --mtp-drafts 4..15 with shared rounds capped at three head drafts a stream and plan rows kept at max(4 * streams, min(streams * window, 32)).
@ashhart
ashhart force-pushed the strix/nemotron-hip-deep-drafts branch from 3d78afd to 808cb79 Compare November 21, 2026 08:52
@ashhart
ashhart merged commit f0b9cb8 into ashhart:main Nov 21, 2026
2 of 11 checks passed
ashhart pushed a commit that referenced this pull request Nov 21, 2026
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Thank you @gilby. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

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.

3 participants