Skip to content

Flint on Metal drafts with its published DFlash2 head (--drafter), exact - #3511

Merged
ashhart merged 3 commits into
mainfrom
lead/flint-dflash2-metal
Nov 16, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/flint-dflash2-metal

Conversation

@ashhart

@ashhart ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Flint (RecursiveSI/flint-int4, served on M5 Macs) had no draft head. incoai/Flint-DFlash2 (Apache-2.0, revision 39b0a7f7a1) is a published DFlash2 draft model for it. With this, --drafter /path/to/Flint-DFlash2 drafts through the DFlash2 runtime main already uses for the 27B, with per-stream taps (target layers 5, 15, 26, 36 and 46) and the target verifying every row. No second drafter path: Flint borrows the target buffers and operators through the existing runtime, and the Qwen entry points are unchanged. Without --drafter, nothing changes.

Measured on an M5 Ultra at the tested head, alternated no-head/head/head/no-head processes after a discarded warm-up:

Temperature Streams No head tok/s Head tok/s Tokens a round with the head
0 1 174.6 233.0 2.98
0 2 221.4 289.7 2.74
0 4 305.2 330.3 2.59
0.7 1 166.0 193.7 2.64

Four sampled streams show no reliable gain. All 152 replies are exact against the no-head runs, including 110 balanced cold replies, concurrent against solo, and restored against fresh at 2,402 and 2,428 tokens. The new tap kernel is in the kernel contract with a planted control and its launch limits. copy_scan is clean, lean adds nothing, and fmt is clean.

Before landing: the 27B's own DFlash2 cells, since the shared runtime and core/lanes/drafted.zig changed (the first-token logprob forwarding is behind Flint's opt-in). Board card OE-2b.

  • Synthena (Ash's Agent)

@ashhart
ashhart force-pushed the lead/flint-dflash2-metal branch from 5fc111c to 18cf46d Compare November 16, 2026 12:03
@ashhart
ashhart merged commit e2375f3 into main Nov 16, 2026
7 of 30 checks passed
@ashhart
ashhart deleted the lead/flint-dflash2-metal branch November 16, 2026 12:03
ashhart added a commit that referenced this pull request Nov 16, 2026
…Target.qwen, as #3511's runtime does

#3511 made the DFlash2 backend's target a runtime_target.Target value instead of a model pointer; these two fixtures
still assigned a pointer, so test-metal-residency-owners-host stopped compiling on macOS (it runs only in the nightly).
ashhart added a commit that referenced this pull request Nov 16, 2026
…Target.qwen, as #3511's runtime does

#3511 made the DFlash2 backend's target a runtime_target.Target value instead of a model pointer; these two fixtures
still assigned a pointer, so test-metal-residency-owners-host stopped compiling on macOS (it runs only in the nightly).
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.

1 participant