Repository navigation
Merge upstream main - #156
Merged
Merged
Conversation
plotarmordev
commented
Nov 24, 2026
Owner
- nemotron cuda: opt-in shared rounds of 16 streams and 32 rows (TF_NEMOTRON_WIDE_ROUNDS)
- nemotron cuda wide rounds: the shared window takes the round's rows (fixes WindowTooWide)
- nemotron cuda wide rounds: each part of a round's attention starts at its own rows (REV60 1)
- nemotron cuda wide rounds: not with Sliding Weights (REV60 2)
- nemotron cuda wide rounds: a stream's own rows stay within its window (REV60 3)
- nemotron cuda wide rounds: the lanes learn what a row past 16 costs (REV60 4)
- nemotron cuda: the shared-widths check sends the rounds the switch allows (REV60 5)
- tests: wide rounds' device contract takes ModelOpt's FP8 and bf16 dense rows too (REV60 6)
- nemotron cuda wide rounds: the switch set where it cannot apply says why (REV60 7)
- tests: re-pin nemotron_ops.cu and qlinear.zig, which this change touches
- nemotron cuda wide rounds: saved lessons put rounds back at 8 streams (REV74 1)
- nemotron cuda wide rounds: the attention walk models every plane, paged caches and 32 rows (REV74 2)
- nemotron cuda wide rounds: direct calls follow the switch's stream count; conv checks its rows (REV74 4)
- nemotron: a draft call batches the switch's streams, 8 with it off
- nemotron: with wide rounds off, sizes, plans and kernel paths are main's
- tests: re-pin qlinear.zig, which is main's again
- changelog: nemotron cuda: opt-in wide decode rounds (up to 16 streams; off changes nothing)
- qwen: one EOS rule for the family readers; qwen27 reads generation_config.json (Qwen 3.5/3.8: one EOS rule for the family readers (qwen27 drops generation_config; HIP unions root and tower) ashhart/TensorFold#3701)
- changelog: qwen: one EOS rule for the family readers; qwen27 reads generation_config.json ashhart/TensorFold#4678 under Unreleased
- Bound request web DNS work by the existing resolver deadline and worker cap
- changelog: server: web fetch hostname lookup through the bounded resolver ashhart/TensorFold#4551 under Unreleased
- server: per-family tool-call render and parse conformance test
- changelog: tests: tool-call render and parse conformance per chat template ashhart/TensorFold#4555 under Unreleased
- lane host: a stepped pass gives its restored entry back after its first call
- lane host: no stream admitted beside a fill that has not begun with its kept state borrowed
- lane host: a filling job lends its kept state back until its first call
- prompt cache: every entry the store holds has its own serial, never 0
- lane host: a lent job's own kept state stays protected
- lane host: a lent state gone at the first call is looked up again, as at admission
- lane host: a first call's rows are counted from what it resumes after its reborrow
- changelog: lane host: a waiting stream no longer pins its kept prompt state ashhart/TensorFold#4751 under Unreleased
- uocr: stop a cancelled request during image encoding and prefill
- changelog: uocr: stop a cancelled request during image encoding and prefill ashhart/TensorFold#4528 under Unreleased
- docs: the optimization ledger's cells for PRs that landed since, and lfm2_moe's CUDA column
- changelog: docs: the optimization ledger's cells for PRs that landed since, and lfm2_moe's CUDA column ashhart/TensorFold#4580 under Unreleased
- Idol decoder contract: round P at the tile maxima, quicker gate 4 (after idol: the octree and Gaussian decoders on CUDA (stacked on #1773, #1767; not yet run on a GPU) ashhart/TensorFold#1858)
- changelog: Idol CUDA decoder contract: tile-max P rounding in the reference, quicker self-attention gate 4 ashhart/TensorFold#4508's line from lines/4508.txt in place of its own
- changelog: Idol CUDA decoder contract: tile-max P rounding in the reference, quicker self-attention gate 4 ashhart/TensorFold#4508's line from lines/4508.txt in place of its own
- speech: Drama 3's voices through speech_voices.zig, and sampling defaults through parseFrom
- changelog: speech: Drama 3's voices through speech_voices.zig, and sampling defaults through parseFrom ashhart/TensorFold#4609 under Unreleased
- changelog: Idol CUDA decoder contract: tile-max P rounding in the reference, quicker self-attention gate 4 ashhart/TensorFold#4508's line from lines/4508.txt in place of its own
- changelog: speech: Drama 3's voices through speech_voices.zig, and sampling defaults through parseFrom ashhart/TensorFold#4609 under Unreleased
- docs: add Room and Kanban highlights to Desktop changelog
- changelog: docs: add Room and Kanban highlights to Desktop changelog ashhart/TensorFold#4376 under Unreleased
- changelog: each line once under Unreleased
- changelog: Idol CUDA decoder contract: tile-max P rounding in the reference, quicker self-attention gate 4 ashhart/TensorFold#4508's line from lines/4508.txt in place of its own
- changelog: speech: Drama 3's voices through speech_voices.zig, and sampling defaults through parseFrom ashhart/TensorFold#4609 under Unreleased
- docs: add the measured world-4 serve path to the HIP recipe
- changelog: docs: add the measured world-4 serve path to the HIP recipe ashhart/TensorFold#4669 under Unreleased
- changelog: each line once under Unreleased
- changelog: Idol CUDA decoder contract: tile-max P rounding in the reference, quicker self-attention gate 4 ashhart/TensorFold#4508's line from lines/4508.txt in place of its own
- changelog: speech: Drama 3's voices through speech_voices.zig, and sampling defaults through parseFrom ashhart/TensorFold#4609 under Unreleased
- changelog: docs: add the measured world-4 serve path to the HIP recipe ashhart/TensorFold#4669 under Unreleased
- docs: a plan for Inkling 2 Mini on CUDA and Metal in claimable slices
- docs: name the upstream references for Inkling 2 Mini's loop and experts
- docs: the plan author's hardware and the coverage it leaves open
- docs: SGLang's pull request as a second candidate for the expert reference
- docs: record the agreed decisions and gate for Inkling 2 Mini, and what the tiny checkpoint covers
- docs: name MiniMax M3 as M6's Metal drafter, refuse --loops in the gate, and record Inkling-2-Small: Add embeddings, router, and other glue kernels ashhart/TensorFold#4126 as landed
- changelog: docs: a plan for Inkling 2 Mini on CUDA and Metal in claimable slices ashhart/TensorFold#4274 under Unreleased
- changelog: each line once under Unreleased
- metal: Nemotron's expert up and down kernels from one source each (metal: unify duplicated kernels (attention partials, norms, gemm_nax wrappers, glue, RoPE) ashhart/TensorFold#2251)
- changelog: metal: Nemotron's expert up and down kernels from one source each (#2251) ashhart/TensorFold#4738 under Unreleased
- changelog: metal: Nemotron's expert up and down kernels from one source each (#2251) ashhart/TensorFold#4738 under Unreleased
- docs: credits say the native CUDA engine serves EXL3 packs
- changelog: docs: credits say the native CUDA engine serves EXL3 packs ashhart/TensorFold#4743 under Unreleased
- Docs: GLM-5.3-Flash on Metal shares 16 rows between streams and drafts
- changelog: Docs: GLM-5.3-Flash on Metal shares 16 rows between streams and drafts ashhart/TensorFold#4722 under Unreleased
- lanes/depth: price full fixed_draft_block head cost in lone roundCost
- changelog: lanes/depth: price full fixed_draft_block head cost in lone roundCost ashhart/TensorFold#4457 under Unreleased
- metal: Nemotron's and Qwen3.8-27B's prompt pick from one source (metal: unify duplicated kernels (attention partials, norms, gemm_nax wrappers, glue, RoPE) ashhart/TensorFold#2251)
- metal: LFM2's prompt pick from the same source (metal: unify duplicated kernels (attention partials, norms, gemm_nax wrappers, glue, RoPE) ashhart/TensorFold#2251)
- changelog: metal: Nemotron's, Qwen3.8-27B's and LFM2's prompt pick from one source (#2251) ashhart/TensorFold#4739 under Unreleased
- placeholder
- qwen27: prompt row blocks at every non-reg width on every tensor-unit Mac
- test: qwen27 quant dispatch follows tensor-unit row blocks off Ultras
- remove stray marker file
- qwen27: one-line row-block gate comment
- qwen27: restore deinit's lanes iterator
- changelog: Prefill 8bit prompt windows ashhart/TensorFold#3280 under Unreleased
- changelog: Prefill 8bit prompt windows ashhart/TensorFold#3280 under Unreleased
- lanes: the shared price log covers the shared-drafts grant path
- changelog: lanes: the shared price log covers the shared-drafts grant path ashhart/TensorFold#4686 under Unreleased
- tests: the lone driver's third-prompt test holds its queue state at a gate and bounds its waits
- changelog: tests: the lone driver's third-prompt test cannot miss its queued state ashhart/TensorFold#4783 under Unreleased
- lane host: test a long prompt split beside a live stream
- tests: the live-chunk cases pin the 512-row cap as a number
- changelog: tests: capped prompt chunk cuts while other streams are live ashhart/TensorFold#4579 under Unreleased
- capabilities: declare TENSORFOLD_PARALLEL and the other serve-read variables
- capabilities: declare newer common environment rules
- changelog: server: declare TENSORFOLD_PARALLEL and other honoured variables in capabilities ashhart/TensorFold#4588 under Unreleased
- qwen27 metal: load a dense tied head from the embedding, opt-in
- CoS adaptation: preserve qwen27 generation config parsing
- changelog: qwen27 metal: accept tied embedding heads ashhart/TensorFold#4519 under Unreleased
- host: publish the lane status as a snapshot a reader copies without the round's lock
- host: move the status state into the status module and keep the host file under the line limit
- host: publish the fill and queue state so a reader sees fills end and the queue grow at once
- host: age snapshot decode marks at read time
- host: protect snapshot slots and publish terminal status
- host: leave an empty snapshot after slot teardown
- changelog: host: the lane status read copies a snapshot the engine thread publishes ashhart/TensorFold#4525 under Unreleased
- flashnext metal: opt in to non-replay GDN for wide batch segments
- changelog: flashnext metal: opt-in non-replay GDN for 8- and 16-row batch segments ashhart/TensorFold#4489 under Unreleased
- changelog: flashnext metal: opt-in non-replay GDN for 8- and 16-row batch segments ashhart/TensorFold#4489 under Unreleased
- test(qwen cuda): device proof for 512-row prefill cuts
- changelog: tests: GB10 proof for capped prompt cuts on Qwen CUDA ashhart/TensorFold#4586 under Unreleased
- uocr: cancel-test fakes leave GPU handles undefined instead of zeroing non-null pointers
- qwen35: opt into all-length BF16 attention rows
- rebase: keep Qwen CUDA engine within line cap
- changelog: qwen35 cuda: opt-in all-length rows attention for multi-row BF16 decode windows ashhart/TensorFold#4496 under Unreleased
- changelog: qwen35 cuda: opt-in all-length rows attention for multi-row BF16 decode windows ashhart/TensorFold#4496 under Unreleased
- gemma4 metal: step the prompt pass a chunk a call, so other streams decode between chunks
- build: the Gemma 4 Metal stepping host step joins nativeServer in metal_server.zig
- changelog: gemma4 metal: prefill runs a chunk a call, so a new prompt no longer freezes other streams' decode (#3021) ashhart/TensorFold#3025 under Unreleased
- changelog: qwen35 cuda: opt-in all-length rows attention for multi-row BF16 decode windows ashhart/TensorFold#4496 under Unreleased
- changelog: gemma4 metal: prefill runs a chunk a call, so a new prompt no longer freezes other streams' decode (#3021) ashhart/TensorFold#3025 under Unreleased
- refactor(cuda): place GLM from one resolved launch
- muse_spark: weightShare takes rank and tp like the other families, after main's cdbdc5a
- refactor(cuda): place MiniMax from the resolved launch
- refactor(cuda): place Nemotron from the resolved launch
- docs(recipes): launch tensor-parallel ranks with flags
- fix(minimax): name --tp and --rank in its refusals
- fix(cuda): name only given values in launch refusals
- docs(recipes): leave the alias release to the start-up warning
- fix(cuda): count the dense tower on rank 0 with the other towers
- refactor(cuda): check a launch's place inside its resolver
- dots_mocr: the tower test passes visionBytes rank 0 of 1, after main's abdf287
- tests: refresh serving pins after the unified CUDA launch rebase
- tests: use documentation addresses in the rendezvous fake
- tests: format rebased GLM rank wiring
- changelog: cuda: GLM, MiniMax and Nemotron placed from one launch, by flags or aliases (T1b of #2560) ashhart/TensorFold#2919 under Unreleased
- changelog: each line once under Unreleased
- lfm3 metal: opt in to exact warm turns
- changelog: lfm3 metal: warm turns ashhart/TensorFold#4585 under Unreleased
- changelog: lfm3 metal: warm turns ashhart/TensorFold#4585 under Unreleased
- qwen27 dflash: read and run the 9B's DFlash drafter beside DFlash2
- qwen27 served: the serving line names a v1 drafter "DFlash", DFlash2 stays "DFlash2"
- qwen27 prompt memory: the planner counts a drafter's own tap planes and fusion rows
- qwen27 dflash v1: the ring keeps fused rows, and the full layer sees the whole context
- qwen27 served: the startup line names a v1 drafter "DFlash" too
- qwen27 lanes: the gathered taps' stride check reads the taps' source, so a v1 drafter's fused ring passes it
- qwen27 dflash v1: the full layers' attention takes main's Shape, which has no rotary_dim since 4f12fa0
- qwen27 dflash: retain main behavior beside the v1 drafter
- qwen27: grow a slot's K/V as its stream grows (opt-in TF_Q27_KV_GROW)
- qwen27: free slots give back grown K/V; drafter taps rings grow as used
- qwen27: a fresh pass takes its prompt's K/V rows at once (TF_Q27_KV_GROW)
- qwen27: adapt K/V growth and DFlash to current main
- qwen27 served: format prompt fit setup
- qwen27 served: keep opt-in K/V setup within 600 lines
- qwen27 served: extract helpers for formatted setup
- changelog: Qwen3.5-9B grow-as-used K/V in Zig engine ashhart/TensorFold#1896 under Unreleased
- changelog: lfm3 metal: warm turns ashhart/TensorFold#4585 under Unreleased
- changelog: Qwen3.5-9B grow-as-used K/V in Zig engine ashhart/TensorFold#1896 under Unreleased
- GLM on CUDA: a kept state's disk image on one rank, its parts and where each byte sits in its lease
- GLM on CUDA: --learn-conversations keeps every rank's part of a kept state on disk
- rows: a pool that reuses spare storage without trimming it reads a disk state into that storage
- rows: a pool that also trims reads a disk state only within its budget, as before
- GLM on CUDA: a disk read's seal refuses ring bases that do not hold the state's rows
- rows: the grid test runs on both writers, the test's thread and the I/O worker GLM's store uses
- GLM on CUDA: --spill-gib and --checkpoint-slots are refused, as --learn-conversations alone keeps its states
- GLM on CUDA: the disk image downloads through cuda.memory.download, the shared-store refusal names TF_KV_SHARE
- GLM on CUDA: a disk image's words record the world, the layout and the owner, and a read refuses another by name
- GLM on CUDA: --learn-conversations opens its store through the shared attach, so a long state is staged whole
- GLM on CUDA: a disk read sends each block's rows to the other ranks in one step, copied into place on the device
- GLM on CUDA: native/cuda.zig names glm_cuda where it compares, keeping the file within 600 lines
- glm cuda: the disk ranks test's fake link answers cuLaunchKernelEx too, after main's 7948cc4
- changelog: GLM-5.3-Flash on CUDA keeps conversation states on disk, every rank's part (--learn-conversations) ashhart/TensorFold#1411 under Unreleased
- changelog: each line once under Unreleased
- ricursive cuda: glue, attention prep and group-10 attention under the kernel contract
- ricursive cuda: the forward over an arena of stream slots, rounds as CUDA graphs
- ricursive cuda: the lane backend in the native server, with sampling and kept states
- ricursive cuda: tensorfold run and kl on a Ripple checkpoint, and the gate tools
- ricursive cuda: the release's own layers in float64 as the reference, near-tie leads in the gate compare
- ricursive cuda: a reply thinks or answers bare, with no thinking budget, as on Metal
- changelog: ricursive: Ripple-65B-Preview on native CUDA (NVFP4) ashhart/TensorFold#2302 under Unreleased
- ricursive cuda: the recipe, its row in the recipe index, and the CUDA files in the notices
- contract: Ripple's two prep controls in contract_ricursive_controls.cuh, so contract_controls.cu stays at 600 lines
- tests: Ripple's three tf-cuda-test commands through one entry, ripple_commands.zig, so main.zig stays at 600 lines
- contract: drop the Ripple CUDA records' TODO lines; the receipts are in pending_133
- docs: the Ripple CUDA recipe's near-cap run at --context 262,144, config.zig's cap
- ricursive cuda: seven comments say what the code does, without a development milestone's name
- tests: the serving pin of cuda/kernels.zig, with Ripple's two images registered
- tools: the Ripple gate test skips its KL tests without numpy, which the root pytest job does not install
- changelog: ricursive: Ripple-65B-Preview on native CUDA (NVFP4) ashhart/TensorFold#2302's line from lines/2302.txt in place of its own
- Revert "uocr: cancel-test fakes leave GPU handles undefined instead of zeroing non-null pointers"
- uocr: cancel-test fakes build Model and Decoder without std.mem.zeroes
- qwen35: TF_QWEN35_CHUNK through platform/environment.zig
- qwen35: static TF_QWEN35_CHUNK refusal before checkpoint load
- qwen35: chunkRows catch without unreachable else
- changelog: qwen35: TF_QWEN35_CHUNK env knob for the Metal prefill chunk ashhart/TensorFold#3762 under Unreleased
- Match wide GLM factored decode down to its 64-pair tile behind an opt-in
- changelog: glm cuda decode: opt-in wide expert down tile for windows over 16 rows ashhart/TensorFold#4565 under Unreleased
- h3, server: long image renders give way to live speech on the Mac's GPU
- docs: the live speech server must publish the lock; voice during a large render 72.9 s -> 9.4-9.8 s
- server, h3: speech frees the GPU turn before client writes; failures drain every committed buffer; the lock refuses planted paths
- server, h3: planted FIFOs, hard links and exclusive holds no longer stall or redirect the speech turn; speech arriving as the last blocks drain goes before the output heads
- server, h3: one-line comments; speech voices and H3 speech-arrival tests in their own files
- server: speech_voices_test reaches the byte tokenizer's encode
- server: a timed step's stamp is read under the exclusive probe, so speech stamping between the read and the probe no longer certifies it
- server: the speech lock builds for Windows, which has no mode bits to widen or check
- h3: a finished step no longer waits for speech after its final command buffer completes
- changelog: Upstream PR: long image renders give way to live speech on the GPU ashhart/TensorFold#4650 under Unreleased
- changelog: Upstream PR: long image renders give way to live speech on the GPU ashhart/TensorFold#4650 under Unreleased
- refactor(hip): the d = 256 long-span score's pieces from plan.hip into plan.hpp
- feat(hip): score a multi-row launch's slots from one read of their keys at d 256
- perf(hip): multi-row planned walks take the shared-row score step
- refactor(hip): the planned values' walk body from plan.hip into plan.hpp
- feat(hip): weigh a multi-row launch's slots from one read of their values at d 256
- perf(hip): multi-row planned walks take the shared-row values step
- docs(ledger): row 39, a slot's drafted rows share the walk on HIP qwen3_5
- changelog: perf(hip): multi-row decode rounds weigh each slot's rows from one read of their values ashhart/TensorFold#4754 under Unreleased
- contract: MOSS-Image's float64 silu takes expf's fp32 overflow (CUDA: MOSS-Image tf_me_conv fails the sums contract on sm_110 ashhart/TensorFold#4791)
- changelog: contract: MOSS-Image's reference follows fp32 expf overflow
- changelog: contract: MOSS-Image's reference follows fp32 expf overflow ashhart/TensorFold#4794's line from lines/4794.txt in place of its own
- perf(hip): Qwen prompts take the policy's prompt step on a lone RDNA 3.5 iGPU
- changelog: perf(hip): Qwen prompts take the policy's prompt step on a lone RDNA 3.5 iGPU ashhart/TensorFold#4207 under Unreleased
- changelog: perf(hip): Qwen prompts take the policy's prompt step on a lone RDNA 3.5 iGPU ashhart/TensorFold#4207 under Unreleased
- flint: a shared round's sampled rows draw in one launch, a threadgroup a row (Flint on M5 Max: sampled requests lose throughput at 2 and 4 streams (greedy scales) ashhart/TensorFold#3396)
- changelog: flint metal: a shared round's sampled rows draw in one launch ashhart/TensorFold#4780 under Unreleased
- qwen: DFlash2 spanned lm_head for ModelOpt NVFP4 and FP8 heads (opt-in)
- qwen: CUDA graphs for DFlash2 hold and live absorb (opt-in)
- qwen: adapt DFlash2 graphs to main absorb lifecycle
- changelog: dflash2 cuda: opt-in spanned lm_head for NVFP4/FP8 targets and drafter graphs ashhart/TensorFold#4516 under Unreleased
- core: export the GGUF block validator and a narrow CPU weights module
- ling: GGUF source names and checked views for Ling-3.0-tiny
- ling: exact Q4_K, Q6_K and Q5_0 CPU decode and projections
- ling: checked GGUF file reader for Ling-3.0-tiny on CPU
- ling: KDA keeps its convolution history across calls and can take stored decay rates
- ling: exact CPU forward over the GGUF with persistent KDA and MLA state
- ling: greedy CPU decode tool and recipe for Ling-3.0-tiny
- ling: persistent CPU workers for exact multi-threaded decode
- ling: opt-in SDOT activation quantizers and 1-row Q4_K/Q6_K/Q5_0 kernels
- ling: 8x4 repacked Q4_K/Q6_K SDOT kernels and versioned mmap cache
- ling: extend persistent CPU pool and decode tool with opt-in --fast mode
- ling: add head-parallel runHeads to persistent CPU pool and fast KDA/MLA attention
- ling: wire opt-in fast KDA/MLA attention and head sharing in CPU forward
- ling: gate SDOT intrinsics on target dotprod feature and document fast build line
- ling: add llama.cpp MIT attribution header to cpu_gguf_repack8.zig
- ling: skip raw GGUF scale scan on repack cache hits in fast mode
- ling: pin pool workers 1-to-1 within allowed Linux affinity mask
- ling: reuse session output buffers across decode steps
- docs: note what a fast-mode repack cache hit verifies
- ling: batch 4 prompt rows per Q4_K_8x4 weight block pass in fast mode
- ling: batch 4 prompt rows per Q6_K_8x4 weight block pass in fast mode
- ling: group routed experts across prompt chunk rows in fast mode
- ling: guard madvise in releaseSourcePages for Windows builds
- ling: skip discarded non-final lm_head rows during prompt prefill
- Replace Ling interleaved kernels with native eight-row GGUF block tiles
- ling: validate repack cache source SHA, entry table, and payload SHA on hit
- ling: add direct GGUF metadata, KV-head, clamp, EOS, and tensor-plan refusal tests
- Ling CPU recipe: fast-mode accuracy, fast-core affinity, v5 cache name
- Share GGUF block decoding across Ling prompt rows
- Ling CPU recipe: cache check cost, measured exact and fast figures, thread oversubscription
- Ling CPU recipe: exact figures from the final-head receipt
- Ling CPU: remove --fast mode
- Ling CPU recipe: exact path only
- Ling CPU recipe: describe the thread pinning the pool does
- Ling CPU recipe: exact figures from the round 3 board receipt
- changelog: Ling-3.0-tiny on ARM CPUs: exact GGUF decoder (#1247) ashhart/TensorFold#4266 under Unreleased
- Revert "uocr: cancel-test fakes build Model and Decoder without std.mem.zeroes"
- glm cuda: retain completed shared-cache prefixes on prefill cancellation
- changelog: GLM CUDA: keep completed shared-cache prefixes on prefill cancellation ashhart/TensorFold#4694 under Unreleased
- Desktop: restore the two engine types the Discover revision change dropped
- changelog: Desktop: restore two engine types so the typecheck passes on main ashhart/TensorFold#4829 under Unreleased
- flashnext cuda: the MTP rows' row best runs over 32 blocks a row, fn_row_best's bits
- flashnext cuda: the MTP head's bytes count the split row best's scratch
- changelog: flashnext cuda: the MTP rows' row best runs over 32 blocks a row, fn_row_best's bits ashhart/TensorFold#4632's line from lines/4632.txt in place of its own
- changelog: flashnext cuda: the MTP rows' row best runs over 32 blocks a row, fn_row_best's bits ashhart/TensorFold#4632's line from lines/4632.txt in place of its own
- idol: tf-idol-generate runs one picture end to end on Metal, both encoders, the denoiser and the decoders to a PLY
- idol: tf-idol-generate refuses a picture tensor in the other layout, as AIFlowML found
- docs: Idol's end-to-end generation moves to idol-generate.md, keeping idol.md under 600 lines; the picture's layouts
- docs: kernel-contract.md's Idol paragraph condensed, keeping the file under 600 lines with both encoders
- idol: pin torch's seed-42 starting noise in a host test, as review asks
- changelog: idol: tf-idol-generate, one picture to a 3DGS PLY end to end on Metal (stacked on #1773, #1774, #1775) ashhart/TensorFold#1780 under Unreleased
- idol: free finalized coordinates on descent failure
- idol: balance root and trace allocation failures
- changelog: idol: balance octree and trace allocation failures ashhart/TensorFold#4304 under Unreleased
- changelog: idol: balance octree and trace allocation failures ashhart/TensorFold#4304 under Unreleased
- qwen27 metal: opt-in MTP absorb fusion and GPU draft pick
- tests: TF_Q27_MTP_GPU_PICK's valid forms are in the environment table
- changelog: qwen27 metal: opt-in one-buffer MTP absorb with a GPU draft pick ashhart/TensorFold#4570 under Unreleased
- qwen27: Qwen3.6-35B-A3B on qwen27: serve Qwen3.5-MoE (Ornith-1.5-122B) on Metal: routed experts, its DFlash2 drafter and the publisher's 4-bit weights ashhart/TensorFold#1125's routed path, 16 query heads over 2 on main's attention Geometry
- contract: the routed block's kernels at Qwen3.6-35B-A3B's served widths (512 experts' rows over 2,048)
- docs: the kernel contract's qwen27 attention and the 35B-A3B's routed widths
- qwen27, contract: comments on one line within 120 columns (lean)
- qwen27: staged references on Metal (tf-qwen27-run --stages) against a float64 forward
- qwen27: staged references take a headless prompt chunk (0 logit rows), as the recorder allows
- contract: qwen27 attention's decode and prompt rows at the 35B-A3B's 16 query heads over 2
- core: export qwen35_stages for the qwen27 stage recorder
- Qwen3.5 host tables: the 35B-A3B's row; stage_ref test skips without mlx
- qwen35 rules: the zero head count test counts the 35B-A3B's Metal 27B and HIP bases
- qwen27: the stage recorder is built into tf-qwen27-run only; --vision refuses the 35B-A3B
- qwen27: stage_planes.begin starts a round's planes and marks the last layer read on main's prompt tail facts
- changelog: qwen27: Qwen3.6-35B-A3B on Metal on the routed path, with staged references against float64 ashhart/TensorFold#3239 under Unreleased
- refactor(contract): share Inkling 2's attention reference from core
- feat(hip): Inkling 2 attention kernels under the kernel contract
- test(contract): pin the shared Inkling 2 reference on every branch
- test(hip): Inkling 2 global rows below the extent and NaN sink and gate
- fix(hip): refuse an Inkling 2 ring the attention tiles cannot read
- test(hip): pin Inkling 2's bf16 P with exact sliding and fold rows
- fix(hip): Inkling 2 attend takes its stream count and partial room as stated
- changelog: feat(hip): Inkling 2 attention kernels under the kernel contract ashhart/TensorFold#4633 under Unreleased
- glm metal: size the rows-store staging permit from the deepest state with .longest (glm metal (GLM-5.3-Flash): deep --learn-conversations saves past the 1 GiB staging permit are skipped with StagingFull — long conversations never deepen their disk anchor ashhart/TensorFold#4114)
- changelog: glm metal: price the rows-store staging permit from the family's whole image ashhart/TensorFold#4216 under Unreleased
- changelog: glm metal: price the rows-store staging permit from the family's whole image ashhart/TensorFold#4216 under Unreleased
- drama3 compact GB10 check: codec-chunk PCM reported, not gated; every other exact check kept
- drama3 compact GB10 check: replay may stop at the chunk 4 or 16 PCM compare, in a tested gate
- drama3 compact GB10 check: replay goes through drama3_replay_gate.sh
- drama3 compact GB10 check: each PCM measurement is its own command, so a missing or short PCM stops the run
- door: card 166 GB10 receipt on PR head b2dbff0, main's script vs the fix (scratch, not for merge)
- Revert "door: card 166 GB10 receipt on PR head b2dbff0, main's script vs the fix (scratch, not for merge)"
- drama3 replay: a codec chunk 4 or 16 PCM difference waits for the fork-lane checks, then ends ReplayPcmOnly
- drama3 replay gate: only the PCM-only outcome line passes, never the bare 1 1 4 16 + ReplayMismatch stop
- drama3 replay gate: the PCM-only line must carry both numbers in replay.zig's format; one-line comments
- drama3 replay: bound every codec PCM difference before gate acceptance
- drama3 gate: keep source comment single-line
- changelog: Upstream PR: Drama 3's GB10 check script passes on a GB10 after #4144 ashhart/TensorFold#4463 under Unreleased
- qwen35 cuda: opt-in grouped same-input projections keeping each projection's split-K
- cuda tests: group-proj, each grouped projection's bytes against its own launch
- rebase: retain main environment test coverage
- rebase: repair serving pins and mixed GDN grouping
- changelog: qwen35 cuda: opt-in grouped same-input projections keeping each split-K ashhart/TensorFold#4515 under Unreleased
- metal: split-plane 5-bit and 6-bit register-direct lane kernels
- changelog: metal: split-plane 5-bit and 6-bit register-direct lane kernels ashhart/TensorFold#4419 under Unreleased
- qwen27: the family test root imports bf16_topk, which upstream's mtp_pick needs
- info: the refused-shape test uses 20 heads over 2, since upstream b77c2d8 accepts 16 over 2
- test flashnext: reproduce refused SSD pool budgets without devices
- flashnext metal: fit a refused SSD pool maximum inside the load ceiling
- test(flashnext): expose host admission and reproduce SSD review failures
- fix(flashnext): validate admission before selecting a mutable SSD pool
- fix(ci): include SSD budget and review checks in host coverage
- fix(flashnext): cap automatic cache by allocated SSD pool headroom
- fix(flashnext): reprice placement overhead after fitting the pool
- fix(flashnext): retain rotary headroom when fitting refused SSD pools
- fix(fsr): account forecast jobs within the existing Flash Next allowance
- fix(fsr): free a slab when held-buffer registration fails
- fix(flashnext): keep existing automatic-cache receipts when their grant fits
- style(flashnext): format SSD review controls and budget guards
- fix(fsr): itemize forecast tickets without changing legacy plan bytes
- test(cache): retain an automatic maximum without a footprint reading
- fix(cache): retain automatic maximum when footprint readings disappear
- changelog: Flash Next on Metal: fit an oversized SSD expert pool to the load ceiling
- test(flashnext): guard selected loader budgets and every load entry
- changelog: Flash Next on Metal: fit an oversized SSD expert pool to the load ceiling ashhart/TensorFold#4811's line from lines/4811.txt in place of its own
- inkling2: accept Mini host config and checkpoint names
- inkling2: model the Mini loop on the host
- inkling2: run checkpoint-packed experts on CUDA
- inkling2: run Mini loop math on CUDA
- inkling2: serve Mini text on one CUDA rank
- lanes: make full lone-window commits opt-in
- inkling2: add Mini Metal kernels and contracts
- inkling2: serve Mini natively on Metal
- inkling2: document Mini fixture and reference provenance
- inkling2: normalize before CUDA query reductions
- inkling2: control packed-expert contracts by phase
- inkling2: fix native Metal Mini admission and serving
- inkling2: prove Mini CUDA serving equivalence
- inkling2: compile Mini CUDA tests against current lane types
- inkling2: link Metal host tests on macOS
- inkling2: fix nonfinite prompt expert launches
- inkling2: refresh Mini limits and quiet shape refusal
- inkling2: complete native Metal admission and serving tests
- inkling2: adapt Metal checkpoint modules to main
- inkling2 cuda: load the Mini checkpoint (one precision a layer, one attn_norm upload a sliding layer)
- inkling2 cuda: pass the attention gate and sink to tf_ink2_merge raw
- inkling2 cuda: write cross-pass messages plane-major, as the gates read them
- inkling2 cuda: a cache slot per served stream
- inkling2 cuda: copy prompt-cache states per key head
- inkling2 cuda: stream_bytes counts a stream's rewind sites, last-logits row and sampling rule
- inkling2 metal: norm binds its arguments and its output where sp_norm reads them
- inkling2 metal: a later stream of a shared forward reads its relative rows where prep wrote them
- inkling2 metal: a snapshot copies each key-value head's live rows, so a resumed prompt reads the rows a fresh one wrote
- inkling2 metal: the real-checkpoint serving tests draw the first token before its row, and resume a turn the cache can keep
- inkling2 metal: a window's grammar masks step by the padded vocabulary's words, so structured replies pass their second row
- inkling2: record Mini's CUDA kernel usage on every SM
- server inkling2: split native blocks by token identity
- server inkling2: special tokens never payload, sampling end closes nothing, refused calls counted
- server inkling2: serve Mini's split, raw stops, role boundaries and whole characters
- server inkling2: stops in exact bytes, cut bare calls, whole replacements, full usage
- server inkling2: one stop coordinate, the tokenizer's lossy decode, bare calls in the shared order
- server inkling2: skip only owned continuation bytes; bare calls as the cut reply reads them
- notices: name Inkling 2 Mini's release tokenizer and template fixtures
- server inkling2: a grammar's end of message ends the turn; calls at the cap keep length
- server inkling2: the end-of-message stop belongs to the required call grammar only
- server inkling2: a required reply ends at its end of message only when it is complete calls
- test(inkling2): reproduce request EOS cutting an open second call
- test(inkling2): cover every stop stride before asserting the result
- fix(inkling2): stop required replies only at complete calls
- lanes: test the lone-keep opt-in against main's rule, not against zero keeps
- qwen27 tools: one engine_api module, and core's checkpoint_file_cache
- inkling2: Metal host test on macOS only; Inkling's CUDA prompt cache in the cache rows
- changelog: Inkling 2 Mini on CUDA and Metal ashhart/TensorFold#4387 under Unreleased
- qmmf: opt-in half-column tiles for FP4, FP8 and FP8G on many-SM GPUs
- cuda tests: lane-half-n, FP4, FP8 and FP8G half tiles against the 64-column tile
- cuda tests: pin opt-in half-tile serving identities
- changelog: qmmf: opt-in half-column tiles on many-SM GPUs ashhart/TensorFold#4533 under Unreleased
- flashnext: opt into short-row CUDA TPR chains
- flashnext: repair GDN fixture pins
- tests: correct Flash Next environment count after rebase
- changelog: flashnext cuda: opt-in short-row GDN chains on the two-threads-a-row kernel ashhart/TensorFold#4484 under Unreleased
- changelog: flashnext cuda: opt-in short-row GDN chains on the two-threads-a-row kernel ashhart/TensorFold#4484 under Unreleased
- refuse leftover tensors in gemma4 assistant/dflash and hy4_flash loads
- mark direct Hy4 Engram tables used for checkpoint audit
- test Hy4 CUDA auxiliary checkpoint ownership
- own Hy4 CUDA auxiliary checkpoint tensors
- changelog: gemma4 drafters, hy4_flash cuda: refuse leftover checkpoint tensors ashhart/TensorFold#4566 under Unreleased
- tools/exact_restarts.py: bit-identical restarts, parallel levels and drafting
- tools: check every busy peer; report unrunnable attached scenarios as not run
- tools: plant serial tree resume receipt divergences
- tools: issue public cross-backend exact receipts
- tools: receipt missing launched binary failures
- tools: retain text completion replies on follow-up
- changelog: tools: exact-path harness for restarts, parallel levels and drafting ashhart/TensorFold#4574 under Unreleased
- web tests: sort test_server_access imports so ruff passes on main
- minimax_m3 metal: shared rounds of 12-32 rows are timed at load, not priced at 2x and 4x the 8-row window
- minimax_m3 metal: time real 16-row verification windows
- changelog: minimax_m3 metal: shared rounds of 12-32 rows are timed at load, not priced at 2x and 4x the 8-row window ashhart/TensorFold#3120 under Unreleased
- changelog: minimax_m3 metal: shared rounds of 12-32 rows are timed at load, not priced at 2x and 4x the 8-row window ashhart/TensorFold#3120 under Unreleased
- opt in to aged background admission
- lane host: an aged background passes the foreground head only if it came first
- changelog: Let long-waiting background requests go before foreground work ashhart/TensorFold#4833 under Unreleased
- changelog: number twenty Unreleased lines and drop an override glm metal: price the rows-store staging permit from the family's whole image ashhart/TensorFold#4216 never added
- drama3: guide lifecycle shared by Metal and CUDA; Metal backboneChunk keeps the last row
- drama3 CUDA: semantic CFG guide over shared weights (d3_cfg_mix, backbone-only fork)
- drama3 CUDA host: guide lifecycle, admission counts guide state, CFG flags on Linux
- drama3: GB10 guidance check (paired vs separate PCM, gamma 1 identity); changelog
- drama3 guidance: guide prefills before the first frame; CFG mix arithmetic tests and contract entry; GB10 check rejects empty PCM and reference-less voices
- drama3 guidance: lane drain waits the guide stream; GB10 check needs gamma above 1 to change PCM and cached-reference hits
- drama host: conditional prompt round in its own module
- drama3 CUDA: reference entry's live buffers gathered in reference_rows
- contract: drama3 registrations from contract_drama3's Set
- drama3 guidance: single-line comments
- contract: d3_cfg_mix's prepare sizes from n alone, as the gates probe rows
- contract: d3_cfg_mix's sm_121 nvcc 13.0 receipt from TOP (12 registers, 0 static, unbounded)
- drama3-cuda: d3_cfg_mix's GB10 kernel-contract job
- contract: drama3's two doc comments within the lean rule's 120 columns
- drama3: a planted gamma - 1 d3_cfg_mix control, solo lane controls in the guidance check, public CUDA provenance
- contract: the compact router's note beside its pending record
- drama3: the guidance check takes and records the checkpoint's pinned Hugging Face commit
- changelog: Upstream PR: Drama 3 semantic guidance (CFG) on CUDA ashhart/TensorFold#4153 under Unreleased
- changelog: Upstream PR: Drama 3 semantic guidance (CFG) on CUDA ashhart/TensorFold#4153 under Unreleased
- lanes: interleave Metal window timing and retime high outliers
- lanes: heal saved Metal window prices with bounded rotating probes
- metal: recheck cached planner widths and share robust timing across families
- metal: finish bounded probe setup and format timing policies
- test(costs): expose setup budget, real tile edges and inconsistent partial heals
- fix(costs): plan useful warm probes before setup and preserve table order
- fix(metal): admit warm scratch work after selection and charge setup wall time
- style(costs): format prepared timing adapters
- test(metal): exercise family timing controllers and tight-context work budgets
- test(metal): root family policy imports at zig and count actual prefill work
- fix(costs): alternate sweep direction to bound tight-context refills; compile adapters
- fix(costs): reserve rotating probe budget before ordering edges; check Darwin object
- style(costs): format final timing checks and adapters
- fix(costs): refuse a fresh table with no valid timing sample
- style(costs): format invalid timing refusal test
- fix(glm): agree on invalid timing tables before either rank leaves calibration
- Fix Metal warm cost probe rotation and fallback
- Recover Qwen27 startup probes before retaining cached costs
- fix(qwen27): keep cold window timing serial on stateful scratch
- fix(glm): keep paired cold window timing serial on stateful scratch
- changelog: lanes: steadier window-cost timing, with saved tables repaired at startup ashhart/TensorFold#4755 under Unreleased
- Write Qwen output in bounded chunks
- Keep writer comments within lean rules
- Chunk cap is a parameter; sink errors pass through
- chunked write: refuse a zero cap on a nonempty buffer
- style(chunked-write): keep the writer contract on one comment line
- changelog: Write Qwen3.5 output in bounded chunks ashhart/TensorFold#4296 under Unreleased
- changelog: Write Qwen3.5 output in bounded chunks ashhart/TensorFold#4296 under Unreleased
- vision: one gate for --vision at open, on CUDA and HIP
- docs: vision.md's gate paragraph wrapped under 120 columns
- gradient-serving pins: the three Flash Next files vision: one gate for --vision at open on CUDA and HIP; LFM2 loads its tower only with --vision, Qwen3.5 HIP and Flash Next refuse a missing tower by name ashhart/TensorFold#3456 changes
- Refresh merged source checks and serving pins
- cuda: LFM2's --vision reaches core's gate; its old refusal goes, rank checks stay
- hip native: keep the Qwen engine file at the 600-line cap
- flashnext cuda: the vision test passes main's rank and world to visionBytes
- changelog: vision: one gate for --vision at open on CUDA and HIP; LFM2 loads its tower only with --vision, Qwen3.5 HIP and Flash Next refuse a missing tower by name ashhart/TensorFold#3456 under Unreleased
- metal: the two pairs of u32 copy kernels from one source (metal: unify duplicated kernels (attention partials, norms, gemm_nax wrappers, glue, RoPE) ashhart/TensorFold#2251)
- drama3 metal: codec.metal's compile lists core/copy_u32.metal as an input
- changelog: metal: the two pairs of u32 copy kernels from one source (#2251) ashhart/TensorFold#4740 under Unreleased
- changelog: metal: the two pairs of u32 copy kernels from one source (#2251) ashhart/TensorFold#4740 under Unreleased
- flashnext: opt into grouped shared expert rounds
- changelog: Flash Next on Metal: opt-in grouped expert launches for shared rounds ashhart/TensorFold#4834 under Unreleased
- docs: the card 64 live signal and live publisher sections stay, since merge 847baad had taken upstream's summary over them
…hread oversubscription
TensorFold takes no mode that changes output tokens, even opt-in, so the SDOT kernels, eight-row repack and its cache, the fast KDA/MLA attention and the --fast flag go. The exact path is unchanged: the pool, the GGUF reader, the forward and the decode tool return to their exact-only forms, and the affinity-mask test moves to the exact pool tests.
Drop the fast-mode run, its repack cache, the +sha2 note, the fast accuracy bullet and the fast measured figures. The dot-product build stays as an optional exact build, since the measured table has both.
…em.zeroes" This reverts commit 432412b.
…ream-main # Conflicts: # docs/recipes/minimax-h3-image-metal.md # zig/build/h3_host.zig # zig/build/h3_image_decoder.zig # zig/build/h3_image_prompt.zig # zig/build/h3_image_server.zig # zig/src/families/h3/h3.zig # zig/src/families/h3/image.zig # zig/src/families/h3/prompt.zig # zig/src/server/gpu_turn.zig # zig/src/server/speech.zig # zig/src/server/speech_voices_test.zig # zig/tests/h3_dit.zig # zig/tests/h3_image.zig # zig/tests/h3_image_decoder.zig # zig/tests/h3_image_prompt.zig # zig/tests/h3_image_server.zig
…opped PreflightContext.freeDiskBytes and ModelHubOptions.memory are still used and passed, so the desktop typecheck has been failing on main since 364dd6a. Types only; no runtime change.
…row_best's bits fn_row_best runs one 1024-thread block per row, so a one-row draft step fills one SM. fn_row_best_max and fn_row_best_sum do the same two passes over (row, warp) blocks of 32 threads: each thread reads the same strided values and each warp does the same shuffles, so the best, its first id and the log-sum-exp keep their bits. The row's last block (an atomic ticket) folds the 32 warp sums as warp 0 did. Head.best takes the split for rows up to round_rows. The kernel contract registers it as a replacement of fn_row_best (byte equality on every served shape), with a planted control (the split over V - 1 values) that goes red at shapes. The gradient-serving pins take the two sources.
The split row best keeps a persistent device buffer of split_bytes (24,832 bytes at round_rows = 64) for each warp's best and id, each warp's exponent sum and a counter a row. headBytes adds it, so the placement estimate covers it, and the exact-accounting test pins it.
…oders, the denoiser and the decoders to a PLY Each stage is timed and each model freed after it. The starting noise is torch's CPU-seeded randn, reimplemented; the VAE's posterior noise and the starting noise can be given for parity with the SDK's MPS draws. The recipe's End to end section has the stage timings, memory and PLY comparison against the SDK's own IdolPipeline run.
…as AIFlowML found picture() checked only the element count, so `pixels` as float32 [1024, 1024, 3] (HWC) passed and was then read as CHW: a scrambled image reached both encoders. families/idol/picture.zig now requires `pixels` to be exactly float32 [3, 1024, 1024] and `image` exactly [1024, 1024, 3], and its host test plants the HWC `pixels`, a flat tensor, a bf16 one and a CHW `image`, each refused.
Darwin rejects a single write larger than INT_MAX. Use bounded writes for Qwen 3.5 output files. Verify with the chunked writer tests.
Remove multiline comments that fail the project lean check. The focused writer tests pass.
Review on ashhart#4296 (ashhart): writeChunked made no progress with nonempty input and a zero cap - every round wrote an empty slice and left the offset unchanged. Reject the cap before the loop (ZeroWriteCap) and add the regression: a nonempty buffer at a zero cap refuses with no bytes written; an empty buffer passes.
core/engine_vision.zig gains gate(), declared() and words(): --vision without a tower is refused as "--vision given but <model> has no vision tower", and a tower without --vision stays unread. LFM2 (d1) on CUDA loads its tower only with --vision; Qwen3.5 on HIP refuses --vision on a text checkpoint instead of serving text; Flash Next on CUDA names the missing tower before a stream loads. The header-only text count skips Qwen-VL, Gemma 4, LFM2-VL, LightOn, DeepSeek and GLM towers too, and a cluster model's non-bool "vision" is refused by name.
… checks stay refusals.lfm2 refused every --vision before lfm2.open ran the gate, so an LFM2-VL server could not load its tower at all. It now checks --tp and --rank alone; the test shows --vision passes and that --tp 2 or --rank 1 with --vision is still refused by name.
Main already holds zig/src/families/qwen3_5/backend/hip/engine/native.zig at 600 lines, so the new VisionWithoutTower refusal line took it to 601 once merged. This drops the blank line after the file's doc comment. No code change.
…nBytes Main's visionBytes now takes the rank and world (rank 0 of 1 here, as in cuda_dense's tests), so the test's three-argument call stopped compiling once merged. Test only.
glm_copy_u32 and Drama 3's codec c_copy (n values, bounds-checked) and Nemotron's tf_copy_u32 and Flash Next's pf_copy (one value a thread) had the same bodies. They now come from TF_COPY_U32_N and TF_COPY_U32 in core/copy_u32.metal. c_copy keeps its 256-thread reservation; names and buffer indices are unchanged, and pf_copy's arguments are named src and dst like the others. The offline Drama 3 metallib includes the core file; the embedded codec text has it inlined.
…nput The codec includes the shared u32 copy macros, but its compile step only listed d3_common.h, so a change to copy_u32.metal alone reused the cached codec .air with the old copy kernel.
…ream-main # Conflicts: # tools/zig/drama_guidance_check.py # tools/zig/test_drama_guidance_check.py # zig/build/drama3_host.zig # zig/src/core/contract/registry_media.zig # zig/src/native/qwen27_served.zig # zig/tests/cuda/contract_drama3.zig
… merge 847baad had taken upstream's summary over them Merge 847baad resolved docs/recipes/minimax-h3-image-metal.md by taking upstream's condensed section (0ffb39e) and dropping the fork's own 'Large resident renders: live signal check, card 64' and 'Repaired live publisher and TOP voice menu, 15 November 2026'. Upstream never held those two, so nothing of its own superseded them. Both are back as main has them, byte for byte, and upstream's section follows them before '## Gates, fixed before any run'.
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.