Repository navigation
nemotron metal: kv_pages grow/keep inline, and debug builds assert each pass's rows sit in the lane's pages - #1914
Conversation
|
Thanks @jschmied. Both M5 Ultra runs are green against main, with prompt tokens identical in all 20 rows. Flag off: decode flat at every prompt size (2K 233.7 -> 233.5, 64K 203.7 -> 202.2 tok/s, runs overlapping), which settles the 1% we saw on #1837 as noise. Flag on ( |
…s's rows sit in the lane's pages (ashhart#1293) With TF_NEMOTRON_METAL_KV_PAGES off each call site is one null check. kv_pages.holds asserts in debug builds at every K/V row write the host sizes (kvWrite, the prompt's kv put, snapshot restore) and where GPU rounds queue and land.
a64f0cd to
dde8c9f
Compare
|
Thank you @jschmied. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
|
Thanks @jschmied! This is in TensorFold 1.2.2, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.2 |
The follow-up asked for in #1837, stacked on it: its first two commits are #1837's, and the new one is
a64f0cdf4.kv_pages.growandkv_pages.keepareinline, so withTF_NEMOTRON_METAL_KV_PAGESoff each call site is one null check.kv_pages.holdsasserts, in debug builds, that every K/V row the host sizes sits inside the lane's pages. It runs atkvWrite, the prompt's K/V put and snapshot restore, and where GPU rounds queue and land.Checks (M3 Pro):
Gates: fmt, lean 0 new, 590/590 steps.
Debug build with the flag on and MTP rounds at n=1 and n=4: replies byte-equal to main, no assertion fired, over 412 and 349 queued rounds. With
growdeliberately short, the assertion fires.Flag off, against main
57186386d, two base, new, new, base runs at 2K and 8K prompts with 256 new tokens; all 48 replies byte-equal: