Skip to content

lfm3 metal: warm turns - #4585

Merged
ashhart merged 2 commits into
mainfrom
lead/lfm3-metal-warm-turns
Nov 23, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/lfm3-metal-warm-turns

Conversation

@ashhart

@ashhart ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What this changes

Follows #4578 (Llama). LFM3 text on Metal already stores zero-lookahead snapshots of every convolution state and the full KV prefix; this adds the warm gate, decode-span forwarding and replay so a warm turn's outputs equal a fresh run of the full prompt, and re-prefills only from the first token that changed.

Checks

  • Host tests: a tool-loop conversation whose history changes mid-way gives the same tokens warm and fresh, re-prefilling only from the first difference; fmt, ast-check.

Still to run

An M3 or M5 with an LFM3 checkpoint: an agent tool-loop load, warm vs fresh tokens equal, time to first token per turn.

@ashhart
ashhart force-pushed the lead/lfm3-metal-warm-turns branch from 5d68a65 to 52a24fb Compare November 23, 2026 22:47
@ashhart
ashhart merged commit 5c35f65 into main Nov 23, 2026
0 of 10 checks passed
@ashhart
ashhart deleted the lead/lfm3-metal-warm-turns branch November 23, 2026 22:47
ashhart added a commit to grantoverton/TensorFold-pr that referenced this pull request Nov 23, 2026
ashhart added a commit that referenced this pull request Nov 23, 2026
ashhart added a commit to wojo/TensorFold 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