Repository navigation
Merge upstream main - #122
Merged
Merged
Conversation
plotarmordev
commented
Nov 21, 2026
Owner
- h3: MiniMax-H3-Image's VAE rules on the host, and Pillow's Lanczos-3 in core/picture
- h3: tf-h3-image on main: core for safetensors and its fixture, Model.load's io, and H3's Metal tools in h3_metal.zig
- changelog: h3: MiniMax-H3-Image's VAE rules on the host, and Pillow's Lanczos-3 in core/picture ashhart/TensorFold#2775 under Unreleased
- glm metal: vectorize pre-M5 Metal prompt, KDA, and indexer kernels
- glm metal: follow main column-group library split for pre-M5 affine kernels
- glm metal: follow main score tile sizing and affine source growth
- glm metal: retain main grouped-pipeline ownership with the pre-M5 split
- tests: re-pin the affine Metal source after glm metal: vectorize pre-M5 Metal prompt, KDA, and indexer kernels ashhart/TensorFold#3921's kernels and GLU split
- glm metal: prompt.zig and the Metal contract main back to 600 lines after main's glm metal: draft GLM-5.3-Flash with published DFlash2 behind --drafter ashhart/TensorFold#3920
- contract: GLM's M3 affine_mm entries in metal_affine.zig beside the half tiles
- changelog: glm metal: vectorize pre-M5 Metal prompt, KDA, and indexer kernels ashhart/TensorFold#3921 under Unreleased
- moss_image: torch.randn draws chained on one generator, for pipelines that draw several tensors
- h3: MiniMax-H3-Image's edit reference rules on the host: sizes, crops, grids, encoder layers, clean and anchor rows
- h3: MiniMax-H3-Image's edit encoder on Metal in fp32, tf-h3-image-encoder and its selftest
- docs: MiniMax-H3-Image's edit encoder in its recipe
- h3: the edit encoder, its reference rules and its tool read safetensors and pictures through core, as main does
- changelog: h3: MiniMax-H3-Image's edit encoder on Metal in fp32 (tf-h3-image-encoder) ashhart/TensorFold#2778 under Unreleased
- feat(ocr): add the GLM-OCR page reader
- test(ocr): prove a GLM-OCR page reads as its chat reply
- docs(ocr): document the GLM-OCR reader on POST /v1/ocr
- changelog: ocr: GLM-OCR reader on /v1/ocr (#2440 step 3) ashhart/TensorFold#2572 under Unreleased
- changelog: ocr: GLM-OCR reader on /v1/ocr (#2440 step 3) ashhart/TensorFold#2572 under Unreleased
- server: --vision-image-share fixed gives every image the same share of the visual-token budget (Multi-image prompts: the visual-token budget is split by image count, so a new image re-sizes the earlier ones and the prompt cache misses from the first image ashhart/TensorFold#2510)
- changelog: server: --vision-image-share fixed gives every image the same share of the visual-token budget (#2510) ashhart/TensorFold#2717 under Unreleased
- server: --execution-witness serves a read-scoped snapshot of what runs, or why it is unknown
- server: the witness race test's reader yields after each read, so the idle manager can take the lock and park on a busy runner
- server: the witness race test dates its idle window from now, so a runner booted under an hour ago still parks
- native: Qwen3.5-2B on CUDA attests the execution witness's first path, every weight byte read once the server is ready
- native: the witness stamps a captured kernel set before the load and reads hash_failed when it cannot stamp; excluded servers never read the weights, and --kv-cache, --prompt-precision and --rope-yarn are excluded
- native: the unstampable-files witness test keeps its expected hash_failed warning out of the test output
- server: remove duplicate witness imports after rebase
- server: server: "execution_witness": true binds a reply to the witness at admission and at its end, with its prompt, resolved request and tokens ashhart/TensorFold#2958's witness tests give start and bump the server and engine info they now take, and the changelog keeps native: Qwen3.5-2B on CUDA attests the execution witness's first path, every weight byte read once the server is ready ashhart/TensorFold#2956's line
- changelog: native: Qwen3.5-2B on CUDA attests the execution witness's first path, every weight byte read once the server is ready ashhart/TensorFold#2956's line from lines/2956.txt in place of its own
- changelog: native: Qwen3.5-2B on CUDA attests the execution witness's first path, every weight byte read once the server is ready ashhart/TensorFold#2956's line from lines/2956.txt in place of its own
- dsv41: serve structured output with the lane core's grammar masks
- docs: DeepSeek-V4.1 on CUDA serves structured output
- dsv41: op 28 is the grammar mask message alone, 29-31 stay free
- dsv41: time the grammar masks as a TF_DSV41_PHASES phase
- dsv41: the grammar tests cover draft trees, grammar_budget and the parallel walk
- dsv41: first_masked returns the pass's pick only under the pass's own bits
- dsv41: log draft-tree windows, and the first one under a grammar
- dsv41: the logprob rows read the trailing end token as the content does
- dsv41: two comments
- server: exercise grammar EOS with current live logprobs
- changelog: dsv41: serve structured output with the lane core's grammar masks (from #1665 by @nuk3s) ashhart/TensorFold#3026 under Unreleased
- prompt cache: keep message-start states by default on cut-invariant CUDA families (Prompt cache: keep a state at every message start, in every family, by default (exact) ashhart/TensorFold#3617 step 1)
- prompt cache: one cut-point switch for cut-invariant CUDA families
- style: keep message-start comments on one line
- test: include invariant cache rules in message-start host filters
- test: describe synthetic message-start checks precisely
- prompt cache: carry request cuts explicitly and restore capture protocol
- test: compare request-start snapshots with native CUDA state
- cuda request-start checks: follow main extracted runner help
- Follow main 39d443c's one-line comment limit
- changelog: prompt cache: Nemotron and LFM2 MoE on CUDA keep message-start states by default (#3617 step 1) ashhart/TensorFold#3696 under Unreleased
- drama3: one codec schedule for both backends, each backend binds only the kernels
- drama3: a build step compiles every codec binding, and the before/after check is a tool
- tools/drama3_codec_bytes.py: run resolves OUT, so a relative OUT no longer breaks --encode
- changelog: drama3: one codec schedule for CUDA and Metal, each backend binds only its kernels (#2118) ashhart/TensorFold#2893 under Unreleased
- moss image, step5 vision: RoPE frequencies from core's rope_freq (RoPE inverse frequencies: ~20 hand-written copies differ from transformers by 1-5 ulp, and some backends of one model disagree ashhart/TensorFold#1852, batch 11)
- moss image, step5 vision: the RoPE word tests print only when a comparison fails (RoPE inverse frequencies: ~20 hand-written copies differ from transformers by 1-5 ulp, and some backends of one model disagree ashhart/TensorFold#1852)
- changelog: RoPE: Dory (CUDA), MOSS-Image and Step-5 tables from core's exact helper (#1852 batches 10-11; values move) ashhart/TensorFold#1998 under Unreleased
- changelog: RoPE: Dory (CUDA), MOSS-Image and Step-5 tables from core's exact helper (#1852 batches 10-11; values move) ashhart/TensorFold#1998 under Unreleased
- moss image: the prompt encoder and image decoder on CUDA (moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- moss image: serve pictures on CUDA, recognized by the checkpoint's model_index.json (moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- moss image host: end the pass on the schedule's own length, and free the tokenizer fallback's path (moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- contract: the image decoder's unpack under gates 1-4 with its planted control and five-SM records (moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- contract: the image decoder's seven kernels under gates 1-4, controls and five-SM records (moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- contract: the decoder's softmax sums gate runs at the row it serves, and enforces fp16 instead of waiving it (moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- contract: the decoder's 3x3 convolution is gated at every picture a request asks for (moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- contract: the encoder's norm, head and gate under gates 1-4, and the decoder's 3x3 serves its residual launches (moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- contract: the encoder's silu_mul, conv and gated_norm under gates 1-4 with their controls and records (moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- docs: this pull request's changelog line under Unreleased, and the decoder's records no longer pending (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281, part of moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- contract: the encoder's attention, gdn_prep and gdn under gates 1-4, so all nine of its kernels carry controls and five-SM records (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281, part of moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- serve: the engine API's request types and the tokenizer readers live in their own files, so both parents stay under 600 lines (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- moss image: tf-moss-image encodes its own prompt and decodes its own picture, byte-identical to the served one (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281, part of moss_image: serve pictures over POST /v1/images/generations ashhart/TensorFold#1573)
- contract: the encoder's attention and gdn_prep drop their unnecessary bf16 waivers, so gate 4 enforces them, and the recipe lists all 24 kernels' suites (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- docs: the encoder and decoder are served through the host even though neither is a token family (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- build: the tool module's comment fits one line, so the lean check reports nothing new (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- contract: the controls file stays at 600 lines, and the moss includes' comment names the kernels they carry (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- docs: the recipe's encoder run names the case folder's own prompt file (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- build: tf-moss-image-blocks gets the tokenizer its shared root file imports, one table lookup for all three tools (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- contract: the moss controls' comment says each drops one arithmetic step (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- moss image host: a device OOM fails one picture, not the engine (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- moss image: the host quantises through the family's own quantiser (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- server: the tokenizer/ fallback has its own test (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- moss image: the moved tests keep the cases their originals pinned (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- contract: the moss controls live in their own file, and main's unpacked lines come back (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- moss image: an engine that stops serving logs at err, checked out of process (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- tests: the out-of-service check's comment fits 120 columns (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- moss image: the guidance-1 comment says what the step does (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- moss image: refresh source pins after the main rebase
- moss image: the recipe names the RTX 5090's 24-kernel summary apart from its transformer-only receipts (moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281)
- contract: admit the larger union with MOSS-Image's decoder and encoder kernels at comptime
- changelog: moss image: serve pictures on CUDA (encoder, decoder and host for #1573) ashhart/TensorFold#2281 under Unreleased
- glm(metal): prune inactive DFlash2 rows, gate tap capture, and cut sampled transition cost
- changelog: glm(metal): prune inactive DFlash2 rows, gate tap capture, and cut sampled transition cost ashhart/TensorFold#4257 under Unreleased
- server: --execution-witness serves a read-scoped snapshot of what runs, or why it is unknown
- server: the witness race test's reader yields after each read, so the idle manager can take the lock and park on a busy runner
- server: the witness race test dates its idle window from now, so a runner booted under an hour ago still parks
- Keep CLI within main's 600-line cap after the witness additions
- server: avoid duplicate witness test imports after rebase
- changelog: server: --execution-witness serves a read-scoped snapshot of what runs, or why it is unknown ashhart/TensorFold#2901 under Unreleased
- changelog: server: --execution-witness serves a read-scoped snapshot of what runs, or why it is unknown ashhart/TensorFold#2901 under Unreleased
- dsv41 metal: the decode MoE in four waves, one-row experts decode a word of codes at a time
- dsv41 metal: the DSpark drafter's head runs on its own FP8 copy, and a propose launch in one concurrent encoder
- dsv41 metal: the DSpark drafter's buffers stay resident in their own set
- dsv41 metal: the decode FP8 tile takes 16 columns for wide projections, wq_b and w2 from 5 rows, narrow ones never
- dsv41 metal: FP8 row blocks e and f decode each word where it is used and read X 8 bytes at a time
- dsv41 metal: the FP8 row and tile comments of the bandwidth change on one line each, as the lean rule asks
- dsv41 metal: a decode window's Engram reads start before its first layer runs, each layer's rows written just before the command buffer that reads it, and the next window's first row's reads start after the picks
- dsv41: DSpark candidates skip each block of logits none of which beats the list's last, the same list
- dsv41 metal: a window's keyed picks run a row a thread, each row's pick the same
- dsv41 metal: retain main's prompt admission check beside threaded picks
- dsv41 metal: a greedy window's next DSpark pass is queued right behind its verify (picks, acceptance, ingest and pass on the GPU) and kept when the host's commit matches; an ingest made before its window's commit is put back where the commit cuts it
- dsv41 metal: drain queued work in main's split prompt start
- Follow main's Metal module split for target picks
- dsv41 metal: keep the merged target within the source cap
- dsv41 metal: a sampled window's next DSpark pass is queued behind its verify too, its keyed picks raced over the row on the GPU and the chain kept only when the host's commit matches
- dsv41 metal: TF_DSV41_DSPARK_BLOCK sets the drafts a DSpark pass makes past the checkpoint's block, the cost depth's default cap following it
- dsv41 metal: a DSpark pass's candidates are picked a row a thread, each row's list the same
- dsv41 metal: a pass's DSpark drafts come from a chain on the GPU behind its head, the Markov bias over the whole vocabulary as the release adds it (greedy, and keyed rows the host races); TF_DSV41_MARKOV_GPU=0 keeps the host's chain over each row's 64 best
- dsv41 metal: a DSpark pass makes 7 drafts after a window that verified the checkpoint's whole block of 5 and 5 after any other (TF_DSV41_DSPARK_BLOCK, default 7), the narrow pass the same as the checkpoint's
- dsv41 metal: keep rebased served regressions in small files
- dsv41: leave room for TLS in candidate worker stacks
- changelog: dsv41 metal: DSpark drafts over the whole vocabulary on the GPU, 7 after full windows, same replies ashhart/TensorFold#3405 under Unreleased
- tokenizer: memo request gaps with no normalized added spelling
- tokenizer: fold two one-line notes into their lines, keeping tokenizer.zig within 600 lines
- tokenizer: a request gap is normalized once: the spelling check's normalized text goes into the encode step
- changelog: Tokenizer: request gaps with no normalized added spelling stay on the memo ashhart/TensorFold#2844 under Unreleased
- changelog: Tokenizer: request gaps with no normalized added spelling stay on the memo ashhart/TensorFold#2844 under Unreleased
- gemma4 cuda: a resumed prompt encodes only the images past its kept state (CUDA: skip the vision encoder for images a resumed prompt cache already holds ashhart/TensorFold#3133)
- qwen3_5 cuda: a resumed prompt skips only the tower runs its kept state holds (CUDA: skip the vision encoder for images a resumed prompt cache already holds ashhart/TensorFold#3133)
- flashnext cuda: on one rank, a resumed prompt sends only the images past its kept state through the tower (CUDA: skip the vision encoder for images a resumed prompt cache already holds ashhart/TensorFold#3133)
- tests: re-pin flashnext cuda_images.zig, cuda_images_test.zig and cuda_lanes.zig for cuda: a resumed prompt encodes only the images its kept state does not hold (Gemma 4, Qwen3.5, Flash Next on one rank) ashhart/TensorFold#3164
- flashnext cuda: resumeKept moves to cuda_lanes_snap.zig; CHANGELOG for cuda: a resumed prompt encodes only the images its kept state does not hold (Gemma 4, Qwen3.5, Flash Next on one rank) ashhart/TensorFold#3164
- changelog: cuda: a resumed prompt encodes only the images its kept state does not hold (Gemma 4, Qwen3.5, Flash Next on one rank) ashhart/TensorFold#3164 under Unreleased
- dsv41 lookup: add TF_DSV41_COPY_DRAFTER ranked band matching, doubling and yield gating (dsv41 lookup: add TF_DSV41_COPY_DRAFTER ranked band matching, doubling and yield gating ashhart/TensorFold#2638)
- dsv41: geometric lookup copy yield gate and review cleanups
- dsv41: name TF_DSV41_COPY_DRAFTER and TF_DSV41_LOOKUP in lookup-off refusal
- dsv41: price copy-drafter span continuations for >=8-token bands and move lookup-off check to env_validate
- dsv41: count only non-image continuation tokens below vbase in matchRanked
- rebase: adapt dsv41 lookup: add TF_DSV41_COPY_DRAFTER ranked band matching, doubling and yield gating ashhart/TensorFold#2638 to current main
- changelog: dsv41 lookup: add TF_DSV41_COPY_DRAFTER ranked band matching, doubling and yield gating ashhart/TensorFold#2638 under Unreleased
- cuda/roce: pair each peer's stripes by /24 so TF_ROCE=1 connects a switchless triangle
- cuda/roce: one copy of the /24 pairing rule, which fabric/tp imports too
- gradient-serving: re-pin cuda/root.zig for the RoCE pairing rule export (cuda/roce: pair each peer's stripes by /24 so TF_ROCE=1 connects a switchless triangle ashhart/TensorFold#3518)
- Format the main-first rebase and keep source modules within the cap
- Re-pin the merged serving sources while retaining both notes
- changelog: cuda/roce: pair each peer's stripes by /24 so TF_ROCE=1 connects a switchless triangle ashhart/TensorFold#3518 under Unreleased
- changelog: cuda/roce: pair each peer's stripes by /24 so TF_ROCE=1 connects a switchless triangle ashhart/TensorFold#3518 under Unreleased
- docs: record four below-target CUDA experiments on GB10 (SM121) in the optimization ledger (Record four below-target CUDA experiments on GB10 (SM121) ashhart/TensorFold#3741)
- docs(ledger): Record four below-target CUDA experiments on GB10 (SM121) ashhart/TensorFold#3741's experiments are rows 34-37, after main's row 33
- docs(ledger): Record four below-target CUDA experiments on GB10 (SM121) ashhart/TensorFold#3741's experiments are rows 35-38, after main's row 34
- changelog: docs: record four below-target CUDA experiments on GB10 in the optimization ledger (#3741) ashhart/TensorFold#4054 under Unreleased
- XPU 27B decode attention: dispatch the tree rows of a key slice back to back so they share it in L2
- Register XPU decode attention as a bit-equal replacement
- docs(xpu): attn_decode dispatches a slice's tree rows back to back
- XPU contract: attention bit-equality at tree widths 2, 4, 8 and 12 beside 1 and 16
- docs(contract): the attention registration's tree widths and its topology limit
- receipts: XPU 27B attention grid order (contract, token_sha, decode by depth)
- XPU contract: a planted control launches the new attn_decode on the old (slices, heads, rows) grid
- ledger: the XPU 27B decode attention grid order, a grid-only change, and its unrun cases
- xpu: retain TP contract images and keep documentation within 600 lines
- changelog: XPU 27B decode attention: tree rows of a key slice run back to back (bit-identical, +23 % at 32K, +33 % at 131K) ashhart/TensorFold#2595 under Unreleased
- changelog: XPU 27B decode attention: tree rows of a key slice run back to back (bit-identical, +23 % at 32K, +33 % at 131K) ashhart/TensorFold#2595 under Unreleased
- kernel contract: the relu2 width records at the records' hipcc
- changelog: Kernel contract: the HIP relu² stream tile at 5, 6 and 8 bits (part 1 of 3 for #3061) ashhart/TensorFold#3163 under Unreleased
- Release 1.3.3: the version, install examples and changelog
- changelog: Unreleased above 1.3.3
- changelog: lane host: concurrent identical prompts join a filling leader's whole fill ashhart/TensorFold#3693's thanks names @bikepresentball
- torch pth: reject overflowing tensor shapes
- changelog: torch pth: reject tensor shapes whose element count overflows
- changelog: torch pth: reject tensor shapes whose element count overflows ashhart/TensorFold#4322's line from lines/4322.txt in place of its own
- docs: the first gfx1201 Flash Next tp 2 receipt and its recipe
- changelog: docs: the first gfx1201 Flash Next tp 2 receipt and its recipe ashhart/TensorFold#3608 under Unreleased
- changelog: CUDA on GB10: the memory budget is at most CUDA's free memory, after the checkpoint's cached pages are dropped ashhart/TensorFold#3192 back under Unreleased (left out of 1.3.3)
- feat(qwen): enable dense MTP drafting
- Keep the main scan owner and both prompt fixture lifetimes
- Re-pin the merged MTP launches with the main scan location
- One blank line less in the Qwen3.5 CUDA native file (600-line cap)
- qwen3_5 cuda native: the file stays at 600 lines on today's main
- changelog: Qwen3.5-family CUDA: enable dense MTP drafting ashhart/TensorFold#3582 under Unreleased
- changelog: Qwen3.5-family CUDA: enable dense MTP drafting ashhart/TensorFold#3582 under Unreleased
- glm cuda: gate PDL on compute capability
- glm q4 cuda: honor global PDL policy
- build: the GLM Q4 PDL host test stays out of Windows test runs (libc setenv)
- idol: DINOv3 ViT-H+/16 image encoder on Metal, with tf-idol-dino and idol_case.py dino
- contract: Idol's DINOv3 kernels through gates 1-5; the recipe and changelog line
- tests: the idol dino Metal limits branch keeps running across unsupported probes, as 5a4583c asks
- idol: keep the combined module summary within the lean limit
- changelog: idol: the DINOv3 ViT-H+/16 image encoder on Metal (stacked on #1766) ashhart/TensorFold#1775 under Unreleased
- fix: close native and app adversarial bypasses
- sessions: move disk page mapping into its own file
- ci: limit landing train job skips to same-repository pull requests
- cluster: attach the SSH comment only to its function
- app: split remote-control request limit tests
- changelog: Hardening: native engine, desktop app and Web server fail closed on malformed input
- changelog: Hardening: native engine, desktop app and Web server fail closed on malformed input ashhart/TensorFold#4381's line from lines/4381.txt in place of its own
- changelog: back under Unreleased
- changelog: Hardening: native engine, desktop app and Web server fail closed on malformed input
- changelog: Hardening: native engine, desktop app and Web server fail closed on malformed input ashhart/TensorFold#4381's line from lines/4381.txt in place of its own
- feat: load exact runtime LoRA overlays
- changelog: Core: load exact runtime LoRA overlays
- changelog: Core: load exact runtime LoRA overlays ashhart/TensorFold#4384's line from lines/4384.txt in place of its own
- changelog: back under Unreleased
- cuda_disk_test: wait for the write worker, not a 3 s wall clock
- tf_compile_test: gate the deadline race on events, not a 5 s fuse
- store_test: name the chats test's run time and check rows a slice at a time
- tests: one-line comments in the cuda_disk and store tests (lean)
- changelog: Tests: three host tests wait on events, not wall clocks ashhart/TensorFold#4358 under Unreleased
- idle-unload tests: wait on the ticker's event and the manager's condition, not the clock
- idle-unload tests: the two wait helpers' comments on one line each (lean)
- changelog: idle-unload tests: wait on the ticker's event and the manager's condition, not the clock ashhart/TensorFold#4352 under Unreleased
- flashnext cuda: a shared pass gathers every stream's n-gram rows in one pool call
- docs/receipts: the pooled n-gram gather measured against main on a GB10
- Flash Next gather: follow main 3072-row prompt source identities
- tests: re-pin serving source after rebase onto main (Flash Next on CUDA: one pooled n-gram gather for every row a shared pass needs ashhart/TensorFold#4009)
- Count the pooled-gather switch in the Flash Next environment inventory
- changelog: Flash Next on CUDA: one pooled n-gram gather for every row a shared pass needs ashhart/TensorFold#4009 under Unreleased
- qwen27: the MTP head's weights load from mtp-4bit.safetensors beside a deferred model
- qwen27: the MTP head's forward, its block one past the target's layers on the runner's attention
- qwen27: the MTP head writes its own logits and chains from its own output rows
- qwen27 metal: --mtp-drafts and --mtp-confidence, the MTP head drafting slot 0's chains on Macs without tensor units
- qwen27 metal: MTP's refusals as host tests, its keys in the memory fit and the disk identity, no head pass in shared rounds
- qwen27 metal: the MTP head's KV in reserve.fit's ring, after main's b4d4795
- The 27B's MTP head drafts through the lane core's Drafter, as CUDA's does
- qwen27 metal MTP: the disk identity hashes the head's word only when it is on; docs for --mtp-drafts and TF_Q27_DRAFT_SLOTS
- qwen27 metal MTP: --mtp-drafts is refused by name with TF_QWEN27_METAL_KV_PAGES=1
- qwen27: the MTP head's pass beside its forward, the startup line in its own file
- qwen27 metal MTP: the head drafts every stream's chains, and the recipe names the K/V pages refusal
- qwen27: the keys-only prompt tail's runner facts and pass beside its rule, so decode_round.zig is under 600 lines
- qwen27 host: fold six comments so qwen27_served.zig stays under 600 lines
- qwen27 served: read the page setting through its error union
- qwen27 metal: keep merged modules within the 600-line cap
- qwen27 metal: keysForward's layer index is attn_block, since main's prompt tail now declares block
- changelog: Qwen3.8-27B on Macs without tensor units: --mtp-drafts drafts with the checkpoint's MTP head, through the lane core's drafter as on CUDA ashhart/TensorFold#2464 under Unreleased
- glm cuda: the latent row width and cache count are parameters of pages, state and snapshot plans (Full GLM-5.3 (glm_moe_dsa) on three DGX Sparks: a native CUDA family (step 5 of #593) ashhart/TensorFold#3063)
- glm cuda: the DSA indexer's pool size, key store and index rope are parameters (Full GLM-5.3 (glm_moe_dsa) on three DGX Sparks: a native CUDA family (step 5 of #593) ashhart/TensorFold#3063)
- glm cuda: the latent path takes full GLM-5.3's 576-wide roped rows on the mla image (Full GLM-5.3 (glm_moe_dsa) on three DGX Sparks: a native CUDA family (step 5 of #593) ashhart/TensorFold#3063)
- changelog: glm cuda: Flash pieces take full GLM-5.3's shapes (slice (a) of #3063) ashhart/TensorFold#3949 under Unreleased
- glm index emulator: sincosf on macOS, whose libm does not declare it (glm cuda: Flash pieces take full GLM-5.3's shapes (slice (a) of #3063) ashhart/TensorFold#3949)
- Follow main 7948cc4 GLM dependent launches in host recorders
- Re-pin changed GLM CUDA sources after glm cuda: Flash pieces take full GLM-5.3's shapes (slice (a) of #3063) ashhart/TensorFold#3949 on current main
- changelog: glm cuda: Flash pieces take full GLM-5.3's shapes (slice (a) of #3063) ashhart/TensorFold#3949's line from lines/3949.txt in place of its own
- changelog: glm cuda: Flash pieces take full GLM-5.3's shapes (slice (a) of #3063) ashhart/TensorFold#3949's line from lines/3949.txt in place of its own
- docs: add gfx1201 flash-next world-4 receipt at 6fc30cf
- docs: address review on the world-4 receipt README
- changelog: docs: add gfx1201 flash-next world-4 receipt at 6fc30cf0b ashhart/TensorFold#4210 under Unreleased
- lanes: take perf(lanes): price a lone stream's copy windows from its own timed rounds ashhart/TensorFold#3728's lone-stream copy pricing out again
- hip: keep the copies-only plain guard test after the pricing revert
- changelog: lanes: take #3728's lone-stream copy pricing out again (M3 drafted decode) ashhart/TensorFold#4078 under Unreleased
- contract: GLM's routed-expert row launches resolve to glm_rows.metal for gate 5
- contract: GLM's KDA and index texts carry the pre-M5 define the loader adds
- contract: GLM's index case launches the pre-M5 kernel as the loader does; its record declares 18432 bytes
- changelog: GLM Metal contract: runs to the end on M1 to M4 Macs, and gate 5 resolves routed-expert rows ashhart/TensorFold#4397 under Unreleased
- core: gate lane explore idle arrivals on active yield points
- changelog: tests: lane host explore replay holds idle sends behind active yield points ashhart/TensorFold#4414 under Unreleased
- A request's cache_salt (chat, completions, Responses and Messages), and with serve --cache-salt-per-key the API key it matched, is hashed with HMAC-SHA-256 under the server's tool-call id key and masks the first four words of the lane host's cache key. A kept state is then resumed only by a request with the same salt; with no salt the request is keyed exactly as before, and tokens never change.
- Carry per-key OCR salt into each page and prove route isolation
- Preserve image-word bits in salted prompt keys and refuse a high-bit marker word
- Follow main's 600-line server files with config splits
- Follow main's added model-list goldens for cache-salt capability
- test: declare block geometry in cache-salt OCR fixture
- changelog: Prompt cache salts: cache_salt and serve --cache-salt-per-key keep kept prompt states apart ashhart/TensorFold#3222 under Unreleased
The API guide named one reader. It now lists GLM-OCR with its single page block, the header and footer refusal for a reader without boxes, and the context a dense page needs under GLM-OCR's default window; the changelog line stays with the maintainer.
…f the visual-token budget (ashhart#2510) The default stays the per-request split, so replies without the flag are unchanged. With fixed, each image takes --vision-image-tokens / --vision-max-images whatever the request's image count, so a turn that adds an image leaves earlier images' rows where they were and the prompt cache resumes from the first image. A share of 0 is refused naming both flags.
…s, or why it is unknown
… idle manager can take the lock and park on a busy runner
…nner booted under an hour ago still parks
…, every weight byte read once the server is ready
…reads hash_failed when it cannot stamp; excluded servers never read the weights, and --kv-cache, --prompt-precision and --rope-yarn are excluded
…iled warning out of the test output
…nd engine info they now take, and the changelog keeps ashhart#2956's line
DeepSeek-V4.1's LaneHost set no .structures, so the server answered response_format, the guided_* fields and required or named tool calls with HTTP 400 (ashhart#847). The lane backend now passes each window's grammar bits to the target in Segment.masks, and before a prompt's pick it passes the first token's bits from the stream's own grammar (Target.first_mask). first_masked checks the prompt's pick against the bits the lane core asks for. With TF_DSV41_TAIL_JOIN, a joined prompt's first draft keeps only a count of held drafts, so the first round's plan has held drafts, and windows.constrain walks them with the grammar through Backend.held. Lanes.heldChain gives them: the held chain's drafts, the same tokens that `verify` puts in a window's held rows. Only constrain reads `held` here (dsv41 sets no context_copies). On the GPU target, grammar_gpu.zig fills the Forward.grammar hook. Before each forward's picks, rank 0 stages the masked rows and sends their row ids and bits to the other ranks on the plan link (op_grammar). Before a greedy or keyed pick reads "w.logits", every rank copies those rows to pinned memory, sets the logits of disallowed tokens in its vocabulary part to -inf and writes them back. Each run of adjacent masked rows is one copy each way. The pinned buffer (64 rows of the rank's part) is allocated at load, so a pick allocates nothing after rank 0 sends its op. A request without a grammar, and a row that allows every token, send and copy nothing. Tree windows give each chain row its tree row's bits; row windows stage once per forward. A nucleus row (top_p without top_k) whose grammar masks a rank's whole vocabulary part gave that rank the statistics (-inf, NaN), and keepCount sent the row to the whole-row gather. keepCount now leaves such a rank out of the sum: every logit it holds is -inf, so it adds 0. No finite sum changes, and a row without a grammar never has such a rank. With ignore_eos the server kept every end token in the reply's text, so a grammar's stop token came back at the end of the content: '{"key": "value"}<|end▁of▁sentence|>' on the GPUs. The lane core already ends the reply on it. The server's Generation now follows the request's grammar, from the token after `</think>` with thinking on. Under it an end token is the grammar's stop token, so it ends the reply as without ignore_eos: finish reason stop, and out of the text and the stream. The commit loop moves the grammar's phase token by token, so each end token is judged at its own phase. The stream still scans the whole landed round, and eos_phase.zig replays the phase from the round's start: an end token in the reasoning and the grammar's stop can land in one round, and judged at the round's last phase the first one would end the stream. End tokens before the grammar starts, and all end tokens without a grammar, stay in the text. draft/lanes_grammar_test.zig runs the lane engine over the CPU twin with a test grammar: greedy and keyed replies equal the twin's masked serial decode, drafted, with drafts off and four at once. A third test runs the prompts in pieces with a `tail` that leaves the last row to the first round, as the GPU target does, and joins them with one draft call or one each. A sampling_test.zig case masks one rank's whole part of two nucleus rows: the picks equal one rank's and the whole rows', and no row is gathered whole (2 before the keepCount change). grammar_gpu_test.zig covers the staged rows, the plan-link message, a rank's mask and the copy runs. hf_eos_http_test.zig sends a json_object chat request with ignore_eos on the DeepSeek-V4.1 test tokenizer, thinking off and on, whole and streamed, in rounds of every size from one token to the whole reply. Each round's reasoning and content stream with it: judged at the round's last phase, the whole-reply round streams its reasoning in 2 pieces, not 1.
The structured output section gains a line for dsv41-cuda beside GLM's CUDA backend: rank 0 sends each pick's grammar rows to the other ranks, and every rank masks its own vocabulary columns before the pick. The ignore_eos paragraph says that a grammar's stop token still ends the reply, out of the text.
The followers take the mask bits rank 0 sends, so op 28 has no bind, step or release sub-op any more. The note says so, and it no longer claims 29-31.
The new `grammar` phase covers one pick's masked rows: the copy out, the host mask and the copy back. With TF_DSV41_PHASES=sync it syncs at both ends, so with drafts off its ms_avg is the cost of one masked row.
…rallel walk The lanes grammar test now also runs its cases with first-position siblings (TF_DSV41_TREE 2-4) on the CPU twin, four at once and alone: every reply equals its masked serial decode, and the twin counts the tree windows it ran (more than 0 in each run). The test grammar gains an optional early stop and a grammar_budget hook that keeps only the stop token once a longer reply could not end within the draws left. With the budget armed and max_new below the full length, the drafted, "draft": false, tree, four-at-once and solo replies all end on the stop token within max_new and equal the serial decode under the same budget. The same grammar without the bound runs past max_new. The test grammar's matchers are independent, so it sets parallel_walk, and four constrained streams take the lane core's worker pool (ashhart#1455). The four-at-once case now checks that the pool ran.
… bits The lane core calls Backend.first_masked after the prompt pass to draw the first token among the grammar's bits. DeepSeek's lanes draw it in the pass itself: before `prefill`, `finish` or `join` they take the stream's first-token bits (Constraint.next), and the target draws the prompt's last row among them. lanes_first.zig now states this contract and first_masked checks it. The grammar takes no token between that call and Engine.drawFirst, so drawFirst passes the same bits. first_masked compares them word for word with the bits the pass drew under (error.FirstMaskChanged when they differ, and when the pass drew without bits), checks that the pick is among them (error.FirstNotMasked), and returns the pass's pick as `first` does. It runs no forward, writes no KV row and calls no drafter. Before, it only checked the pick against the bits it was given. The pass's bits are a copy in the stream's St (first_bits), freed with it. The pick stays in the pass, and is not drawn in the callback from a kept row as Gemma 4's CUDA backend does, because on DeepSeek it is the TP=2 forward's own pick: rank 0 sends the row's bits on the plan link and every rank masks its part of the vocabulary first. A later draw would need its own plan-link op and a logits row kept per slot on every rank. With TF_DSV41_TAIL_JOIN the first token comes from the first round's window, under the lane core's mask for its pending row, so first_masked is not called; when the target runs the tail row anyway (`tail` returns its pick), it is. lanes_first_test.zig drives the backend over the CPU twin with a target that runs prompts as the GPU target does: whole, in pieces, after a prefix that `begin` puts in place as a cache hit does, and joined with the tail row run. On each path, under a grammar that refuses the twin's unmasked first token, greedy and keyed: the pick equals the masked serial decode's first token; the KV rows, taps and drafter rings equal the unmasked pass's, so the bits changed only the pick; first_masked leaves them and the lanes' state as they were and adds one handle; other bits are refused with error.FirstMaskChanged, and the state stays the same. That includes bits one token away from the pass's that still allow its pick: with the pick-only check the test fails, because it takes them. A target that draws the pick without the bits is refused with error.FirstNotMasked. Through the lane engine, three replies at once whose prompts came whole, in pieces, cached, joined or tail-run equal their masked serial decode.
TF_DSV41_TREE resolves each tree window as chain windows (branches.zig), and its counts reached only the gates. Rank 0 now logs them as it logs piece and replay runs, at the first tree window, at the first one with a row its grammar narrows and at every 256th: "tree windows: N (M under a grammar), C chains, R rows run again". M counts a window only when a row's bits refuse a token, so a grammar that allows everything at that point does not count. A structured-output run with trees on can then show that tree windows ran under its grammar.
This branch made the reply's content tokens keep a trailing end token only when no grammar was on, and left server/logprobs.zig on the older rule. On main the two agreed, so the branch opened the gap: with logprobs, ignore_eos and a grammar, a streamed reply's last logprob row would carry the stop token that the content dropped. No request reaches it today. openai.zig refuses logprobs together with structured output, tools, stop strings or a thinking budget, and that is the only place a request sets logprobs. The rule still belongs in one place. eos_phase.Phase gains keepsTrailing, the negation of the condition ends applies. The content tokens and both logprob delta calls now read it from one place, beside the rule that decides whether the token ends the reply at all.
eos_phase.zig: keepsTrailing's comment on one line. forward_follow.zig: drop the history note on op_grammar.
…UDA families (ashhart#3617 step 1)
Main 7948cc4 routes GLM launches through cuLaunchKernelEx. Forward that entry through main's pdl.forwardEx in the new recording fixtures and keep the merged code in zig fmt style.
First world-4 Flash Next receipt on HIP: Qwen3.8-Flash-Next-MLX-oQ2-MTP at --tp 4 on four Radeon AI PRO R9700, with a same-binary world-2 control run isolating the world effect. Decode 122.9 tok/s, concurrent code 123.8/242.0, chat 103.5/205.2, cold prefill 1412/1358/1263 tok/s; all alone and serial comparisons equal. Refs ashhart#2401.
Point the build note at provenance.json (build.log is the build's quiet output), reference ashhart#3608 for the tp 2 receipt until it lands, and regenerate the README.md line in SHA256SUMS.
On an M3 Ultra it made Qwen3.8-27B with the DFlash2 drafter verify more drafted rows that do not land: 108 rows for 54 accepted drafts on a 16K prompt against 99 before, the same tokens, decode 3.7% slower. 1.3.0 ships without it; this brings main back to the same lane code until the pricing is fixed for every family.
…for gate 5 The 14 'glm moe rows' records (9e52d73) fell to the generic 'glm ' branch of the Metal limits resolver, whose key, 'moe', names no generated kernel: the device pass stopped at error.UnknownLaunch after glm_rows_wide_q8. They take the gather source the loader builds them from (glm/wide.zig), as 'glm rows ' does.
…r adds ashhart#3921 made kernels.zig put `#define TF_GLM_M3_FAST 1` before the KDA prompt passes and glm_index_nax.metal on a GPU without tensor units. The KDA and index contracts still built those texts without it, so on an M3 the loader check refused them ("GLM contract text is not one the loader compiles") and the whole GLM contract stopped before its first case. Both texts now follow the loader, and gate 5's pre-M5 texts carry the define too.
…oes; its record declares 18432 bytes On a GPU without tensor units the case compiles glm_index_nax.metal with TF_GLM_M3_FAST (ashhart#3921, ashhart#4397), whose threadgroups cover 32 rows with 4 simdgroups, but encode launched it as on M5: scoreRows' 64 or 128 rows a group and 2 x rows threads. Rows past 32 x the groups' count were never written (256 x 128 x 16384: rows 64 on, byte 1065728), so the shapes gate compared unwritten floats against main's scores. The case now launches it as selectKeys does (glm/prompt.zig: 32 rows, 128 threads); rows it wrote matched main's bytes already, and the kernel is unchanged. Before M5 the planted control moves into the pre-M5 branch (both simdgroups of a row pair on the same 32 blocks), since the M5 branch it edited is not compiled there. The pre-M5 kernel stages 128 x 72 bf16 (18432 bytes) of keys; the record declared 17408 (the M5 tile, 64 x 136), so gate 5's limit now declares 18432.
…ream-main # Conflicts: # docs/recipes/README.md # zig/build/h3_image_encoder.zig # zig/src/core/contract/registry_joins.zig # zig/src/core/picture/resample.zig # zig/src/families/h3/geometry_test.zig # zig/src/families/h3/h3.zig # zig/src/families/qwen27/decode_round.zig # zig/src/families/qwen27/forward.zig # zig/src/families/qwen27/gpu_weights.zig # zig/src/families/qwen27/mtp.zig # zig/src/native/cuda.zig # zig/src/native/metal.zig # zig/src/native/qwen27_lanes.zig # zig/src/native/qwen27_served.zig # zig/src/server/cli.zig # zig/tests/cuda/contract_compile.zig # zig/tests/cuda/contract_tests.zig # zig/tests/cuda/main.zig # zig/tests/h3_image_encoder.zig
…nd with serve --cache-salt-per-key the API key it matched, is hashed with HMAC-SHA-256 under the server's tool-call id key and masks the first four words of the lane host's cache key. A kept state is then resumed only by a request with the same salt; with no salt the request is keyed exactly as before, and tokens never change. Salted states stay in RAM: the disk writer, reader and --learn already refuse high-bit words, so the disk format is unchanged. A salted request neither drafts from nor adds to Recall's record and neither reads nor writes --compact-memory notes; the server's own requests for a salted conversation (warm pass, compaction notes, Cortheon's planner and kept rounds) keep the salt, and a salted /v1/imprint ask looks up its own states. Engines whose cache is not the lane host's store refuse a salted request with 400 and refuse to start with --cache-salt-per-key. The request log redacts the salt, and /v1/models publishes capabilities.cache_salt. Fixes ashhart#3196
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.