Skip to content

metal nemotron: keys and values in the core KV pool's pages (TF_NEMOTRON_METAL_KV_PAGES) - #1537

Merged
ashhart merged 8 commits into
ashhart:mainfrom
jschmied:metal-kv-pages-nemotron
Oct 29, 2026
Merged

ashhart merged 8 commits into
ashhart:mainfrom
jschmied:metal-kv-pages-nemotron

Conversation

@jschmied

@jschmied jschmied commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

metal nemotron: keys and values in the core KV pool's pages (TF_NEMOTRON_METAL_KV_PAGES)

Step 3 of #1293. On by TF_NEMOTRON_METAL_KV_PAGES=1 and off by default. With the flag off, the only change is the added ?paged branches; every existing .metal and .h file is byte-unchanged.

What

Kernels (78b8206fa, f1bc04559): paged twins of the six Nemotron Metal kernels that read or write K/V, in Nemotron's own paged library. attn_merge reads no K/V and needs no twin.

  • tf_kv_write: also covers the GPU-args path.
  • tf_kv_compact: covers tree.compact and gpu_round's compact.
  • kv_put: keep 0 and 1.
  • attn_partial_1 … _16: the causal and shared passes.
  • tf_tree_tail.
  • tf_attention_nax: n_n, n_t, t_n and t_t.

attn_partial, tree_tail and attention_nax are derived from main's sources by count-checked comptime edits. Their tests compile them as the loaders do: the SIMD rewrite, TF_SIMD_LAYOUT, frags.

Serving (d33c9c73c, 6ed6c5f8b):

  • Decode, the MTP head, trees, GPU rounds, short and nax prefill, and kv_put run on the twins and the lane table.
  • A stream takes a lane when it opens, and pages covering its whole capacity. The pages go back when it closes.
  • Admission counts pages through the kv_pool plan (metal_admit.pages), with one arena buffer at most.
  • Snapshots copy from the pages, in an unchanged format.

Verification

All Metal runs are on an M3 Pro, which has no tensor units, so the kernels run in their SIMD-rewritten form.

Kernels:

  • Each twin is bit-equal to the kernel it twins, on shuffled pages, across page boundaries, on partial last pages and with stale NaN bytes.
  • Each has a planted control that goes red (a swapped page).
  • Kernel contract --only 'nemotron paged': 6 pass gates 1–4, and all 6 controls go red.
  • Gate 5: 325 launches, 0 problems.

Served, Lightning MLX 4-bit, greedy, 64 tokens, prompts of 34 / 990 / 4,981 / 20,173 tokens, flag off and on:

1 stream, MTP 1 stream, plain 4 streams, MTP 4 streams, plain
repeats equal 4/4, 4/4 4/4, 4/4 4/4, 4/4 4/4, 4/4
concurrent == solo 2/2, 2/2 2/2, 2/2 8/8, 8/8 8/8, 8/8
resumed == fresh (4,975 cached) yes, yes yes, yes yes, yes yes, yes
flag on == flag off, tokens 4/4 + turn 2 4/4 + turn 2 4/4 + turn 2 4/4 + turn 2
  • drafted == plain: 4/4 + turn 2 in both arms, at 1 and 4 streams.
  • Pool census: 14/14 idle points with every page free, none left held, 0 errors, in each flag-on run.

Speed: ABBA ×2, --parallel 4, 3 repetitions a run, medians.

off on on/off
TTFT 2k 3.728 s 3.734 s 1.002
TTFT 8k 16.185 s 16.174 s 0.999
decode, 1 stream 51.13 tok/s 51.13 tok/s 1.000
decode, 4 streams 83.78 tok/s 84.01 tok/s 1.003

