Skip to content

TensorFold 1.1.0

Choose a tag to compare

@ashhart ashhart released this 18 Oct 10:39
· 10113 commits to main since this release

TensorFold 1.1.0

1.1.0 brings Qwen3.5-2B, Qwen3.8-27B and Qwen3.8 Flash Next to CUDA through the native server, and GLM-5.3-Flash to two CUDA ranks on its EXL3 checkpoint, with the DFlash2 drafter. Every change in this release, the work moving to 1.1.1 and the known issues follow.

  • Structured output and forced tool calls work with Nemotron 3.5 Super VL (nemotron_h_omni), whose text vocabulary is in llm_config: the server read vocab_size only from text_config and the top level, and refused those requests (reported in #951). A vocab_size that is not a positive integer within the C ABI's range is skipped rather than cast (#953). Thanks to @swbiggart and @BobClawblaw.
  • Accepted HTTP connections set TCP_NODELAY, so a streamed reply's small writes leave as they are written instead of waiting behind Nagle's algorithm; a connection that cannot be configured is closed and the server accepts the next one (#929). Thanks to @akol1.
  • The tool-call parser finds namespaced closers (</NAME:tool_call>) in one pass over the reply, so a reply with many openers and no closers parses in linear time instead of searching the rest of the reply once per opener. Parsed calls are unchanged (#913). Thanks to @jishnuvenugopal.
  • A chat template that builds a long string in a namespace ({% set ns.out = ns.out + m.content %}, or with ~) appends to one growing buffer instead of copying the whole string at every step, so long histories render in linear memory. The rendered bytes are unchanged (#973). Thanks to @nmcbride.
  • In the lane core, a pipelined stream adopted between rounds (detached and adopted again, or opened by another driver) starts in verify from its pending token; it read the missing mode as pipe and unwrapped a step it had never queued. No shipped family reaches that path yet (#928). Thanks to @chaog992.
  • On Linux, a checkpoint read with O_DIRECT falls back to the page cache when the file system accepts the open but refuses the aligned read with EINVAL; the load used to fail (#916). Ours: the fallback is Linux's alone, so macOS builds it. Thanks to @plotarmordev.
  • Nemotron on Metal loads on Macs without tensor units (M1 to M4) when its packed kernels cannot build there, as on macOS 26.3, whose tensor-op library has no bf16 x uint4 operation. Those chips never dispatch the packed kernels (their projections run on the row kernels), so a packed kernel that fails to build stays absent, with one warning; any other kernel, and every kernel on an M5, still fails the load (#955). Ours: a failed load releases the pipelines it built. Thanks to @jishnuvenugopal.
  • The opt-in HIP build's Flash Next replays a round's graph only over the caches its pool slot was made with, and refuses caches made elsewhere (CachesNotPooled). tf-flashnext-hip-test --repeat takes slot 0 from the pool for every run, so a later run no longer replays the first run's graphs over freed buffers (#963). Thanks to @BlivionIaG.
  • The CUDA runtime has Context.shared, the primary context of the calling thread's current device (device 0's when none is current, refused when the current context is not a primary one), and Stream.borrowed, a stream its caller owns, for a library that runs TensorFold's kernels inside a host framework's process (#946). Ours: fake-driver tests of the context and stream ownership branches, which do not stand for a host framework's own checks. Thanks to @drowzeys.
  • tf-cuda-test quant-ref fails an output whose error against the float64 reference is not finite; a NaN after an out-of-bound element used to replace the largest error and pass. zig build test-cuda-reference runs the comparison's CPU tests, which test-cuda-host runs too (#933). Thanks to @cwschroeder.
  • The CUDA kernel contract runs on sm_80 to sm_89: the qmm_group cluster kernel, which needs sm_90, is reported N/A there, and lane GEMV is held to the float64 bound instead of the cluster baseline's bits. sm_90 and newer are checked as before (#954). Thanks to @cwschroeder.
  • tools/zig/pack_compare.py refuses a tensor whose byte range does not match its shape and dtype or runs past the file, where it compared the common prefix of a truncated pack; its tests run in a workflow scoped to its files (#919). Thanks to @cwschroeder.
  • CONTRIBUTING.md and the README say that zig build test on macOS also runs the available Metal device checks, and name zig build test-cuda-host as the CUDA host subset (#957). Thanks to @cwschroeder.
  • The app's model library reads each checkpoint metadata file (JSON, or a safetensors header) up to 64 MiB, where it stopped at 4 MiB and marked loadable checkpoints such as GLM-5.3-Flash (an 11.5 MiB shard index) incomplete; one scan reads at most 256 MiB of metadata in all, up from 32 (#967). Thanks to @heitke.
  • The app's model library skips the AppleDouble companions (._NAME) that macOS writes beside each file on exFAT and FAT drives: it read them as weight shards and failed the checkpoint, and a stray one in a parent folder stopped the scan before the checkpoint below it (#970). Thanks to @heitke.
  • The CUDA kernel contract keeps launch records per nvcc release: registry.cuda holds what nvcc 13.0, the release fatbins' compiler, compiles, and each later release lists only the launches it compiles differently (13.2, then 13.3 on top of it). kernel-contract and kernel-contract-limits read the release from each image's .note.nv.tkinfo, check against the newest set at or below it and print which set they used (#945). Ours: the sets per release, the records of the MXFP8 and FP32-output launches for both compilers, and a fatbin without the device's own SM image attributed only when its images agree on one compiler. Thanks to @akol1.
  • The core decodes NVFP4 scale planes stored in a lossless compressed layout (byte-window bases with sorted exceptions) exactly, and a rank reads its tensor-parallel slice of an NVFP4 tensor exactly from plain or compressed scales, refusing ambiguous or half-present scale formats. No shipped checkpoint uses the layout yet (#904, #906). Thanks to @akol1.
  • CUDA serves losslessly packed MXFP8 projections through the native qlinear, with their kernel-contract checks and launch records (#907), and the existing projection kernels can return FP32 outputs before the residual reduction; zig build test-cuda-projection-fixture poisons every dispatch's output and scratch before each launch, so a dispatch that writes nothing fails (#908). Thanks to @akol1 and @cwschroeder.
  • The server admits a streamed request before it opens the response, so a refusal is still an HTTP 503, and health reports an engine that is closing or not ready, a drained Flash Next host among them, as unavailable (#912). Thanks to @akol1 and @cwschroeder.
  • A test pins that a bounded-residency join which cannot grow its bookkeeping refuses whole, leaving nothing counted, staged or added (#909). Thanks to @BobClawblaw.
  • In Living Weights, a new chat fact replaces an earlier one only when it changes that fact or the earlier fact no longer holds; answering one of the earlier fact's questions no longer retires it. When a told fact's questions do not name its subject, its reply gives the fact its key (#910). Ours: a judge's answer counts only as a whole yes or no from a reply that ended by itself, so "No idea" or a cut "No, it..." keeps the earlier fact. Thanks to @ZackSample.
  • Nemotron on Metal: a new build keeps the chip's last window-cost table while probes of each kernel path still time within 15%, instead of timing the whole table again on its first start; a failed probe times it afresh. Costs steer the windows, never the tokens (#936). Ours: the shared rounds are probed too, and a timing cache that fails to make releases the ones already made. Thanks to @jishnuvenugopal and @cwschroeder.
  • tensorfold merge MODEL ADAPTER OUT folds a PEFT LoRA into an MLX affine 4-bit checkpoint on the checkpoint's own scales, with no dense base, Python or GPU; tensorfold merge DENSE ADAPTER OUT --quantize SHIPPED instead quantizes the dense base plus the adapter fresh. On the author's Qwen3-4B checkpoint and adapter, one measured case, the fresh quantization kept a median 99.6% of the adapter's change against 0.1% for the fold, at 0.981 of the shipped quantization's pooled error. tf-merge-check gates both (#710). Ours: the fold as the default, a module found under either namespace's spelling, and two adapter modules for one projection refused. Thanks to @philip-pentatonic.
  • GLM-5.3-Flash on CUDA: TF_GLM_PREFILL_REDUCE=ring passes split's exchanges along the ring, for a fabric where a rank reaches only its neighbours, and its sums keep split's rank order (#902). Ours: while the ranks' watch lines are open, an NCCL failure on one rank stops every rank instead of leaving them waiting; postings made through the shared group helper end their group when a post fails; and the families share the ring's plan. Thanks to @Bizuayeu.
  • The lane host takes an opt-in round planner: a family can run prompts in pieces between the other streams' decode rounds, give each request its own copy proposer and trim each window's rows, and halt ends the rounds at the next boundary and fails what is left with its reason. A planner whose admitted callback fails ends each job it admitted once, as failed, and a failed round, cancellations and a close end every job even when no memory is left. No family uses the planner yet; the default loop serves as before (#861). Thanks to @jayleaton.
  • CUDA's buffer counters keep the pinned host peak beside the device peak and can hand over an interval's peaks as they reset them; tools/memory_receipts.py runs one command, records its Linux resident peak and the allocator's load and cleanup receipts, and reports a total footprint as unsupported rather than adding the two (#865). Thanks to @jayleaton.
  • A versioned drafter release format (docs/drafter-release.md): config.json names the target, its adapter and taps, check compares it with the loaded target and checkRecording with a --record recording, and Release.open reads a folder and checks every tensor's name and shape. Nothing serves a release yet (#893). Thanks to @jschmied.
  • A recipe for training a block drafter from --record recordings into a drafter release, with what each step gained on Kolibri-1 (docs/recipes/training-a-drafter.md) (#894). Thanks to @jschmied.
  • Qwen3.8-27B decode on Metal: K splits on M5 measured over every layer's matrices, an undrafted one-row round kept by its own verify with a DeltaNet step of three dispatches, and decode attention in 128-key chunks below position 8,192, chosen for each row by its own position so a window across 8,192 keeps every row's one-row bits. The chunks change the attention's summation order below 8,192 keys, on M5 too, so replies can differ from 1.0.12's; against float64 the new order's error is no larger, and drafted replies still equal "draft": false (#887). Thanks to @BobClawblaw.
  • GLM-5.3-Flash on CUDA with TF_GLM_PREFILL_REDUCE=split, the default, exchanges a value with every other rank before the weights load and refuses a pair of ranks that cannot reach each other, instead of failing in the first prompt (#899). Ours: only direct split runs that probe, so ring starts on four ranks that reach only their neighbours, and the refusal names ring or gather; host tests over a fake fabric cover the refusal and the ring start, not a four-rank machine. Thanks to @Bizuayeu.
  • Intel Arc Pro B70 (the XPU engine over Level Zero) checks and rounds up its sizes at open (XPU_CHUNK a multiple of 64 up to 8,192, a context up to 262,144), makes a stream's states whole or not at all, frees a snapshot only after its copies drain, reads safetensors headers within their files, and gives the card back at close; prompt chunks are cut on the 64-row grid at any length, and the prompt GDN's fp32 operands enter its fp16 DPAS as high and low terms after a power-of-two row scale. The author measured these on his B70 (#802). Ours, checked only by host builds and tests: close waits for every queue first, a failed start included; an open no longer keeps an earlier open's opt-in XPU_* settings; and the 27B runner waits for its queue before any host buffer a queued copy reads or writes goes away, on every error path, ending the process if the queue will not drain. Thanks to @Mirrdhyn.
  • Qwen3.5-2B and Qwen3.8-27B serve on CUDA through the native server: each decode shape replays as a CUDA graph, the 27B drafts with DFlash2 in chains and trees, and concurrent requests share every round, each stream's reply equal to its run alone and to "draft": false on a GB10 (#836). Its author also built the native server and the CUDA suites on Windows through a platform layer, with the CUDA kernels on sm_89; we have no Windows check of our own (#836). Thanks to @BobClawblaw.
  • The Qwen CUDA family reads mixed-width MLX checkpoints, 2 to 8 bits a module in groups of 64 (#849), and keeps 2, 3, 5 and 6-bit modules on tiles of their own width with their own prompt GEMM, rounding weights to bf16 once as the 4-bit prompt GEMM does (#859). Thanks to @BobClawblaw.
  • Images for the Qwen CUDA family with --vision: the checkpoint's vision tower runs in TensorFold's kernels, its rows replace the image placeholders in the prompt chunks, and the prompt rotates at M-RoPE's t, h and w positions, with pictures decoded and prepared by the released core/picture and core/qwen_vl paths the Metal family uses (#885). Thanks to @BobClawblaw.
  • The Qwen CUDA family keeps prompt states between turns in pinned host memory (8 GiB unless --prompt-cache-gib says otherwise, at most half of what the host has available), on the 128-row prompt grid; a state restores only when its geometry, cache format and every image's identity match the request's (#888). Ours: if a failed restore cannot drain its copies, dropping the state keeps its pinned memory, never freed, rather than freeing what the device may still read. Thanks to @BobClawblaw.
  • --kv-cache fp8 stores the Qwen CUDA family's attention caches as e4m3 rows with an fp32 scale each, about half the bytes of bf16; bf16 stays the default, and fp8 is off unless asked for (#886). Thanks to @BobClawblaw.
  • Shared CUDA operators for every family: verified tree rounds (#734), tree attention and DFlash block attention (#746), SwiGLU and output gates, Gated DeltaNet inputs, QK norm and RoPE (#797), and sliding-window attention, sigmoid top-k MoE routing and combine, and dense rows (#798). tf-cuda-test checks the tree rounds byte for byte against the host's tree rounds and the arithmetic operators against float64 references. No family calls them yet. Thanks to @jschmied.
  • A one-shot RoCE all-gather for two ranks, set up over the tensor-parallel group's NCCL communicator, with a two-rank test against NCCL's all-gather; no family calls it yet. Its design follows b12x's RoCE gather (#852). Thanks to @BobClawblaw.
  • The lane core can take several queued prompts in one pass for a backend that batches them (prefill_many, Engine.addStreams); a failed pass leaves none of them prefilled. No served family batches prompts yet, so admission is unchanged (#853). Thanks to @BobClawblaw.
  • Qwen3.8 Flash Next serves on CUDA through the native server from its MLX affine 4-bit, group-32 checkpoint with the MTP head, on kernels built in this repository: drafted windows, shared rounds of streams without drafts, kept prompt states and prompts a chunk at a time between other streams' rounds, all through the lane core, and past 2,048 keys attention reads the 512 blocks the model's indexer picks, up to the 262,144-token window. Each kernel keeps a row's sums in a fixed order; its authors measured on a GB10 that drafted replies equal "draft": false, concurrent replies their runs alone and resumed prompts fresh ones (docs/recipes/flash-next-cuda.md). A ModelOpt NVFP4 checkpoint on two local ranks is experimental (#952). Ours: every admitted stream that asks for drafts keeps them, where the fourth and later lost them; tensor-rank drafting with a prompt cache is refused at admission before the checkpoint or CUDA; #869's staging regression also fails the first copy and a drain before it succeeds (#869); and the kernel contract records #952's launches as nvcc 13.0, the release compiler, builds them, with nvcc 13.2's differences in its own set. Our kernel tests pass on an RTX PRO 6000 (sm_120) and a GB10 (sm_121), and on a GB10 we served the MLX 4-bit checkpoint with its MTP head: drafted replies equal "draft": false on all 17 cells, two and four concurrent replies equal their runs alone, and resumed chats equal cache-off ones on all 12 steps. Thanks to @ZackSample, @akol1, @AdrianBinDC, @Bizuayeu and @cwschroeder.
  • Flash Next on CUDA takes --vision, experimental: images go through the Qwen-VL tower the Qwen CUDA family runs, now one shared module (zig/src/vision/qwen_cuda.zig) on rank zero, their rows replace the prompt's image placeholders over the four streams, M-RoPE positions reach attention, the block indexer and the MTP head, and a second rank receives the rows over NCCL. The checkpoint's preprocessor and processor files set the image processor through core/qwen_vl. A failed upload, plan, launch, wait or rank transfer now drains the stream, then the context, or ends the process, before the tower, an image plan or a lane frees memory the GPU may still use, for Qwen's tower too. On a GB10 the MLX 4-bit checkpoint's PNG image cells pass: an image reply drafted equals plain, four image requests together equal their runs alone, and a chat resumes past an image; JPEG needs libturbojpeg, which that machine lacked. The work is ours, built on #885's tower and #952. Thanks to @BobClawblaw and @akol1.
  • The native CUDA build has EXL3 operators for a family's engine to call. exl3.Dense is a linear for every codebook and width, mul1's half widths included, whose row keeps its bits at any row count, and prompts run in 128-row blocks of the same kernel. qlinear takes .exl3 weights, with fp32 outputs as NVFP4 has them. experts.Grouped runs routed experts with each expert's gate, up and down at its own width. A checkpoint's trellis groups load from its safetensors headers. tf-cuda-test exl3 checks the kernels against float64 references, and exl3-tp2 checks the GLM split rules over two ranks. GLM-5.3-Flash's two-rank engine (below) runs its routed experts on this common module; no other family serves EXL3 natively yet (#837, #806, #741, #740). Ours: packed sign planes load, the scan, scratch and uploads keep their owners on every failure, and an upload needs a finite buffer budget. #806's kernels are a second linear behind Dense, used only when a caller asks, until the two are compared on the same checkpoint tensors. Grouped's up output is bf16, so it refuses a call that asks for the fp32 activation pipeline. Our kernel tests pass on an RTX PRO 6000 (sm_120) and a GB10 (sm_121). #837's kernels port the Python engine's EXL3 module (#42). Thanks to @justincasey, @BHCC2025 and @vcruz305.
  • On Metal, the EXL3 projection decodes each weight tile once for a prompt window of 32 or more plain rows and shares it across four SIMD groups. Shorter windows, routed rows and indexed experts keep the eight-row kernel, and so does a device that cannot build the 128-thread pipeline. A row's bits stay the same either way (#729). Ours: the Metal projection loads from the same checkpoint scan and parts as CUDA, with its sign planes kept packed. Thanks to @mrv777.
  • CUDA keeps a host-to-device copy's source until its stream proves the copy complete. Temporary uploads take pinned stages that one owner holds and hands to the next upload once their copies are done, so a decode step does not allocate and free pinned memory per copy; a wait that fails leaves the source quarantined instead of freeing it under a running copy, and DeviceBuffer.fromHost frees a buffer only after its copy completes. Uploads refuse a temporary source while a graph capture applies: replayed inputs live in stable stages.
  • The EXL3 routed experts' SwiGLU clamps keep a NaN, as torch.clamp does, where they turned it into the limit; on the decode path a limit of 0 now means none, as it already did for prompts.
  • GLM-5.3-Flash on two CUDA ranks reads Mia-AiLab's EXL3 checkpoint, its 4-bit mcg routed experts on the common EXL3 module, and with --vision takes images and video: rank 0's tower encodes them (video needs libtfvideo) and sends their rows and spans to the other rank. The ranks watch each other, so a rank that fails stops the other instead of leaving it waiting, and they agree on the checkpoint's bytes and every media limit before either loads; verify windows reach the decode buffers' 8 rows, and the bf16 linears run on glm_mm's tiles (#855, #976). Thanks to @BobClawblaw.
  • Qwen3.6-35B-A3B serves on the Qwen CUDA engine through the native server: its routed experts in 4 or 3 bits behind a softmax router (the 3-bit planes run beside a 4-bit shared expert), the MTP layer beside the checkpoint drafting chains and trees, and the dense family's prompt cache and image tower. On a GB10 drafted replies equal plain ones, 17 of 17, and concurrent replies their runs alone (#856, #972). Ours: its router, top-k and combine launches and its MTP layer's are in the CUDA kernel contract, each against float64, with records for nvcc 13.0 and 13.2. Thanks to @BobClawblaw and @CanadaApollo6.
  • A backend can ask the lane core to send a stream's first token before it prepares the first drafts, on a whole prompt pass or its last chunk; the Qwen CUDA backend does. The receipts are in docs/receipts/qwen-cuda-first-token/ (#932). Thanks to @jregan-beasley-smc.
  • Nemotron 3.5 Bolt (74B-A9B) serves on CUDA from NVIDIA's 24 GB checkpoint: puzzle layers, LatentMoE with its experts in GGML's IQ2_XXS and Q8_0 blocks on kernels of ours, image input, prompt states in pinned host memory on a card that cannot hold the prompt cache (the startup line says where they went), shared rounds of streams, and structured output and forced tool calls (#897, #938). On an RTX PRO 6000 (sm_120, nvcc 13.2) its drafted and plain replies equal those of #897's own build, concurrent replies equal their runs alone, and decode runs at 153 to 155 tok/s against that build's 144 to 146, with the same tokens. Ours: a failed load keeps its destinations and GPU parents until recovery proves them unused, the released router top-k kernel stays as it was beside a wide one for Bolt's 496 experts, and a negative moe_latent_size is refused before it becomes a width. Thanks to @BobClawblaw and @MiaAI-Lab.
  • Nemotron Omni takes video through the RADIO tower: frames sampled into groups the tower reads as images, each with its time, and video tokens budgeted apart from image tokens; the reserved video token in user text stays text (#940). Ours: the video config, frame rate, indices, dimensions and grid are refused before any decode or cast. Thanks to @MiaAI-Lab and @cwschroeder.
  • Gemma 4 serves natively on Metal: the 31B with its own dense and fused kernels on the tensor units, prompts in 512-row chunks, DFlash drafts, images and structured output (#879), and the 12B (gemma4_unified) with its unified text and image embedder and its MTP assistant as a native drafter (#975). Gemma's arithmetic runs in its own kernel copies, so no other family's bits move, and its kernels are in the Metal kernel contract (on M5, 12 of 12 at two seeds). Ours: config.json's context and EOS ids are bounded before their casts, and the packed buffers and private pipelines keep one owner through every failure. Thanks to @BobClawblaw.
  • Step-5 serves on one 256 GB Mac with Metal: a native step5_vl family with MTP drafts, images and kept prompt states (#903). Ours: the experts, every tensor's axes, the image tower's 667 tensors and the projector's width are checked before any model or device work. Thanks to @BobClawblaw.
  • MiniMax H3 / FastH3 runs on Metal in bf16 as a test tool (tf-h3-dit): clips from text or from an image, any step count with its schedule and AdaLN tables, the released MiniMax-H3 weights, re-voicing a finished clip and Ref2VA's reference pictures, videos and audio (#961, #949, #950, #959, #960). Ours: the counts, held media, tiles, checkpoint shapes and schedule are checked before any shader or scratch, and a reschedule replaces every table together. Its tensor-unit kernels pass the Metal kernel contract on M5 (15 of 15). Thanks to @drowzeys.
  • MiniMax H3 / FastH3's transformer blocks run on one CUDA device in bf16 as a C library for a host pipeline (zig build tf-h3, libtf_h3.so): products on the runtime's cuBLASLt with fp32 sums, the routed attention and every kernel under the CUDA kernel contract (#958, #947). Its sequence-parallel exchange over RoCE waits for a follow-up. Ours: checkpoint and projection sizes are checked before any allocation, only complete blocks load, and a failed load keeps its buffers and parents until their copies are proven done. Thanks to @drowzeys.
  • Flash Next on Metal serves on shared sessions with an explicit --parallel N above one, their contexts following the memory the load leaves (FLASHNEXT_SLOT_CONTEXTS sizes them by hand): a lone request runs on the engine's own rounds and joins the shared ones when a second arrives, and every stream's MTP drafts go in one command buffer (chained batch drafts are experimental) (#606). Ours: --parallel auto, the default, keeps the single host, as on CUDA, since on an M3 Ultra a lone request decoded 7% slower in a shared session (plain 79.6 against 86.2 tok/s on the MLX 4-bit checkpoint) and the single host decodes as 1.0.12 does; with --prompt-cache-gib unset the shared host reserves the prompt cache first, by the single host's rule, and sizes the sessions from what is left; the shared rounds read the checkpoint's embedding, PLE and expert widths and the PLE scale as the single host does, so on the MLX 4-bit checkpoint plain, drafted and concurrent replies equal 1.0.12's. On a 256 GB M3 Ultra that checkpoint holds 129.6 GiB and 16 sessions of 65,568 tokens 31.6 GiB more. Thanks to @cwschroeder, @sethforprivacy and @BobClawblaw.
  • Nemotron's FP8 and NVFP4 ModelOpt checkpoints serve on cards without thread-block clusters (sm_80 to sm_89): the lane matmul writes its split-K sums as fp32 partials and reduces them, each prompt segment through its own buffer's (#901). Ours: a reducing launch with no partials buffer is refused before it starts (MissingLanePart). On a GB10 Lightning's replies are unchanged and its device memory grows by the partials' 21.9 MB. Thanks to @BobClawblaw.
  • A checkpoint file's content digest is kept on disk with its identity (device, inode, size and both times to the nanosecond, in ~/.cache/tensorfold/file-digests/v1) and read again only when the file changes; a corrupt or foreign index is ignored. Every family's checkpoint identity reads its digests from there, and GLM-5.3-Flash's two CUDA ranks compare the checkpoint's whole content with them before either loads: on a GB10 pair the first start reads the 164 GB EXL3 checkpoint in 199 s, and a second start reads no shard (0.1 s) and is ready in 169 s against 370 s (#900). Thanks to @Bizuayeu.
  • Fish Audio Drama 3 text to speech on CUDA and Metal: POST /v1/audio/speech, with stream: true and response_format: pcm sending raw PCM chunks as they decode, drama3-generate on both, and the checkpoint and codec.pth read without Python (#927, #956, #939, with #915 to #926 beneath them). Its authors measured on a GB10 a warm real-time factor of 0.655 against 1.087 before the one-row kernels, and a load of about 6 s against 53 s with direct I/O into staging pieces; a reply that reaches max_frames returns its clipped audio. The CUDA build keeps a process-wide cap on device and pinned host bytes (setAllocationLimit, unset by default). Ours: the stager's copies go through the copy-source owner, and Drama's kernels are in both kernel contracts with nvcc 13.2's records. Thanks to @plotarmordev and @drowzeys.
  • Qwen-Image-2.1's transformer runs on Metal as a test tool (tf-qwen-image) on cases tools/zig/qwen_image_case.py makes with mflux, which also encodes the prompt and decodes the image (#948). Ours: the latent grid, scratch sizes and eps are checked before any device or checkpoint work. Thanks to @drowzeys.
  • tensorfold benchmark reads config.json through the same 64 MiB metadata reader as info and serve. A missing config still reports an incomplete checkpoint; an oversized, unreadable or malformed one reports its own error with its size, where the file system gives one, and the limit. It read at most 4 MiB and called every failure an incomplete checkpoint (#934). Thanks to @jkuepker.
  • When a benchmark run exits 2 it says why: incomplete attempts stay in the saved receipt, a cell has aggregates only when every repetition succeeds, and an early EOS is left out of full-length comparisons (#969). Thanks to @BlivionIaG.
  • Nemotron on CUDA keeps the attention caches of the streams beside the engine's own in pages of one pool the core owns: a stream leases pages as its sequence grows and gives them back when it ends, a failed lease rolls back whole, and startup sizes the pool from what the model, the engine's own window, the prompt cache and one staging buffer leave, refusing with the bytes it needs when the room is short. TF_KV_PAGES=0 gives every stream its own window as before, TF_KV_PAGES=all puts every stream on pages, and TF_KV_POISON=1 fills freed pages so a stale read shows (#935). On GB10, Nemotron's replies, concurrent replies and prompt-cache counts are the same as before the pool in every mode, and Super VL's prefill is within 0.2% of 1.0.12's. Thanks to @jschmied and @cwschroeder.
  • GLM keeps a long session's next turn on its cached prefix: when the pooled allocator needs room it moves the turn's own prefix instead of evicting it, and a restore that fails says once why, with the state's length and never its text (#966). Thanks to @tpischke and @heitke for the reports.
  • GLM on Metal gathers a prompt's routed experts at any MLX affine width from 2 to 8 bits and group of 32 or 64, gate, up and down each their own; only uniform 4-bit and 2-bit experts in groups of 64 took the gathered path, so a checkpoint such as 3-bit gate and up with a 4-bit down fell back to the sorted kernels. All 468 checked layouts equal independent row products bit for bit (#965, #968). Thanks to @harrisonfriia.
  • GLM on Metal runs a long prompt in chunks between the other streams' decode rounds, at most 256 rows a chunk while another stream decodes, so a stream beside a 100k-token prefill no longer stops until it ends; the shared fill selector lets the longest-waiting prompt in after eight skipped choices (#964). Thanks to @tpischke for the report.
  • tool_choice: "required" and a named function constrain the reply on every backend with a token grammar, Gemma's and unrecognized chat templates included, and on Qwen3.8-27B on Metal, whose drafts grow under the same grammar so a drafted reply equals the plain one. A backend without a grammar refuses before generation and names itself (#918). Thanks to @astro-15-alive for the report.
  • Qwen3.8-27B on Metal shares each round among up to 128 streams, each drafting its own DFlash2 tree in one drafter frame, verifies trees of up to 64 rows and takes prompts in 512-row passes; a lone stream also copies its context's continuation into its drafts. Drafted replies equal plain ones, and each concurrent stream equals its reply alone. On an M5 Ultra with TensorFold's MLX 4-bit checkpoint and z-lab's DFlash2 drafter at --parallel 8, against 1.0.12 on the same machine and on the cells #918 asked for: cold prefill 931 to 1,349 tok/s at 8,192 tokens and 891 to 1,250 at 30,720; 512-token greedy decode 116 to 126 tok/s for prose and 386 to 432 for code (97 to 104 and 305 to 325 at t=0.7); eight streams at once 222-239 to 314 tok/s together greedy and 232-235 to 292-296 at t=0.7. A warm resume's first token stays at 0.12 to 0.18 s. The second stream's DeltaNet states are allocated at start, so at --parallel 2 the server holds 26.5 GB where it held 22.6 GB. Its five register-slot DeltaNet pipelines are in the Metal kernel contract against float64, on an M3 Ultra and an M5 Ultra, with their M1 and M2 thread limits from offline compiles.
  • RUNBOOK.md's heat bands section adds one measured run: on three GB10s serving GLM-5.3-Flash NVFP4 at TP=3, a 1,035,295-token prompt without the bands kept one host's hottest zone at 94 C or more for most of the prompt, and TF_HEAT_HIGH=92 with TF_HEAT_LOW=88 held all three at 93.0 C or under, the first token 10% later (#988). Thanks to @Bizuayeu.
  • docs/receipts/gfx1151-qwen-833bbfcb/ qualifies 1.0.12's opt-in HIP build on one gfx1151 (Radeon 8060S) for Qwen3.5-9B, Qwen3.6-35B-A3B with MTP and Qwen3.8-27B: 130 model checks pass and 11 are skipped, every HTTP reply's full token digest is kept, and the 27B's cancellation failure and the 9B's and 27B's drafting comparisons, which did not run, stay listed as open (#994). Thanks to @ThinkOffApp.
  • Nemotron's latent MoE on CUDA: every segment of a prompt split into segments reads the shared-expert plans and pair ids its owner builds, where the other segments' buffers carved fresh ones that nothing wrote (#996). Thanks to @plotarmordev.
  • The benchmark's refusal-body test holds its fake server's sender on an event after the header, so it proves the body is not buffered instead of waiting 20 ms (#998). Thanks to @cwschroeder.
  • Nemotron 3.5 Super on CUDA has decode-sized forms of its latent top-k (each expert ranked on a thread of its own) and of the checkpoint's NVFP4 experts (32 columns a warp, four steps in flight), each bit-equal to the kernel it replaces and in the kernel contract, with 1,024 experts, 32 picks and rows without a finite score among its cases (#999). Thanks to @plotarmordev.
  • Nemotron's tensor-parallel worker sends a job's first message with one row, so a decode step is one message where it carried 16 rows of padding; larger jobs still send their second message (#1000). Thanks to @tovereast.
  • WebP images decode through libwebp 1.6.0's libwebpdecoder, loaded at the first WebP from TENSORFOLD_LIBWEBP, lib/ or the system's library path and refused by name when missing or another release, to the RGB bytes Pillow 13.0.0 gives the same file (lossy and lossless, with and without alpha, EXIF-oriented); animated WebP is refused, and TensorFold ships no copy of the library (#1004). Thanks to @BobClawblaw.
  • GLM-5.3-Flash on CUDA keeps its index keys and gates in 4,096-row rings that rebase before a pass would cross them, 0.674 GiB a stream at a 40,960-token window, so --parallel 16 fits and 16 streams share one verify of 2 rows each (#984). Ours: an MTP rebase keeps the whole verify window before its cursor, so a rejected proposal rolls back into rows the rings still hold. Thanks to @BobClawblaw.
  • GLM-5.3-Flash on CUDA can pack its dense linears to 4, 6 or 8 bits at load (TF_GLM_DENSE_BITS, TF_GLM_HEAD_BITS; 16, bf16, stays the default), the ranks agreeing on the bits; TF_ROCE_MAX_KB caps a RoCE gather's shard, 4,096 KiB by default; and NCCL's cuMem allocations are off on the ranks, which on GB10 exhausted the driver's pool under load (#995). Ours: a malformed, zero or overflowing cap is refused before any allocation, and the packed launches are in the kernel contract with their records measured on nvcc 13.0 and 13.2. Thanks to @BobClawblaw.
  • GLM-5.3-Flash on CUDA drafts with DFlash2 (--drafter): taps after five layers, per-slot context rings, a block pass split across the ranks and drafts sized by their chances against measured window costs, its linears at 4 bits by default (--drafter-bits 4|0) (#979). Ours: the rank buffers share one layout for 1 to 16 ranks, a failed load frees what it allocated, and the drafter's launches are in the kernel contract with their records measured on nvcc 13.0 and 13.2. Thanks to @BobClawblaw.
  • Gemma 4 on Metal reads every MLX affine width the core supports, each module's width from the config, with stacks of mixed widths in runs; the 12B converter takes mlx-lm's mixed recipe, and the recipes record the widths checked against the oracles, mlx-lm and transformers (#977). Ours: a failure at any width frees the sets built before it, and every dense and embedding width is in the kernel contract, pending its records. Thanks to @BobClawblaw and @gilby.
  • GLM's prompt cache spares a kept state that an outstanding lookup still restores, and a failed restore says why (#1007). Ours: eviction relocates the selected prefix before it takes a borrowed neighbour, and a failure is reported once. Thanks to @heitke.
  • The app leaves the engine's prompt cache to the native planner instead of asking for 8 GiB, which the engine refused on a Mac whose load and streams left less room (reported in #989). Thanks to @Deesha08.
  • --mtp-drafts and --mtp-confidence set a CUDA Nemotron stream's MTP depth and the cumulative confidence its drafts need (#997). Ours: they reach the shared lane rounds as well as a lone stream. Thanks to @plotarmordev.
  • Nemotron 3.5 Super on CUDA verifies windows of up to 32 rows, 31 MTP drafts a round, with its Mamba scan in stages of 32 held to its host twin's bytes in the kernel contract, and a lone stream's copied and Recall chains start at 15 tokens (#1006). Ours: a checkpoint without an MTP head keeps its shared copy lane, and only Super's latent models widen to 32 rows. Thanks to @plotarmordev.
  • Nemotron's latent shared-expert plans for a decode window are built once at buffer load, one per row count, and on one GPU the shared expert runs on the side stream beside the routed experts (#1002). Ours: shared windows of several sequences and two-rank windows keep the earlier schedule. Thanks to @plotarmordev.
  • An attached benchmark run reads the server's GET /v1/benchmark/manifest, so a two-rank CUDA run can be ranked when the manifest's facts pass the receipt checks (#980). Ours: an unknown backend is never attested as CUDA, and an attached run whose accepted manifest lacks its rank count or revision says it is unranked. Thanks to @tovereast.
  • Nemotron 3.5 Super on CUDA drafts with its MTP head over the embedded draft vocabulary's FP8 output rows: a stream drafts on the subset head while its last 16 context tokens are draft ids, else on the whole head (#1011). Ours: a failed head construction drains before it frees anything, and gathered rows are checked before any read. Thanks to @plotarmordev.
  • Nemotron 3.5 Super's checkpoint prompt passes on CUDA run the FP8 layers in 128-row tiles and the NVFP4 experts in 128-pair by 128-column tiles, up writing down's NVFP4 rows and one GPU's down summing the width shares into bf16, and router logits past 32 rows run on 128-row by 128-expert tiles, each bit-equal to the kernels it replaces in the kernel contract (#1008). Thanks to @plotarmordev.
  • Windows ARM64 builds the native CUDA engine from source, with NVIDIA's RTX Spark N1X (sm_121) among its targets; the device results in docs/WINDOWS.md are the contributor's reports (#1010). Ours: copy custody takes its locks and waits from std.Io's threaded mutex and condition, which Windows has; a Windows integrated GPU sizes its pool from CUDA's counts; and a library path resolves in full before it loads. Thanks to @mweinbach and @BobClawblaw.
  • The lane core's allocate cuts a grafted window's held count and branch start with its rows, so a shared round that trims a window with suffix-match grafts replies as the one-token decode does (#1013). Ours: the family trim path takes the same cut, so a one-draft cut keeps one draft and the first remaining graft keeps its index. Thanks to @chaog992.
  • In the lane core, the grammar's own drafts after a drafted window that is a chain but carries tree parents, as a pruned tree or a suffix-match graft from the pending token can, extend that chain. The core read their parents past the end of the window's list and failed the round (ParentAfterChild), which the 27B's required and named tool calls on Metal met with drafts on.

Moving to 1.1.1

These changes are not shipped in 1.1.0 and remain conditional on their final gates; a failed gate moves the work to the following patch release.

MiMo-V2.6-Flash (#728) is held for a later 1.1.x, outside the current 1.1.1 series: its eight native CUDA launches, then its model and device gates, remain owed, and its source in this release is not a shipped native backend. Thanks to @ajensenwaud and @jayleaton.

Known issues:

  • GLM-5.3-Flash's ModelOpt NVFP4 checkpoint on two CUDA ranks was not run for this release: on two GB10s the weights leave no room for its streams beside the memory reserve. Code that path shares changed in this release (NVFP4 scale planes and their tensor-parallel slices, the copy-source owner, NCCL's allocations and the RoCE cap on the ranks), so it stays a known issue until its regression run; the EXL3 checkpoint is the two-rank path measured for this release.
  • The reported M3 Ultra peak for Qwen3.8-27B on Metal is 4.1 GB higher than 1.0.12 because the second DeltaNet bank is allocated at startup; reducing that allocation remains follow-up work.
  • Flash Next on Metal with explicit --parallel 2 or more retains a cache-count/performance issue: on an M3 Ultra with the MLX 4-bit checkpoint, 9 of 12 chat steps reused 17 to 312 fewer tokens than the single host, with the same output tokens, and a lone request decoded 7% slower. The default --parallel auto uses the single host and matched 1.0.12's cache counts; the separate shared-session repair is held for a later 1.1.x and is absent from the current 1.1.1 series.