Skip to content

lfm2_moe CUDA: attention pages from the shared KV pool, and the prompt cache (stacked on #1492) - #1503

Closed
jschmied wants to merge 7 commits into
ashhart:mainfrom
jschmied:lfm2-cuda-pool
Closed

jschmied wants to merge 7 commits into
ashhart:mainfrom
jschmied:lfm2-cuda-pool

Conversation

@jschmied

@jschmied jschmied commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Part of #1488. On main 673a34b3b; the head is 550690618, seven commits. The cold-turn loss is gone on this head: paired −3.2 ms against main, slower in 9 of 24 runs.

What

LFM2.5-24B-A2B on CUDA, step 2: attention pages from the shared CUDA KV pool, and the prompt cache.

  • c79d8700b Pool pages. The 10 attention layers' K/V live in pages of the core kv_pool (512 positions, 10 MiB a page), Dory's shape.
  • 62ac19fb3 Prompt cache. A kept state is the slot's conv states plus K/V rows [0, at) of the 10 layers.
    • It is copied into snapshot pages allocated once, inside the prompt-cache budget, as GLM's cuda_snapshot_pages.zig does. A keep leases pages, a restore copies them back into the new stream's leased pages, and a drop returns the lease: no device allocation, and no free behind a stream wait.
    • Copies run page run by page run, with consecutive pages coalesced.
    • lfm2_moe joins the families TENSORFOLD_PROMPT_CACHE_KEEP_OTHERS applies to (profile.cuda_cache), as cuda_keep_others_test requires of every family with snap_save.
  • 29b65c56d Keeps add no prompt pass. A chat mark inside a prompt chunk used to end the chunk there, and every extra pass reads the weights again. A cold 10k chat turn has two marks in its last chunk, so it ran 12 passes instead of 10.
    • Now up to four marks inside a chunk are tapped. The conv kernel runs once more on each mark's last row alone, writing the same y and that row's conv states into a tap buffer, and the keep copies those with the K/V rows before the mark. The kernel is unchanged.
  • 9d2a41dd1 Docs. The recipe says streams lease pool pages and the cache keeps chat states.
  • 1a2612c77 Env flag. TENSORFOLD_LFM2_KV_PAGES is a .flag row in environment.zig, read through environment.value; anything but 0 or 1 is refused by name.
  • c2f48eddc Load line. Option (c): the arena stays allocated once, and the startup line says so: a 43.9 GiB prompt cache, reserved at load. LFM2's native declares snap_reserved; the shared line in cuda_kv_pool.text appends the words only for a family that declares it, so no other family's line changes. The LFM2-MoE pool test pins both texts.
  • 550690618 Keeps off the first-token path. A keep's copies run on the snapshot pages' own stream (cuda_snap.Side), so a cold turn's first token never waits for them.
    • A keep records ready on the prompt stream after the chunk that wrote the state. The side stream waits for it, copies, and records done.
    • The prompt stream waits for done on the device, never on the host, and only before its next write of what a keep reads: a forward, a commit, a slot cleared (Lfm.settle). A restore also waits before it reads snapshot pages (snap.restore). The first token's draw and its host read come before any of these, so they don't wait.
    • The pattern is FlashNext's shared-expert side stream (flashnext/cuda_batch_side.zig: a stream with fork and join events). GLM (glm/cuda_snapshots.zig) and Qwen3.5 (qwen3_5/cuda_reuse.zig) copy on the prompt stream and synchronize, so their order was the one to move away from.
    • Exact by construction: the same bytes are copied, only later, and every reader or writer of them is ordered by the two events.
    • The tap launches stay in the prompt pass; the cold row below doesn't show them.

14 files, +881 / −53 against main.

Proposed CHANGELOG line, under Unreleased: "LFM2.5-24B-A2B on CUDA leases its attention pages from the shared KV pool and keeps chat states in the prompt cache, in pages allocated once inside its budget and reserved at load, copied beside the first token; TENSORFOLD_LFM2_KV_PAGES=0 keeps fixed pages per stream (#1503, part of #1488)."

Verification (GB10, real weights, served, against main 673a34b3b)

Every row is on 550690618 unless it names another head.

  • Ordering test (zig/src/families/lfm2_moe/cuda_snap.zig:340): a fake driver logs each copy, event record and wait by stream.
    • The real keep, then the sampler, then a restore: no copy and no wait on done on the prompt stream before the sampler; the keep's copies come after the side stream waited for ready; the restore's copies come after the prompt stream waited for the last done.
    • Three planted orders are each caught in the same test: the copies back on the prompt stream ahead of the sampler (:365), a restore without the fence (:372), and copies before the side stream waited for the pass (:380).
    • Planted in save itself, with the copies on the prompt stream, the test fails at :366 (17 of 18 pass); restored, 18 of 18 pass.
  • Main's LFM2-MoE pool test (8595a92c8, zig/src/native/cuda_kv_pool.zig:578) is rewritten in 62ac19fb3: this PR gives LFM2-MoE snap_save, so the test now checks the default cache still plans through budgetOf and the store holds what the plan set aside.
  • Load line: 520 pages of 512 rows (5.08 GiB), a 43.9 GiB prompt cache, reserved at load (the same with fixed pages); MemAvailable after ready 55.5 GiB (99.7 GiB with the cache off).
  • Resumed == fresh, greedy and seeded: 8 chats × 4 turns, greedy and then seeded (temperature 0.8, top-p 0.95, a seed a chat). Greedy hits the cache on 24 of 32 requests, seeded on 32 of 32. Every reply equals main's at the same seed, with the cache, without it, with fixed pages (TENSORFOLD_LFM2_KV_PAGES=0), with a 0.1 GiB cache that evicts, and under pool pressure. After a restart the greedy replies equal main's again.
  • Concurrent == solo, greedy and seeded: 8 prompts at once against each alone, in every arm. Drafted == plain in every arm.
  • Pool pressure: with TENSORFOLD_CUDA_MEMORY_LIMIT_GB=14.0 the pool has 72 pages. 8 prompts of about 6k tokens at once wait for pages (10.0 s against 2.29 s on the full pool), and every reply equals its solo run.
  • Accounting: after every drain, kv pool idle: promised 0, free 520 + store 0 == total 520 (72 of 72 under pressure), with no bad lines in any arm.
  • Host: test-lfm2-moe-cuda-host, test-kv-pool, test-cuda-host.
  • x86_64: zig build -Dfixed-cpu test test-golden test-kernel-contract test-server-security test-pull-security fuzz-cortheon check-release-paths, check-native-cuda-host compile-cuda-tests.
  • Checks: zig fmt --check build.zig zig, git diff --check, cuda_common_check (0 violations; no .cu/.cuh change), lean_check (386 against main's 386, 0 new), pr_check (0 errors).

Speed (GB10, against main, cold A-B-B-A, paired per prompt)

The same six cold 9,231-token chat turns run on every server, each keeping two states. The page cache is dropped before each start. Paired means each head server against the mean of its two adjacent mains.

head cell paired median slower median main / head
550690618 served gates, 4 servers an arm −3.2 ms 9 of 24 1.345 / 1.344 s
7302b556b (the same code before a comment-only amend) served gates −1.6 ms 11 of 24 1.348 / 1.344 s
7302b556b tight cell, default cache +4.2 ms 15 of 24 1.336 / 1.344 s
7302b556b the two above pooled +0.8 ms 26 of 48
c2f48eddc (copies in line) served gates +7.3 ms 21 of 24 1.340 / 1.347 s
c2f48eddc tight cell, default cache +3.3 ms 17 of 24 1.339 / 1.345 s
c2f48eddc tight cell, --prompt-cache-gib 0 +7.9 ms 12 of 24 1.339 / 1.338 s
c2f48eddc tight cell, fixed pages, no cache +2.9 ms 16 of 24 1.339 / 1.340 s

Main drifts up to 24 ms between the first and last server of a cell, so a single cell resolves about 5 ms. With the copies in line, every cell was slower: 3 to 8 ms in these cells, and 13.7 and 18 ms in earlier rounds that included drift. With the copies on their own stream, no cell is clearly slower.

The warm turn and decode rows from the earlier round (warm turn 1.24 s → 0.10 s TTFT at 10,141 cached tokens; plain decode at 1/4/8 streams level) are from the pre-rebase head 858187d75. A warm turn restores on the prompt stream after done, as before.

Not in this PR

  • The background warm pass that lets turn 2 resume (warm_quiet): its own PR.

@ashhart

ashhart commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Thanks @jschmied. Leasing from the core pool and keeping states at chat marks is the shape we want, and checking the census after every drain is a nice touch.

With #1492's commits on main, both of your commits apply cleanly. zig fmt, test-lfm2-moe-cuda-host, test-kv-pool, test-cuda-host and the Linux cross-compile pass, and the lean check adds nothing beyond #1492's one finding.

One thing must change before this leaves draft. A cold chat turn that keeps a state is 50 ms slower than on #1492 (1.27 s against 1.22 s), and the prompt cache is on by default. Each kept state is a new device allocation (zig/src/families/lfm2_moe/cuda_snap.zig:56, about 200 MB at 10k tokens). Dropping one waits for the stream and then frees it (:70-71). GLM keeps its states in pages allocated once, inside the prompt-cache budget, so a keep or a restore makes no allocation (zig/src/families/glm/cuda_snapshot_pages.zig). Please do the same. Then measure the cold turn against #1492 again, in alternating runs; it should be level.

To your questions:

  1. Pages by default is fine here. Dory's are opt-in because turning them on changed existing deployments. LFM2 has no CUDA deployment yet, and paging is exact and flat on decode.
  2. A copied state is fine, in preallocated pages as above.
  3. The warm pass belongs in its own PR.
  4. Yes, please rebase onto main once lfm2_moe: serve LFM2.5-24B-A2B on CUDA (plain serve, shared kernels) #1492 has.

Then we'll serve it on a GB10:

@jschmied

Copy link
Copy Markdown
Contributor Author

Thanks @ashhart. Kept states now live in pages allocated once, and the cold turn is level with #1492. The branch is rebased onto the new #1492; the head is 0506d9c0b.

  • Preallocated pages (6ef5d8401): as in GLM's cuda_snapshot_pages.zig, snap_ready allocates one arena of 2 MiB snapshot pages inside the prompt-cache budget. A keep leases pages from it and copies into them run by run, a restore copies back, and a drop returns the lease. Keeps and restores allocate nothing, and there's no free behind a stream wait. snap_charged/snap_spare report held and spare pages to the store.
  • The 50 ms wasn't the allocation. With pages preallocated the cold turn was still 65 ms slower, and with keeps refused it was level. A device-to-device copy of a 200 MB state takes 1.8 ms on the GB10. nsys showed the cost was prompt passes: the turn's two chat marks sit in its last chunk and each one ended the chunk there, so it ran 12 passes instead of 10, and every pass reads the weights.
    • cb823583b taps up to four marks inside a chunk instead. The conv kernel runs once more on each mark's last row alone, writing the same y and that row's conv states into a tap buffer, and the keep copies those with the K/V rows before the mark. The kernel is unchanged.
  • Cold turn against lfm2_moe: serve LFM2.5-24B-A2B on CUDA (plain serve, shared kernels) #1492, 10,144 tokens, keeping two states, 4 alternating rounds of 6: 1.211 s on lfm2_moe: serve LFM2.5-24B-A2B on CUDA (plain serve, shared kernels) #1492 and 1.216 s here. The 5 ms left is the two copies.
  • Served, real weights:
    • resumed == fresh over 8 chats × 4 turns (24/32 hits), equal to cache off and to fixed pages;
    • drafted == plain and concurrent == solo with pages on and off;
    • a 40-page pool under pressure and a 0.1 GiB cache (6 evictions, 1 hit) both match;
    • token hashes are unchanged across a restart.
  • The warm pass stays out of this PR.

@ashhart

ashhart commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Thanks @jschmied. The 27 Oct ask is answered. Kept states lease from one arena allocated inside the prompt-cache budget (cuda_snap.zig:24-33), and save, restore and drop only lease and return pages. Your cold-turn result, 1.216 s against 1.211 s, is level. This now waits on #1492, whose GB10 run is ours. Once #1492 lands, could you rebase this onto main and take it out of draft? It still carries an older #1492 and conflicts. Then we'll run the cells from our 27 Oct note.

@ashhart

ashhart commented Nov 6, 2026

Copy link
Copy Markdown
Owner

/atc exchange e068a93c3878cdda3f5978d7f707b52e86b07c7cabdabdb7aa899f0bf87303fe

@jschmied

jschmied commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @ashhart. Rebased onto main now that #1492 has landed. The head is 858187d75: this PR's four commits on c15d80023, without the old #1492 copies.

What moved to fit main:

  • The pool layout names its 10 attention layers through Layout.ofRows (Roadmap: one paged KV pool and a radix prompt cache for every family #2444 C2), so the load line shows them.
  • TENSORFOLD_LFM2_KV_PAGES is read through the profile registry, like TENSORFOLD_SPARK25_KV_PAGES, and is listed in docs/profiles.md. Lean refuses direct getenv now.
  • With snap_save, lfm2_moe joins profile.cuda_cache, so TENSORFOLD_PROMPT_CACHE_KEEP_OTHERS applies to it. cuda_keep_others_test asks for that.
  • No CUDA source changed, and cuda_common_check passes. The CHANGELOG line is proposed in the body.

Checks on the new head, served on a GB10 against main:

  • Replies equal main over 8 chats × 4 turns (24 of 32 hit the cache). They also equal cache off, fixed pages, a 72-page pool under pressure, a 0.1 GiB cache and a restart. Concurrent == solo and drafted == plain.
  • After every drain the census reads promised 0 and free = total.
  • The cold turn is level with main: the same six turns of 9.4k to 10.7k tokens, 4 alternating servers per arm, give 1.307 s on main and 1.311 s here (+2 to +9 ms per turn: the two state copies).
  • Host: test-lfm2-moe-cuda-host, test-kv-pool and test-cuda-host pass. On x86_64 the CI set and compile-cuda-tests pass. zig fmt, lean 0 new and pr_check are clean.

Ready for the cells from your 27 Oct note.

@ashhart

ashhart commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Thanks @jschmied, that's the fix. With the copies on the snapshot side stream, the first token's draw and host read come before anything waits on a keep, and the cold cell is now level (−3.2 ms, 9 of 24 slower). The ready/done fork and join reuse a pattern we already trust, and the host test catches all three planted orders, including copies landing back ahead of the sampler. The seeded gates are a welcome addition.

Since this changes stream ordering on the keep and restore paths, we'll give the events one more careful read before it lands. Main is frozen for the 1.2.7 release right now, so it goes in the queue just after.

  • Synthena (Ash's Agent)

@ashhart

ashhart commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Thanks @jschmied. We read the keep and restore events through once more on 550690618, and they hold.

  • Every write the prompt stream makes to what a keep reads waits on done first: a chunk, a one-row step, a verify round, a commit and a slot clear. A restore waits before it reads the pages.
  • Freed snapshot pages can only be taken by a later keep. That keep runs on the same side stream and starts after anything the prompt stream queued, including a restore that read them.
  • Re-recording ready and done is safe. Each wait takes the record current when it's queued, and the side stream is in order, so the latest done covers every earlier keep.
  • On teardown the side stream drains before the snapshot pages and the model's buffers are freed. Nothing here is captured in a graph.

A suggestion for a later PR, not this one: the host test covers the fork and the restore fence, but not the five places the prompt stream waits before writing. A small test there, or one helper all five go through, would stop a future writer from skipping the wait.

CI is green and it merges cleanly with main. It's queued to land.

  • Synthena (Ash's Agent)

@jschmied

Copy link
Copy Markdown
Contributor Author

@ashhart the follow-up you suggested in 6806587680 is #2989: Lfm.fenced() is the one place all five prompt-stream writes take their stream from, and a host test fails if a writer skips the wait (each of the five planted back on x.s is caught). It is stacked on this PR, and once this lands its diff is one file.

…m leasing

The kernels already read keys and values through a slot's page table, so the pool changes only what the
table holds and how large the arena is; no kernel changes. A page is 512 positions of the ten attention
layers' keys and values (10 MiB, 20 KiB a token); the conv states stay a fixed part a slot (240 KiB).

- Loaded.layout with engine_paged, as Dory's: the plan sets a window of pages aside for the first stream;
  each stream leases its prompt, its reply and one verify window at its prompt pass and gives them back
  when it ends. A request that cannot lease waits (LaneMemory); fits is the host's admission.
- Model.attach makes the arena and the tables and conv states of the slots the plan names; forward refuses
  rows past a slot's pages. The idle server logs the pool's census.
- TENSORFOLD_LFM2_KV_PAGES=0 keeps every stream's own window of pages, made at open.

Served on the GB10 at --parallel 8, 16k: drafted == plain and concurrent == solo, also with 8 long prompts
on a 52-page pool where the last waits for pages; the replies equal the fixed pages' ones.
…the pages' rows through its position

A state at `at` is the slot's conv states and its keys and values at positions [0, at) of the ten attention
layers: one copy a run of consecutive whole pages, then the last page's rows a layer's keys and values. It is
copied behind the chunk that ends at the mark and restored into the new stream's leased pages before its next
chunk, so a later turn's pass starts at its history. Lookahead 0, as the other headless families.

States live in 2 MiB snapshot pages allocated once at startup inside the prompt-cache budget (`snap_ready`), as
GLM's: a keep or a restore leases or reads pages and allocates nothing, and a dropped state's pages go back to the
pool at once (every copy that reads or writes them is queued on the backend's one stream). The store counts held
and spare pages through `snap_charged` / `snap_spare` / `snap_reuses`.
…dds no pass

A chat mark inside a prompt chunk ended the chunk there, and every extra prompt pass reads the weights once more: a
cold 10k chat turn, whose two marks sit in its last chunk, ran 12 passes instead of 10. Now up to four marks inside a
chunk are tapped instead: the conv kernel runs once more on each mark's last row alone, writing the same y and that
row's conv states into the model's tap buffer, and the keep copies those states with the K/V rows before the mark.
The pass goes on to its grid line; a fifth mark still ends it. The kernel is unchanged.
@ashhart

ashhart commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

@jschmied main moved under this and it conflicted with main, so the landing train left it out. To save you a round trip we rebased it onto current main and pushed it to your branch: each conflict keeps main's change and yours, and your commits and authorship are otherwise unchanged. The host tests for its files, the serving-pin check and our privacy gate pass on the new head. It goes back in the landing queue once its CI is green. No other asks.

  • Synthena (Ash's Agent)

jschmied added a commit to jschmied/TensorFold that referenced this pull request Nov 16, 2026
…base

docs/receipts/lfm-cuda-sass-fad7e142/ now compares today's main (shared CUDA headers, ashhart#1492 and ashhart#1503 on it) with
the rebased head cde8257 on sm_80/86/89/120/121: prefill_attention 70 of 70 functions identical (+5,
pattn_kernel<128, 8, 4, 8>), contract_controls 450 of 450 (+15, LFM3's three controls), nvcc 13.0 and 13.2.
nemotron_attention is no longer reached. sass.tsv has every function's SASS sha256 on both sides.
@ashhart

ashhart commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Thank you @jschmied. All seven of this PR's commits are on main under your name (83ad23d through 65cebea), with #2989's fenced() on top. GitHub can't match the rebased commits, so I'm closing this by hand. LFM2.5 on CUDA now takes its attention pages from the shared pool and keeps chat states in the prompt cache, and the keeps' copies stay off the first token's path. Thanks too for catching the empty-content hash yourself and re-running the gates against main from before this PR. 784 non-empty replies, all equal, is the evidence we wanted. It ships in the next release, credited to you, with its own changelog line beside #2989's.

  • Synthena

@ashhart ashhart closed this Nov 17, 2026
ashhart added a commit that referenced this pull request Nov 17, 2026
Seven duplicate entries go (a PR's own line beside its lines-file line), five outside authors are thanked, #1503 gets the line its close note promised, and eleven lines now match their PRs' code and receipts (#3129, #3194, #3258, #2696, #2921, #3365, #3345, #3384, #3679, #3682, #3699, #3393).
ashhart pushed a commit to jschmied/TensorFold that referenced this pull request Nov 19, 2026
…base

docs/receipts/lfm-cuda-sass-fad7e142/ now compares today's main (shared CUDA headers, ashhart#1492 and ashhart#1503 on it) with
the rebased head cde8257 on sm_80/86/89/120/121: prefill_attention 70 of 70 functions identical (+5,
pattn_kernel<128, 8, 4, 8>), contract_controls 450 of 450 (+15, LFM3's three controls), nvcc 13.0 and 13.2.
nemotron_attention is no longer reached. sass.tsv has every function's SASS sha256 on both sides.
ashhart pushed a commit to jschmied/TensorFold that referenced this pull request Nov 19, 2026
…base

docs/receipts/lfm-cuda-sass-fad7e142/ now compares today's main (shared CUDA headers, ashhart#1492 and ashhart#1503 on it) with
the rebased head cde8257 on sm_80/86/89/120/121: prefill_attention 70 of 70 functions identical (+5,
pattn_kernel<128, 8, 4, 8>), contract_controls 450 of 450 (+15, LFM3's three controls), nvcc 13.0 and 13.2.
nemotron_attention is no longer reached. sass.tsv has every function's SASS sha256 on both sides.
ashhart pushed a commit to jschmied/TensorFold that referenced this pull request Nov 20, 2026
…base

docs/receipts/lfm-cuda-sass-fad7e142/ now compares today's main (shared CUDA headers, ashhart#1492 and ashhart#1503 on it) with
the rebased head cde8257 on sm_80/86/89/120/121: prefill_attention 70 of 70 functions identical (+5,
pattn_kernel<128, 8, 4, 8>), contract_controls 450 of 450 (+15, LFM3's three controls), nvcc 13.0 and 13.2.
nemotron_attention is no longer reached. sass.tsv has every function's SASS sha256 on both sides.
ashhart pushed a commit to jschmied/TensorFold that referenced this pull request Nov 22, 2026
…base

docs/receipts/lfm-cuda-sass-fad7e142/ now compares today's main (shared CUDA headers, ashhart#1492 and ashhart#1503 on it) with
the rebased head cde8257 on sm_80/86/89/120/121: prefill_attention 70 of 70 functions identical (+5,
pattn_kernel<128, 8, 4, 8>), contract_controls 450 of 450 (+15, LFM3's three controls), nvcc 13.0 and 13.2.
nemotron_attention is no longer reached. sass.tsv has every function's SASS sha256 on both sides.
ashhart pushed a commit to jschmied/TensorFold that referenced this pull request Nov 23, 2026
…base

docs/receipts/lfm-cuda-sass-fad7e142/ now compares today's main (shared CUDA headers, ashhart#1492 and ashhart#1503 on it) with
the rebased head cde8257 on sm_80/86/89/120/121: prefill_attention 70 of 70 functions identical (+5,
pattn_kernel<128, 8, 4, 8>), contract_controls 450 of 450 (+15, LFM3's three controls), nvcc 13.0 and 13.2.
nemotron_attention is no longer reached. sass.tsv has every function's SASS sha256 on both sides.
ashhart pushed a commit to jschmied/TensorFold that referenced this pull request Nov 23, 2026
…base

docs/receipts/lfm-cuda-sass-fad7e142/ now compares today's main (shared CUDA headers, ashhart#1492 and ashhart#1503 on it) with
the rebased head cde8257 on sm_80/86/89/120/121: prefill_attention 70 of 70 functions identical (+5,
pattn_kernel<128, 8, 4, 8>), contract_controls 450 of 450 (+15, LFM3's three controls), nvcc 13.0 and 13.2.
nemotron_attention is no longer reached. sass.tsv has every function's SASS sha256 on both sides.
ashhart pushed a commit to jschmied/TensorFold that referenced this pull request Nov 23, 2026
…base

docs/receipts/lfm-cuda-sass-fad7e142/ now compares today's main (shared CUDA headers, ashhart#1492 and ashhart#1503 on it) with
the rebased head cde8257 on sm_80/86/89/120/121: prefill_attention 70 of 70 functions identical (+5,
pattn_kernel<128, 8, 4, 8>), contract_controls 450 of 450 (+15, LFM3's three controls), nvcc 13.0 and 13.2.
nemotron_attention is no longer reached. sass.tsv has every function's SASS sha256 on both sides.
ashhart pushed a commit to jschmied/TensorFold that referenced this pull request Nov 24, 2026
…base

docs/receipts/lfm-cuda-sass-fad7e142/ now compares today's main (shared CUDA headers, ashhart#1492 and ashhart#1503 on it) with
the rebased head cde8257 on sm_80/86/89/120/121: prefill_attention 70 of 70 functions identical (+5,
pattn_kernel<128, 8, 4, 8>), contract_controls 450 of 450 (+15, LFM3's three controls), nvcc 13.0 and 13.2.
nemotron_attention is no longer reached. sass.tsv has every function's SASS sha256 on both sides.
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