Checks (now including the #1535 commits): lean_check 0 new; zig fmt --check clean; zig build test passes on macOS (with test-metal-kv-pages) and on Linux.

Open

  1. Pages are covered for a stream's whole capacity when it opens, not grown on demand, so GPU rounds never need a host cover. A stream holds as many pages as it had bytes before. Growing on demand would need covers between rounds. Would you want that here, or as step 4 together with kept states as references?
  2. The prompt cache still copies. Snapshots copy rows out of the pages; sharing pages with the prompt cache is not done.
  3. Not measured: flag off against a main build. The flag-off path only gained ?paged branches.
  4. Tensor form and gate 5:

#1535, SIMD half (c246e6d9b): main's Nemotron Metal attention kernels are registered in tests/contract/metal_nemotron_attention.zig. The split-softmax kernels run as the engine chains them and are checked in float64 against core.attention_ref, following Qwen4's parts-and-merge precedent.

  • 21 entries, each with a planted control:
    • attn_partial_N + merge for N = 1 … 16;
    • tree (partial + tf_tree_tail + tf_tree_merge);
    • tf_attention_nax (all four variants);
    • kv_write, kv_put, kv_compact.
  • On the M3 Pro (SIMD form): all 21 pass gates 1–4 (worst 0.33 of the bound), and 21/21 controls go red.
    • Gate 4 uses equal scores and cancelling values. A run summed in fp16 misses its bound by infinitely many times, one summed in bf16 by 256×.
  • Gate 5 records (nemotron_attention_records.zig): all except attn_partial_9 … _16, which are left for your M5 run.
  • The offline limits check (--only nemotron --offline) has one failure, glm gather glm_rows_bf16_nax, and main at the base has the same one.
  • The tensor form is not run here.
  • Merge is checked only as part of each partial + merge entry.

Overlap: this shares families/nemotron/kernels.zig and layers.zig with #1466 (@mrv777, two members a pass for wide M1 windows), and one file conflicts. I'll rebase onto whichever lands first.

@swbiggart

swbiggart commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

@jschmied — M5 Max results for this PR, and for the tensor-form and gate-5 half of #1535.

Commit provenance (the record patch is pushed to my fork for review; no comment or pull request was created anywhere):

Role Commit What its results cover here
PR head, unmodified c246e6d9ba4b5dbf9de6f4cc7488ef1338d4265c gates 1–4, gate 5 for 52 launches, all serving/resume/cancel/census, timing, memory
Baseline main 0d51120a8d88ace54e833a78ddffc7fe6768f872 the PR's merge-base: known-finding check, GLM reproduction, A/B comparisons
Record patch on the head, pushed for review 73db74013, parent c246e6d9b only the 68-launch gate 5 (incl. 9–16 and the twins), the 16 SKIP lines, the form diagnostics
Local merge onto current main 2ab2daa65c7bd7a362a8a1de4a91ed6b7cb03d20 contract summary + three token hashes. Not a serving qualification: no concurrency, resume, cancel or timing was run there

Review branch — review/m5max-pr1537-gate5-records in my fork swbiggart/TensorFold-upstream: the unmodified PR head with that one
commit on top, so the record change can be read in place. Diff against the head is 1 commit,
6 files, +25/−7. Nothing is proposed for merge; the commit is also attached as a format-patch with
base-commit: c246e6d9b.

Machine: Apple M5 Max (Mac17,7), 40 GPU cores, 128 GiB, macOS 27.2 build 26B5101f, Xcode 27.1, Zig 0.17.0,
checkpoint TensorFold/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-MLX-4bit@d9d758fb. The M5 is applegpu_g17, so
tensorUnits() is true and the attention partials compile as written, not through the SIMD rewrite —
recorded at run time, not inferred: nemotron: attention partials compiled as written, tensor ops (applegpu
generation 17).

How this is classified

Area This run
M5 Max correctness and runtime launches Passed for this checkpoint, request matrix, builds and toolchain, with the known finding named below
Performance Measured; a tight equivalence or regression bound is not established
M1/M2 large-partial limits Still unmeasured
Inherited GLM offline gap Reproduced and unchanged

Kernels — unmodified head, tensor form

./zig-out/bin/tf-kernel-contract --only nemotron:

SUMMARY 45 kernels: 45 pass gates 1-4, 0 fail, 1 known findings; 29 controls: 29 red as planted, 0 missed; 0 limit problems; gates 109203 ms, limits 113 ms

Read 0 limit problems as the M5 runtime result: declarations against M1–M5 plus each pipeline compiled on
this GPU. It says nothing about offline or other-chip runs; the only offline run I did is the GLM line below.
The same summary reproduces on the merge onto current main.

Worst gate-3 bound use across the attention entries is 0.378 (prompt nax), partial_16+merge 0.337. Gate 4 is
exact at k 1100 (fp16 replay misses by ∞, bf16 by 256×). The paged twins are bit-equal to the kernels they twin
(0.000 of the bound) on shuffled pages, page boundaries, partial last pages and stale bytes; all six controls red.

The one known finding, named — not affine_mm (that entry exists in docs/kernel-contract.md, but
affine_mm is outside this filter and did not run):

FAIL  nonfinite metal nemotron experts up oracle tf_xup_w3: 37491 of 55680 outputs differ in class; first at 0: finite where float64 gives nan
KNOWN nonfinite metal nemotron experts up oracle tf_xup_w3: relu2's metal::max(bfloat(acc), 0) gives 0 for a NaN dot where float64 keeps the NaN

Kernel tf_xup_w3 (Nemotron routed experts, up projection, w3), gate 1, inherited: the same kernel, gate and
counts reproduce on 0d51120a8. It is registered as known, which is why the run prints KNOWN and exits 0.
It is a different thing from the GLM offline record gap.

Gate 5 for 9–16, and what "1024" measures

Both record files stop at 8 tiles, so the head runs 52 Nemotron launch checks and never compiles a 288–512-thread
launch. With the record patch it runs 68, and every wide launch both compiles and executes:

tiles 9 10 11 12 13 14 15 16
threads launched 288 320 352 384 416 448 480 512
pipeline maxTotalThreadsPerThreadgroup 1024 1024 1024 1024 1024 1024 1024 1024
static threadgroup bytes 0 0 0 0 0 0 0 0

Same for the eight paged twins. Where the numbers come from: gate 5 builds the pipeline from the loader's source
(Library.fromSource + computePipelineState) and reads staticThreadgroupMemoryLength and
maxTotalThreadsPerThreadgroup from the compiled M5 pipeline — so 1024 is that pipeline's own limit, not a
table entry. 0 threadgroup bytes is the measured static length; the record's declared encoder-set
(dynamic) bytes are 0 too, so static + dynamic is also 0 — only static is a runtime read. Executions are real:
gates 1–4 dispatch each partial at 32·N threads, so 288–512-thread groups ran and matched float64 or the
kernel they replace. At 16 tiles the record declares 2048 × 16 = 32768 B, exactly the device ceiling, while the
compiled kernel uses 0 B — fine today, no headroom in the declaration.

M1/M2 stays unmeasured. --offline cannot fill these records: air-tt refuses every attention partial for
M1/M2, tiles 1 through 16, main's kernels and the twins alike (no M1/M2 build (ToolFailed)). The patch adds
MetalLaunch.unbuildable, which marks such a launch unmeasured on M1/M2 (absolute family limits still apply)
and makes the offline run print one SKIP per launch instead of a pass or a failure. With it the offline run is
1 limit problems — the GLM one — plus 16 visible SKIPs. It does not turn that gap into a pass; an M1/M2 owner
still has to record m1/m2. Take the patch, adapt it, or drop the flag if you would rather gate 5 stay silent
for those launches.

Serving

A = main 0d51120a8, B = head with TF_NEMOTRON_METAL_KV_PAGES unset, C = head with it set to 1.

  • A = B = C by token_sha256 on 21 request families: nine exact-length prompts (34, 255, 256, 257, 512, 2048,
    4992, 8192, 20000) at 1 and 4 streams, plus code/chat at 1 and 4 streams, greedy and sampled (seeds 1234 and 7).
    This is the flag-off-against-main comparison the PR had not measured: zero differences, including 20k prompts
    and page-boundary starts.
  • Per config: 12 cells carrying 30 solo-vs-concurrent checks and 4 drafted-vs-plain checks; across A/B/C, 90 and
    12, with 0 unequal and 0 failed.
  • Resume: 5,029 of 5,035 tokens reused; turn 3 resumed at 5,029 and equalled a cache-off full-prompt run
    (cached_tokens 0, same hash) in A, B and C. Caveat: raw token-array prompts keep no state with the cache on
    (kept 0), so completion-prompt resume is untested rather than passing.
  • Cancel mid-stream (reason=client-left), next request matched its reference hash.
  • Paging is real: C logs 516 pages of 256 rows (0.88 GiB) and 68 of 68 idle censuses at 516 of 516 free; B
    logs neither.

Performance — measured, not bounded

A "block" is one server start plus one timing run; each cell is the harness median over 2 repetitions of the
same workload
; a "paired ratio" is target/reference within one adjacent pair of blocks in the mirrored schedule
(A B B A A B B A, B C C B B C C B). n = 4 pairs per comparison — that is the independent unit. "Block
spread" below is max/min of per-block medians across all 16 blocks; it measures session drift, not the
uncertainty of a comparison.

cell B/A: four ratios, median (range) C/B: four ratios, median (range)
TTFT 2k 0.808, 0.977, 1.030, 1.006 → 0.991 (0.81–1.03) 1.523, 0.965, 1.181, 0.949 → 1.073 (0.95–1.52)
TTFT 8k 0.894, 0.934, 1.087, 0.972 → 0.953 (0.89–1.09) 0.973, 0.993, 0.998, 1.059 → 0.995 (0.97–1.06)
decode 1 stream, code 1.041, 1.208, 1.068, 1.121 → 1.095 (1.04–1.21) 1.029, 0.993, 1.022, 0.983 → 1.008 (0.98–1.03)
decode 1 stream, chat 0.984, 1.041, 0.889, 1.094 → 1.012 (0.89–1.09) 1.021, 0.940, 0.984, 1.086 → 1.003 (0.94–1.09)
4-stream, code 0.980, 1.016, 0.947, 0.965 → 0.972 (0.95–1.02) 1.047, 0.989, 0.965, 0.937 → 0.977 (0.94–1.05)
4-stream, chat 1.003, 1.086, 0.915, 1.100 → 1.045 (0.92–1.10) 1.003, 0.984, 1.048, 0.885 → 0.993 (0.89–1.05)

Block spread over the session was 1.68× (TTFT 2k), 1.27× (TTFT 8k), 1.32–1.34× (decode), 1.26× (4-stream) —
Spotlight was indexing the checkpoint part of the way through. Pairing narrows that, and the residual ratio
dispersion is in the table rather than hidden in a median.

Two things I will not claim. No parity and no "no regression below 3 %": with 4 pairs and a drifting session,
the data does not support a bound. And the one cell with a consistent direction — single-stream decode on the
code prompt, all four pairs favouring B by 4–21 % — is an observed difference that needs re-measuring, not an
effect: nothing in the flag-off diff predicts a decode gain, and the chat cell (+1.2 %, 0.89–1.09) and the
4-stream cells do not corroborate it. The TTFT-2k C/B cell is dominated by a single outlier pair (B 0.588 s vs
C 0.896 s); without it that cell is 0.95–1.18.

Memory: three different numbers

C's extra memory is reserved arena capacity — kv_pool.Pages.bytes for 4 streams × 516 pages, allocated as
one Metal arena buffer plus a tables buffer (0.88 GiB), matching a +0.9 GiB move in the engine's wired accounting
(21.3 → 22.2 GiB) and a one-step move in phys_footprint (22 → 23 GB, 1 GB resolution). RSS did not move
(19.44 → 19.45 GiB). The arena is sized for a stream's whole capacity when it opens, so this run shows no
memory saving from paging
and is not presented as one.

Inherited, unchanged

FAIL offline glm gather glm_rows_bf16_nax: 256 threads; M1 pipelines take 1024, M2 1024 (recorded 0, 0)

Same line on 0d51120a8, on the head, and on the merge onto current main: a missing record, not a fit failure
(the pipeline compiles for 1024). Left alone, as asked.

Remaining limitations

  • M1/M2 large-partial limits unmeasured; air-tt cannot stand in, and an M5 run cannot either.
  • Performance: n = 4 pairs, 2 reps a cell, a drifting session — no equivalence or regression bound.
  • Coverage gaps: 8/16 streams, 32k/64k prefill, 262k admission, sampled decoding at long prompts,
    completion-prompt resume, page-boundary resume, cancellation at other sizes, --learn/--recall, oQ widths,
    CUDA, mlx_lm comparison.
  • The integration tree was qualified only for the contract summary and three token hashes.
  • Everything here is this configuration only: M5 Max 40-core, 128 GiB, macOS 27.2 (26B5101f).

m5max-pr1537-c246e6d9-gate5-records.patch - the same commit as the review branch
(73db74013, base c246e6d9b)]**
m5max-pr1537-c246e6d9-validation.zip — report, manifest, raw receipts, logs

