Skip to content

flashnext metal: opt-in non-replay GDN for 8- and 16-row batch segments - #4489

Merged
ashhart merged 2 commits into
mainfrom
lead/flashnext-metal-gdn-wide
Nov 23, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/flashnext-metal-gdn-wide

Conversation

@ashhart

@ashhart ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What this changes

With TF_FLASHNEXT_BATCH_GDN_WIDE=1, the ordinary Metal batch forward selects the existing non-replay fz_gdn for 8- and 16-row segments; 1- and 4-row segments keep today's selection (including any FZ_GDN override). Default off. No kernel or arithmetic change.

Checks

  • test-environment-host and test-flashnext-batch-host (recording encoder); fmt, ast-check, lean (unchanged), 600-line cap.

Still to run

On M3 Ultra and M5 Ultra: FZ_DBENCH=bits byte equality for states, convolution windows and outputs at R = 1/4/8/16, tf-kernel-contract --only gdn with planted controls red, then kernel and served A-B-B-A with tokens compared.

@ashhart
ashhart force-pushed the lead/flashnext-metal-gdn-wide branch from 10e02f5 to 368978b Compare November 23, 2026 21:40
@ashhart
ashhart merged commit c634de7 into main Nov 23, 2026
3 of 12 checks passed
@ashhart
ashhart deleted the lead/flashnext-metal-gdn-wide branch November 23, 2026 21:40
ashhart added a commit that referenced this pull request Nov 23, 2026
ashhart added a commit that referenced this pull request Nov 23, 2026
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