Repository navigation
qwen27 Metal (M1-M4): solo prompt passes take the frame's rows, not 128 (#2907) - #2916
Conversation
1b4fb91 to
51bb774
Compare
51bb774 to
fb08591
Compare
fb08591 to
fa10c4f
Compare
|
/atc exchange 77a30b22da0dc16d3a0e4c970ad76224d9bd2683fc5de2a2d981b645a07da307 |
attention, attention_memory, attention_plan and decode_round carry main's extra mates field and prompt-plan pair, so their raw hashes changed; the six #2916 pins now match the rebased files.
fa10c4f to
b6982ba
Compare
attention, attention_memory, attention_plan and decode_round carry main's extra mates field and prompt-plan pair, so their raw hashes changed; the six #2916 pins now match the rebased files.
b6982ba to
ec85a00
Compare
attention, attention_memory, attention_plan and decode_round carry main's extra mates field and prompt-plan pair, so their raw hashes changed; the six #2916 pins now match the rebased files.
…fromConfig The rebase kept main's `const geometry` from Geometry.fromConfig; #2916 sets geometry.solo_prompt once the prompt kernels build, so it is a var again.
ec85a00 to
90c3fce
Compare
attention, attention_memory, attention_plan and decode_round carry main's extra mates field and prompt-plan pair, so their raw hashes changed; the six #2916 pins now match the rebased files.
…fromConfig The rebase kept main's `const geometry` from Geometry.fromConfig; #2916 sets geometry.solo_prompt once the prompt kernels build, so it is a var again.
90c3fce to
f8935b6
Compare
|
Pre-M5 datapoint from an M1 Ultra (this head Default config: both builds already run solo prompt passes at the frame's rows —
Incidental: on this host the 128-row unfused path prefilled faster than the fused 512-row path (82.6 s vs 88.1 s for ~9k tokens, one rep each) — the wider pass may not be the faster shape on pre-M5 memory bandwidth. Exactness: decode digests byte-identical to main in every arm. |
attention, attention_memory, attention_plan and decode_round carry main's extra mates field and prompt-plan pair, so their raw hashes changed; the six #2916 pins now match the rebased files.
…fromConfig The rebase kept main's `const geometry` from Geometry.fromConfig; #2916 sets geometry.solo_prompt once the prompt kernels build, so it is a var again.
f8935b6 to
ba23deb
Compare
attention, attention_memory, attention_plan and decode_round carry main's extra mates field and prompt-plan pair, so their raw hashes changed; the six #2916 pins now match the rebased files.
…fromConfig The rebase kept main's `const geometry` from Geometry.fromConfig; #2916 sets geometry.solo_prompt once the prompt kernels build, so it is a var again.
ba23deb to
84f61d4
Compare
Keep the current depth argument in the imported row regressions. Pin every changed serving source by its raw SHA-256 and describe the prompt-frame change under Unreleased.
…rompt rows Main had blank separators the rebased PR did not; with the solo prompt fields each file reached 602 and 605 lines. Five and two blank separators were dropped so both files are 600 lines, with every statement unchanged.
attention, attention_memory, attention_plan and decode_round carry main's extra mates field and prompt-plan pair, so their raw hashes changed; the six #2916 pins now match the rebased files.
…fromConfig The rebase kept main's `const geometry` from Geometry.fromConfig; #2916 sets geometry.solo_prompt once the prompt kernels build, so it is a var again.
…a37382 attention_plan.zig, decode_round.zig and qwen27_slots.zig now hold main's per-slot window capacity beside this change's solo prompt rows, so their pins move to the rebased bytes. No source changes.
84f61d4 to
18c40a3
Compare
attention, attention_memory, attention_plan and decode_round carry main's extra mates field and prompt-plan pair, so their raw hashes changed; the six #2916 pins now match the rebased files.
…fromConfig The rebase kept main's `const geometry` from Geometry.fromConfig; #2916 sets geometry.solo_prompt once the prompt kernels build, so it is a var again.
Fixes #2907.
On M1-M4, a Qwen3.8-27B prompt pass was capped at 128 rows though the frame is 512 by default (and
TF_PROMPT_ROWSaccepts up to 2,048).Geometry.solo_prompt(default false) lets one chain of prompt rows take the frame's rows before tensor units. It's set only where the prompt kernels build.Exact by design: every kernel is invariant to pass length.
Tests: six old-behaviour controls fail against unchanged main and pass here: 128-row solo planning, the 512-row live-decoder cap before M5, the decoded-span cap,
decodeRows, the old layout and the old scratch guard. The maintained tests plan 512- and 2,048-row solo chains and still refuse 129-row trees, non-solo chains and two-window aggregates. qwen27 host 592/593 (1 skipped).Not yet checked on a device: on an M3 Ultra,
tf-qwen27-run --chunk 512 --compare-chunk 16 --seams 2048and--chunk 2048 --compare-chunk 128byte-equal,tf-qwen27-attention-precision --promptat 512 rows, and the A/B against main and #2797 (expected +1-3% on cold prompts). Whichever wins lands; if this wins, #2797 closes and keeps its doc fix.