The archive carries report.md, manifest.json (SHAs, toolchain, checkpoint revision, settings, per-pair
statistics), raw/ (JSON receipts, token hashes, server logs, timing blocks), logs/ (build, contract, offline,
test, including the baseline contract-A-experts.log that reproduces the known finding), fixtures/ and
scripts/. Local paths are redacted and the helper scripts take TF1537_ROOT.

jschmied pushed a commit to jschmied/TensorFold that referenced this pull request Oct 29, 2026
…ials

Main's attn_partial_9 ... _16 and their paged twins launch 288 to 512 threads a group.
They had no gate 5 record, so gate 5 neither compiled nor checked them on any chip.

- Register both sets at 32*n threads and 2048*n threadgroup bytes.
- Xcode's translator cannot build this family for M1/M2 (air-tt fails for every
  partial, 1 to 16), so MetalLaunch gains unbuildable: such a launch is unmeasured
  on M1/M2 rather than shown to fit. Absolute family limits still apply, and the
  offline run prints SKIP for each one instead of FAIL.
- Log which attention form compiled, so a run records tensor ops against the SIMD
  rewrite (the M5 Max compiles the sources as written).

Base: c246e6d (PR ashhart#1537 head).
Pushed as review support for ashhart#1537; not proposed as a merge commit on its own.
@jschmied

Copy link
Copy Markdown
Contributor Author

Thanks @swbiggart, this is a thorough run. I've taken your records commit into the PR as 311ff378b (cherry-picked unchanged, your authorship), so gate 5 now covers the 9 to 16 tile partials and their paged twins, and M1/M2 show as unmeasured rather than as fitting. Lean and zig build test pass on Linux. The Metal side of it rests on your M5 Max run.

Agreed on the performance reading: no bound is claimed, and the 0.88 GiB is reserved arena capacity, not a saving. The M1/M2 large-partial limits stay listed as open.

jschmied and others added 8 commits October 29, 2026 23:44
… main's through shuffled pages, a swapped page caught
…ernels at every shape and page edge, six planted controls, their launches
…V_PAGES

Decode, MTP trees, GPU rounds and prefill bind the paged twins and the
stream lane table; a stream leases and covers its pages when it opens and
returns them when it closes. Snapshots copy from the pages, and the census
is logged once no stream is open. Off by default.
With TF_NEMOTRON_METAL_KV_PAGES=1 the load plans streams and pages beside
the model, at most one arena buffer, and attaches them to the backend.
…oat64

attn_partial_1..16 with attn_merge, the tree partial with tf_tree_tail and
tf_tree_merge, tf_attention_nax, tf_kv_write, kv_put and tf_kv_compact, in
the form this GPU compiles, each with a planted control (ashhart#1535).
partial_1..8, the merges, the tree tail, the glue and the four prompt
variants; partial_9..16 wait for a run on a GPU with tensor units (ashhart#1535).
…ials

Main's attn_partial_9 ... _16 and their paged twins launch 288 to 512 threads a group.
They had no gate 5 record, so gate 5 neither compiled nor checked them on any chip.

- Register both sets at 32*n threads and 2048*n threadgroup bytes.
- Xcode's translator cannot build this family for M1/M2 (air-tt fails for every
  partial, 1 to 16), so MetalLaunch gains unbuildable: such a launch is unmeasured
  on M1/M2 rather than shown to fit. Absolute family limits still apply, and the
  offline run prints SKIP for each one instead of FAIL.
- Log which attention form compiled, so a run records tensor ops against the SIMD
  rewrite (the M5 Max compiles the sources as written).

Base: c246e6d (PR ashhart#1537 head).
Pushed as review support for ashhart#1537; not proposed as a merge commit on its own.
@ashhart
ashhart force-pushed the metal-kv-pages-nemotron branch from 311ff37 to 12b4a98 Compare October 29, 2026 23:45
@ashhart
ashhart merged commit ffbc72c into ashhart:main Oct 29, 2026
9 checks passed
ashhart pushed a commit that referenced this pull request Oct 29, 2026
…ials

Main's attn_partial_9 ... _16 and their paged twins launch 288 to 512 threads a group.
They had no gate 5 record, so gate 5 neither compiled nor checked them on any chip.

- Register both sets at 32*n threads and 2048*n threadgroup bytes.
- Xcode's translator cannot build this family for M1/M2 (air-tt fails for every
  partial, 1 to 16), so MetalLaunch gains unbuildable: such a launch is unmeasured
  on M1/M2 rather than shown to fit. Absolute family limits still apply, and the
  offline run prints SKIP for each one instead of FAIL.
- Log which attention form compiled, so a run records tensor ops against the SIMD
  rewrite (the M5 Max compiles the sources as written).

Base: c246e6d (PR #1537 head).
Pushed as review support for #1537; not proposed as a merge commit on its own.
@ashhart

ashhart commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Thank you @jschmied. This is in TensorFold 1.2.0, released today: https://github.com/ashhart/TensorFold/releases/tag/v1.2.0

It landed with your commits under your own name, so you're listed as a TensorFold contributor, and it's credited to you in the release notes and the changelog.

devopsfortunato added a commit to devopsfortunato/TensorFold that referenced this pull request Nov 6, 2026
…and Nemotron's Metal paging

The switch registry grows by four rows (ashhart#1660's next group, all measured identical):
TENSORFOLD_DORY_KV_PAGES (opt-in, ashhart#1284), TENSORFOLD_GEMMA4_KV_PAGES and
TENSORFOLD_SPARK25_KV_PAGES (default-on, exact 0 opts out, ashhart#1619, ashhart#1653), and
TF_NEMOTRON_METAL_KV_PAGES, the first metal-backend row (exact 1, ashhart#1537). A new
.not_zero syntax covers Dory's on-unless-0 reader; the 0-opt-out rows reuse
report_values. The four readers go through the registry's environment-first
helper, so an unset variable and every set value behave byte for byte as before.
devopsfortunato added a commit to devopsfortunato/TensorFold that referenced this pull request Nov 6, 2026
…and Nemotron's Metal paging

The switch registry grows by four rows (ashhart#1660's next group, all measured identical):
TENSORFOLD_DORY_KV_PAGES (opt-in, ashhart#1284), TENSORFOLD_GEMMA4_KV_PAGES and
TENSORFOLD_SPARK25_KV_PAGES (default-on, exact 0 opts out, ashhart#1619, ashhart#1653), and
TF_NEMOTRON_METAL_KV_PAGES, the first metal-backend row (exact 1, ashhart#1537). A new
.not_zero syntax covers Dory's on-unless-0 reader; the 0-opt-out rows reuse
report_values. The four readers go through the registry's environment-first
helper, so an unset variable and every set value behave byte for byte as before.
devopsfortunato added a commit to devopsfortunato/TensorFold that referenced this pull request Nov 6, 2026
…and Nemotron's Metal paging

The switch registry grows by four rows (ashhart#1660's next group, all measured identical):
TENSORFOLD_DORY_KV_PAGES (opt-in, ashhart#1284), TENSORFOLD_GEMMA4_KV_PAGES and
TENSORFOLD_SPARK25_KV_PAGES (default-on, exact 0 opts out, ashhart#1619, ashhart#1653), and
TF_NEMOTRON_METAL_KV_PAGES, the first metal-backend row (exact 1, ashhart#1537). A new
.not_zero syntax covers Dory's on-unless-0 reader; the 0-opt-out rows reuse
report_values. The four readers go through the registry's environment-first
helper, so an unset variable and every set value behave byte for byte as before.
ashhart pushed a commit to devopsfortunato/TensorFold that referenced this pull request Nov 7, 2026
…and Nemotron's Metal paging

The switch registry grows by four rows (ashhart#1660's next group, all measured identical):
TENSORFOLD_DORY_KV_PAGES (opt-in, ashhart#1284), TENSORFOLD_GEMMA4_KV_PAGES and
TENSORFOLD_SPARK25_KV_PAGES (default-on, exact 0 opts out, ashhart#1619, ashhart#1653), and
TF_NEMOTRON_METAL_KV_PAGES, the first metal-backend row (exact 1, ashhart#1537). A new
.not_zero syntax covers Dory's on-unless-0 reader; the 0-opt-out rows reuse
report_values. The four readers go through the registry's environment-first
helper, so an unset variable and every set value behave byte for byte as before.
ashhart pushed a commit to devopsfortunato/TensorFold that referenced this pull request Nov 7, 2026
…and Nemotron's Metal paging

The switch registry grows by four rows (ashhart#1660's next group, all measured identical):
TENSORFOLD_DORY_KV_PAGES (opt-in, ashhart#1284), TENSORFOLD_GEMMA4_KV_PAGES and
TENSORFOLD_SPARK25_KV_PAGES (default-on, exact 0 opts out, ashhart#1619, ashhart#1653), and
TF_NEMOTRON_METAL_KV_PAGES, the first metal-backend row (exact 1, ashhart#1537). A new
.not_zero syntax covers Dory's on-unless-0 reader; the 0-opt-out rows reuse
report_values. The four readers go through the registry's environment-first
helper, so an unset variable and every set value behave byte for byte as before.
ashhart pushed a commit that referenced this pull request Nov 7, 2026
…and Nemotron's Metal paging

The switch registry grows by four rows (#1660's next group, all measured identical):
TENSORFOLD_DORY_KV_PAGES (opt-in, #1284), TENSORFOLD_GEMMA4_KV_PAGES and
TENSORFOLD_SPARK25_KV_PAGES (default-on, exact 0 opts out, #1619, #1653), and
TF_NEMOTRON_METAL_KV_PAGES, the first metal-backend row (exact 1, #1537). A new
.not_zero syntax covers Dory's on-unless-0 reader; the 0-opt-out rows reuse
report_values. The four readers go through the registry's environment-first
helper, so an unset variable and every set value behave byte for byte as before.
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.

3 participants