Skip to content

train 1120055639: #2679 #3271 (CI only) - #4169

Closed
ashhart wants to merge 6 commits into
mainfrom
lead/train-1120055639
Closed

ashhart wants to merge 6 commits into
mainfrom
lead/train-1120055639

Conversation

@ashhart

@ashhart ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #2679 #3271 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

jschmied and others added 6 commits November 20, 2026 05:56
… sampling_row

lfm3/backend.zig's draw was a byte copy of the general row draw core-sampler-1 moved into
core/lanes/sampling_row.zig; it keeps its greedy.select fast path and maps the core errors back
to NonfiniteLfmLogits / NoAllowedLfmToken. flashnext/host_sample.zig's reference (the oracle its
one-pass draw is tested against) was the same copy without a mask; it now calls core under the
Qwen names. Tests pin the mapped error names on both.
Two choices M1-M4 already make were switched off on GPUs with tensor units:
- keepStates and keepLoneStates returned early on tensorUnits(), so an M5
  wrote every window row's DeltaNet state each round and then copied the kept
  one, instead of keeping one state a layer and replaying the kept rows.
- rows_w.nib gave generation 17 the plain converts, so the 4/32 expert, dense
  row and hyper-connection kernels converted each code to float one at a time
  instead of two a half operation.
Both now apply on M5 as on M3 and M4. M1 and M2 keep the exponent trick.

Replies are unchanged. On an M5 Ultra (Qwen3.8-Flash-Next MLX 4-bit MTP, one
stream, 16 prompts of 512 tokens, main/new/new/main):
- greedy 206.4 -> 220.2 tok/s (+6.6%), sampled 184.5 -> 196.6 (+6.5%),
  "draft": false 109.1 -> 111.3 (+2.0%), no prompt slower
- tokens equal to main on 32 of 32 replies; drafted == "draft": false 16 of 16
- --parallel 4, distinct prompts staggered: every concurrent reply equals its
  solo run; sampled 1/2/4 streams +5.0/+4.7/+0.8%, greedy +7.2/+3.5/+4.9%
zig build test-native passes on an M5 Max; lean 0 new.
@ashhart

ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Landed: #2679 #3271 as main f794b26. This PR only carried their CI.

@ashhart ashhart closed this Nov 20, 2026
@ashhart
ashhart deleted the lead/train-1120055639 branch November 20, 2026 10:12
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