Ir para o conteúdo

TensorFold Histórico de versões

Espaço de programação com IA para macOS em beta, com motor local, downloads de modelos, workers de código e conexão a endpoints locais ou de nuvem compatíveis.

Os downloads vêm de github.com/ashhart/TensorFold · O OpenNavo não hospeda instaladores
  1. 1.3.7

    AtualizadoCorreções

    GitHub Release

    TensorFold 1.3.7

    Upgrade from 1.3.6 for the Metal library-load fixes: Metal libraries that failed to load on macOS 27.0 compilers load again, including Inkling 2 Mini's runtime library and rewritten Flash Next libraries. CUDA also fixes Qwen FP8 KV ordering: the FP8 RoPE kernel now starts after its head norms finish, and --kv-cache fp8 gives identical tokens with the default TF_QWEN_PDL on and with it off (#5376, #5405, #5303; #5353, fixes #5308).

    Fixes and changes you may notice

    • Metal library loading: source rewriters no longer add a second threadgroup-size attribute, which made the M5 compiler refuse whole libraries. Inkling 2 and LFM2 generated libraries guard against repeated or conflicting reservations, and the checked Inkling sources have one module owner. This covers Flash Next's SSD 4-bit group-32 prompt path among the affected libraries (#5376, #5405). Inkling 2 Mini's runtime convolution kernels also declare their threadgroup size once, so that runtime library loads again on current Metal compilers after failing with LibraryLoad since #4593 (#5303).
    • CUDA dependent launches: a host guard now rejects each enumerated programmatic dependent launch of a kernel that lacks its dependency wait. DeepSeek's generic x3ld kernels now wait first (#5381, after #5308).
    • Flash Next on CUDA: TF_FLASHNEXT_PREFILL_MTP_LEAN=1 no longer fails prompts over about 1,400 tokens; lean prefill pieces fit the MTP scratch while wide pieces remain where they fit (#5358, fixes #5332). Greedy drafts beside another open stream now use TF_FLASHNEXT_CONFIDENCE, the same stop rule as a lone stream, with token verification unchanged (#5265). TP=2 decode stages graph inputs before capture and every replay and frees the graph before aborting NCCL (#5222, fixes #2974). Expert residency caps now follow the selected GPU instead of device 0 (#5221, fixes #4952).
    • Checkpoint and pack validation: loading refuses a sharded checkpoint whose index disagrees with its shard headers. A Flash Next pack without a recorded source, made before 1.0, is refused with the command that rebuilds it, and saved prompt state is keyed to the TFQ3 tables the loaders already check. No additional weight bytes are read at load (#5306).
    • Inkling 2 Mini draft memory: window fitting now prices each drafted token at its own bytes. A 64 GB limit holds the whole draft window for eight streams, with every output bit unchanged (#4622).
    • Prompt-cache pressure reporting: when memory pressure stops the cache keeping new states, request logs explain that and /memory reports prompt_cache_keeping_new_states and prompt_cache_hold_reason. Warnings occur once per pressure episode, remind every 60 seconds, and report when the condition clears. What is kept, shed and resumed is unchanged (#5312, refs #5272).
    • GLM fixes: GLM-5.3-Flash TFQ3 Metal row signs now come from each tensor's absolute row, with fused runs retaining their recorded boundaries on every prompt path; the published checkpoint's replies are unchanged (#5225). On CUDA, layer read-ahead uses the checkpoint's model prefix, fixing full GLM/DSA without changing Flash spans (#5264, refs #5256).
    • Desktop development builds: macOS ARM64 builds stage engine 1.2.8 instead of 1.1.0, so tool calls reach Desktop as structured calls rather than chat text (#4545).

    Speed

    • Idol native preprocessing and background removal: in the cited Metal/SDK comparison, FP32 BiRefNet takes 0.172 seconds versus the SDK's 0.48–0.52 seconds. Its logits are within torch's own distance from a float64 ruler; Pillow resizes, erosion, crop and paste are byte-for-byte equal, and the preprocessed picture differs from the SDK's in two pixels by one. Generation from a photo takes 30.1 seconds versus 101.3 seconds, with a 2.77 GB peak footprint versus 12.88 GB (#1787, after #1780, for #1757).
    • Inkling 2 Mini router and gate passes on Metal: vectorized router/gate passes and a direct ungated all-reduce make decode about 1% faster on M3 and M5 Ultra, with tokens unchanged (#5207, refs #5191).
    • Inkling 2 Mini on M5 Ultra: the register-tiled dense BF16 kernel computes the same rows in the same order and fills a 2K-token prompt 5.7–7.3% faster, with tokens unchanged (#5201, refs #5191).
    • Inkling 2 Mini on M3 Ultra: 3:1 GQA decode and verification read each key/value head once for its three query heads, and multi-stream attention batches shared descriptors. Four-stream decode is 12–14% faster and a 2K-token prompt is 6% faster, with tokens unchanged (#5206, refs #5191).
    • Inkling 2 on M3 Ultra: each gated-attention layer runs its K and V short convolutions in one dispatch. Decode is about 1–2% faster, with tokens unchanged (#5004).

    Exact execution and drafting

    • Inkling 2 Mini on Metal: single-stream multi-row sliding-window attention stages K/V tiles while preserving scalar key order, BF16 roundings and FP32 accumulation; partials and replies remain bit-identical (#5138). The fused AR, loop and convolution steps run in one command buffer with every output bit unchanged (#4593).
    • Qwen3.5 drafting on CUDA: a batch mixing narrow and wide DFlash2/DSpine heads runs as one head launch per width and returns to the original stream order, with every token unchanged (#4439).
    • Qwen vision on CUDA: shared K/V tiles are stored as BF16 and widened to FP32 at use, with outputs byte-identical to before (#5239, refs #3143).
    • Dory on CUDA: decode rows issue q, k, v and g in one grouped NVFP4 launch and gate/up in another, replacing four and two launches. Each part's bytes and prompt rows are unchanged. The six tf_qmmf_many* symbols are looked up at load, so the fatbin must be rebuilt (#3131, closes #3118).
    • Inkling 2 CUDA drafting: DSpark kernels draft every open stream in one pass with byte-identical drafted output (#4858). Inkling 2 Small also gains DSpark drafter kernels with byte-identical output, and the shared expert planner skips out-of-range expert IDs (#4128).

    New opt-in switches and controls

    • TF_Q35_DFLASH_TRACE=PATH: writes one JSONL record per Qwen3.5-family CUDA DFlash round, including the scorer's exact grow priorities, to replay later with tools/dflash_replay.py. It is off by default; unset serving is unchanged (#5253).
    • serve --execution-witness: attests the Qwen3.8-27B-class Metal engine for the 9B and 27B MLX 4-bit checkpoints by hashing the Metal libraries built at load. Replies are unchanged, and nothing changes with the flag off (#5184).
    • --confidential: refuses at startup every flag and variable that keeps or sends request content and turns core dumps off. This is the startup slice; stored Responses follow separately (#5180, refs #5176).
    • Inkling 2 Mini GPU token draws: opt-in GPU sampling uses bit-exact f32 sampling and argmax with asynchronous decode. Default host sampling remains unchanged (#5153).
    • Inkling 2 Mini DSpark draft head: an opt-in, draft-only 4-bit/64 copy of the output head is available for DSpark drafting only. DFlash 2 drafting still uses the full head, target verification keeps the original head, and default output is unchanged (#5020).
    • GLM-5.3-Flash on one Mac: an MTP load without a stored draft head can synthesize an in-memory 4-bit/64 draft head from an 8-bit/64 LM head when the budget allows. Target verification still uses the original head (#4253).
    • TF_CUDA_SCHED=blocking: selects how a served CUDA model's host thread waits for its GPU; auto, spin and yield are also available. Blocking is off by default. It frees the core the driver's default spins on a GB10, with identical tokens and pictures; Inkling 2 Mini decode is about 2% slower (#5165).
    • TF_NEMOTRON_METAL_KV_PAGES=1: on pre-M5 Metal, drafted verification computes attention one row at a time, as plain decoding does, so drafted output stays byte-identical to plain. Contracts compare every output byte, including NaN payloads (#5267, refs #5223).
    • Inkling 2 Mini --drafter: accepts a DFlash 2 drafter, with drafted output byte-identical to plain decoding (#4917).
    • serve --listen-fd N: serves on the Unix socket supplied by the parent process, only to that process, taking the socket once before model loading (#5183, refs #5175).

    Models, platforms and guides

    • Hy4-flash CUDA: FP8 Engram kernels arrive with contract gates, controls and five-SM launch limits (#5087, slice 2b of #4795). The Top-16 router, BF16 row helpers and DFly2 glue also arrive with byte-exact MLA comparisons and full contract coverage (#5099).
    • CUDA GPTQ: an int4 W4A16 kernel serves group-128 routed experts and the LM head (#4183).
    • Idol native input: tf-idol-generate accepts raw PNG, JPEG and WebP photos, with --mode synthetic|real and --crop-margin X. It writes preprocessed.png and adds preprocess_s and birefnet_s to its JSON (#1787, after #1780, for #1757).
    • DeepSeek-V4.1 on Metal: EXL3 routed experts run with exact up and down kernels. A short descriptor table is refused before launch, and planted controls cover both kernels (#5063).
    • Linux CUDA archives: Thor (sm_110) SASS is included, and Qwen3.8-27B-only admission rules apply when serving on Thor (#5053).
    • Kolibri 1.1 on CUDA: kolibri1_1 serves up to 2,048 tokens exactly. Capabilities, model information and managed benchmarks list every CUDA-only alias with its family's formats (#4941, refs #4846).
    • Qwen guides and receipts: the pinned Qwen3.5-2B quick start stays first, the managed-choice alternative asks before downloading, and Windows points to its guide (#5349). The recipe and supported-model table record an RTX A4500 (sm_86) receipt for the pinned MLX 4-bit checkpoint with the 1.3.5 archive, including what it measured and what remains unqualified (#5315).

    Groundwork and shared code

    • Shared TFQ3 and Drama 3 data: TFQ3 records and wire constants now live in one shared copy used by every backend, with layouts, constants and output unchanged (#5281). Drama 3 CUDA and Metal take weight names, shapes and load order from one shared map while retaining backend-specific loaders and unchanged loaded weights (#5257, refs #4860).
    • ERNIE 5.5 CUDA groundwork: tf_ernie55_multimax runs the head's FP32 logits in a new ernie5_5_head image, rounding each step once in vendor order under a host-replay kernel contract. Nothing launches it yet, so served output is unchanged (#5202, part of #4926).
    • Metal shader sharing: legacy and current row-projection sources share helpers and 60 narrow indexed instances while keeping compiled shader sources byte-identical (#5205, refs #2251). Step-5, MiniMax-M3 and Spark2.5 embeddings share one affine-quantized-row macro while retaining identical compiler-visible tokens (#5203, refs #2251).
    • CUDA router tiles: shared router tiles read each 16-byte shared-memory row as four 32-bit words. Measured GB10 and x86-64 builds with nvcc 13.0.88 and 13.3.73 produced one PTX form for the affected router kernels and control; images, register counts and outputs are unchanged (#5360, refs #5123, #5157).

    Documentation, tooling and tests

    • Environment registry and documentation: computed trace lookups, two new variables and names refused by --confidential are registered, so the environment-names check passes again (#5373). Thirty more settings read through the registry with the same accepted values, reducing the lean count from 123 to 93 (#5188). docs/environment-names.md now lists variables found from actual Zig lookups, scoped by build and tagged for disk writes, request-content logging and library loads, with CI keeping it complete (#5182).
    • Qualification tools: a new device check compares drafted and plain output under seeded sampling on Metal and CUDA for release and PR qualification (#5249). The --listen-fd test treats a connection closed before a request is sent as refused, removing that race from the suite (#5273, refs #5183).
    • CUDA sparse-attention tests: a third contract case covers one query head per key head, a negative key count, a duplicate across a tile edge and unnamed entries in a nonfinite replay. This is test-only (#5242, follow-up to #5166).
    • Maintainability and housekeeping: pr_check refuses new cross-family imports beside its import-cycle ratchet; today's edges may only shrink, with qwen3 to llama allowed (#5233, fixes #4804). Changelog housekeeping restores #4907's number and Unreleased placement, removes repeated #4918/#4931/#5003 bullets, and credits #5042's author (#5196).

    Release reads

    Release-tip reads against 1.3.6 found identical tokens in every cell. On an M5 Ultra (Metal), Inkling 2 Mini fills 2K and 8K prompts 23% faster and decodes 3-6% faster; Flash Next is flat at one stream and 2-3% faster at four; Qwen3.8-27B is flat, with and without its DFlash 2 drafter. On a GB10 (CUDA), Qwen3.8-27B and Flash Next NVFP4 are flat (Flash Next's 64K prompt is 3.7% faster), and GLM-5.3-Flash NVFP4 at TP=2 on two GB10s stays within 0.7% at one and two streams, with no unequal streams. Qwen3.8-27B on Strix Halo (HIP) is flat. Metal was read on an M5 Ultra only; no M3 Ultra or other pre-M5 Mac was reachable for this release.

    Known issue: on a GB10, Qwen3.8-27B with its DFlash 2 drafter runs about 2% slower at four greedy streams than in 1.3.6. Batches whose streams use different draft widths now run without the CUDA graph (#4439). Tokens are unchanged, and one stream and sampled runs are not affected. 1.3.8 restores the graph path for those batches.

    Thanks

    Thank you to @AlexanderYW, @BadAd84, @Bizuayeu, @BlivionIaG, @GrgaPalcic, @jayleaton, @ZackSample, @ajensenwaud, @cwschroeder, @gilby, @jschmied, @jojomondag, @kotevcode, @mvanhorn, @sethforprivacy, @tacosta and @yguanrong for the fixes, features, measurements and reports behind this release.

  2. 1.3.6

    Correções

    GitHub Release

    TensorFold 1.3.6

    1.3.6 brings exact CUDA TFQ3 serving and speculative drafting to Qwen3.8-27B, GLM-5.3-Flash and Flash Next. It also adds LFM3-VL images on Metal, full GLM-5.3 on CUDA, more LFM3 formats and SenseNova-Loop MLX-affine checkpoints, alongside substantial Inkling 2 speedups and broader prompt-cache controls. A stable release now publishes checked Linux amd64 and arm64 container images (#4986, #1502, #4900, #1634, #1508, #4415, #3857).

    CUDA TFQ3

    • Qwen3.8-27B, GLM-5.3-Flash and Flash Next: CUDA serves 3/4/5-bit 2D-AffineCoset TFQ3 checkpoints with randomized 2D FWHT-128. Qwen3.8-27B supports DFlash2 and DSpine drafting from BF16 or MLX bases, GLM-5.3-Flash supports MTP and DFlash2, and Flash Next supports its routed TFQ3 layers and MTP drafter alongside MLX PLE checkpoints. Shared dense and Tensor Core kernels provide bit-exact speculative verification; non-TFQ3 checkpoints keep their existing paths (#4986).
    • Flash Next top-5 checkpoints: a checkpoint with a 1280-wide shared expert loads those projections at their real width rather than 640; top-10/640 checkpoints are unchanged. The optional Inkling 2 EXL3 pack-test path, TF_INKLING2_EXL3_DIR, is registered and documented (#5228).

    Speed

    • Inkling 2 Mini on Metal: tensor-unit expert and loop-gate projections make 2K-token prompts about 1.95x faster on M5, with tokens unchanged (#5144). Multi-row logits use coalesced 32-wide vocabulary tiles, making four-stream decode about 3.5% faster on M3 Ultra and 4.5% on M5 with byte-equal results (#5135). Coalesced NVFP4 and MXFP8 expert loads and stable SIMD combining preserve every output bit (#5150). Cached inverse RMS and fused partial updates make single-stream decode about 4% faster on M3 and M5 (#5001).
    • More Inkling 2 Metal gains: grouped routed-expert reads give about 1.9x prompt fill and 15-19% faster four-stream decode on M5 Ultra (#4995). Dense power-of-two matvec kernels gain about 3.6% on M3 Ultra (#4998), fused relative-bias attention makes decode about 3-7% faster on M3 Ultra (#5000), and 16-byte decode reads with parallel router selection move one-stream M4 Pro decode from 9.3 to 20.9 tok/s (#4919).
    • Inkling 2 drafting and prefill: the reworked DSpark drafter batches streams, removes attention score scratch and uses a two-pass GPU top-k while preserving plain and drafted output bits (#4699). On M1 to M4, simdgroup prompt kernels cut a cold 2,048-token prompt from 146 s to 9.7 s on M4 Pro with identical greedy output (#4756). Tree-shaped verification windows now run with output bits equal to the linear path (#5011).
    • Inkling 2 Mini on CUDA: the staged QKV decode projection reaches 5.6 to 6.4 tok/s on GB10 with identical bits (#4718). Sharing one forward pass across concurrent streams makes four-stream decode about 2.7-3.4x faster, with each stream's tokens equal to its solo run (#4786).
    • CUDA sampling: grouped radix probes replace bit-by-bit top-p cutoff searches. At top_p=0.95, a row takes 279-286 us instead of 427-515 us on GB10; every draw, probability and token is unchanged (#4691).
    • Vision on Metal: BF16 attention scores and probabilities halve Inkling 2 image-tower score traffic with byte-identical answers (#5120). Its two FP32 attention dots also use 64 x 64 tiles with byte-identical answers (#5119).
    • Other exact work: Ling-3.0-tiny attention on ARM CPUs is about 10% faster at one and four threads with unchanged tokens and logits (#5071). GLM's Metal DFlash2 draft decode fuses projections and reads packed rows without changing verified tokens (#4258). Metal EXL3 adds exact multi-row projections and a fused gate/up epilogue (#5054), and MiniMax-H3-Image reads ahead only the tensors it uses with mapped BF16 bytes and decoder conversion unchanged (#4909).

    New models, formats and guides

    • LFM3-VL-2B images on Metal: the official MLX 4-, 6- and 8-bit checkpoints serve with their own image tower when --vision is enabled; without it the server is text-only. OpenAI image_url parts accept up to four images and 256 image tokens a request by default (#1502, part of #1491).
    • Full GLM-5.3 on CUDA: glm_moe_dsa serves at TP=3, or TP=1 with three in-process shares, with a BF16 latent cache, MTP drafts, slots and prompt steps. GLM-5.3-Flash's paths, kernels and launch arguments are unchanged (#4900, part of #3063).
    • LFM3-1.7B formats on CUDA: the ModelOpt NVFP4 and block-FP8 exports run weight-only with BF16 activations, and the MLX 4-bit checkpoint runs as stored. TENSORFOLD_LFM3_KV_PAGES=0 gives each stream fixed pages, and LFM2.5-24B-A2B moves to the shared Liquid CUDA backend (#1634, #1508, part of #1491).
    • SenseNova-Loop on Metal: MLX-affine g64 checkpoints load and serve (#4415).
    • Tokenizer patterns: \A, \z, $, \G and atomic groups follow Oniguruma, so ERNIE 5.5's digit-grouping tokenizer loads; previously accepted patterns split as before (#4984).
    • Guides: a Claude Code guide covers starting a server, selecting a model or alias, setting the client context window and measuring the attribution block's cache effect (#4931, refs #3225). A Drama 3 guide and checker cover pruned checkpoints, audio waveform (PCM) comparisons and successful retry logs (#4992).

    Prompt caches, memory and optional controls

    • Qwen3.8-27B prompt caches: TF_QWEN27_MESSAGE_STARTS=1 keeps states at up to four recent message starts, allowing edits and replacements to resume from that message with unchanged replies (#4932). Repeated prompts retain their rewind state when the cache is full without letting clients evict one another; one-off conversations keep the old plan (#5136). Dropping reasoning from history also resumes correctly with a full cache while preserving the existing state protections (#5154, fixes #5141).
    • Idle weights on Metal: TF_Q27_IDLE_RELEASE=N releases prepared target weights after N quiet seconds and restores only the buffers macOS emptied on the next request, checking each against a SHA-256 snapshot. Replies are unchanged (#5040).
    • DeepSeek-V4.1 on Metal: TF_DSV41_POOL_TOKENS shares latent and index-key positions across slots while preserving per-request context limits and tokens. A request waits when too few positions are free; unset memory and startup behavior are unchanged (#3278, refs #2984).
    • Folded memory and living weights v6: opt-in living weights store folded-memory weights exactly as computed and add in-flight conversational learning, belief revision and a crash-safe delta journal for Llama, Nemotron, Qwen3.5 and Qwen3.8-27B; with learning off, replies are unchanged (#4937). Folded-memory saves and journals use exclusive files without following links, transactional recovery and size, offset and count checks before allocation (#5127).
    • CUDA execution controls: TF_FLASHNEXT_PREFILL_MTP_LEAN=1 skips unread MTP proposal and query work during prefill (#4529). TF_FLASHNEXT_GRAPH_TAIL=1 includes a lone verification row's final copies and greedy selection in its captured graph with the same operations and order (#4544). TF_GLM_KEEP_SEQS=1 reuses a released stream's sequence on its next request, avoiding allocation, fill and free (#4809). Each is off by default with unset behavior unchanged.
    • Kolibri graphs: TENSORFOLD_KOLIBRI_GRAPHS leaves decode graphs enabled when unset, blank or 1, selects eager execution with 0, and refuses other text by name. Tokens are the same either way (#5002).
    • Diagnostics: serve --execution-witness on Qwen3.5-2B Metal binds weight bytes and Metal library hashes with the OS compile options, OS build and chip, without changing replies (#4908). Ling-3.0-tiny's decoder can hash every step's full logits for bit-for-bit comparisons without changing selection (#5072, part of #1247).

    Server and request logs

    Setting TENSORFOLD_REQUEST_LOG_REPLIES=1 writes each finished reply beside its request, including status, finish reason, text, reasoning, token usage and timings. Streamed replies are written once complete, and rotated archives end on whole records (#4918, part of #3666).

    With the switch off, logs remain request-only and background work writes nothing. Typed request records pair with replies under owner-only access rules. Records are capped at 8 MiB and refusal messages at 4 KiB; a larger request record is refused while its reply is still recorded. Writes use an adjacent lock file, rotation to .1 at 64 MiB keeps at most twice the limit across two files, and Windows leaves reply logging off (#3666).

    Fixes and changes you may notice

    • Prompt and draft state: Inkling 2 Mini prompt-cache snapshots retain the DSpark drafter's drafting state on warm hits (#4542). Nemotron on HIP keys the token after an MTP prompt-cache state, preventing a shared drafted row from being overwritten and resuming such prompts from an earlier state without changing tokens (#5003, fixes #4999).
    • Inkling 2 on Metal: DSpark pipeline checks allow a valid drafter to load (#5041), prompt-attention shaders build on pre-M5 GPUs under MSL 4.0 (#4980, part of #4961), and six shaders declare their reserved threadgroup sizes and guard partial rows (#4981). Arithmetic is unchanged in all three.
    • LFM3-VL logging and planning: request logs redact image URLs in image and input_image parts as they already did for image_url, and per-stream image rows count toward the memory plan with --vision (#5121).
    • Desktop and Windows: Room turns use an idle watchdog re-armed by streamed chunks or CLI activity instead of a fixed three-minute limit (#4977, fixes #3415). The attachment diagnostic label meets WCAG AA contrast in both themes (#5086, refs #4717). The download check accepts GLM-5.3-Flash and Flash Next TFQ3 checkpoints, and Metal TFQ3 capabilities and records are reported correctly (#5038, reported in #5033). Windows on ARM64 compiles again, with x86_64 unchanged (#4991, fixes #4967).
    • DeepSeek-V4.1 on Metal: the already-created F32 pipeline is released if BF16 mv_mma pipeline loading fails instead of leaking (#5015).
    • Inkling 2 input checks: unsupported attention dimensions and residual-block layouts are refused by name at load. Out-of-range served token ids are refused before launch, and expired Metal token handles are refused instead of returning a newer token in a reused slot (#4990, refs #4387).
    • LFM3 format admission: CUDA refuses MLX 6- and 8-bit exports, MLX affine exports and LFM3-VL by name; Metal and the Intel GPU engine refuse block-FP8 and NVFP4 exports before reading weights (#1634, #1508, part of #1491). Metal EXL3 also refuses overlapping output and scratch buffers (#5054).
    • ZONOS3 voices: OpenAI stock voice names use the configured default voice with case-insensitive matching; a real catalog voice of the same name still wins and other unknown names remain refused (#3872, refs #3615).
    • Settings registry: twenty-nine more settings, mostly DeepSeek-V4.1 CUDA and DSpark settings, and twelve more settings read through the shared environment registry with the same accepted values (#5152, #5131).

    Groundwork and shared code

    • CUDA grouped-expert MXFP4: stored E2M1 codes and E8M0 scales decode to BF16 registers and reuse the BF16 experts' accumulation chain with matching output bytes. The up projection is not built, no served checkpoint selects the format yet, and existing expert formats are unchanged (#5042, refs #4926).
    • Sparse and MLA kernels: CUDA adds exact sparse-index selection and summary kernels that no family uses yet (#5051), plus 256-wide MLA value heads and learned-sink merging written for ERNIE 5.5 DSA layers; GLM does not use these paths (#5084, refs #4926). A sparse gather-attention kernel for Kolibri 1.1 handles duplicate, empty and masked indices but is not wired into serving (#5166).
    • Hy4-flash building blocks: serial-exact iHC and HC CUDA kernels, host-side vision layout, one-rank NVFP4 routed experts and W8A16 weight packing landed without a serving path (#5100, #5022, part of #4795; #4934, slice 2 of #3801; #4895, slice 2a of #4795).
    • Other not-yet-served pieces: Metal EXL3 adds an exact one-row projection as the first DeepSeek-V4.1 Metal lane piece (#5050). DeepSeek-V4.1 on HIP adds a top-512 indexer kernel under the Metal selection rule (#4914, part of #2065). ERNIE 5.5's host-only package adds configuration, weight-map, layer-plan and chat-encoding support but does not serve the model (#4985, part of #4926).
    • Shared CUDA code: GLM's mHC kernels use shared bodies while preserving GLM's entries, widths, factors and SASS on every release SM (#5164, refs #4926). Inverse-RMS warp reductions share tf_common::warp_sum while preserving arithmetic, instruction encodings and barriers (#5068).
    • Shared core and Metal code: log-probability ownership and tensor-parallel settings move into shared code without changing behavior (#4950, #4878). Flash Next rotary scalar and hyper-connection RMS sources, and shared vision sums and bias handling, remove per-family copies while preserving assembled sources or arithmetic (#5061, #5060, #5047, refs #2251).
    • Inkling 2 Small EXL3 validation: host-side pack admission checks the EXL3 config and shard byte sizes and refuses mixed widths and unsupported options before loading. This is validation, not serving; existing Inkling 2 Mini paths are unchanged (#5098).

    Packaging, tooling and tests

    • Stable container images: publishing a stable GitHub release builds and checks ghcr.io/ashhart/tensorfold:vX.Y.Z for Linux amd64 and arm64 from signed archives. The images pin CUDA, cuBLAS and NCCL 2.30.7 runtime packages, use a non-root user and have no rolling latest; pull requests never publish (#3857).
    • CUDA build tooling and qualification: SASS identity checks run nvcc under setarch -R with equal-length build paths so unchanged rebuilds produce identical images (#5170). Qualification records describe router-tiles PTX differences between nvcc 13.0.88 and 13.3.73 with address randomization on (#5157, refs #5123).
    • Tests and maintainability: host, environment-setting and kernel-contract tests were repaired or expanded for Qwen3.8-27B, GLM, Inkling 2, DeepSeek-V4.1 and weight-residency bookkeeping (#5129, #5122, #5116, #5111, #5058, #5039, #4987). Environment valid-setting cases move into their own table (#5089), pr_check.py refuses new Zig import cycles while inherited cycles remain warnings (#4890, refs #4804), and changelog housekeeping removes a duplicate #4908 entry (#5101).
    • Input checks: GLM on CUDA refuses token ids outside its embedding on every path (ordinary, MTP, paired prompts, DFlash) and refuses startup when the tokenizer has more tokens than the model's vocabulary. ERNIE 5.5 refuses configs whose attention dimensions do not add up. Living memory replays only regular journal files and checks a saved prefix length before allocating. Request records redact inline document payloads and file containers. Valid inputs produce the same output.

    Known issue

    • Nemotron-3.5-Lightning on Metal with MTP drafts: a user reports that sampled output with the default drafts differs from --no-drafts (duplicated or cut words, broken tool calls; #5223, also in 1.3.5). Use --no-drafts with this model on Metal until the fix ships.

    Thanks

    @atakann, @BadAd84, @Bizuayeu, @bjornmonnens, @BlivionIaG, @BobClawblaw, @cwschroeder, @dcolley, @devopsfortunato, @francip, @garvrao80, @gilby, @GrgaPalcic, @javierbits, @jschmied, @kotevcode, @mrv777, @niterider804, @plotarmordev, @Shoestring-dev, @tacosta, @ThinkOffApp, @trozzelle.

  3. 1.3.5

    Correções

    GitHub Release

    TensorFold 1.3.5

    1.3.5 adds TFQ3, TensorFold's own quantized weight format, for GLM-5.3-Flash and Flash Next on Metal, and brings Inkling 2 Mini to native serving on CUDA and Metal, with images on Metal and large decode speedups on both. New models and paths include SenseNova-Loop-9B on Metal, Ripple-65B-Preview on CUDA, speech input for Nemotron 3.5 Transcribe, ZONOS3 Mini text to speech and Idol end to end on M5. The contributing rules now say exactness is bit for bit: a changed reduction order or rounding point must keep every output bit, by default and with any switch on (#4888).

    TFQ3

    TFQ3 is TensorFold's own quantized weight format: .tffpw record files and a shared pw_v3_tables.bin beside a checkpoint, loaded zero-copy and run by native Metal kernels. A checkpoint without TFQ3 records takes the same paths as before. Within TFQ3, a repeat equals its prefill and 1-row decode equals multi-row decode, while prompt and decode may differ in the last bits.

    • GLM on Metal: TFQ3 weight loading (layer_XX.tffpw, nonmoe.tffpw, pw_v3_tables.bin) with decode and prefill kernels for M5 and earlier Macs, plus 8-bit/64 KDA split-parts and window kernels. On an M5 Ultra, GLM-5.3-Flash-TFQ3 (139.55 GB on disk) loads in 8.4 s, matches depth 0 == depth 3 bit-identically, prefills p2048 at 1,567 tok/s and decodes at 69.2 tok/s (B=1), 87-104 tok/s with live MTP streaming. Non-TFQ3 checkpoints compile no TFQ3 kernels (#4953).
    • Flash Next on Metal: checkpoints with TFQ3 routed MoE sidecars (pw_v3_tables.bin, layer_XX.tffpw, mtp_00.tffpw) run native TFQ3 kernels for decode (B=1 and deduplicated B=2..16) and prompt prefill; non-TFQ3 checkpoints stay on the existing MLX affine paths. --ple-on-ssd works with TFQ3 and an incompatible --ssd-experts is refused. On an M5 Ultra, Qwen3.8-Flash-Next-TFQ3 (78.99 GiB) reaches 5.996 combined PPL (against 6.007 for the 8-bit source and 6.644 for MLX 4-bit), 3,855 tok/s p2048 prefill, 82.9 tok/s B=1 decode and 154.5 tok/s at MTP depth=3, with bit-exact depth 0 == depth 3 parity (#4964).
    • Release fixes: GLM decode windows of 8 to 16 rows give each row the same bytes as 1-row decode (the prompt pass alone uses the MMA kernels), GLM refuses misaligned 4-bit records, a stray pw_v3_tables.bin no longer turns TFQ3 on for a checkpoint without TFQ3 records (GLM and Flash Next), and Flash Next checks its table file as GLM does (#4996).

    Speed

    • Inkling 2 Mini on Metal: routed experts and the combine run a thread per output with the same serial arithmetic, so one-stream decode is about 16x faster on an M5 Ultra and 17x on an M3 Ultra (#4894). The router's and loop gates' dots do the same, so prompts reach the first token about 42% sooner and four streams decode about 64% faster on an M5 Ultra (#4912). DSpark drafting uses the 1/sqrt(128) attention scale and reads kappa as FP32, so one-stream draft acceptance on an M3 Ultra rises from 3% to 55% and drafted decode is about 56% faster (#4447). Tokens and replies are unchanged in each.
    • Inkling 2 Mini on CUDA: expert weights staged a warp at a time make one-stream decode about 70% faster on GB10, four streams about 60% faster and long prompts reach the first token about 25% sooner (#4728); the loop gate as a down and an up half adds about 28% one-stream (#4697), and decode experts a warp over 8 columns about 3% more (#4729). Tokens are identical.
    • Lanes (host sampler): Flint, Llama, Kimi K3 and MiniMax-M3's draws keep a draw's best 1,024 candidates in one bounded heap pass instead of sorting the row, bit for bit the full sort's. On an M4 Pro a sampled stream of a 201,058-token-vocabulary model decodes at 29.2 tokens a second where it did 21.2, and four streams at 56.1 where 33.5; greedy is unchanged (#4744).
    • GLM on Metal: one-Mac GLM-5.3-Flash prefills short remaining work first by default, cutting a short reply beside a long prompt from 6.11 s to 3.56 s with long-prompt TTFT within 1.2% (#3903).
    • Qwen3.8-27B on Metal: Macs with tensor units that are not Ultras take 8-bit prompt chunks in row blocks, as Ultras already did (#3280). On M1-M4 a prompt that runs alone takes the prompt frame's rows per pass (512 by default) instead of 128 (#2916). On M5 and later, row projections take the wide kernel from 8 rows instead of 4 (#4617), and pick their narrow or wide kernel per chip, so an M5 Max no longer runs 8-row and wider windows on the kernel that is slower there (#4730).
    • XPU: Qwen3.8-27B decode attention computes a key's twelve exponentials as one 16-lane vector exp, with every output byte unchanged; on an Arc Pro B70 served drafted decode gains 1.3% at 7,588 prompt tokens, 3.0% at 28,946 and 4.9% at 121,022, and plain decode is level (#4651).
    • Streams beside long prompts: Nemotron on CUDA (#4700) and Gemma 4 on Metal (#3025) fill a new prompt a chunk at a time between other streams' decode rounds, so a long prompt no longer stalls replies already streaming.
    • CUDA: Kolibri-1 decode rounds of two or more rows replay a CUDA graph captured once a shape, with tokens unchanged; TENSORFOLD_KOLIBRI_GRAPHS=0 keeps them eager (#4884). Flash Next on one GPU skips a non-final prompt chunk's last-layer MLP stream and experts, which nothing reads (#4885), and its MTP draft rows' best value, first id and log-sum-exp run over 32 one-warp blocks a row with the same bytes (#4632).
    • Lanes (pricing): drafted lone streams in families that opt in to copy pricing are priced as in 1.3.3 again, up to 2.5% faster at 4 code streams on M3 and M5 Ultra with the DFlash2 drafter (#4688); a lone stream with a fixed-block drafter is priced for its full block (#4457).
    • Other kernels: H3 on Metal runs transformer products on h3_gemm_32x64 with sums unchanged (#4641), Flint draws a shared round's sampled rows in one launch (#4780), HIP decode weighs each slot's rows from one read (#4754), HIP Qwen uses the policy prompt step on lone RDNA 3.5 iGPUs (#4207), the 4-rank RoCE ring relay forwards each half as it arrives, bytes unchanged (#4798), and long H3 image renders on Macs give way to live speech on the GPU (#4650).
    • Opt-in switches, off by default (each PR's line says what it keeps): Nemotron CUDA TF_NEMOTRON_WIDE_ROUNDS=1, decode rounds of up to 16 streams, +2% to +6% at 16 streams on a GB10 (#4741); Qwen3.8-27B Metal TF_Q27_DFLASH_ABSORB_BATCH=1 (#4629), TF_Q27_DFLASH_ADAPTIVE_BLOCK=1 (#4628) and TF_Q27_MTP_GPU_PICK=1 (#4570); Qwen3.5/3.8 CUDA TF_Q35_DFLASH_ABSORB_BATCH=1 (#4648), TF_Q35_GROUP_PROJ=1 (#4515) and TF_QWEN35_ATTN_ALL_ROWS=1 (#4496); Flash Next Metal TF_FN_GX_GATEUP_MB2=1 (refs #1486), TF_FN_GX_SHARED=1 (#4834) and TF_FLASHNEXT_BATCH_GDN_WIDE=1 (#4489); Flash Next CUDA TF_FLASHNEXT_GDN_CHAIN_TPR=1 (#4484) and TF_FLASHNEXT_WINDOW_GRAPH_PARITY=1 (#4492); MiniMax-M3 CUDA TF_MINIMAX_GRAPHS=1 (#4610); Gemma 4 CUDA TF_GEMMA4_ARGMAX_GRAPH=1 (#4616); DFlash2 CUDA TF_DFLASH_QL_SPAN=1 and TF_DFLASH_GRAPH=1 (#4516); GLM TP=2 TF_GLM_WIDE_EXPERT_TILE=1 (#4565); CUDA qmmf TF_QMMF_HALF_BN=1 (#4533); CUDA TF_CUDA_POOL_AFTER_WARMUP=1 (#4591).

    New

    • SenseNova-Loop-9B on Metal: served natively through the qwen27 lane backend in BF16 and AWQ 4-bit (group size 128), with its looped 56-step schedule, two-stream mHC, 512K YaRN context and vision, and drafts with its published mtp.safetensors (#3868, carries #3859, fixes #3781).
    • Inkling 2 Mini: native serving on CUDA (one rank, NVFP4 and MXFP8 experts) and Metal, with kernel contracts on both (#4387). On Metal it serves images under --vision (PNG, JPEG and WebP), with the vision tower and projector on the GPU; without --vision images stay refused by name (#4704). Its startup line breaks the serve's demand into weights, dense layers, scratch and stream state (#4705). Inkling 2 on HIP has attention kernels under the kernel contract (#4633).
    • Ripple-65B-Preview: serves on the native CUDA engine from the publisher's NVFP4 release, with lane rounds as CUDA graphs, kept states and the prompt cache; the bf16 release is refused by name, and structured output and forced tool calls are refused until masked sampling lands (#2302, fixes #2300). On Metal, --drafter takes the publisher's DFlash2 drafter beside either release, with drafted replies equal to plain ones (#2260, fixes #2259).
    • Nemotron 3.5 Transcribe on CUDA: chat requests take speech as 16 kHz mono WAV in OpenAI input_audio and vLLM audio_url parts, up to an hour a request, with clips keyed in the prompt cache (#1632, closes #1549).
    • ZONOS3 Mini text to speech on CUDA: named voices, reference codes and cloning from a clip (#3720). Drama 3 on CUDA gains semantic guidance (--cfg-gamma and the other guidance flags), as on Metal (#4153).
    • Idol on M5 Metal: tf-idol-generate runs end to end from one preprocessed picture to a 3DGS PLY and camera; on an M5 Ultra it takes 29.1 s against 95.4 s for the SDK's pipeline on MPS, at a 2.71 GB peak footprint against 12.88 GB (#1780).
    • Qwen on Metal: the 9B's DFlash (v1) drafter is served with --drafter beside DFlash2, its ring keeping fused rows (8 KiB a token instead of 64 KiB), and TF_Q27_KV_GROW=<rows> starts K/V slots at that many rows and grows them with their streams, with byte-identical replies (#1896). Qwen3.6-35B-A3B's text-only checkpoint serves on the routed expert path (#3239).
    • CUDA: an sm_110 target serves Qwen3.8-27B text on one Thor GPU (#4796), Flash Next takes a top-5 checkpoint with a 1280-wide shared expert as well as top-10 (#3523), and GLM-5.3-Flash with --learn-conversations keeps conversation states on disk, so after an eviction or a restart the next turn reads its state back (#1411).
    • More hardware and placement: Qwen 3.8-27B on XPU opens Arc Pro B60 cards when no B70 is found (#4802), and Ling-3.0-tiny gets an exact decoder for the published 4-bit GGUF on aarch64 Linux (#4266). GLM, MiniMax and Nemotron on CUDA are placed by --tp, --rank, --master and --master-port; the TF_GLM_*, TF_MINIMAX_* and TF_NEMOTRON_* rank and world variables still work as aliases until 1.4.0, with a start-up warning (#2919).
    • GLM on Metal: GLM_POOL_TOKENS sizes the shared latent pool apart from each stream's --context, so one Mac's streams can share a 2M-token pool with zero output-token differences (#3906).
    • MiniMax-H3-Image: CUDA tools for the prompt path and image decoder (#3733), a Metal tool that writes a whole text-to-image case from a size and a seed (#2781), and 19 Metal kernels under the kernel contract (#2808).
    • Opt-in features and diagnostics: LFM3 warm turns under TF_LFM3_METAL_WARM_TURNS=1 re-prefill a tool loop only from the first changed token (#4585); tied embedding heads for the Qwen3.8-27B family under TF_QWEN27_TIED_HEAD=1 (#4519); Flash Next CUDA TF_FLASHNEXT_WINDOW_CHECK=1 grows a lone stream's copy window past 32 rows when a boot self-check proves it (#4075); Qwen3.5 CUDA TF_QWEN_KV_SNAPSHOT_GPU=1 keeps prefix snapshots on the device (#4473); DeepSeek-V4.1 Metal TF_DSV41_ROUND_PROF=1 (#2951) and GLM Metal GLM_ROUND_PROF (#3894) report round timings, and Qwen 3.5 Metal TF_QWEN35_CHUNK sets the prefill chunk size for measurement, the default staying 128 rows (#3762). GLM-5.3-Flash CUDA TF_GLM_VISION_FUSED=1 runs the image tower's attention on the shared full-attention vision kernel; its sums run in another order, so replies to prompts with images can differ from the default path, which is unchanged (#3790).
    • Building blocks: Hy4-flash host weight maps for its ModelOpt NVFP4 build (#4110) and its W8A16 FP8 checkpoint with TP partitions (#4827), with serving in later PRs, and a host tier that keeps the core KV pool's logical pages in host RAM behind device frames (#1501).
    • tensorfold start: selects a fitting catalog model, downloads it with consent, starts a local server and checks its reply, keeping API keys out of output (#4852).

    Server and API

    • Legacy echo: /v1/completions takes echo, returning the prompt's text and, with logprobs, each prompt token's entry ahead of the reply's; engines without prompt logprobs refuse it by name (#3526).
    • Prompt cache flush: POST /v1/prompt_cache/flush takes an optional retain count that keeps the most recently used prompt states (#4856).
    • Priority aging: TENSORFOLD_PRIORITY_AGE_MS (default 0, unchanged order) lets a background request that has waited that long start before foreground work (#4833).
    • OCR: POST /ocr answers PaddleX's (#2575), docTR's (#2574) and LiteParse's (#2573) request contracts.
    • Capabilities: tensorfold capabilities --json lists TENSORFOLD_PARALLEL and the other variables serve honours, so the desktop app's Engine variables page accepts them (#4588, fixes #3684).
    • Web fetches: hostname lookup uses the shared bounded resolver, so a request's deadline holds when the system lookup is slow (#4551).

    Changes you may notice

    • Qwen 3.5 and 3.8 stop tokens: one EOS rule for every family reader, and qwen27 now reads generation_config.json, so qwen27's own stop tokens match the served set on the ten configs that declare <|im_end|> (#4678).
    • Inkling 2 Mini thinking off: enable_thinking: false and reasoning_effort: "none" reach the chat template as thinking effort 0 instead of the default 0.9; thinking-on replies are unchanged (#4876).
    • Inkling 2 tool calls: required and named tool calls use the model's own message format, so a request that needs several calls ends after them instead of repeating until max_tokens; a required single call keeps its parsed tool_calls but its token ids change (#4898).
    • Qwen3.8 on CUDA: TF_QWEN_PDL is on by default on sm_12x GPUs (GB10, RTX 50 series), with tokens unchanged; other GPUs keep plain launches, TF_QWEN_PDL=1 still turns it on from sm_90 and TF_QWEN_PDL=0 turns it off (#4881).
    • Flash Next on CUDA: the fused read-out is the default, making prompt processing about 3-5% faster on GB10 with identical tokens; TF_FLASHNEXT_READOUT_FUSED=0 keeps the old path (#4799).
    • --vision on CUDA and HIP: one core gate decides it at startup. --vision on a checkpoint without a vision tower is refused, including Qwen3.5 on HIP and Flash Next on CUDA; LFM2 on CUDA loads its tower only with --vision (#3456).
    • Settings checked at startup: TF_Q27_KV_GROW (Metal) and TF_QWEN_KV_SNAPSHOT_GPU (CUDA) are checked at startup and refused by name like every registered setting; TF_QWEN_KV_SNAPSHOT_GPU accepts only 0 or 1, where other text was read as off (#4963).
    • Loading: Gemma 4's CUDA drafters and one more MoE family's CUDA loader refuse a checkpoint with tensors the engine never binds (#4566). Flash Next on Metal fits an oversized --ssd-experts pool to the load ceiling instead of refusing the load (#4811). An LFM3-VL text-only load leaves the vision tower on disk (#3420).

    Fixes

    • Qwen 3.8-27B on Metal M5: 5-bit and 6-bit group-64 checkpoints get split-plane storage and register-direct lane kernels (#4419), and split K for decode and prompt rows as v1.3.4 did again, so their sums run in v1.3.4's order (#4962).
    • Flash Next on CUDA: the pass scratch has room for the MTP head's rows, so a 128 to 1,023-token prompt with drafts on no longer writes past it (#4801).
    • Prompt cache and kept states: a Metal stream whose setup fails partway no longer leaves the prompt cache smaller in Llama, Ripple, Spark2.5, Flint, Step-5 and MiniMax-M3 (#4731); a waiting stream under stepped prefill no longer pins its kept state (#4751); a GLM CUDA prefill cancelled between chunks keeps its completed shared-cache prefix (#4694); and GLM-5.3-Flash on Metal sizes its staging permit from the model's whole image, so deep saves past 1 GiB are kept and a restarted server resumes (#4216).
    • Lost wakeups: score requests and server shutdown wait on their own conditions (#4690), and the sessions tier thread's job runner can no longer sleep with a job queued (#4653).
    • Host status: the lane host's status read copies a published snapshot, so a monitoring client no longer holds the decode round's lock (#4525, refs #3200).
    • Cancels and failures: Unlimited-OCR-2 stops a cancelled request before image encoding and between chunks (#4528), and Idol's octree and decode-trace allocation failures unwind cleanly (#4304).
    • Lanes: window-cost tables are measured in interleaved sweeps and repaired at startup within a time budget (#4755), lone-stream copy pricing refuses an empty chance list and keeps the unpriced width for a bad cost (#4668), MiniMax-M3 on Metal times its 12- to 32-row shared rounds at load (#3120), and the shared price log covers the shared-drafts grant path (#4686).
    • Pull and macOS: a refused proxy or timeout setting is named correctly on every configure (#4677), and the macOS native server links memcpy from libSystem again (#4736).
    • Desktop: Discover shows a model as installed again once its selected revision matches (#4606), and the app typecheck passes again (#4829).

    Thanks

    @AbrahamCete, @AIFlowML, @akol1, @atakann, @BadAd84, @Bizuayeu, @BlivionIaG, @BobClawblaw, @cshintov, @devopsfortunato, @eXsoR65, @garvrao80, @gilby, @grantoverton, @GrgaPalcic, @IF-YFXJ, @jayleaton, @joshuaswarren, @jrb-ai, @jschmied, @laudney, @MaverickKB, @Mirrdhyn, @plotarmordev, @SashaMIT, @scchumbletech, @sethforprivacy, @Spectre056, @squirtymcgirt, @ThinkOffApp, @timmyit, @ultradaoto, @wojo.

  4. 1.3.4

    Expandir

    GitHub Release

    TensorFold 1.3.4

    1.3.4 makes tensorfold pull work through proxies: it honours the proxy environment on every hop of a redirect, bounds every connect and read, and resumes a stalled file from its partial bytes. It hardens tool-call parsing and grammar compiles, which now bound their work, and cluster launch, session restore, Hub pulls and Web pairing now fail closed on malformed input; the json_object grammar is fixed to work on large vocabularies under the new limits. On CUDA, GLM at TP=2 does less work per prompt by default, and with TF_GLM_PAIR_EXPERTS=1 its prompts are 15% faster at 2K on two GB10s, while the server takes n up to 16 and cache_salt and Ripple-65B-Preview runs on M5 Macs. This release is not slower than 1.3.3 anywhere: copy-only decode on AMD Strix Halo keeps 1.3.3's lone-stream copy pricing.

    Speed

    • Flash Next on Metal (M5): the 4-bit expert scale and bias index is now built on Macs with tensor units too. One-stream decode is 2-5% faster on an M5 Ultra, with the same tokens (#4547).
    • Qwen3.8-27B on Intel GPUs (decode attention): decode attention merges its slices with 16 subgroups a head instead of one, adding them in the same order, so every output byte is unchanged (token hashes match main, drafted and plain, bf16 and int8 KV). On an Arc Pro B70, plain decode gains 1.8 to 2.0% at about 8,000 prompt tokens, 14.7 to 16.0% at about 30,000 and 39.8 to 42.2% at 121,022. Drafted decode is level. The kernel contract registers it as a bit-equal replacement with two planted controls (#3960, lands #2799).
    • GLM on CUDA (TP=2 prompts): when a chunk crosses the dense limit, dense attention runs only on the rows sparse attention leaves untouched. Prefill also skips projections nothing reads (the MTP proposal and query-side work). Outputs are unchanged (#4499).
    • GLM on CUDA (TP=2 paired experts): opt-in TF_GLM_PAIR_EXPERTS=1 runs one grouped routed-expert pass per prompt pair with 128-row items, so experts with many tokens read their weights once. Each rank passes its own FFN partial under the default split reduction, so tokens match the unpaired path. On two GB10s, prompts are 15% faster at 2K and about 5% faster at 8K and 32K. Off, nothing changes (#4493, #4619).
    • GLM on CUDA (TP=2 index split): TF_GLM_INDEX_SPLIT=32768 keeps indexer scores, pools and token rows local on each rank below that position, with no blocking all-gathers, and own partials are read in place. Outputs are unchanged, and the default stays 2048 (#4510).
    • GLM-5.3-Flash on CUDA (EXL3 experts): TF_GLM_MOE_DIRECT=1 (off by default) runs a decode window's EXL3 experts without their two row copies and the shared expert's slot write. It sums the slot rows bit-equal to the default path, so replies are unchanged (#3659, for #3570).
    • Flash Next on CUDA (fused split): opt-in TF_FLASHNEXT_FUSED_SPLIT=1 runs decode projections that split K over a cluster, at 2,048 output columns or more, on the fused form. It adds the K slices in the cluster's order, so the bits are unchanged. Unset, blank or 0 keeps the current kernels, and Metal and HIP refuse 1 at startup (#3475).
    • Flash Next on CUDA (n-gram gather): TF_FLASHNEXT_GATHER_EARLY=1 (default 0) gathers a shared decode pass's n-gram rows for every lane in one pooled call instead of one call a stream, for passes of at most 64 lanes. Wider passes keep the per-stream call. Which rows are read and how a row is dequantized do not change, so replies are unchanged. The measured mean decode gain on one GB10 rises to +2.10% at eight streams (#4009).
    • Flash Next on CUDA (follow-up turns): after a chat reply, a quiet background pass keeps its state, so the next turn resumes past the reply instead of prefilling it. The pass runs on one rank and yields when a request arrives (#3219).
    • HIP (DFlash2 holds): a DFlash2 hold runs only the rows its drafts need: a frame takes its deepest stream's drafts plus the pending row, within the block. A draft's marginal cost is measured at load to price holds (0.56 ms a draft on gfx1151 against the full block's 1.73 ms), so the depth rule prices shared rounds at what a hold costs. The 27B recipe's DFlash2 figures are refreshed on current main, and nothing changes without --drafter (#3918, fixes #1563).
    • DeepSeek-V4.1 on Metal (cold prompts): cold prompts read the early Engram rows beside the first rows of a chunk, the Engram row cache keeps more records by default, and the keepalive probes residency while a request runs. Prompt bits stay equal to decode bits (#3459).
    • DeepSeek-V4.1 on Metal (draft pricing): TF_DSV41_CALIB=measure, off by default, times a draft cost table on the loaded model at start, reports it and prices the draft depth from it. Other values store or read a table. Tokens are unchanged, and unset or blank times nothing and keeps the built-in table (#2952, refs #2984).
    • Host draw: greedy and masked rows scan 64-logit blocks and skip blocks whose mask word allows nothing, on both the row draw and the bounded top-k path. A test-host-draw-timing step times a row outside test and CI (#2846).

    New

    • Ripple-65B-Preview on Metal: the native engine serves ricursiveAI's NVFP4 and bf16 releases as published, on M5 or later Macs, with bf16 caches. M1 to M4 are refused by name. --context defaults to and stops at 262,144 tokens, and a thinking_budget is refused for this model. Every model's /v1/models capabilities gain a reasoning_optional field, false for all but Ripple (#2231, fixes #2171).
    • Qwen3.8-27B on HIP (DFlash2): serve with --drafter runs Qwen3.8-27B's DFlash2 drafter on the HIP engine through the lane core, where it was refused. The drafter's weights and per-stream contexts count in the memory plan (#3665, refs #1563).
    • Qwen3.8-27B on Metal (MTP on M1 to M4): --mtp-drafts N loads the checkpoint's MTP head from mtp-4bit.safetensors and drafts chains of up to N tokens for every stream, alone or in shared rounds. --mtp-confidence stops a chain below its floor. Before, the Metal build refused both flags (#2464, refs #2368).
    • Qwen3.5 family on CUDA (MTP): dense MTP drafting is enabled for Qwen3.5-family targets with compatible checkpoint tensors (#3582).
    • MiniMax-H3-Image on Metal (server): tf-h3-image-server loads the prompt encoder, transformer and decoder once and serves one text-to-image request per input line, keeping the weights resident between pictures (#3718).
    • Idol on Metal (DINOv3 encoder): Idol's DINOv3 ViT-H+/16 image encoder runs natively on M5 Metal, from one 1024 x 1024 image to the denoiser's feature1 in bf16, as idol-sdk's ImageEncoder makes it. It uses the ungated timm weights (DINOv3 License), which tools/zig/idol_case.py dino shows to be Meta's gated checkpoint byte for byte and feature for feature. On an M5 Ultra an encode takes 0.120 s against the SDK's 0.261 s on torch MPS, with a 2.28 GB peak footprint. On torch's own input, feature1 and each of the 32 blocks sit as close to a float32 ruler as torch's bf16 run, within the 2x gate. tf-idol-dino runs those gates, and its eight kernels pass the kernel contract (#1775, after #1766, for #1757).
    • Qwen3-ASR on CUDA (tools): tf-qwen3-asr runs a WAV clip through the 0.6B or 1.7B checkpoint: the audio tower, then greedy decode through the Qwen3 CUDA pass the embedding engine runs. tf-qwen3-asr-forced teacher-forces a clip on a reference case, and test-qwen3-asr-host and tf-qwen3-asr-check cover config admission, tensor names, log-mel rows and a float64 tower without a GPU. It is not served yet (#2239, refs #2105).
    • GLM-5.3 on CUDA (shapes): GLM-5.3-Flash's latent cache and indexer accept full GLM-5.3's shapes, slice (a) of #3063 (#3949).
    • Runtime LoRA overlays (core): exact runtime LoRA overlays, with adapter config, target and identity checks. They are not yet wired to a flag (#4384).

    Server and API

    • Several choices (n): chat and completions take n from 1 through 16. Each choice is its own engine request on the one prompt, with its own index and tensorfold.seed. Choice 0 keeps the request's seed, so n: 1 replies are unchanged, and usage counts the prompt once. A request with n above 1 takes n places under --max-inflight and --max-inflight-per-key, all or none, and gets 400 with logprobs or a required tool call. /v1/responses and /v1/imprint still refuse n other than 1 (#3148, closes #3114).
    • Cache salts: cache_salt on chat, completions, Responses and Messages, and serve --cache-salt-per-key, keep kept prompt states apart by salt or API key. A request without a salt is keyed exactly as before, and no reply's tokens change. Salts preserve every bit of image words after the first key word, a high-bit first word is refused before it can alias text, and salted states stay in RAM only (#3222, fixes #3196).
    • Sampling penalties on Metal: Qwen3.8-Flash-Next and Qwen3.8-27B accept presence_penalty and frequency_penalty, counting each reply row and its own draft path, so drafted replies match undrafted ones. At zero the default path is unchanged. With --instruct-sampling card they now also take the card's presence_penalty of 1.5, so sampled replies under that flag differ from 1.3.3 (#3145).
    • Speech formats: /v1/audio/speech adds wav24, wav32f and flac, with an optional sample_rate and channels: 2. The default wav and pcm replies stay byte-identical, and mp3, opus and aac are refused by name (#3138).
    • Hardening (parsers and grammars): tool-call parsing, streaming parsers and grammar compiles bound their work and validate arguments before emitting them (#4378).

    Desktop and Web

    • Hardening (sign-in and input): TensorFold Web addresses no longer sign in with ?token=; the browser gets a one-time sign-in code instead. Cluster launch, session restore, the app's shell policy, Hub pulls, Web pairing and media downloads fail closed on malformed input. tensorfold pull checks each cached file's digest before reusing it and refuses Hub file lists over 16 MiB and a config.json over 1 MiB (#4381).

    Platforms and settings

    • tensorfold pull (proxies and timeouts): pull honours the proxy environment on every hop of a redirect: https_proxy/HTTPS_PROXY, http_proxy/HTTP_PROXY and all_proxy/ALL_PROXY, lower case first, and NO_PROXY for exact hosts, domain suffixes and ports. It tunnels https names through a real CONNECT to an http:// proxy under std's HTTP and TLS. A socks or https:// proxy in HTTPS_PROXY or ALL_PROXY is skipped with a warning, and pull connects directly, as 1.3.3 did. Every connect is bounded by TENSORFOLD_PULL_CONNECT_SECONDS (default 30) and every read by TENSORFOLD_PULL_STALL_SECONDS (default 60). A stalled file resumes from its .incomplete bytes with a Range request up to three times, and a failure names the proxy's scheme, host and port, never its credentials (#4140, part of #3692).
    • CUDA on unified-memory Linux (GB10): the start-up budget counts the checkpoint's own cached pages as room, so a checkpoint that was just read is not refused for them, without dropping them from the page cache before the load (#4427, refs #3192, #1857).
    • GLM on CUDA (dependent launches): programmatic dependent launches follow one policy. The compute capability is known before GLM's lane, KDA and matmul modules choose, so below 9.0 they stay off even when asked for. TF_GLM_PDL=0 now also makes the Q4 draft-head matmul a plain launch. The default on GB10 (on) is unchanged (#4321).

    Docs

    • Flash Next on HIP (receipts): the first gfx1201 receipt in the repository runs Flash Next oQ2-MTP at --tp 2 on two Radeon AI PRO R9700s, against #2401's 1.2.3 numbers on the same card class, and docs/recipes/flash-next-hip.md becomes the home for Flash Next on HIP (#3608, refs #2401). The first world-4 Flash Next receipt on HIP runs oQ2-MTP at --tp 4 on four Radeon AI PRO R9700s, with a same-binary world-2 control run that separates the world effect from engine changes (#4210, refs #2401).

    Fixes

    • Lanes (Qwen3.5/3.8 on HIP, copies only): #3728's lone-stream copy pricing applies only to a family that opts in and serves without a model drafter, so copies-only decode on AMD Strix Halo keeps 1.3.3's speed, while streams with a model drafter price their drafts as before. Tokens are unchanged.
    • Structured output (json_object): response_format: json_object with grammar_budget: true works again on large vocabularies after the hardening in #4378. The server's fixed json_object rule gets budget limits sized to it, computed once per tokenizer, while every client-supplied grammar keeps the limits from #4378. A budget refusal now names what it hit: work, edges, bytes, timeout or busy slots (#4615, follows #4378).
    • Tool-call arguments (NaN and Infinity): tool-call arguments whose text contains NaN or Infinity (Qwen XML, GLM, Gemma, MiniMax string values, LFM2 Python strings) parse again. Only values read as JSON refuse the non-finite literals. LFM2 tools with parameters named like schema keywords (pattern, format, not, if) are supported again (#4604, follows #4378).
    • tensorfold pull (long pulls): pull no longer stops with "detecting network configuration failed" after 64 distinct resolved addresses on a long pull. A full address table replaces its oldest entry (#4621, follows #4140).
    • Metal (large checkpoint files): a checkpoint file span of 16 GiB or more loads. Each pread asks for at most 1 GiB, since macOS refuses a count above INT_MAX (#4435, first fix in #4433).
    • GLM-5.3-Flash on Metal (long conversations on disk): every resident kept state is staged to disk while its borrowed rows can still be read, whatever --spill-gib is set to. A long conversation's disk copy no longer stays at an older depth, and later turns resume from the newest state (#2755, refs #2669).
    • GLM on Metal (NaN and Inf): masked sparse attention, its padding entries and the DFlash2 head's q4 matmul give the float64 reference's NaN and Inf instead of dropping or inventing them. This clears nine known kernel-contract failures, and finite outputs are unchanged (#4396).
    • Prompt cache (salt identity): reuse now requires the request's full cache-salt identity in the RAM prefix cache, family device snapshots and Qwen3.8-27B standing slots. Disk-restored state also checks the tokenizer and template files, and page ownership on HIP fault and adoption paths is singular and transactional (#4504). The fork rule picks its extra resume mark only from kept prompts with the request's cache_salt, as every other lookup does, and unsalted requests are unchanged (#4601).
    • Qwen3.5 on CUDA (pass size): the start-up line and the prompt cache's recorded pass size say the rows the engine actually passes, 4096 by default and 8192 with TF_QWEN35_CHUNK_SOLO=8192, instead of 8192 always. Nothing else reads the value, so tokens and behaviour are unchanged (#4600).
    • Tokenizer memo (aarch64 Linux): the tokenizer memo now has its own allocator, so requests that add memo segments no longer leave allocator buckets behind on aarch64 Linux (#4455).
    • Torch .pth checkpoints: a tensor whose element count overflows u64 is refused as a bad archive instead of panicking or wrapping the count (#4322).

    Tools and tests

    • Kernel contract (GLM on Metal): the GLM Metal contract runs to the end on M1 to M4 Macs again, since its KDA and index texts carry the pre-M5 define the loader adds. Gate 5 resolves GLM's routed-expert row launches on every Mac instead of stopping with UnknownLaunch (#4397).
    • GLM on CUDA (profiling): with TF_GLM_PROF=1, the four profiling traces are created at startup before the server reports ready, so the first prompt no longer pays their setup. Profiling-off behaviour is unchanged (#4511).
    • Tests (lane core): a conformance suite pins fresh = resumed cache state, tree windows = plain decode, run-to-run reproducibility, stop reasons and malformed-parent refusal on the host, with a ledger of seven decode invariants in docs/conformance-ledger.md (#4472). A reusable gate checks that a request's tokens, stop reason and RNG positions never depend on which other requests share its batch, when they arrive or when they leave, over cohorts of 2, 4 and 8, drafts on and off, greedy and keyed, and fresh and restored prefixes (#4491). A lane-host case checks that a third short request queued behind two long ones at two slots starts within two rounds of a slot freeing and then gets its fair share of rounds, with full outputs for every request (#4495).
    • Tests (n choices): requests with n from 2 to 16 give back every --max-inflight and per-key place on each way they can end (done, disconnect, a failing choice, 429, 400, cancel, shutdown), plus a seeded concurrent disconnect case (#4602).
    • Tests (timing): the lane host's lone-driver test no longer fails under CI load. Its fake driver now hands streams back with their cache settled, as the lane core requires, and its scheduling check no longer depends on timing (#4568). The lane host explore test's replay check no longer depends on thread timing: the test thread's idle send waits until no engine yield point is mid-decision, so a seed replays its schedule the same on a loaded runner (#4414). The idle-unload host tests wait on the ticker's event and the manager's condition instead of a 2-second real-clock bound (#4352), and three host tests (Qwen3.5 CUDA kept-state read-back, the grammar compile deadline, the chats resume store) wait on events instead of real-clock bounds (#4358), so a loaded CI host no longer fails them.
    • Tests (host and build): a Drama 3 host test runs the codec's decode and encode schedules over a recording binding and pins their call lists, so a schedule change fails the test without a GPU. The lists are fixtures beside the test, and it runs in test-drama-host (#2962). The Nemotron HIP page-fault suite compiles again, with its fixture building ids through hip_serve.pages, and the Flash Next recipe says the scale index runs on every Mac since #4547 (#4605). The Flash Next environment table test counts the TF_FLASHNEXT_FUSED_SPLIT switch that #3475 added (37 settings), so main is green again (#4467).
    • CI: the root pytest job installs PyYAML, which the workflow-conditions test needs, so GitHub pytest runs collect again (#4469, #4454).

    What changes by default

    • Same tokens, bytes or outputs: Flash Next on M5 Macs builds the 4-bit expert scale and bias index, with the same tokens (#4547). Qwen3.8-27B decode attention on Intel GPUs merges with 16 subgroups a head, with every output byte unchanged (#3960). GLM at TP=2 on CUDA runs dense attention only on the rows sparse attention leaves untouched and skips prefill projections nothing reads, with outputs unchanged (#4499). DeepSeek-V4.1 on Metal reads early Engram rows beside a chunk's first rows and keeps more Engram records, with prompt bits equal to decode bits (#3459). Qwen3.5 on CUDA reports the rows it actually passes, with tokens and behaviour unchanged (#4600).
    • GLM on Metal (NaN and Inf): masked sparse attention, its padding entries and the DFlash2 head's q4 matmul now give the float64 reference's NaN and Inf. Finite outputs are unchanged (#4396).
    • Conversation state and draws: Flash Next on CUDA keeps a background pass's state after a chat reply, so the next turn resumes past the reply instead of prefilling it (#3219). GLM-5.3-Flash on Metal stages every resident kept state to disk whatever --spill-gib is set to, so later turns resume from the newest state (#2755). Greedy and masked host draws skip 64-logit blocks whose mask word allows nothing (#2846).
    • Requests and parsing: tool-call parsing, streaming parsers and grammar compiles bound their work and validate arguments (#4378). The server's fixed json_object rule has budget limits sized to it, and a budget refusal names what it hit (#4615). Every model's /v1/models capabilities gain a reasoning_optional field, false for all but Ripple (#2231).
    • Pull, sign-in and loading: tensorfold pull honours the proxy environment on every hop of a redirect, bounds connects at 30 seconds and reads at 60 seconds, and resumes a stalled file up to three times (#4140). A socks or https:// proxy in HTTPS_PROXY or ALL_PROXY is skipped with a warning, and pull connects directly, as 1.3.3 did. Pull checks each cached file's digest before reusing it and refuses Hub file lists over 16 MiB and a config.json over 1 MiB, and TensorFold Web addresses sign in with a one-time code instead of ?token= (#4381). On GB10, the start-up budget counts the checkpoint's own cached pages as room (#4427). These are about files, sign-in and start-up, not replies.

    Thanks

    @AbrahamCete, @AIFlowML, @BadAd84, @bikepresentball, @bjornmonnens, @BobClawblaw, @gilby, @jayleaton, @joshuaswarren, @jschmied, @markyu0401, @Mirrdhyn, @plotarmordev, @sethforprivacy, @tacosta, @timmyit, @ultradaoto.

  5. 1.3.3

    Expandir

    GitHub Release

    TensorFold 1.3.3

    1.3.3 makes GLM faster. On CUDA, GLM-5.3-Flash drafted decode after a 1,040,384-token prompt is 13.8% faster at TP=4. On Macs without tensor units, GLM cold prompts take 5.17% to 5.68% less time. It adds picture generation for MOSS-Image on CUDA through POST /v1/images/generations, GLM-OCR on HIP, DFlash2 drafting for GLM-5.3-Flash on Metal, EXL3 mcg experts at 1 to 8 bits for GLM-5.3-Flash on CUDA, structured output for DeepSeek-V4.1 on CUDA, and Idol's image encoder on Metal. The server gains an opt-in execution witness, a prompt-cache flush route, per-request deadlines (deadline_s), structural tags, deferred and namespace tools, and TENSORFOLD_PARALLEL. By default, long prompts on CUDA now share their steps with running replies, each image takes a fixed share of the visual-token budget, and LFM2-MoE, LFM3, MiniMax-M3 and Qwen3.5-2B on Metal fill new prompts between other streams' decode rounds. The speed changes below keep the same tokens, bits or bytes where their bullets say so.

    Speed

    • GLM-5.3-Flash on CUDA (long-context decode): drafted decode after a 1,040,384-token prompt takes its DSA index scores from tf_glm_index_scores. It is 13.8% faster at TP=4 (172.39 against 151.51 tok/s median), with byte-identical scores and the same tokens. Shorter windows keep tf_glm_scores (#3689).
    • GLM-5.3-Flash on CUDA (TP=3, 5, 6 or 7): at these widths a rank's fused KDA input is not a multiple of eight columns. The stack is now padded at load to its own width rounded up to eight columns and stays row-major bf16, so prompt windows take the staged B16 tiles with every byte as before. TF_GLM_KDA_PAD=1 still tiles the stack for glm_mm (#3697, for #3516).
    • GLM-5.3-Flash on CUDA (split drafter): TF_GLM_DRAFT_SPLIT=1 splits the DFlash2 drafter's MLP across three ranks or more where each share is 256-aligned, without TF_ROCE=1. The ranks must set it alike, two ranks split as before, and unset changes nothing. On three GB10s whose gathers stay on NCCL, decode with --drafter is about 5% faster at one stream (four streams within their start-to-start spread), with the same replies and the same tokens a round on the measured prompts. As with TF_ROCE=1, the split drafter adds its down projection's rank shares in another order, so its proposals can differ at near-ties (#3616, for #3581).
    • GLM on Metal before M5 (prompts): vectorized prompt, KDA and indexer kernels on Macs without tensor units cut cold prompt time 5.17% to 5.68% (2K to 64K tokens), with 0/64 token differences. (#3921, refs #3152).
    • GLM on Metal (DFlash2): decoding skips inactive draft rows and their tap capture, and the tap mean writes into its ring in place. This cuts sampling overhead without changing verified tokens (#4257).
    • DeepSeek-V4.1 on Metal (multi-stream decode): a decode round over several streams runs each per-stream stage (window key, compressed rows and index keys, ratio-2 pooling, decode attention, index scores, candidate blocks and the top 512) as one dispatch over a table of the streams' state. There is one barrier between stages instead of one a stream, and the bits are the same (#2954, refs #2984).
    • DeepSeek-V4.1 on Metal (sampling and drafts): DSpark drafts are selected over the whole vocabulary on the GPU with an adaptive block size (#3405). Sampling keeps its scratch between picks and scans greedy logits in vectors, choosing the same IDs (#3288).
    • DeepSeek-V4.1 on CUDA (copy drafter): opt-in TF_DSV41_COPY_DRAFTER=1 turns on the lookup planner with a copy drafter that ranks matches within a length band by how much continuation they offer. It offers 8 drafts, widens to 15 after a round that keeps every copy, and offers a copy only when it is expected to keep at least as many tokens as the other drafter. It is refused when TF_DSV41_LOOKUP is off or blank, and unset leaves TF_DSV41_LOOKUP_PLAN=1 as it was (#2638).
    • Flash Next on CUDA (draft head): a bf16 language head's draft rows load as 4-bit affine groups of 32 by default. TF_FLASHNEXT_DRAFT_HEAD=bf16 keeps them as stored, and a malformed value stops the start by name. Replies are unchanged because drafts are verified (#3477, refs #1870).
    • Flash Next on CUDA (--tp 2 control link): a rank's control-link wait polls with a 50 µs timeout for its first 50 ms and then blocks as before, so drafted rounds pick up the next header sooner. Replies are unchanged (#2971).
    • Flash Next on HIP (prompts and load): on one GPU, a prompt's first token goes out before its last chunk's kept prompt states are saved, and they are saved before any later step writes the stream's caches. Kept-state copies pass through one pinned 32 MiB buffer, and on Linux each kept state sits on small pages of its own (#3647). With the prompt cache on, a prompt chunk runs on through the cache marks its side buffers can hold, writing each marked row's state aside, instead of ending at the first mark (#3646). The first stream's caches are made at load, so the first prompt no longer waits on allocating them. Each layer's weights are read past the page cache by threads, with the next layer's read under way, and the n-gram gather spreads over all of the pool's parts instead of at most 32 (#3644).
    • Flash Next on XPU: prompt and decode passes run on Xe2 DPAS tile kernels, with prompt chunks sized to the solo stream and MTP chains that stop when draft confidence falls. Replies stay bit-exact across chunk sizes (#3603, refs #3583).
    • Qwen3.8-27B on Intel GPUs (attention): decode and verify attention (attn_decode) runs on a (rows, heads, slices) grid, so the tree rows of one key slice run back to back. Each work group's arithmetic is unchanged, so replies keep their tokens. The XPU kernel contract holds attn_decode and attn_merge to the previous kernels' bytes, with a planted control for the launch order (#2595, refs #2543).
    • Qwen3.8-27B on Metal (sampled drafts): a lone sampled stream's DFlash2 draft tree ranks its candidates with the stream's own keyed draw, so the drafts follow what the target samples. The target still decides every token, and greedy and multi-stream rounds are unchanged (#3978).
    • Qwen 3.5/3.6/3.8 on CUDA (prompt chunks): a prompt chunk before the last that nothing reads (no last-layer tap, learning, MLP or pocket reader, prompt int8 path or image) stops its last layer after its keys, values and RoPE. It skips that layer's query projection, attention, output projection, MLP and head, with the same reply tokens. The final chunk is unchanged (#3060, fixes #2941).
    • CUDA (images on resume): a resumed prompt encodes only the images its kept state does not hold (Gemma 4, Qwen3.5 and Flash Next on one rank), so a follow-up turn skips the vision tower for images the restored prefix already holds. A resume never cuts an image, and Flash Next at --tp 2 keeps encoding every image as before (#3164).
    • CUDA (long prompts beside replies): a long prompt now shares its steps with running replies by default. A filling prompt with more than 32,768 rows left takes a decode share of 0.25 and the 512-row chunk hint, as --decode-share 0.25 does, while a shorter prompt fills whole as before. --decode-share and TENSORFOLD_PREFILL_SHARE keep their meanings (#3486, refs #3397).
    • Nemotron and LFM2 MoE on CUDA (message starts): the prompt cache keeps a state at each message start by default. The next request in a conversation resumes from where its last message began instead of reading the conversation again, within the existing prompt-cache budget and slots (#3696, part of #3617).
    • Nemotron on HIP (MTP drafts): at --tp 1, --mtp-drafts takes up to 15, widening a lone stream's verify window up to 16 rows. Unset or at 3 or fewer, the window stays at four rows. Rounds shared by several streams chain at most three drafts a stream, and above --tp 1 more than three is refused by name (#3613, refs #3394).
    • Metal (new prompts beside replies): LFM2-MoE (#3058), LFM3 (#3088, part of #3021), MiniMax-M3 (#3089, part of #3021) and Qwen3.5-2B (#3090, refs #3021) fill a new prompt a chunk at a time between other streams' decode rounds, instead of stalling those replies for the whole prefill. On LFM3, MiniMax-M3 and Qwen3.5-2B, chunks are cut as before, so replies are unchanged, and a cancel keeps the state at the last chunk's end. On MiniMax-M3, a stepping drafter absorbs each chunk before the next. LFM2-MoE declares prefill_step and cancel_prefill beside reports_fill.
    • MiniMax-M3 on Metal (drafters): the DFlash2 and DSpark drafters hold up to eight streams' blocks in one pass and one wait, instead of a pass per stream, and absorb no longer waits for the GPU. Drafted replies are unchanged (#3121).
    • LFM2-MoE and LFM3 on Metal (rounds): a keep that drops no rows skips the conv-state and logits copy in Cache.keep, since commit and run already wrote those bytes; a partial keep still restores through a new take() (#3078). On LFM3, every stream's qk in a shared round runs in one dispatch instead of once per stream per attention layer, with the same arithmetic per row, so replies are unchanged (#3079).
    • Spark 2.5 on CUDA: gate and up load as one stacked weight and decode in one launch on every CUDA chip instead of two launches, with the bits unchanged. Only 4-bit checkpoints take this path (#3130).
    • HIP (routed prompts): a routed prompt plan keeps the stacked shared expert whole up to the GEMM tile instead of cutting it into 8-row items. On gfx1151, a prompt pass of 33 rows or more takes the GEMM tile for every expert. Decode, lane rounds and the MTP draft head keep the 8-row tile, and outputs keep their bytes (#3521, fixes #3161).
    • Lane host (identical prompts): concurrent identical prompts join a leader that is filling a prompt state it will keep, so they reuse its whole fill and return the same tokens they would alone. A prompt whose state would not be kept, a zero budget, the leader's cancellation or a timeout still runs on its own (#3693, refs #3397, #3487).
    • Tokenizer: a request gap with no normalized added spelling reuses the tokenizer's memo instead of re-encoding cold. Long multi-message requests on tokenizers with normalized added tokens (DeepSeek-style ones) cost less per call. Gaps carrying a spelling keep the mask, and every id is unchanged (#2844).

    New

    • MOSS-Image on CUDA: the checkpoint's Qwen3.5 prompt encoder and VAE decoder run beside the transformer, so the native server serves pictures through POST /v1/images/generations. The same request twice gives the same bytes (#2281, part of #1573).
    • OCR on HIP: GLM-OCR on native HIP serves POST /v1/ocr. It returns normalized page Markdown with pipe or spanned-HTML tables and $/$$ math, blocks: [] because it has no geometry, and named refusals for header and footer extraction (#2572).
    • GLM-5.3-Flash on Metal (DFlash2): it can draft with a published DFlash2 checkpoint behind --drafter DIR (and --drafter-bits). Drafted replies equal plain ones, and the default stays MTP (#3920).
    • EXL3 mcg checkpoints on CUDA: GLM-5.3-Flash loads EXL3 mcg routed experts at any whole-bit width from 1 to 8, mixed by projection within a layer, where only 4-bit was admitted, and its prompt expert kernels gain a 3-bit form; the 4-bit path is unchanged (#2094, refs #2093). Qwen3.5 admits EXL3 checkpoints with the mcg codebook marker alongside mul1 ones, and unknown markers are still refused as an unsupported quantization (#3412).
    • DeepSeek-V4.1 on CUDA (structured output): in the dsv41-cuda source build, structured output runs on the lane core's token grammars with drafts on. This covers response_format, the guided_* fields, tool_choice: "required" or a named function, and strict tools under tool_choice: "auto". A grammar's stop token ends the reply with finish_reason stop, even with ignore_eos (#3026, closes #1664, from #1665).
    • Qwen3.5/3.8 and Flash Next on CUDA (quantized vision towers): --vision loads a tower whose linears ModelOpt stores as MXFP8 or NVFP4, as nvidia/Qwen3.8-Flash-Next-FP4-Local does, where it stopped at the first quantized linear. They are decoded to bf16 on the host at load, one linear at a time, so the tower runs in bf16 as before. A floating-point tower is still read as stored (#3727).
    • Drama 3 on CUDA (NVFP4): compact NVFP4 checkpoints load as stored, held experts are staged in slot order, and routing is masked to their original ids (#4144).
    • Nemotron 3.5 Lightning on HIP (MTP head): the MTP head file is read at the width its own metadata states, so it drafts beside an oQ checkpoint of any width. A head at a width the launches do not read is refused by name (#3251, part of #3061).
    • Idol on CUDA (decoders): Idol's octree and Gaussian decoders run on CUDA beside the Metal decoders, driven by the same tf-idol-decode case driver and gates. The stem, to_kv and the head norms run in fp32, input_layer and the head in true fp32 (no TF32), and the blocks through the denoiser's CUDA linears and norms. Attention keeps fp32 scores and sums and rounds P to nearest fp16 as torch's CUDA kernels do, and runs fp32 throughout at 8 query rows or fewer. The six kernels and 13 controls are registered with the kernel contract (tf-cuda-test idol-decoder-contract). It admits sm_121 (GB10) and sm_120 and refuses other GPUs. It compiles for both and its host tests pass, but it has not yet run on a GPU (#1858, after #1773 and #1767, for #1757).
    • Idol on Metal (image encoder): Idol's FLUX.2 VAE image encoder runs natively in fp32, from one 1,024 x 1,024 picture to the denoiser's 4,101 condition rows, with the posterior's noise as an input. It takes 0.185 s an encode on an M5 Ultra, against 0.095 s for the SDK's bf16 encoder on torch MPS, and lies far closer to a float64 run: worst row 5.1e-5 against the SDK's 2.7e-2. tf-idol-vae gates it from a case that tools/zig/idol_case.py vae records, with the ungated FLUX.2-klein-4B weights (#1774, after #1766, for #1757).
    • MiniMax-H3-Image on Metal: tf-h3-image compares the Metal transformer steps with exported picture cases (#2766). It now runs the transformer (MiniMax H3's, without the audio layers, on M5 tensor units) from a picture case through its six distilled steps, each with its own output head, beside the engine. The VAE's rules (config, tiles and blend, latent statistics, pixels) run on the host, core/picture gains Pillow's Lanczos-3 resampling, and clip cases run as before (#2775). tf-h3-image-encoder turns an edit's reference pictures into their clean rows with the VAE's encoder in fp32 on any Apple GPU, with a selftest of each kernel against a float64 host reference; the reference rules (sizes, crops, grids, encoder layers, clean and anchor rows) run on the host (#2778, on #2775).
    • Ling-3.0-tiny on Metal (diagnostic): a bf16 forward diagnostic runs all 24 layers of the published checkpoint on kernels that already exist, with no new GPU kernel source. zig build test-ling-forward, given TF_LING_CHECKPOINT and a Python with torch and safetensors (TF_LING_PYTHON), checks whole, chunked and resumed runs byte for byte and reports the distance from float64. Nothing is served yet (#3919, part of #1247).

    Server and API

    • Execution witness: serve --execution-witness (off by default) adds GET /v1/execution/witness under the read key scope. It returns a snapshot naming the running binary, the checkpoint's text files, the serve defaults and TF_* settings, the engine's epoch and a per-process instance, or unknown with its reason. It needs an API key or --unix-socket and hashes only after the server is ready (#2901, refs #2741). With the flag on, "execution_witness": true on a chat completion or completion adds an execution_witness object to the reply (on a stream, its finish chunk). It holds the witness read when the engine takes the request and again at the end, the SHA-256 of the prompt ids, the resolved request and the reply tokens, the finish reason and a binding over them, or unknown with a reason (#2958, refs #2741). Native Qwen3.5-2B on CUDA (one rank, MLX affine 4-bit, text only) attests its path: once the server is ready it reads every checkpoint shard, after stamping the files before the load, and binds them with the kernel images, GPU, driver, family facts and resolved profile values. Other engines still read unsupported (#2956, refs #2741).
    • Image token budget: every image takes a fixed share of the visual-token budget, --vision-image-tokens / --vision-max-images (1,024 tokens at the defaults), whatever the request's image count. A turn that adds an image no longer re-sizes earlier ones, so the prompt cache can resume from the first image. A lone image gets that share, not the whole budget, and a budget that leaves no share is refused by name, naming the image and both flags (#2717, fixes #2510).
    • Prompt cache flush: POST /v1/prompt_cache/flush drops the prompt states the server keeps for resuming conversations, in RAM and on disk when it keeps them there (--prompt-cache-disk, --learn-conversations or --spill-gib), once no request is running, so replies in flight are unchanged. It needs a full or [admin] key when API keys are on (a loopback caller without keys). It answers 503 if requests have not ended within 10 minutes and 501 on an engine without the prompt cache, and it leaves --learn's shared-prefix states on disk (#3210, fixes #3183).
    • Request deadlines: chat and legacy completions requests take deadline_s (seconds, more than 0 and at most 1,000,000; any other value is refused before the engine). At that time the server cancels the engine itself, and the reply ends with finish_reason: "deadline", keeping every token the engine gave and its usage. A reply the engine ended first, or a cancel that came first, keeps its own ending, and without the field nothing changes (#3438).
    • Structural tags: response_format: {"type": "structural_tag", ...} on the native server keeps the reply free text, while each structure's begin opens a region that must be JSON matching its schema and close with its end, with optional triggers. Past 64 structures or triggers, 256-byte tags or the 512 KiB grammar limit, the request is refused with HTTP 400 before any stream starts (#3208).
    • Deferred tools on /v1/messages: /v1/messages and its count_tokens accept deferred tools. A tool with defer_loading: true stays out of the prompt until a tool_reference block in a tool_result loads it. It is rendered by a template that reads both fields (GLM-5.3's), or else as the tool's name, description and parameters in text. A reference to a tool the request does not offer, a non-boolean defer_loading or all tools deferred is refused, and requests without these fields are unchanged (#3212, fixes #3115).
    • Namespace tools on /v1/responses: one level of namespace tools is accepted. Each function is offered to the model as <namespace>__<name>, and its calls come back with name and namespace, whole, streamed, stored and over WebSocket. Requests without namespace tools are unchanged (#3610, fixes #3266).
    • Thinking before tool calls: opt-in --tool-think-close bounds thinking for required or named tool calls, so the call has room in max_tokens. The flag defaults off and keeps smaller thinking budgets (#4157).
    • Default lanes: TENSORFOLD_PARALLEL sets the default lanes when serve has no --parallel: a whole number 1 to 4096 or auto. The flag wins when both are given, a blank value keeps the default, and any other value is refused by name at startup (#3685, for #3684).
    • Slow stream readers: a streamed reply whose client falls 1,024 tokens behind sits out rounds until the reader is within 512 again. One whose client reads nothing for 60 seconds is cancelled like a disconnect, so a stalled reader stops holding its lane. The text a reader receives is unchanged (#3234).
    • Qwen3.8 Flash Next on Metal (cancelled prompts): a request cancelled while its prompt is still filling keeps the prompt state it had already landed at a resumable cut, so a follow-up with the same prefix resumes from there instead of starting over (#3657, refs #3618).

    Desktop and Web

    • App on Linux (sandbox): with TENSORFOLD_LINUX_SANDBOX=1 and bubblewrap installed, the app's commands run in a bubblewrap sandbox. It keeps every repository's config, config.worktree, hooks and info read-only, nested repositories included, and freezes worktree .git pointers. A workspace with no repository, a worktree whose gitdir or shared directory lies outside the workspace, a path the sandbox cannot inspect, or a walk past 32 levels or 50,000 directories is refused with code 126 before anything runs. Without the setting, Linux commands stay refused as before (#3364, fixes #1693).
    • App (hardening): a packaged build ignores VITE_DEV_SERVER_URL (#3049). Explore and Oracle child agents refuse a tool outside the list they were given, so a read-only run stays read-only (#3040). Only the owner token resolves a tool approval on the remote-control server (#3034).
    • Mobile: a pairing link opened from outside the app asks first and names its host (#3036).
    • Web: Qwen3.6-35B-A3B is listed for CUDA only, and starting it on a machine without CUDA is refused before anything launches, so a Mac is no longer pointed at the Python engine for it (#3738, refs #3710).

    Platforms and settings

    • Flash Next on HIP (integrated GPUs): on an integrated GPU that shares the host's pages (no firmware carve-out), the default kept-prompt cache takes no more than the memory the streams leave, at most 16 GiB and none when nothing is left. An explicit --prompt-cache-gib still sets it (#3645).
    • CUDA (RoCE with TF_ROCE=1): the RoCE all-gather pairs each peer's stripes with the HCA on that peer's IPv4 /24 (the rule fabric/tp uses, now one copy for both) when every rank's plan holds. Three GB10s cabled as a switchless ConnectX-7 triangle now take the RDMA path instead of falling back to NCCL. A switch or two ranks keep the same-numbered pairs, and a TF_ROCE_HCA of more than two names is refused by name instead of cut to two (#3518, fixes #3411).
    • Qwen dense and MoE hybrids on CUDA (KV in host memory): opt-in TF_QWEN_KV_HOST=1 keeps the KV pages in mapped pinned host memory, with the state and verify runs on the device, so a long window can fit on a card with little room left beside the weights. It needs TF_QWEN_KV_PAGES, TF_QWEN_KV_PAGES_ALL=1, --parallel 1 and a discrete GPU, and takes an optional TF_QWEN_KV_HOST_GIB cap. It refuses spill, disk snapshots and TF_QWEN_KV_SHARE by name. It trades speed for room, since attention reads the pages over the device interconnect; unset, the plan and every path stay as they were (#2637).
    • Qwen3.8-27B on Metal (TF_QWEN27_METAL_KV_PAGES=1): a stream that opens a slot is promised the KV pages of its prompt and one widest pass, instead of every slot being promised its whole window at load. A pass past that promises the rest before it takes a page, and fails with LaneMemory before any page is taken when the pool cannot meet it. A stream that leaves, a failed or requeued prompt pass, a reset and a move to slot 0 give back the slot's pages and promise (#3377, refs #1293). Macs with tensor units (M5) now take the flag instead of refusing it, and a paged prompt pass finds each 512-key chunk's two pages once instead of reading the page table at every 32-key step, with every token and cache row unchanged (#3180, part of #1293). Without the flag nothing changes.
    • Qwen3.8-27B and 9B on Metal (M1 to M4): the default prompt frame is sized to the 128-row passes these chips run, instead of 512 rows, so the frame, attention and GDN scratch no longer hold room that is never used (#2797, refs #2089).
    • Qwen3.8-27B on Metal (rollback bank): the GDN rollback bank is leased from the shared recurrent workspace (#4178).
    • Gemma 4 on Metal (memory): each linear's bytes are held once instead of three times (the shard, the lane or row pack and a prompt-chunk copy). The linears are staged from their files during load and the files close after it, with the same bytes and the default prompt-cache budget unchanged (#3350).
    • DeepSeek-V4.1 on CUDA (float linears): opt-in TF_DSV41_FLOAT_LINEAR runs backbone projections kept as float matrices on the plain path. With it unset, such a pack is still refused (#4076).

    Docs

    • Optimization ledger: rows 34 to 37 are added (FP8 KV prefill waits, Qwen normalization and head, text metadata uploads and greedy readback), each failed on one GB10 against the 3% served-speed bar with equal tokens, and the SM120 follow-up is recorded as inconclusive (#4054, fixes #3741).
    • README build section: a Linux zig build native compiles for the build machine's CPU, and -Dcpu=baseline or -Dcpu=x86_64_v3 builds a binary for another machine (#3179, #3301).
    • Desktop release notes: Desktop's packaged release notes move to app/CHANGELOG.md, apart from the engine's, with a link each way (#4284).

    Fixes

    • Flash Next on CUDA (--tp 2 start-up): a rank now waits for its peer to finish loading before the first collective, up to 10 minutes, instead of failing at the collective's 30 s bound. A peer that fails or closes its link ends the wait with RankDisconnected (#2972, fixes #2970).
    • Qwen3.8-27B (DSpine drafter): tencent/Qwen3.8-27B-DSpine-b16, whose current revision names its architecture DSpineDraftModel, loads again on Metal and CUDA instead of stopping with UnsupportedDraftConfig. Any other name is still refused (#3959, fixes #3819).
    • CUDA (capabilities): capabilities --json now advertises modelopt-mixed and modelopt-nvfp4 for the dense Qwen3.5 family, matching the ModelOpt exports its loader serves (#4192). The dense Qwen3.8-27B row advertises them too, modelopt-mixed (nvidia/Qwen3.8-27B-NVFP4) and modelopt-nvfp4, beside mlx-q4g64 and exl3, so a client that filters on capabilities --json no longer hides a checkpoint the engine serves (#4150).
    • Prompt cache (expiry): states displaced by backend expiry are saved to the eviction-only disk tier, avoiding stale resumptions (fixes #2669).
    • MOSS-Image and Step-5 (RoPE tables): the vision encoders take their RoPE frequencies from the shared exact helper. MOSS-Image's bf16 cos and sin tables change only from row 565, so shorter prompts read the same tables, and Step-5's bf16 tables are unchanged. zig build test-moss-image-rotary-host checks the MOSS-Image tables without a device (#1998, part of #1852).
    • Cluster bring-up: bring-up reports the leader, epoch and view it agreed on and counts only acknowledgments for that view, so a rank that finishes after a peer says goodbye no longer reports a smaller view on slow runners (#4135, fixes #4123).
    • Windows (CUDA builds): the native CUDA product compiles again. Muse Spark, which needs two TP ranks over the POSIX-only TP fabric, is refused by name on Windows (TP across ranks runs on Linux only) instead of breaking the build, and CI now type-checks the Windows CUDA product (zig build compile-native-cuda-windows) (#4171, fixes #4105). The Windows Qwen3.5 diagnostic build compiles again too, with named refusals where a POSIX stage or pipe is needed; 5/5 Windows GNU cross-build steps pass (#4112, refs #4105).

    Tools and tests

    • Kernel contract (coverage): the HIP relu² stream tile is checked at 5, 6 and 8 bits in groups of 64 as well as 4, with gates 1 to 4, a planted control for each wider width, and gate-5 records on the four RDNA chips (#3163, part of #3061). The CUDA contract's NVFP4_NZ5 stress fill holds +5s among its 4s and 6s, its float64 reference reads code 0b1000 as 5, and a second planted control goes red at the sums gate, so that gate covers the +5 code; no kernels change (#3543, refs #2894).
    • Kernel contract (nvcc 13.3 records): resource records for 121 launches clear 408 stale lines on five-SM fatbins (#3953). The GLM record for df_sumn under nvcc 13.3 (40 registers) is the one checked, and a stale generic 33-register entry no longer overrides it (#4291).
    • Code: Drama 3's codec weight map, decoder stage plan and decode and encode schedules live once in codec_net.zig, and the CUDA and Metal backends each bind only their own kernels. A new check-drama-codec-bindings build step, run by zig build test, compiles both bindings on any host, and the waveform and codes are byte-identical to before on the author's CUDA and Metal runs (#2893, refs #2118). The HIP gfx12 WMMA step pieces move from tiles/wmma12_gemm.hpp into a shared header, tiles/wmma12_step.hpp, for the coming gfx12 affine tile; it is only a move, so the kernels' bytes do not change (#3862, refs #2401). Lanes gain an optional normalized-row view of the prompt features, whose null default keeps every existing drafter path as it is (#4132, refs #2485).
    • Tools: tools/comfyui_runtime installs the ComfyUI MOSS sampler on a GB10 to run without a network. It checks the release CLI and the pinned native source, builds only moss-image-cuda, and switches to a new runtime only after integrity and run checks, keeping the active one when setup fails. A separate tool writes fused BF16 checkpoint metadata without changing tensor payloads (#2737).
    • Tests (timing): the last real-clock multi-rank bring-up tests run on the lockstep clock, so a busy CI runner cannot change their outcome (#4193). The served-evidence concurrency test pairs its two generated streams in the fake server, so a busy runner can no longer decode them one after the other and turn it red; other conformance fixtures keep their pacing. The Web loopback startup test sets its fixture ready before probing, so its health, model-list and relay checks no longer depend on warm-up timing (#3753, fixes #3752).
    • Tests (host): DeepSeek's checkpoint reader in load prefetch makes the same number of allocations on every run, so the allocation-failure host test passes on macOS (#4344). The serve-config fixtures no longer depend on a group-friendly umask, while the permission refusals stay; 39/39 host tests pass under umask 002 and 022 on Linux and macOS (#4115, fixes #4113). The three bounded top-k selection tests run in the fast test-lanes-topk-host step, with a planted failure confirming they can fail by name (#4095, refs #2460).
    • CI and release tooling: the Zig format workflow runs again on pushes and pull requests; two concurrency settings had left its file with a duplicate key, which GitHub refused (#4339). The Zig format and TensorFold Web workflows cancel a pull request's older run when it gets a newer push, so superseded runs no longer queue, and main pushes all run (#3850). The packaged Web stand-in reports the same version as the engine, so the Web checks pass on main again (#4346). The runtime feed's preparation reads GitHub releases with the workflow's read-only token, so shared hosted runners no longer fail it on the unauthenticated rate limit; transport errors name the host, and a failed preparation step names its error instead of only saying that it failed.

    What changes by default

    • On CUDA, a filling prompt with more than 32,768 rows left shares its steps with running replies, with a decode share of 0.25 and the 512-row chunk hint (#3486). Nemotron and LFM2 MoE keep a prompt-cache state at each message start (#3696), a resumed prompt skips the images its kept state holds (#3164), and Flash Next loads a bf16 language head's draft rows as 4-bit affine groups of 32 (TF_FLASHNEXT_DRAFT_HEAD=bf16 keeps them as stored) (#3477).
    • Each image takes a fixed share of the visual-token budget (1,024 tokens at the defaults), a lone image included (#2717). A streamed reply whose client falls 1,024 tokens behind sits out rounds, and one whose client reads nothing for 60 seconds is cancelled (#3234). Concurrent identical prompts join a leader's fill (#3693).
    • On Metal, LFM2-MoE, LFM3, MiniMax-M3 and Qwen3.5-2B fill new prompts a chunk at a time between other streams' decode rounds (#3058, #3088, #3089, #3090). GLM on Macs without tensor units uses the new vectorized prompt, KDA and indexer kernels (#3921). Qwen3.8-27B and 9B on M1 to M4 size the prompt frame to the 128-row passes they run (#2797), a lone sampled Qwen3.8-27B stream ranks its DFlash2 drafts with its own keyed draw (#3978), and Gemma 4 holds each linear's bytes once (#3350).
    • Flash Next on an integrated HIP GPU caps its default kept-prompt cache at the memory the streams leave, at most 16 GiB (#3645). Flash Next ranks at --tp 2 on CUDA wait up to 10 minutes for a peer to load (#2972). MOSS-Image's bf16 RoPE tables change from row 565 (#1998), and Muse Spark is refused by name on Windows (#4171).
    • Opt-in only: serve --execution-witness (#2901, #2956, #2958), --tool-think-close (#4157), TENSORFOLD_PARALLEL (#3685), TENSORFOLD_LINUX_SANDBOX=1 (#3364), TF_DSV41_COPY_DRAFTER=1 (#2638), TF_DSV41_FLOAT_LINEAR (#4076), TF_GLM_DRAFT_SPLIT=1 (#3616), TF_QWEN_KV_HOST=1 (#2637), TF_QWEN27_METAL_KV_PAGES=1 (#3377, #3180), --mtp-drafts above 3 for Nemotron on HIP (#3613) and a DFlash2 --drafter DIR for GLM-5.3-Flash on Metal (#3920).

    Thanks

    @AbrahamCete, @AIFlowML, @BadAd84, @bikepresentball, @Bizuayeu, @Ch0mpaa, @christopherowen, @CodingEmil, @devopsfortunato, @eXsoR65, @Flyinpiz-dev, @garvrao80, @gilby, @hobbesd, @javierbits, @jayleaton, @jschmied, @kotevcode, @laudney, @MaverickKB, @MiaAI-Lab, @millaguie, @Nipale-ai, @nuk3s, @plotarmordev, @SergiioB, @supernovae, @swbiggart, @tacosta, @ThinkOffApp and @ultradaoto.

  6. 1.3.2

    Expandir

    GitHub Release

    TensorFold 1.3.2

    1.3.2 brings faster DeepSeek-V4.1 decode and prompts on Metal (6 to 17% faster decode at one and two streams on an M5 Ultra), faster GLM-5.3-Flash, MiniMax-M3.1-Flash, Flash Next and Qwen3.8-27B paths on CUDA, and wider Flash Next verify windows on HIP. It adds image input for DeepSeek-V4.1 on Metal and dots.mocr on CUDA, Idol's octree and Gaussian decoders on M5 Metal, Muse Spark Open on two GB10s, Qwen3.8 Flash Next on Intel Xe2, PDFs on POST /v1/ocr, DFloat11 checkpoints, gated Hugging Face pulls and the new tensorfold chat and tensorfold log commands. 1.3.2 also includes everything in 1.3.1 (Hy4-flash on Metal). The speed changes below keep the same tokens, bits or bytes where their bullets say so; the --thinking-reserve reordering on Qwen3.8-27B is the one that trades timing, letting a reasoning reply stream faster beside a long cold prompt while that prompt fills more slowly.

    Speed

    • DeepSeek-V4.1 on Metal (routed experts): in decode launches of 2 to 16 rows, an expert's MXFP4 weights are read and decoded once for all the rows it takes instead of padding every expert's rows to passes of four, so each row's bits equal the one-row kernel's. On the release weights, with #2973 under it, decode is 6 to 17% faster at one and two streams and 2 to 3% faster at three and four on an M5 Ultra, and 5 to 17% and 2 to 5% faster on an M3 Ultra, with every token unchanged (#2983, part of #2984).
    • DeepSeek-V4.1 on Metal (dense FP8): decode's dense FP8 projections of 1 to 5 rows load their weights before the sums and meet each output's tile roots in one simdgroup, and wide ones with K in whole 1024s take one column a simdgroup; every output bit is unchanged, and on an M5 Ultra one stream decodes 46.4 to 49.5 tok/s without drafts and 82.2 to 84.3 greedy (#3287, part of #2984).
    • DeepSeek-V4.1 on Metal (long prompts): indexer passes skip key blocks that no row's candidate mask reaches, add up the first top-k pass's bin-3 counts per simdgroup before one atomic add and score 128 index rows at a time instead of 64 (ix_rows), with the same tokens in the author's runs (#3669, refs #2984).
    • DeepSeek-V4.1 on Metal (prompt projections): the prompt layer's compressor, indexer key and weight and MoE gate projections run on a new simdgroup-matrix kernel (tf_dsv41_mv_mma) at 16 or more rows, bit-equal to the matrix-vector kernel it replaces (#3668, refs #2984).
    • Qwen3.8-27B on CUDA: drafted decoding past 64K cached tokens uses the MT2 attention tile for 2-16-row windows up to 131,071 cached tokens, with the same tokens and about 5% faster on an RTX 5090 at 129K (#4149).
    • Flash Next on M5: kept DeltaNet states (as M1-M4 have) and the half-nibble 4-bit converts M3 and M4 use are enabled with tensor units too; one stream measured about 6.5% faster on an M5 Ultra (16 prompts of 512 tokens, the two builds alternating with one server each), with tokens equal on 32 of 32 replies (#3271).
    • MiniMax-M3.1-Flash on CUDA: with two or more streams, the drafter takes several streams' DSpark blocks in one pass, as many as a decode window's 16 rows hold, instead of one pass a stream; replies are unchanged (#1426).
    • GLM-5.3-Flash on CUDA (launches): GLM's kernels and qmmf's decode linears launch as programmatic dependent launches, so a decode token's kernels lose most of their launch gaps; experts, the router plan and the RoCE exchange stay plain launches, a prompt chunk's KDA chain launches plain from 64 rows, and TF_GLM_PDL=0 launches everything plain (#3776, refs #3652).
    • GLM-5.3-Flash on CUDA (expert forms): the load races the classic and factored expert forms, which give the same bits, at each of its ten timed decode window widths and keeps the faster one at each (classic unless factored is more than 1% faster) instead of one form for every window; TF_GLM_EXPERT_FORM names one form for every width (#3249).
    • GLM on CUDA (EXL3 experts): a decode window's EXL3 routed experts launch on the 16-pair item plan instead of the group kernel's grid of mostly idle blocks, with the same output bytes (#2044).
    • Flash Next on CUDA (prompts): a prompt pass holds 3,072 rows while other streams decode (it held 1,536), so a long prompt beside running streams takes half as many passes (#3726). TF_FLASHNEXT_READOUT_FUSED=1 (off by default) runs a prompt pass's BF16 hyper-connection read-out from 768 rows in three launches instead of five, with every output byte the same (#3413, refs #3392).
    • Flash Next on HIP: the verify window holds eight rows instead of four, so a stream alone in a round can land copy drafts of up to seven tokens a round; rounds shared by several streams keep three-token copies, MTP still drafts at most three, and each stream's window snapshots take more device memory, which admission counts (#2730).
    • HIP on RDNA3.5 (gfx1151): single-round (K up to 1,024) plain fp32-output routed 4-bit stream launches whose largest item holds 3 or 4 rows skip the lane folds of rows past the item's count (Routing.item_rows), with the same output bytes (#3559, refs #3305).
    • Qwen3.8-27B on Metal (prompt tail): on a prompt's last chunk, the last layer's q and o projections, MLP and final norm run only over the 128-row block that holds the row the head reads, while every row still writes its keys, values and recurrent state; a chunk whose last layer has another reader (drafter taps, images, MoE, a tensor-parallel pair, the ANE share) runs every row as before, and test-qwen27-prompt-tail checks the block byte for byte against an every-row pass (#2826, refs #2165).
    • Qwen 3.5/3.6/3.8 on HIP (prompt tail): a prompt chunk before the last stops its last layer after the keys and values, and the final chunk runs that layer only over the rows that are read, through the shared prompt-tail rule CUDA and Metal use (#2845, for #2829).
    • Qwen 3.5/3.6/3.8 on CUDA: TF_QWEN35_CHUNK_SOLO=8192 lets a foreground prompt pass take up to 8,192 rows while no other stream decodes, back to 4,096 once one does and in background warm passes; unset or 4096 is off, and tokens match it off (#3294).
    • Qwen3.8-27B on Metal before M5: decode rounds read their cached keys through the prefix kernels, as on an M5, and prompt passes size their memory the same way; TF_QWEN27_SHARED_PREFIX=0 keeps cached keys on the tail kernel (#3677, refs #3604).
    • Qwen3.8-27B on Metal with --thinking-reserve: the shorter-reply-first order estimates a reply that is still reasoning as its answer quota plus the reasoning left, taken from the think blocks this server has seen close, instead of counting the whole limit the reserve gave it; replies are the same tokens. On an M5 Ultra, once the server has seen a think block close, a reasoning chat reply beside a 110,000-token cold prompt streams 7.3 chunks a second instead of 2.0, and the prompt's fill takes 17% longer. Before a think block has closed, and for requests without --thinking-reserve or with thinking off, nothing changes (#3371, fixes #3270).
    • Thinking follow-ups: the next turn's background prefill puts the reply's reasoning into its guess when the client sends reasoning back, so thinking requests resume from the real next prompt instead of redoing the pass from before the reply; clients whose history drops reasoning keep the old guess (#3264).
    • CUDA sampler: with a small top_k, the fallback selects and sorts only that many candidates instead of 1,024, with the same tokens and probabilities (#4099, fixes #3712).

    New

    • Nemotron 3.5 Bolt on Metal: nemotron_h_puzzle (MLX affine 4-bit) serves text on M1 to M4 Macs, with its per-layer expert counts, latent MoE, bf16 head and Bolt-width Mamba kernels under the kernel contract; an M5 refuses it by name before any weight file is opened, and images and drafts stay deferred (#4162, lands #1038).
    • DeepSeek-V4.1 images on Metal: with --vision, the server loads the checkpoint's vision tower (a checkpoint without vision.* tensors stops at load), and chats with PNG, JPEG or WebP image parts put the tower's rows into the prompt, within --vision-image-tokens (4,096 by default) and --vision-max-images (4). An image's span is prefilled in one chunk, the prompt cache keys image rows by the image's hash, text that spells the image token stays text, and a vision config with zero heads, a zero max_wh_ratio or a downsample_ratio below 2 is refused by name (#3926, part of #1676).
    • Idol on M5 Metal: Idol's octree and Gaussian decoders run natively, from the denoiser's latent to the 3DGS PLY and camera. On an M5 Ultra, 262,144 Gaussians decode in 0.343 s against the SDK's 0.739 s, and 1,048,576 in 1.963 s against 4.653 s, at a 2.43 GB peak footprint against 5.64 GB. Given the SDK's probabilities and draws, every octree level's counts match and the PLY's header and rows equal the SDK's, and both decoders sit as close to an fp32 run as the SDK's own; tf-idol-decode runs those gates from a tools/zig/idol_case.py decode case, and the decoders' nine kernels are registered with the kernel contract (#1773, after #1766, for #1757).
    • Muse Spark Open on CUDA: served on two GB10s from a 1.8-bit EXL3 pack with the prompt cache on, on the shared EXL3 code with its own attention, norm, router and head kernels; any other GPU or number of GPUs is refused by name, and the recipe serves it without a drafter (#1295).
    • dots.mocr images on CUDA: --vision serves images through the image tower instead of refusing them, within the request's --vision-image-tokens budget; text-only replies keep their pinned hashes, and the GB10 runner gains tf-cuda-test dots-text (three prompts served with and without --vision, against pinned reply hashes) and dots-invariants (image prompts cut into chunks against the uncut run) (#2771, refs #1927).
    • Qwen3.8 Flash Next on XPU: serves with MTP and prompt snapshots on Intel Xe2, with 24 reported concurrency and sampling cells matching solo and plain decoding (#3587, fixes #3583).
    • OCR on HIP: POST /v1/ocr (Mistral's OCR contract and its Python and TypeScript SDKs, with dots.mocr's reader and a box for each layout block) reads PDFs (--vision-pdf) as well as images. Images and PDFs share one page budget per request (TENSORFOLD_MAX_PDF_PAGES, default 16), each PDF is measured before any inference and each page rendered just before it is read, and Mistral crops share one image budget (256 images, 4 times the page pixels, 16 MiB plus 2 MiB a page). An option that changes content and that TensorFold cannot apply, such as annotations, is refused, and a page cut at the context limit or out of its model's format fails the whole request with HTTP 422; docs/api.md lists the contract's fields, statuses and limits (#2570, #2571, #2440).
    • tensorfold chat: tensorfold chat MODEL starts its own tensorfold serve on a free loopback port with a fresh key, streams each reply in the terminal and stops the server when the chat ends, and --url URL [MODEL] chats with a running server instead; flags after -- go to the started server, /bye, /clear, /system and /help work in the chat, and piped stdin is sent as one message with only the reply on stdout (#3538).
    • tensorfold log: reads the request journal read-only while a server runs: list with tokens, time to first token and decode rate, show ID with the reply decoded, follow across rotations and --json; journal finish records carry the queue wait, time to first token, decode rate and token counts (#4160, part of #3666).
    • Pull: gated and private Hugging Face repos download with your token: HF_TOKEN, then HUGGING_FACE_HUB_TOKEN, then the one token file the hf tools read (HF_TOKEN_PATH, else $HF_HOME/token, else ~/.cache/huggingface/token). The token goes only to the hub's own host (huggingface.co, or HF_ENDPOINT's), never to the storage hosts downloads are redirected to, and is never printed; a repo the hub refuses is named, with whether a token is missing or lacks access (#3524).
    • DFloat11 checkpoints: a bf16 weight stored in DFloat11's lossless form is read under its own name and decoded on the host at load to the bf16 bytes it was coded from, where such a checkpoint was refused by the missing tensor's name; GLM-5.3-Flash on CUDA is the one loader that attaches it, a damaged group is refused by name, and a checkpoint with no coded tensor loads as before (#3807, refs #3649).
    • HIP EXL3 kernels: an EXL3 input rotation and trellis linear kernel group (exl3/exl3.hip) at 2 to 8 bits, the HIP side of the projection DeepSeek-V4.1's CUDA path calls for its head, Engram's wkv and the indexer's wk, sums in a fixed order so a row's bits do not depend on the rows beside it; nothing serves through it yet (#3314, refs #2065).
    • Code: Drama 3's torch.save reader moves to core/torch_pth.zig (its zip container to core/torch_zip.zig) and its WAV code to core/wav.zig; the reader also opens a root of nested state dicts, naming tensors by their keys joined with / (openNested), and returns a tensor's stored bytes at a given dtype and shape (readRaw), with host tests. Drama 3's generated and served audio stays byte-identical on Metal (#3719, for #3615).

    Server and API

    • Tensor-parallel flags: --tp takes a world from 1 to 64 instead of 1, 2, 4 or 8, each family still admitting only its own (Flash Next on CUDA refuses a world other than 1 or 2 by name before admission); --pp is new and takes 1 only; unranked CUDA families refuse a nonzero --rank as well as --tp; and the GLM, MiniMax and Nemotron rank and world variables get environment rows naming the flag that replaces each (#2917, refs #2560).
    • Model route: GET /v1/models/{id} (and /models/{id}) returns the entry /v1/models lists for the served name or an alias, with the id sent as written or percent-escaped (org%2Fname); any other id is a 404 model_not_found, and API keys and key scopes treat the route as they treat /v1/models (#3535).
    • Metrics: /v1/metrics reports a tensorfold:open_connections gauge, the client connections admitted over TCP or the Unix socket and not yet closed, idle keep-alive ones included (#3925). Every prompt-cache lookup records why it did not resume further (for example cold, evicted, shed, prompt_changed or reply_changed), and /metrics counts them as prompt_cache_miss_total{reason} over a fixed list of reason names (#3706, for #3686).
    • Unclosed think blocks: a reply that ends on its own end-of-sequence inside a think block it never closed returns that text as its answer only when the request asked for reasoning and no tool call was required, no grammar applied and no call was streamed, and the server logs a warning when it does (#3721, refs #3687).
    • Cancelled requests keep their prompt: on Qwen3.8-27B on Metal, a request cancelled during its prompt pass, a drafted round or a streamed reply keeps the prompt state it completed when the prompt cache has room, so a follow-up on the same conversation resumes there instead of re-reading the history; after a cancelled reply, slot 0 first rewinds to its saved prompt state, and in the shared lane core a cancelled pass gives up only its own cache reservation (#3643, for #3618). On Nemotron 3.5 on Metal, a request cancelled during a whole (unstepped) prompt pass keeps the prompt state that pass already landed, and the stepped path is unchanged (#3651, for #3618).
    • Unserved checkpoints: a checkpoint no native backend serves is pointed to the Python engine 0.6.6 only when 0.6.6 serves its model type (DeepSeek V4, Gemma 4, GLM5-Next, Nemotron-H, Prism Hadamard Qwen3.5, Qwen3.5, Qwen3.5-MoE, Qwen3.8 Flash Next and Qwen4); any other type is told no TensorFold release serves it yet and pointed to the recipe book and the runbook (#4008).

    Desktop and Web

    • Desktop downloads: model downloads pass the proxy settings (or the macOS system proxy) through to tensorfold pull, and a download that writes nothing for 60 seconds or fails shows why, with a Retry action, instead of a bar frozen at 0% (#4141).
    • Desktop: Replay launches one task at a time: a second click while a launch is pending creates no new task, the button shows the pending state and is available again after a failure, and a late result from an earlier panel cannot close a reopened one (#3848, fixes #3845).
    • Desktop: a new conversation on the built-in engine asks for its title after the first run settles, not beside it, so the title no longer competes with that run; cancelling or renaming during the run skips it (#4072, refs #3606).
    • Desktop: a Room agent can release its own idle ticket claim, returning the ticket to Ready for another seat with its evidence, reviews and worker history kept (#4081, fixes #3452).
    • App: a Solo Kanban ticket can be assigned a saved bot, which builds with that bot's model, instructions and permissions while keeping the ticket's capability limits (#3737, fixes #3336).
    • Desktop: the model benchmark accepts the engine's community-v2 suite (and community-v1 receipts from older engines) instead of ending every run "protocol not satisfied", and a run that fails or is cut short keeps its checked hardware, engine version and checkpoint details (#4031, fixes #3942).
    • Desktop: an MCP server's startup diagnostics reach the Plugins preview as whole lines, masked as a whole and capped at 64 KiB, instead of one row per stderr write (#3759).
    • Web: the LibreChat and AnythingLLM Docker Connect examples keep the configured remote engine URL, with its scheme, hostname, port and proxy prefix; local loopback examples still use the Docker host alias and away examples the Web relay (#3843, fixes #3839).
    • Web: the development stand-in returns its listed model from GET /v1/models/{id} and a 404 model_not_found for any other ID, as the engine does (#4091, fixes #4090), and reports native 1.3.0, in a checkout and in the built wheel, where it still said 1.2.10 (#4077, fixes #4074).

    Platforms and settings

    • DeepSeek-V4.1 on Metal 4: its GPU work goes through a Metal 4 command queue by default where the Mac has one (macOS 26 and later), with the same kernels in the same order and bit-identical outputs; TF_METAL4=0 keeps Metal 3, TF_METAL4_TIMELINE=n logs per-stage GPU times for n rounds of each kind, and TF_DSV41_ROUND_PROF=1 logs decode rounds' host and GPU milliseconds (#3374).
    • CUDA slab uploads: an opt-in slab mode carves small uploads from shared slabs instead of one 2 MiB-rounded allocation each, and identical trellis bytes upload once, so Hy4-flash EXL3 4bpw loads all 42 layers on one GB10 (85.38 GiB, 29 GiB left) where it ran out at layer 30 (#4003).
    • Gemma 4 on CUDA: with a 4-bit tied embedding, token rows are read from the tied head's 4-bit tiles and the stored embedding table is no longer loaded, so the table is held on the device once; other embedding widths keep the stored table, and replies are unchanged (#3471).
    • Windows: when a checkpoint load releases the pages it has finished with, the process's working set is trimmed too, so those pages stop crowding a unified-memory budget; Linux and macOS are unchanged (#3866). On Windows CUDA, the qwen3_5 prompt cache takes its budget from the host's physical memory, so --prompt-cache-gib works instead of the cache staying off (#3863, fixes #3860).
    • Qwen3.5 on CUDA (message starts): the message-start decision has its own module, and a family can declare its starts on by default; Qwen's stay opt-in, so only TF_QWEN_REQUEST_STARTS=1 turns them on and an unset switch serves as before, shared KV included (#3896, refs #3870).
    • Qwen on CUDA (sm_110): a development build for sm_110 (-Dsm=110, NVIDIA Thor) refuses by name, before paging or weight loading, the modes not qualified there, among them --slide, a DSpine --drafter, --kv-cache fp8, --prompt-precision int8, --rope-yarn, the TF_QWEN_KV_PAGES and TF_QWEN_KV_SHARE settings, TF_NO_TREES and TF_DRAFT_NODES; the default path and the DFlash2 drafter are still served, and other GPUs are unchanged (#3057, refs #2319).
    • Flash Next on CUDA (settings): TF_FLASHNEXT_SPLIT_DENSE and TF_FLASHNEXT_SHARD_HEAD are checked by name when the engine loads, so a malformed value names the variable, the supplied text and the accepted forms, and an empty or blank value reads as unset; valid values and defaults are unchanged (#3749, refs #2370).
    • Samplers: LFM3's sampled and grammar-masked row draws and Flash Next's host reference draw call core's one row sampler with the same errors and messages, and an empty Flash Next reference row is refused by name instead of panicking (#2679, refs #2460); GLM-5.3-Flash on CUDA takes its sampled draw rule from the shared cuda.sample.rule, as MiniMax M3 does, instead of building its own copy with a fixed near value (#3705, part of #2680).
    • Living Weights: in a container that refuses file clones with a permission error (LXC), lessons and rollbacks copy the files instead of failing (#4147).

    Docs

    • Orchestrator on macOS: a custom VONTRA_HOME must be the canonical path (pwd -P gives it), since the alias stops startup as linked (#4088).
    • Recipes that pull, then serve by name: the Flash Next CUDA recipe, with supported models giving it as a 105.5 GiB download of which 73.3 GiB goes to the GPU (#4024); the Nemotron 3.5 Super VL recipe on one GB10 (#3993); the Kolibri-1 recipe, whose size reads 78.9 GB as the Hub reports it, there and in supported models (#3995); and the Qwen3.8-27B recipe, which pulls the checkpoint and its drafter one repository at a time, since the native pull takes one (#3982).
    • CUDA recipes: the Gemma 4 recipe gains a CUDA section for the 31B on one GB10, with the pinned pulls, the serve command and its 47.5 GiB startup size at the default window (#3992); the Nemotron 3.5 recipe gives the pull and serve commands for NVIDIA's NVFP4 export of Lightning and no longer says the export is not read (#3981); the Qwen3.5-2B recipe covers CUDA as checked on one GB10 and says the prompt cache is on by default, with --prompt-cache-gib 0 for fresh execution (#3974); and the Qwen3.6 MoE recipe names the sections that belong to the Python 0.6.6 engine and links its native CUDA section, where it linked the Windows build guide (#3977).
    • DeepSeek-V4-Pro-Qwen3.5-9B: a new one-GB10 recipe serves it from a locally converted MLX 4-bit checkpoint, thinking and drafts off, with its health, model-list and chat checks (#4085, fixes #3905).
    • dots.mocr CUDA recipe: covers images with --vision (14,400 merged image tokens a request by default, set by --vision-image-tokens; each lane holds its request's image rows, so fewer lanes fit; JPEG needs libjpeg-turbo 3.1.4.1; video is refused), the oracle's SDPA image references and stages, and the dots-image and dots-text checks; the README and recipe index list CUDA for images and text (#2773, refs #1927).
    • XPU guide: gives the size of a Qwen3.8-27B prompt-cache state with the DFlash2 drafter and bf16 K/V (64 KiB a prompt token plus 187 MiB), so the 2 GiB default keeps nothing past about 29,700 tokens, the log line that says so, and that a larger budget needs a smaller --context on one card (#3972).
    • Unified memory: MemAvailable can settle a little above the reserve after start-up, and the pool's page count can differ by a few tens between launches with the same settings, because the room is read once while the host is still settling (#4079, fixes #3940).
    • Optimization ledger: the rows-together dense 4-bit stream tile on gfx1151 is recorded as failed for Nemotron on HIP: its launches got faster, but the draft policy then drafted shallower and two greedy Lightning streams got slower (#3395, refs #3305).

    Fixes

    • Engine: under SRPT scheduling, a prompt that finishes on its last fill step no longer writes its lent time to freed scheduler memory (#4159, fixes #3709).
    • Core: KV page-retirement bookkeeping is sized by retired pages, keeping reader fences, page reuse and trim state, instead of clearing a context-sized token table on the first trim (#3852).
    • Model configs: a config.json head count of 0 is refused by name before any division instead of panicking, for Qwen 3.5 on HIP (ZeroHeadCount), Nemotron, the Gemma 4 DFlash drafter on Metal and DeepSeek-V4.1's Metal vision config (#3777).
    • Flash Next on HIP: the prompt chunk fallback counts the window plan's slot bytes as used before deciding whether a smaller chunk admits more streams, where it counted them as free and could keep the larger chunk (#3419).
    • HIP: prompt attention's permlane16 fetches inactive lanes (#4080, fixes #3765).
    • Build: the Qwen ModelOpt admission host test gets the living module, so test-cuda-host compiles on Windows again after #3294 (#4146).

    Tools and tests

    • Tools: served checks reject unexercised draft, seed, cache, cancellation and logit comparisons, covered by 11 served and constraint regression tests, and benchmark receipts name vacuous comparisons (#3772, refs #2460).
    • Tests: for Qwen3.5 dense EXL3 at TP=2, a rank's column cut of a weight can keep the whole weight's K-split plan (Weight.pinnedColumns), and tf-cuda-test qwen35-tp-cut PACK compares each rank's columns with one GPU's whole-weight bytes; --tp 1 is unchanged and --tp 2 stays refused (#3602).
    • Tests: a third stream at --parallel 2 waits with the engine_busy reason in FIFO order, then decodes in every shared round with the backend's own tokens and never takes the lone path (#3757).
    • Tests: on macOS, threaded host tests no longer hang in Zig's debug stack capture: the test allocator keeps its leak and safety checks but records no allocation stacks there; Linux and custom runners are unchanged (#3855).
    • Tests: the benchmark tests' fake server pads its first stream event past the client's 576 KiB read buffer so the two events arrive in separate reads, and two cluster bring-up tests run on a lockstep clock through a new clock option on bringup.Options, which defaults to the real clock (#3750); the served-evidence concurrency test streams long enough to overlap on a slow CI runner (#4182).
    • Tests (Web): the loopback startup regression sets its stand-in past the three-second warm-up, so it passes standalone and in the full suite alike (#4086, fixes #3752), and the startup test imports tensorfold_web's modules on one line, as ruff's import order asks (#4202).
    • CI: a landing train's pull request skips GitHub's hosted checks, which our own runners already run on its tip (a red local run still starts them by hand), and a newer push cancels an older Zig format run, so main's and contributors' checks no longer queue behind trains (#4106); the lean check on a run started by hand compares against main instead of failing (#4151).

    What changes by default

    • DeepSeek-V4.1 on Metal runs its GPU work through a Metal 4 command queue on macOS 26 and later, with bit-identical outputs, and TF_METAL4=0 keeps Metal 3 (#3374); its faster decode (#2983, #3287) and prompt paths (#3669, #3668) are on for everyone, with tokens or bits unchanged as each bullet states.
    • GLM-5.3-Flash on CUDA launches its decode kernels as programmatic dependent launches (TF_GLM_PDL=0 launches them plain) and picks its expert form per window width at load (TF_GLM_EXPERT_FORM names one) (#3776, #3249).
    • Flash Next on CUDA holds 3,072 prompt rows beside decoding streams (#3726), Flash Next on HIP verifies eight-row windows whose snapshots take more device memory (#2730), and Flash Next on M5 keeps DeltaNet states and uses the half-nibble converts (#3271).
    • Qwen3.8-27B on Metal before M5 reads cached keys through the prefix kernels (TF_QWEN27_SHARED_PREFIX=0 keeps the tail kernel) (#3677); with --thinking-reserve it reorders reasoning replies, and in the measured case a long cold prompt's fill took 17% longer beside them (#3371).
    • --tp takes 1 to 64 with each family admitting its own and --pp takes 1 (#2917), pulls send a Hugging Face token when one is set (#3524), and malformed TF_FLASHNEXT_SPLIT_DENSE or TF_FLASHNEXT_SHARD_HEAD values and zero head counts are refused by name (#3749, #3777).
    • Opt-in only: TF_FLASHNEXT_READOUT_FUSED=1 (#3413), TF_QWEN35_CHUNK_SOLO=8192 (#3294), TF_QWEN_REQUEST_STARTS=1 (#3896), the CUDA slab mode (#4003) and image input with --vision (#3926, #2771).

    Thanks

    @AIFlowML, @ajensenwaud, @BadAd84, @bikepresentball, @Bizuayeu, @BobClawblaw, @davidzogg13-boop, @devopsfortunato, @ElderOrb, @gilby, @GumbiiDigital, @hobbesd, @jamesadcock, @javierbits, @jayleaton, @joshuaswarren, @jschmied, @laudney, @Nipale-ai, @plotarmordev, @SergiioB, @shantanugoel, @Shoestring-dev, @supernovae, @trickyfalcon, @ultradaoto and @yguanrong.

  7. 1.3.1

    Expandir

    GitHub Release

    TensorFold 1.3.1

    1.3.1 is 1.3.0 plus native Hy4-flash on Metal. Nothing else changes: every other model, flag and default is as in 1.3.0.

    New

    • Hy4-flash on Metal: tensorfold-native serve takes Tencent's Hy4-flash (hy_v4_flash) 4- and 8-bit MLX checkpoints (TensorFold/Hy4-flash-MLX-4bit-MTP, TensorFold/Hy4-flash-MLX-8bit-MTP) with DFly2 drafts and contexts to 256K tokens (128K by default). Past 2,048 tokens the compressed indexer recalls 2,048 keys a sparse layer, and a following prompt that starts with the last one's tokens prefills only the rest. Drafted output equals plain decode, and a resumed prompt gives the same tokens as a fresh one (#3941, refs #3797).
    • Kernel contract: Hy4-flash's Metal kernels (indexer, MLA projections and attention, hyper-connections, routing, experts, row windows and Engram) and its lane projection variants register under gates 1 to 5, each group with a planted control. Building the records found and fixed a row-window library that failed to compile on Apple chips before the M5 (#4022).

    What changes by default

    • Nothing for existing models: the shared Metal code Hy4-flash adds (an 8-bit register layout, in-kernel group sums, mapped expert gathers) is used only by Hy4-flash, and the other models' kernels are built from the same source text as in 1.3.0.
    • Hy4-flash was measured on an M5 Ultra; other Apple chips build its kernels but were not run with the model.
  8. 1.3.0

    Expandir

    GitHub Release

    TensorFold 1.3.0

    1.3.0 brings faster DeepSeek-V4.1 prompts on Metal, faster NVFP4 and GLM decode on CUDA, and lazy Flash Next KV pages that leave more memory free after load. It adds a first host-only gpt-oss slice, Idol's denoiser on CUDA and Metal, Ling-3.0-tiny's MLA on Metal, XPU peer-to-peer collectives, a server request journal and several new CLI and app features. Every speedup below keeps replies unchanged; the faster follow-up turns and the NVFP4 figure are the only ones that change measured timing, not tokens.

    Speed

    • DeepSeek-V4.1 on Metal: the prompt attention kernel widens bf16 keys through bfloat and lets two heads share one load of each key, with the per-key arithmetic unchanged, about 1.5x faster with the same output bits (#3351).
    • Qwen3.8-27B on Metal: on Macs with tensor units (M5), drafted decode runs two 16-row query tiles in each prefix-attention threadgroup instead of up to six, with the same kernel and tokens; Macs without tensor units keep six on a long cache and four otherwise (#3704).
    • Flash Next on CUDA: with TF_FLASHNEXT_KV_PAGES on Linux, the page pool maps its 256 MiB pieces as streams reach them and a helper thread maps the next ones between requests, so more memory stays free after load; replies are unchanged, and without the flag or on other systems nothing changes (#3066).
    • HIP on RDNA3.5: routed MoE plan buffers (moe.planRows) are sized to the exact window row count instead of the 16-row bucket, and rising added-row window costs are pooled within four-row tile steps (costs.poolWindowRows), with no kernel or output token changes (#3774).
    • CUDA: the one-launch path for two to four affine-4 prompt projections (tf_qmm_prefill_many) works out each thread's copy addresses once before the K loop; the copies, their order and the math are unchanged (#2825).
    • DeepSeek-V4.1 on Metal: with TF_DSV41_PREFILL_PIECES=1, TENSORFOLD_PREFILL_ORDER=srpt, a prompt policy (share or budget) or --decode-share, a prompt runs a chunk at a time between the other streams' rounds so a short request no longer waits behind a long one; with none set, prompts run whole as before (#2950, refs #2984).
    • GLM-5.3-Flash on Metal: prompt index scores read each row's queries once per tile and routed-expert gathers load the next step's codes ahead, so follow-up turns reach the first token 3-4% sooner with unchanged outputs (#3458).
    • CUDA (NVFP4 experts): expert decode streams weights through a per-warp cp.async ring with the same output bits; on an RTX PRO 6000 (sm_120) with drafts off the author measured GLM-5.3 at 104.1 tok/s against 83.8 (up to 24% faster), and on GB10 (sm_121) it is level (#2266).
    • GLM on CUDA: TF_GLM_L2PF site f also prefetches a MoE layer's shared expert gate-up after its router within the same TF_GLM_L2PF_MB budget, about 1.0-1.2% faster decode at TP=2 on GB10 (mean of three alternating launches) with identical tokens (#3156).
    • Flash Next on CUDA: after load, a mixed shard keeps only the n-gram table's pages in the page cache and the final sweep reaches shards nested under tensors/, freeing about 3 GiB of page cache on the NVFP4 export with replies unchanged (#3467).

    New

    • CLI: tensorfold models lists the chat checkpoints from the supported-models guide that fit this machine, largest first, with the memory each needs, a quality score from TensorFold Web's quality suite (receipts in docs/receipts/quality-suite) and a rough one-stream speed; --all adds the rest, --json adds machine and catalog to schema 1, and cached checkpoints follow as before (#3483).
    • gpt-oss: a first host-only slice reads openai/gpt-oss-20b's config, refuses unknown or unsupported fields by name, checks all 459 tensor names of the published checkpoint and adds an MXFP4 reader for 32-value E2M1 blocks with UE8M0 scales that never rewrites checkpoint bytes; nothing is registered with the server yet (#3513).
    • Templates: str.format() renders positional fields ({}, {N}) and the {{ }} escapes as Python does, while signed or underscored indexes, keyword, attribute, conversion and spec fields are refused by name (#3816, refs #3801).
    • Qwen3.8-27B on XPU: a sampled row with top_k from 1 to 64, a temperature above 0 and no grammar mask draws from its top_k largest logits kept on the card instead of copying the whole row to the host, with the same tokens for the same seed (#3340, lands #2895).
    • dots.mocr on CUDA: the image tower (42 blocks and the 2x2 merger) is built but not yet served, so --vision stays refused and replies are unchanged; two GB10 runner commands check it, tf-cuda-test dots-image and dots-stages (#2770, refs #1927).
    • Model configs: Qwen 3.5 on CUDA and HIP and Qwen3.8-27B on Metal read their config fields through one typed reader and named end-of-sequence policies, with the same refusals and stop sets as before; a refused field now logs the file and field it came from (#3716, for #2460).
    • Core prompt cache: the radix store can keep a checkpoint inside a page as a writable tail, a store-held copy of that page's rows that is never written again; no family turns tails on yet, so every current store behaves as before (#3329, part of #2444).
    • Inkling 2 Small: a host-only family package reads its config, checkpoint names and chat template and checks them against fixtures from the published release; nothing serves it yet (#3578, refs #3476).
    • Intel Arc (XPU): two or four Level Zero GPUs open as peers in one context with new peer-to-peer all-reduce collectives (FP16, BF16 and FP32; one shot up to 512 KiB, reduce-scatter then gather above) that sum in fixed rank order for exact bits, and zig build xpu-tp-bench builds tf-xpu-tp-bench to check and time them; nothing serves through them yet (#3585, part of #3583).
    • tensorfold info on Metal: tensorfold info MODEL [--context N] [--parallel N|auto] prints the startup budget serve charges a Qwen3.8-27B-class checkpoint (weights, each stream's KV and state, the prompt scratch; no drafter or images) and whether it fits this Mac's Metal working set beside the 8 GiB margin, in place of a memory floor that ignored the context; info also copies model_type out of the parse before freeing it (#3268, refs #2761).
    • Nemotron on HIP: a checkpoint whose token table (backbone.embeddings) is stored bf16 beside quantized matrices, marked false in config.json's quantization block or stored without scales, is admitted and loads, with rows gathered as stored, the memory plan counting stored bytes and the startup label adding +bf16-embed; a bf16 lm_head, projection or other unquantized tensor is still refused by name (#3575, refs #3061).
    • Idol on CUDA: tf-idol runs Idol's denoiser on GB10 (sm_121) and on RTX 50-series and RTX PRO Blackwell (sm_120) cards against a reference case, gated step by step against idol-sdk's float32 run as on Metal, and refuses other GPUs by name (#1767, for #1757).
    • Families: Nemotron, GLM, Qwen 3.8 27B, MiniMax M3, Dory, tensor-parallel fabric, pictures and video settings read through platform/environment.zig (#3558).
    • Idol on Metal: Idol's released denoiser runs as a native Metal family, idol, with fp16 block projections and attention inputs summed in fp32 and fp32 norms, softmax and RePo as the SDK splits them; tf-idol checks it step by step against idol-sdk's float32 run, and its 27 kernels are in the kernel contract with 19 planted controls. The image encoders and decoders are separate changes (#1766, for #1757).
    • Code: a GPTQ reader in core/quant reads AutoGPTQ v1 4-bit symmetric group-128 weights as stored (qweight, fp16 scales, a qzeros zero point of 8) into an fp64 reference and refuses every other GPTQ field, rule or tensor by name; host only, with no caller yet (#3611, refs #3368).
    • Metal: Ling-3.0-tiny's MLA layers run on Kimi's k3_mla kernels with three added kernels for cache and query RoPE and gate widening, registered with planted controls in the kernel contract (#3609).

    Server and API

    • Server: serve --log-json writes each request start and end as one compact JSON object on the existing log line, with no keys, headers or bodies; default logs and /health stay unchanged (#3195).
    • Server: stored Responses belong to the API key that created them; other keys get the unknown-ID error on reads, continuations, deletion and live cancellation, while keyless and single-key callers retain their own history (#3756).
    • Server: replies in recipient-addressed messages (to=self ... <|eom|>, to=user ... <|eot|>, as Muse Spark Open's chat template writes them) are split into reasoning, answer and tool calls, where the whole reply, markers included, ended up in content (#1336).
    • Server: TENSORFOLD_REQUEST_JOURNAL=PATH records each chat or completion request in three JSON lines (start, prepared, finish), so a request unfinished at a crash is flagged on the next start, one in flight at two crashes is refused with 400 request_quarantined, and tools/replay_request.py replays a journaled request and compares the reply's tensorfold.token_sha256; off unless set (#3221).
    • CLI: tensorfold config validate FILE (source builds only, not tensorfold-native) reads a cluster.json with the same parser and 16 MiB limit the server uses, prints the node and model counts on success or every problem the parser collected, and exits 0, 1 or 2 without planning models or probing hosts; cluster check is unchanged (#3189).
    • Drama voices: --manage-voices (off by default) lets admin keys add a voice with POST /v1/voices (a WAV with its transcript, or an attested voice file, checked and encoded by the loaded model's own codec) and delete one with DELETE /v1/voices/NAME, and --request-voices lets a request carry an inline voice object; a running request keeps the voice it copied when it arrived (#3140).
    • CUDA and HIP: nccl.Library.open() and the tensor-parallel config now resolve TF_NCCL_LIB through the shared path rule, so GLM, Flash Next's --tp 2 collective, MiniMax M3 and TP sessions open the same library; unset, empty or blank values keep libnccl.so.2, and a value with control characters is refused (#3106).

    Desktop and Web

    • App: Room agents keep their own reasoning effort, and an agent without one inherits the run's default (#3514).
    • Desktop: a Qwen3.8-27B checkpoint is offered and loads, where the library applied the 2B geometry to every qwen3_5 checkpoint and rejected the supported 27B at hidden size 5,120 (#3771).
    • Web: an explicit relative --token-file path for the service installer is anchored to the directory it is run from, so the file the installer prepares and the file the generated launcher opens are the same; the default path and symlink handling are unchanged (#3838, fixes #3835).
    • Desktop: searching the current conversation no longer carries a project picked under All saved conversations; the request, its results, filters and navigation use the scope's own project filter, and switching back restores the project (#3900, fixes #3849).
    • Desktop: an attachment in a saved draft keeps only its original diagnostic, and the reselection guidance is added once when the draft is rendered; older drafts with repeated guidance show one copy and keep any surviving diagnostic (#3842, fixes #3837).
    • Desktop: turning off autoCheckUpdates cancels the first scheduled update check as well as the recurring interval, and scheduled callbacks recheck the saved setting; a manual check from Settings still works with automatic checks off (#3836, fixes #3833).
    • Desktop: changing the run, mode or redaction in the export panel clears the old preview at once and leaves Copy JSON and Save… disabled until the new selection builds successfully; a late result cannot replace another selection's preview or its feedback (#3834, fixes #3829).
    • Web: the engine address may be an OpenAI base URL ending in /v1 as well as a server root; health, the relay and Connect derive the server root with engine_root and append the API suffix once, and settings keeps the supplied address so a reverse-proxy prefix ending in /v1 survives a reload (#3831, fixes #3830).
    • Desktop: the library scan uses four convolution taps for Qwen3.5-2B, so the supported checkpoint is offered instead of being refused at scan time; a checkpoint with the old value still gets a geometry refusal (#3768).
    • Desktop: a ticket can finalize only after a current independent review of its actual builder work; reviewer blockers stay with their batch and ordinary later notes no longer revoke approval (#3484).
    • Desktop: the Terminal picker launches a registered Orchestrator CLI by its ID without forwarding the catalog command as a custom override, lists CLIs for the current project and host, and stops a click left stale by retargeting, project removal or a disabled host; local custom commands and the remote refusal still apply (#3828, fixes #3824).
    • Web: the OpenAI connection probe uses the shared stream reader, so partial text followed by an error or early EOF fails the check instead of passing; the reader handles LF, CRLF and bare CR, and complete streams still pass the text-or-reasoning check (#3826, fixes #3823).
    • Web: POST /api/conversations keeps a validated pinned and folder supplied at creation, so the response, later reads and folder counts agree; requests that omit those fields keep the old response shape (#3825, fixes #3822).
    • Web: cleaning up Bench runs drops a finished comparison only once none of its runs remain, so two passes can remove one a single pass kept; age-filtered cleanup considers only comparisons touched by that pass (#3820, fixes #3818).
    • Web: stopping Chat Replay during its final reply marks the replay cancelled and keeps only the turns already completed, leaving the interrupted reply out of the done count and saved results; other engine errors still use the per-turn error path (#3815).
    • Web: on reattachment to a running engine, the last unfinished log line stays buffered until the engine completes it, so a split context-window line is recorded once and supplies startup telemetry; truncating the log clears that fragment (#3813).
    • Web: settings files whose JSON root is an array or a scalar now fall back to defaults at startup instead of raising, and the original file is left untouched; a valid settings object still loads its known fields (#3808).
    • Desktop: a manual Refresh results click in Benchmarks takes priority over an in-flight status poll, so duplicate reads stay coalesced and a late response from the old poll cannot replace the refreshed result (#3817).
    • Desktop: new local project Chats and Tasks keep an explicit Provider key or Default login selection through thread creation and renderer configuration instead of falling back to a named account; projects that omit the account field keep their old fallback (#3810).
    • Desktop: deleting an unloaded checkpoint refreshes the engine snapshot so the open Models view drops its old Downloads row; the browser demo removes that row from its backing snapshot too (#3798, fixes #3796).
    • Desktop: Cancel is honored at the final download byte update, before verification; a cancelled download is not registered as a model and its bytes stay cached for a later retry (#3795, fixes #3794).
    • Desktop: downloader diagnostics are assembled per stream with split UTF-8 intact and an unterminated final line flushed before the exit is handled; a bounded tail keeps long diagnostics usable (#3793, fixes #3792).
    • Desktop: the Hub check and local model library recognize Spark's declared BF16 dtype when a config has no quantization or compression field, while still comparing the detected format with the active engine's capabilities (#3791, fixes #3789).
    • Desktop: a Room's health counter shows completed tickets out of the Room's total, and the bot VM guest's cleanup after a bounded command treats macOS's EPERM as already stopped instead of failing the command (#3698).

    Platforms and settings

    • Qwen3.5 on Metal: the text-only server no longer keeps the vision tower stored between the language-model tensors in GPU memory, so the 2B holds 1.7 GiB instead of 2.3 GiB measured with footprint after load (0.61 GiB less), with replies unchanged (#3407).
    • CUDA and HIP: Qwen 3.5 settings go through the environment rules, so malformed text is refused at startup with the setting's name and accepted forms; names, defaults and clamps are unchanged (#3520).
    • Kernel contract: the nvcc 13.2/13.3 usage table moves to its own registry_cuda_sets.zig, so registry.zig has room under the 600-line limit; the registered set is unchanged (#3865).
    • tensorfold device: a saved macOS profile is refreshed when the live GPU wired-memory limit changes, so the reported available weight bytes match the current limit (#3780, fixes #3778).

    Docs

    • Optimization ledger: rows 30 to 32 (small-kernel fusion, stream-tile prefetch and the filled-item prompt grid) are added, each failed for Flash Next on HIP with the measurements from #1603 (#3160, refs #1603).
    • Qwen3.8-27B recipe: serve with --thinking-budget 4096 when thinking is on, with its GPQA Diamond result on TensorFold 1.2.7 and one GB10: replies cut at the limit fall from 78 of 198 to 0, and correct from 58.1% to 82.8% (#3373, fixes #3323).
    • Drafter training recipe: a section on adapting an already released drafter, budgeted from a few passes over the scarcest class at a low learning rate with early checkpoints, with the Qwen3.8-27B pilot behind it (#3369, refs #2667).
    • Supported models: GLM-5.3-Flash Jammed XSFP4 NZ5 is listed as in 1.2.10 in the supported models table and the GLM CUDA recipe, where both said "on main after 1.2.7" (#3869, refs #2894).
    • GLM-5.3-Flash CUDA recipe: switchless RoCE links on separate IPv4 subnets, with NCCL 2.30.7 or later, NCCL_IB_SUBNET_AWARE_ROUTING=1 and NCCL_IB_SUBNET_PREFIX_LEN, and how to check the NCCL version and NIC each rank picked at startup (#2993).
    • Native release guide: the CUDA command builds all four required targets with the build's catalog, and both archive commands supply the pinned XGrammar checkout with -Dxgrammar=DIR so libtfgrammar is packaged (#3764, fixes #3763).
    • GLM-5.3-Flash CUDA recipe: nvidia/GLM-5.3-Flash-FP4-Local gets its pinned pull and launch, with a new TP=2 receipt on two GB10s in which drafted replies equal plain ones, concurrent equal alone and resumed equal cold (#3425).

    Fixes

    • HIP: in multi-rank runs, a follower rank refuses a step from rank 0 whose page ids, first page index, page-copy pages, snapshot slot, Flash Next begin slot or Nemotron resume row fall outside its own pool, table or slot counts, with the same ShortMessage error as a short message (#3081).
    • GLM on CUDA: the window-cost cache is keyed by TF_GLM_KDA_PAD, TF_ROCE, TF_GLM_PDL and TF_GLM_DSEL too, so changing one times the windows again instead of reusing prices measured under the other value (#3495, fixes #3493).
    • GLM-5.3-Flash on CUDA: while rank 0's vision tower encodes a prompt's images, the other ranks sleep on their liveness lines instead of waiting in a collective receive for the whole pass, so a long image pass no longer trips a net plugin's operation timeout and stops every rank; replies are unchanged (#3675, for #3614).
    • Gemma 4 on Metal: an image input whose tower cannot load is refused cleanly instead of crashing during deinit, and a host test pins that a failed tower load leaves the model with none (#3421).
    • tensorfold web: after a PATH miss, the launcher looks in uv's tool directory for an existing Web executable before offering an install; PATH still wins and installing still needs an explicit yes (#3748, fixes #3747). When uv is missing, the fallback points to uv's installation guide and asks for uv on PATH instead of suggesting pip install --user; the printed install command, consent and exit status are unchanged (#3746, fixes #3743).
    • Web: the packaged stand-in reports the current native version after a native release bump, and Web CI runs when build.zig.zon changes with a build check that the committed packaged version is fresh (#3745, fixes #3739).
    • Nemotron: the Living Weights copies left behind by the October revert are deleted and cuda_pages imports living.lesson_route, leaving one copy of the learner, pocket and lesson files (#3707).
    • Changelog: #3125's entry appears once, under 1.2.10; the copy in 1.2.9's section, a release published before #3125 landed, is removed (#3916, refs #3125).
    • CI: the last four host checks excluded under #2031 return to the aggregate; recording fixtures initialize runner state and affine kernel handles (#2031).

    Tools and tests

    • Tools: tools/draft_divergence.py checks drafted decoding returns exactly the plain token IDs on prompts around recorded BF16 near-ties, at draft caps 1, 4 and 8 (#3841).
    • Tests: a two-session KV isolation test pins that kept states across spill, offload and page reuse match by tokens only, never position (#3840).
    • Tests: the Metal kernel-contract gate checks the four dsv41 xmma units launches only where tensor units exist, so Gate 5 limits pass on Macs without them while the four simdgroup launches stay checked everywhere (#3522).
    • Tools: the served gates (tools/conformance.py, the Qwen and LFM3 serve checks and the Qwen3.8-27B HTTP gate) prove they ran what they claim: drafts landed, the sampler and the prompt cache were used, and concurrent requests overlapped (#3708, follows #2460).
    • Tests: the Zig cache restat tests read .lib_dir from zig env instead of guessing a lib folder beside the executable, so they work with Homebrew Zig (#3786, fixes #3785).
    • Tests: the loopback conformance fixture sets its listen backlog explicitly so a concurrent burst does not lose connections while handler threads start; the same token-equality checks still run (#3784, fixes #3782).
    • Tests: the benchmark TTFT test pins its send clock and requires a nonempty result set before its exact assertion, so rounding no longer decides the result; it still separates first content from headers and role or usage frames (#3783, fixes #3779).
    • Tests: the Desktop helper timing test drives the exact echo, typing and keypress deadlines with a fake clock instead of real process startup, while still checking that the timed-out helper exits and a fresh one starts (#3802).
    • Tests: the Desktop power test runs the real power module with a fake process handle and a mock clock, checking owned shutdown, the restart backoff boundary and saved errors without looking up or stopping unrelated host processes (#3804).
    • Tests: test-pull-host no longer hangs on macOS, where the test allocator's stack capture on frees from the client's I/O threads deadlocked in Zig's Mach-O unwinder (#3740).
    • Tests: a new host step, test-hip-followers-host, runs the HIP followers' step-parser tests (the hip_serve protocol tests and the Flash Next, Qwen and Nemotron HIP worker security tests) in CI, where no build step ran them (#3091).
    • Tests: the macOS nightly builds again: the row dispatch tests handle both pipeline representations, and the OS readings test accepts a small runner's RAM with its footprint check unchanged (#3854).

    What changes by default

    • Faster DeepSeek-V4.1 prompts on Metal (#3351), Qwen3.8-27B tensor-unit tiles (#3704), NVFP4 expert decode (#2266) and the GLM follow-up and L2-prefetch paths (#3458, #3156) all keep replies unchanged.
    • GLM-5.3-Flash follow-up turns now reach the first token 3-4% sooner (#3458), and the Flash Next lazy KV pages are on only with TF_FLASHNEXT_KV_PAGES on Linux (#3066).
    • serve --log-json is opt-in (#3195), the request journal is off unless TENSORFOLD_REQUEST_JOURNAL is set (#3221), and --manage-voices is off by default (#3140).
    • Malformed Qwen 3.5 settings on CUDA and HIP are now refused at startup by name (#3520), and stored Responses are only readable by the API key that created them (#3756).

    Thanks

    @AbrahamCete, @AIFlowML, @ajensenwaud, @Arminova, @atakann, @BadAd84, @Bizuayeu, @cshintov, @devopsfortunato, @eleqtrizit, @gilby, @GumbiiDigital, @jayleaton, @jschmied, @laudney, @Maxrio9, @mrv777, @mvanhorn, @Nipale-ai, @supernovae, @ThinkOffApp, @ultradaoto and @vdalesandro.

  9. 1.2.10

    Expandir

    GitHub Release

    TensorFold 1.2.10

    1.2.10 brings faster DeepSeek-V4.1 prompts on Metal, faster Qwen3.8-27B decode, background responses, tensorfold rm and tensorfold launch, Qwen3-Embedding and Unlimited-OCR-2 on Metal, and fixes for wrong and empty replies. Every speedup below keeps replies unchanged; the GLM-5.3-Flash FP8 figure compares two expert formats.

    Speed

    • DeepSeek-V4.1 on Metal:
      • Cold prompts run about 5-7% faster on an M5 Ultra (2K tokens 600 to 631 tok/s, 8K 855 to 917, 30K about 1,000 to 1,063), now that the target's own buffers join the weights' residency set, inside its load limit (#3321).
      • A cold prompt's first chunk reads its Engram rows while the GPU runs the layers before each Engram layer, so on an M5 Ultra cold prompts start about 0.3 s sooner at 2K tokens, 0.55 s at 8K and 0.8 s at 30K (#3318).
      • On M5 GPUs (generation 17, macOS 27) the prompt's routed experts run on the tensor units, bit-equal to the decode kernels: on an M5 Ultra a 4096-row chunk of a layer takes 155 ms instead of 185 ms. Other Macs keep the simdgroup kernels (#3330).
      • The dense FP8 prompt projections take 14 to 19% less time on an M5 Ultra; a 4096-row prompt chunk of release layer 2 drops from 185 to 175 ms (#3322).
      • Decode launches of 6 to 16 rows run the dense FP8 projections on a simdgroup-matrix tile, so two drafted streams decode 3.7 to 5.5% faster on an M5 Ultra and 3.6 to 5.4% faster on an M3 Ultra; other stream counts are level (#2973).
      • The server keeps the model's ~300 GiB of weights wired between requests. On an M5 Ultra the first request after a restart reaches its first token in 0.28 s instead of 1.8 s, and a cached follow-up after 15 s idle in 0.02 s instead of 1-2.5 s (#3384).
      • The prompt cache also keeps a prompt's state before its first user turn (once the system part before it is 256 tokens or more) and, for a thinking prompt, before its final <think>. A new conversation with the same system prompt and tools resumes after them, and the next turn of a thinking conversation resumes from the last one instead of reading the whole conversation again (#3345).
      • TF_DSV41_CALIB_FILE now prices draft depth from a cost table measured on the serving machine; with a measured table, prose decode on an M5 Ultra rose 0.7% greedy and 2.4% sampled (#3365).
    • Qwen3.8-27B:
      • On CUDA with paged KV and the shared prompt store, streams resumed from one prompt read each shared prefix key tile once a forward instead of once a stream: at a 32K shared prefix on a GB10, decode is 57% faster at eight streams and 28% at four. Every other forward runs the same kernels as before (#3653).
      • On Metal before M5, a drafted window's rows run the decode attention in pairs over the keys below the window: at a 32K prompt on an M3 Ultra, drafted decode is 24% faster at one stream and 29% at eight. TF_QWEN27_JOIN=0 keeps the unpaired pipelines (#3661).
      • On M1 to M4, the 4-bit prompt matrix multiply reads each input row's group sums and half-precision operands from a prepass, bit-equal to the existing tiles: prompts run 3% to 4% faster on an M3 Ultra from 2K to 64K tokens, with decode level (#3215).
      • On Intel XPU, the prompt gdn_out kernel takes 22.6% less time on an Arc Pro B70 (736.3 to 570.2 ms over a 32K prompt), with byte-identical outputs, its fallback included (#2921).
    • Qwen3.8-Flash-Next:
      • On Metal (M1 through M4), the scale index is now the default for 4-bit experts in groups of 32; TF_FLASHNEXT_SCALE_INDEX=0 turns it off. On an M3 Ultra with the MLX 4-bit checkpoint, memory in use once loaded falls from 129.6 to 122.5 GiB, drafted decode on one stream is 2.0% to 4.2% faster (prose 138.6 to 142.0 tok/s, a copy-heavy edit 282.0 to 293.8), four streams are 2.6% faster (203.1 to 208.3 tok/s) and a cold prompt's first token arrives about 1% sooner; load takes about 0.7 s longer (#2805).
      • On HIP (gfx1151), the tf_fn_idx_scores kernel's time falls from 276.0 ms to 141.5 ms at 8K and from 2,873.9 ms to 2,091.4 ms at 32K (#3601).
      • On HIP, when several streams draft in one round, the MTP head drafts them together, as on CUDA and Metal: on a Strix Halo iGPU, distinct-prompt decode is 2.8-3.9% faster at 2 streams and 6.6-7.1% at 4, with one stream unchanged (#2696).
      • At TP=2 on CUDA, the draft head, head-group and rollback passes replay as CUDA graphs on both ranks: with NVFP4 and MTP on GB10s, decode is 1.2-1.4% faster and prompts 0.5-2.1% faster (#2837).
      • On two GB10s, the CUDA recipe now lists both RDMA devices of each ConnectX-7 port in NCCL_IB_HCA, with NCCL_IB_ADDR_RANGE covering both. On two GB10s joined by one cable, this setting made cold 2,048 to 32,768-token prompts at --tp 2 26.5% to 28.1% faster (1,147 to 1,469 tokens/s at 8,192), with decode speed and tokens unchanged (#2969).
    • GLM-5.3-Flash on Metal: checkpoints whose routed experts are not 4/64 read each expert once a drafted window for every row that picked it, and the shared expert once: on an M5 Ultra, an 8-bit build's greedy decode goes from 50.0 to 53.0 tok/s and sampled from 46.5 to 48.8 (#3631).
    • Flint on Metal: --drafter takes the published incoai/Flint-DFlash2 draft model through the DFlash2 runtime the 27B uses, and every reply equals drafts off: greedy decode on an M5 Ultra goes from 174.6 to 233.0 tok/s at one stream and 221.4 to 289.7 at two (#3511).
    • Nemotron 3.5 Bolt on CUDA: the shared expert runs on the side stream in decode windows, as on Super, so decode on a GB10 is 2.9-3.0% faster at one stream and 1.4-2.1% at four (#2847).
    • Prompt cache, opt-in: TF_CACHE_EVICT=decayed_resume (off by default) gives a resumed snapshot bounded recency credit when the RAM store evicts, so agent conversations that keep returning outlive one-off prompts. Through the real store at 16 GiB, agent traces rebuild 24.4-34.5% fewer prompt rows, and at 4 GiB 3.8-8.0% fewer (interleaved chats 17.7% fewer), with none worse (#3258, #3241).
    • Follow-ups and busy servers:
      • Qwen3.5 on CUDA (qwen3_5 and qwen3_5_moe) declares warm turns, so the server prefills a follow-up's prompt in the background and the next turn resumes past the previous reply (#2824). Qwen3.5-2B on Metal declares them too, so a follow-up that re-renders earlier rows resumes instead of prefilling the whole conversation again (#3662).
      • Qwen 3.5, 3.6 and 3.8 on CUDA: a background prompt fill stops between chunks when a foreground request is waiting, keeps the prefix it has filled and resumes from there (#2873).
      • Nemotron on Metal fills a new prompt a chunk at a time between other streams' decode rounds, instead of stalling them for its whole prefill (#3054).
    • Fewer launches and less repeated work:
      • CUDA: a dense Qwen 3.5 MLP's NVFP4 prompt gate, up and activation run in one launch for prompt rows past 16 (#3252); Spark 2.5 and MiniMax-M3 run a prompt's last layer only on the rows something reads, as Qwen's already did (#3122); Nemotron 3.5 Super at TP=2 sends rank 1 one header a decode window and one exact-size message a layer, so it queues a window's layers with no host read between them (#2839).
      • Metal: on chips with tensor units, core row projections over windows of 4 or more rows run 8 rows at a time, then 4, 2 and 1, so each weight code is unpacked once for up to eight rows (#3129); Qwen3.8-27B's projections on M1-M4 drop their inner barriers, and XS sums compile out before tensor units (#2913, #2900).
      • HIP: at head size 256 on spans of 16,384 keys or more, the planned decode walk scores keys in its own kernels without per-element tests or a per-key branch, for Qwen3.6-35B-A3B and Qwen3.8-27B (#3508); on gfx1151, a plain prompt of 1 or 2 rows takes the 2-row K-parallel tile (#3273).

    Models and features

    • Unlimited-OCR-2 on Metal: Baidu's Unlimited-OCR-2 is served natively from its BF16 release on M5-class Macs, page images through serve --vision, with the family's chat template built in. On five reference pages, every departure from the release's own reply is a one-step tie (#2074).
    • Qwen3-Embedding on Metal: 0.6B, 4B and 8B serve through /v1/embeddings on chips with tensor units, with the same refusals and MRL widths as CUDA; vectors match an FP32 reference within 0.001 cosine distance, and a batch equals its single inputs bit for bit (#3494).
    • Nemotron 3.5 Transcribe on CUDA: the language model loads from the bf16 release as published, with exact bf16 caches and no conversion, and the audio encoder (log-mel, the ASR encoder, the streaming speaker encoder and its cache, fusion and projection) runs on the GPU. The server does not take audio input for it yet (#1631).
    • Qwen3.8-27B drafts on its own: serve drafts with DFlash2 when z-lab/Qwen3.8-27B-DFlash2 is already in the Hugging Face cache, and one line names it. Nothing is downloaded, a drafter that does not open leaves the target serving alone, and --drafter none serves without it. The target checks every drafted token, so replies are the same tokens (#3204).
    • GLM-5.3-Flash:
      • On Metal, routed experts stored in the official FP8 checkpoint's format (E4M3 codes, 128 x 128 f32 block scales) load as stored, and a combined checkpoint can point at whole FP8 shards. On an M5 Ultra, FP8 experts beside the 8-bit backbone decode prose at 60.8 tok/s against 55.7 with MLX 8-bit experts; the two expert formats match on prompt per-token loss (0.542561 against 0.542376, inside the 0.070% standard error) (#3682).
      • On Metal, a checkpoint that stores layers.45.shared_head.head drafts MTP tokens through it on one Mac while lm_head verifies every token, so replies are unchanged (#3632).
      • On CUDA, NVFP4_NZ5 checkpoints load, their block-32 routed experts reading E2M1's code 0b1000 as +5; every other recipe and mix is refused by name, and E2M1 checkpoints load exactly as before (#2894).
      • On CUDA, TF_GLM_EXPERT_FORM=classic or factored names the expert form and skips the load's race between the two, so launches and builds compare at one form; unset keeps the race (#3151).
    • Kept conversations on more CUDA models: Gemma 4, Dory and Spark2.5 can keep conversations on disk through the shared kept-image store (#3135). LFM2.5 takes its attention pages from the shared KV pool and keeps chat states in the prompt cache, with the copies off the first token's path (#1503), and LFM2.5-24B-A2B's prompt-stream writes wait for those copies first (#2989).
    • tensorfold rm REPO[@REVISION] removes a checkpoint pull cached, or one of its snapshots with the refs that name it and the blobs no other snapshot links to. It lists what goes and the bytes freed, then asks (--yes skips the question, --dry-run only lists). It never deletes outside the repo's cache folder or through a link, and refuses snapshots a running server holds (#3525).
    • tensorfold launch <agent> starts Claude Code, Codex, OpenCode or Hermes against the local server, with the API base URL and key set only in the agent's environment; no agent config or home-folder files change (#3248).
    • tensorfold device reports this machine's hardware, supported backends and formats, memory budget and the cached models that fit; a saved device profile also supplies the help summary and certain pre-load refusals (#3107).
    • A Grafana dashboard for the engine's Prometheus metrics: TTFT and TPOT quantiles, decode rate, running and waiting requests, KV use, draft acceptance, prompt cache, memory and admission (#3141).
    • Benchmark receipts: managed runs on a listed Apple silicon Mac record its coarse family in hardware.form_factor (such as Mac mini or MacBook Pro), mapped on the device from a fixed table so the product identifier is never written; other Macs, Linux and Windows leave the field out and keep the same receipt bytes. benchmark inspect in 1.2.9 and earlier refuses receipts that carry it (#2009).
    • Groundwork, not used by any served model yet: dots.mocr's image tower weights on CUDA (#2769), Metal kernels for DeepSeek V4.1's vision tower (#1721), a host KDA reference for Ling-3.0-tiny with a Metal check of Kimi's k3_kda (#3055), shared SSD expert code ready for DeepSeek V4.1 experts on SSD, with Flash Next unchanged (#3683), KV pool pages returned once their readers are done (#3353), and message start positions recorded in rendered chat prompts (#3679). Qwen3.5's dense family plans each rank's share of the 27B for tensor parallelism, and --tp above 1 is refused by name until ranks serve (#3383).
    • Docs: the README is now a short quick start and docs list, with setup, serve flags and model tables in the new run guide and supported models pages (#3170); a guide to using TensorFold from OpenClaw through the openclaw-tensorfold plugin (#3341); and recipe updates for Nemotron 3.5 Lightning on a Strix Halo iGPU with native HIP (#3560), GLM-5.3-Flash in long agent sessions (#3576), GLM-5.3-Flash's FP8 latent cache diagnostics, with the cache not qualified (#3432), and the loads TF_GLM_COPIES=1 sped up and slowed, with the default staying off (#3335).

    Server and API

    • Background responses: background: true on POST /v1/responses answers at once with a queued response and generates the reply after the POST returns; GET /v1/responses/{id} polls it, and POST /v1/responses/{id}/cancel or DELETE stops it. At most 64 are queued or running per server (16 per key, 256 MiB of copied requests) before a create answers 429, and stream: true with background is refused (#3220).
    • Rerankers also answer /score, TEI's /rerank with texts and Cohere's /v2/rerank, each translated onto the existing /v1/rerank path (#3203).
    • /v1/completions takes a prompt list of 2 to 64 strings and gives one choice a prompt, each the reply that prompt gets alone, streamed or not, with usage summed over all of them; a longer list is refused (#3194).
    • Images: POST /v1/images/generations with stream: true streams each denoising step's progress (image_generation.progress) and, with preview_interval, partial previews, then the PNG (#3245). It also takes n from 1 to 4, each picture with its own seed (the request's seed plus its index, or 42 plus its index) reported on its data item, and each PNG is the one an n: 1 request with that seed returns (#3244).
    • Browsers: --cors-origin ORIGIN (repeatable, exact origins only, no wildcard or credentials mode) lets a page on that origin call the API, while keys are still required. /v1/apply-template returns the prompt text a chat request's messages render to, special tokens included, without running the model (#3166).
    • Grammars: a request waits at most 2,000 ms for its grammar and past that gets HTTP 400 naming the limit, and each model runs at most 4 compiles at once, so a slow compile no longer holds up other requests (#3231). A grammar over 512 KiB is refused with HTTP 400 before it is compiled (#3038).
    • Wait reasons in metrics: every queued request carries one wait reason, and DeepSeek-V4.1 names its own (kv_pool, memory_floor, prefill_concurrent). /metrics gains requests_waiting_by_reason, request_refusals_total and request_failures_total by code, and restore_fallbacks_total; /v1/load gains waiting_by_reason and refusals (#3014).
    • Drama speech: an explicit --max-frames is honored exactly or refused at open, so --context - 2 (once trimmed silently to --context - 3) is refused by name; an overlong prompt's 400 names the assembled-row limit, the request text's tokens and the reference frames; and GET /v1/models lists a speech object with the loaded budgets (#2143).
    • Image URLs: a host lookup stops at 3 seconds (or the request's deadline, if sooner) even when the system resolver keeps retrying, at most 64 lookups run at once, and a refused connection falls through to the host's next checked address (#3127).
    • Chat templates may use Jinja's float filter, float(value, default=0.0), which reads text as ASCII only, instead of the template being refused (#3577).
    • Docs: the Ollama-compatible routes, with what each takes and refuses, the NDJSON replies and how each differs from its OpenAI-style route (#3496); strict tools under tool_choice: "auto" and TENSORFOLD_TOOL_GRAMMAR, including the legacy DeepSeek alias (#3235).

    Platforms

    • CUDA on WSL2 and Windows: an integrated GPU such as the RTX Spark N1X admits a model against its CUDA memory pool instead of WSL's share of RAM in /proc/meminfo, so a checkpoint the GPU holds is no longer refused. TENSORFOLD_UNIFIED_HOST_COUNTS=1 keeps /proc/meminfo and =0 reads the pool; any other value is refused at startup, and native Linux admits as before. Drama 3 on native Windows opens cuBLAS as cublas64_13.dll too (#2107).
    • CUDA memory for Qwen 3.5: the forward scratch is reserved at load in its own allocation, sized to --context (capped at the largest prompt pass) plus the verify window, and a pass past it is refused before any kernel runs. With a short --context the model starts on a smaller GPU: the 4B in MLX 4-bit at --context 1024 with a 0.5 GiB memory reserve starts on a 4 GiB RTX 3050 Laptop GPU where it was refused, and on a GB10 the 27B's tokens and speed are unchanged (#1879). A dropped kept prompt state's pinned host buffer goes to a spare list of at most two, which the next save or recall blank of the same size reuses instead of pinning new memory (#2841).
    • Metal memory: Flash Next with an explicit --context smaller than the model's full context sizes its caches and selectors to that context, so it holds less memory, with tokens unchanged (#3691). Qwen3.8 Flash Next with SSD residency on (--ssd-experts, --ple-on-ssd) no longer allocates the second prompt workspace that only two-segment prompts use, 6.16 GiB less at the same window (#3690, #3667). Nemotron without tensor units skips the lane tiles no kernel reads (#3375).
    • Metal loading: H3's Model.load reads every transformer shard ahead of its mappings and fails the load on a missing or short shard; TF_LOAD_PREFETCH sets the reader count and 0 turns read-ahead off (#2999).
    • Intel XPU, Qwen3.8-27B: logprobs and top_logprobs are served for a lone drafted stream, plain streams and shared rounds, greedy and sampled, with tokens bit-equal to a request without them; prompt_logprobs is still refused. Decode costs 2.9% to 5.4% for a lone drafted stream and 12.9% for two streams at once (a total rate, prefill included), as rough figures from one Arc Pro B70 (#3051 via #3722). The target's and the DFlash2 drafter's RoPE tables now come from core's exact helper and hold the reference's fp32 words; 15 of 32 and 18 of 64 values move by 1 ulp (#2000).
    • Libraries on macOS and Windows: a library named without a folder is never loaded from the directory the server was started in; on macOS, name its folder in DYLD_FALLBACK_LIBRARY_PATH if it was only found there (#3100).
    • Settings checked by name: on Metal, the Qwen KV paging and slot-resume switches and the slide checks refuse a malformed value by name, and TF_SLIDE_TAKE_OUT_CHECK is read once at start with --slide (#3018). On CUDA, a malformed TF_FLASHNEXT_CHUNK or TF_FLASHNEXT_CHUNK_SOLO names the variable, the supplied text and the accepted range when the engine loads, and a value that is empty or only spaces and tabs now reads as unset (#3308, #3591).

    Desktop and Web

    • Kanban and Rooms: tickets have a Details action to read and edit their title, description, type, priority and effort, and archived tickets can be restored (#3464); a new ticket shows once, even when its update event arrives before the create reply (#3363); returning a parked ticket to Ready releases its previous assignee, so another Room seat can take it (#3469); new ticket worker chats appear in the sidebar as soon as they are created, for solo and Room workers (#3461); and Room health shows each Room's worktree path and Git branch (#3463).
    • Effort and modes: confirming an ultrathink effort change now applies it (#3502), bots keep their own reasoning effort instead of sharing the app-wide setting (#3500), and selecting Supervisor or applying the Supervised build preset is accepted instead of failing with collaborationMode has an invalid value (#3472).
    • Conversations and models: Approvals hides Open on ticket reviews whose conversation is archived, deleted or not loaded yet, and a thread whose conversation is missing shows "Conversation unavailable" instead of a blank window (#3393). Readiness and Command Centre check a local provider such as Ollama or LM Studio against its live model list at its configured address, so a stopped server or one with no models no longer shows as Ready (#3605). An idle task's disabled Planning only control opens the model picker on Local, so a planning provider no longer strands the user (#3357).
    • Search: the built-in agent's web_search and web_fetch accept provider: "keenable", an opt-in Keenable provider with no account or key; only the query or URL goes to Keenable, and the defaults are unchanged (#3637).
    • Sandbox and tools on macOS: Git keeps working in the sandbox when macOS selects Xcode without a legacy xcode_select_link (#3479); MCP servers bundled inside macOS apps can load their own frameworks, with the bundle read-only and other app bundles out of reach (#3423); and an oversized scroll delta is refused as a bad request instead of stopping the computer-use helper (#3470).
    • Studio accepts local benchmark receipts with the optional hardware.form_factor field and keeps it in saved history and exports; unknown labels, raw product IDs and extra hardware keys are still rejected (#2693).

    Fixes

    • DeepSeek V4.1 on CUDA: a prompt whose prefill segment is 18 to 32 rows no longer replies with repeated begin-of-sentence tokens, because the second streams buffer is now planned for 32 rows; replies at every other length are unchanged (#3366, #3388).
    • DeepSeek V4.1 on CUDA: a request whose prompt and reply don't fit the free KV pool now waits in the queue until a running request ends instead of running unreserved (one that can never fit fails at once with a reason), and at TP=2 the ranks agree on each new KV page and roll back together; replies are unchanged (#1682).
    • DeepSeek-V4.1 on Metal: draft trees (TF_DSV41_TREE=2 to 4) no longer end a reply after a few tokens; each sibling branch runs as its own chain on a shadow slot, so replies are unchanged. Trees stay off by default: on an M5 Ultra they were flat on the 16-prompt bench (greedy 89.3 to 89.2 tok/s, sampled 72.7 to 72.5 with TF_DSV41_TREE=2) (#3326).
    • Empty thinking replies: a reply that ends at the model's own end token inside a think block that never closed, with no tool call, now answers with its text instead of an empty answer, on chat completions, /v1/messages and /v1/responses, streamed and whole. The text stays in the reasoning too, and chat completions replies say tensorfold.reasoning_recovered: true. Stop strings, max_tokens, the loop guard, forced tool calls and structured output keep today's reply, and token ids, token_sha256 and token counts are unchanged (#3699).
    • Tool calls in code: tool-call markup quoted in Markdown inline code spans and fenced code blocks stays prose, in whole replies and in streaming, instead of opening, hiding or running as a live tool call (#3588).
    • Flash Next tool results: when several tool calls' results arrive out of call order, each result is now placed after its own call's ID before the prompt is rendered, since Flash Next's template gives the model anonymous result blocks in order. Only a contiguous run with exactly one result per call is reordered, and every other request and backend renders as before (#3775).
    • Kolibri-1: a server with default flags no longer panics with an integer overflow on its first request when a cache sits below the origin (#3561).
    • Prompt cache: on Qwen3.8-27B on Metal, the optional pin that keeps a reply's history for a same-prompt regeneration can no longer evict another conversation's newest state in a tight cache (#3556); radix pages carry their reuse identity, so pages are only reused where they were written for the same request shape (#2888); and with --learn-conversations, an image conversation's kept states stay in RAM as before and the log now says so once per conversation, with no prompt text or image content logged (#3008).
    • GLM-5.3-Flash on CUDA with TF_KV_SHARE and no --prompt-cache-gib: a room that holds one more whole window no longer keeps fewer states; Jammed XSFP4 at TP=3 on three GB10s keeps all 32 at TF_KV_SHARE=32 instead of 8, with the same tokens (#3125).
    • Shared draft pricing: a chain-cut, unmeasured tail is priced by the rule's rates instead of as a measured zero, and the cache's cut marker survives allocation errors (#2979); shared rounds price a plain round apart from drafted rows, level on gfx1151 with Qwen3.6-35B-A3B and MTP with tokens unchanged, and opt-in TF_SHARED_PRICE_LOG=1 prints each shared round's prices (#2687); fixed DFlash2 block work stays separate from verification rows (#3755).
    • tensorfold device: when the memory reserve leaves a known zero bytes for weights, a nonempty checkpoint is reported too large and the text report shows 0.0 GiB (#3773).
    • Files and pulls: temporaries a crash left beside notes and the --slide-graph file are cleared when the server opens their folders, only its own and only when their process is gone (#3132). A Living Weights fact graph save whose final rename fails no longer leaves its temporary file behind (#3096), and a fact graph write the OS refuses names its cause (#3126). A hub file path refused for a reserved name or a path escape names the path and the reason, and the pull exits 1 (#3097); a cluster pull plan asks for each file's safetensors header, and a file read in full is fetched whole, so its manifest hash is checked (#3095).
    • macOS: the native binary imports _memcpy from libSystem again, and the saved device profile is decoded with checked decimal arithmetic and keeps its format (#3761).
    • Under the hood: every tokenizer test runs on the host, and the parity corpus adds the 22 scheduled Indian languages (#3082, #1988); a seeded explorer for lane schedules (#3233); new and repaired kernel-contract and HIP invariance checks (#3580, #3343, #3157); host CI split into two jobs and a redundant nightly shard removed (#3474, #3276); shared code moves with unchanged output (#3214, #3269); and test, tool and comment cleanups (#3086, #3263, #3489, #3465, #3504, #3503, #3572, #3012, #3094, #3633).

    What changes by default

    • Qwen3.8-Flash-Next on Metal (M1 to M4): the scale index is on for 4-bit experts in groups of 32; TF_FLASHNEXT_SCALE_INDEX=0 turns it off (#2805).
    • Qwen3.8-27B: serve drafts with DFlash2 when z-lab/Qwen3.8-27B-DFlash2 is already in the Hugging Face cache; --drafter none serves without it (#3204).
    • Qwen3.8-27B on Metal before M5: drafted windows run the decode attention in pairs; TF_QWEN27_JOIN=0 keeps the unpaired pipelines (#3661).
    • Server: a reply that ends inside a think block that never closed answers with its text instead of an empty answer (#3699).
    • Server: a request waits at most 2,000 ms for its grammar before HTTP 400, and a grammar over 512 KiB is refused (#3231, #3038).
    • Settings: TENSORFOLD_UNIFIED_HOST_COUNTS takes only 0 or 1 (#2107), and malformed Qwen KV, slide and TF_FLASHNEXT_CHUNK settings are refused by name (#3018, #3308).
    • macOS and Windows: a library named without a folder is no longer loaded from the server's starting directory (#3100).
    • Benchmarks: benchmark inspect in 1.2.9 and earlier refuses receipts that carry hardware.form_factor (#2009).

    The first three keep replies unchanged. The fourth changes the answer text, not the tokens. The grammar and settings changes turn a slow or malformed request into a named refusal, and on macOS a library found only in the starting directory now needs its folder in DYLD_FALLBACK_LIBRARY_PATH.

    Thanks

    @AbrahamCete, @AIFlowML, @akol1, @BadAd84, @Bizuayeu, @BobClawblaw, @cshintov, @currencycaver29, @cwschroeder, @devopsfortunato, @dinadur, @drowzeys, @EugeneClaw, @garvrao80, @gilby, @ilya-bogin-keenable, @jayleaton, @jschmied, @laudney, @Mirrdhyn, @Nipale-ai, @plotarmordev, @robertosantosx2, @srh3877, @swbiggart, @sx4im, @tacosta and @ThinkOffApp.

  10. 1.2.9

    Expandir

    GitHub Release

    TensorFold 1.2.9

    1.2.9 brings faster decode and long prompts, an Ollama-compatible API, and fixes for a wrong reply and a hang. Every speedup below keeps replies unchanged.

    Speed

    • Nemotron on Metal (without an MTP head): concurrent streams share one round. On an M5 Ultra, two streams decode about 20% faster, four about 75%, eight 2.3 to 2.5 times and 24 streams 3.2 to 3.5 times (#3005).
    • GLM-5.3-Flash on CUDA:
      • Long prompts' first token comes 0.6% to 13.7% sooner at TP=3 from 131,072 to 2,000,000 tokens, and 6.7% sooner at TP=2 at 1,000,000; shorter prompts at TP=2 stay within about 2% either way (#3159).
      • After a 1,040,384-token prompt, decode rounds are 5.05%, 9.36% and 11.36% shorter at 1, 4 and 8 streams (#2722).
    • Qwen3.8-Flash-Next on HIP (gfx1151): one stream decodes about 6% faster, four streams 2.8% to 4.6% (#2697).
    • Fewer CUDA launches for Flash Next draws (#2927), Nemotron 3.5 draws (15 a level instead of about 112, #3124) and Qwen3.8-27B prompts (#2925).

    Models and features

    • An Ollama-compatible API: /api/chat, /api/generate, /api/embed, /api/tags, /api/show, /api/ps and /api/version on the same engine paths as the OpenAI routes (#3342).
    • tensorfold serve --config FILE.toml reads serve flags from a file, so a launch can be checked in (#2885).
    • Linux: an opt-in memory-pressure governor driven by PSI, TENSORFOLD_MEMORY_PRESSURE=1 (#2156).
    • Groundwork, not used by any served model yet: a CUDA image path for the dense engine (#2768), dots.mocr's vision kernels (#2767), and HIP's TCP fabric for two hosts without RDMA (#2961).
    • An experimental Living Weights v2 controller in tools/living_weights_v2 (#3320).

    Server and API

    • /v1/models lists each model's input_types. A video sent to a model without video is a 400, not a 500 (#3019).
    • Logprobs work with tools, stop strings and reasoning, and on the Responses API (#3206).
    • With thinking off, a request's reasoning effort reaches the template (#3017).
    • Replies say when they kept a tool call as text, in tensorfold.kept_tool_calls and two /metrics counters (#2814).
    • Streams can carry the committed token IDs, opt-in (#3285).

    Fixes

    • Nemotron Omni on CUDA: a failed image request no longer leaks into the next reply (#2985).
    • GLM-5.3-Flash at TP=3: prompt_logprobs over about 100 tokens no longer hangs (#1571).
    • Living Weights: the drift gate no longer refuses a lesson over the writer's own wording (#2929).
    • CUDA: the release server refuses a GPU it has no kernels for, by name, at startup (#2914).

    For developers

    • zig build test-host gathers the Linux host checks (#2095); flaky tests fixed (#2963, #3015, #3310, #3347, #3349, #3355); docs for TF_GLM_PROF (#2990) and a Jammed XSFP4 NZ5 row (#2981).

    What changes by default

    • GLM on CUDA: the TF_GLM_INDEX_CUDA kernels and TF_GLM_DSEL are on by default.
    • Flash Next on CUDA: sampled draws are batched by default; TF_FLASHNEXT_BATCH_DRAWS=0 restores per-stream draws.
    • Flash Next on HIP: on one RDNA 3.5 GPU (gfx1150 to gfx1153) serving alone, MTP drafts stop under a 0.8 confidence floor; other HIP GPUs and families keep 0.3, and --mtp-confidence still overrides it.
    • Server: --reasoning-effort no longer changes a thinking-off prompt.
    • Server: a video_url part sent to a model without video gets HTTP 400 (invalid_request_error), not a 500.
    • CUDA: the release server refuses, by name at startup, a GPU it has no kernels for.

    The first three keep replies unchanged. The fourth changes the prompt of a thinking-off request when the server sets --reasoning-effort. The last two turn a failure into a named refusal.

    Thanks

    @Bizuayeu, @Defilan, @garvrao80, @gilby, @jimthedj65, @jishnuvenugopal, @laudney, Mia's AI Lab (@MiaAI-Lab), @Nipale-ai, @Shoestring-dev, @ss-cong, @tarsnake and @WebReflection.

  11. 1.2.8

    Expandir

    GitHub Release

    TensorFold 1.2.8

    1.2.8 adds new models and hardens the server.

    • Models: Recursive's Flint 40B-A2.5B on M5-class Macs; DeepSeek-V4.1 natively on Macs (experimental); the Qwen3 embedding and reranker families on CUDA; OCR through POST /v1/ocr on HIP.
    • Server: you can cancel a request by its id. Request bodies, connections, templates, tokenizer patterns and grammars get fixed limits.
    • Speed: most of the work is on prompts. Flash Next at --tp 2 on CUDA fills prompts 26.5% to 33.9% faster; Qwen3.8-27B MLX 8-bit prompts on an M5 Ultra are about 33% faster; GLM-5.3-Flash's MTP head drafts only as deep as it pays.

    Where a speedup was checked for equal output, its entry says so. Some changes alter limits, refusals or startup by default; they're listed under What can change for you.

    • New:
      • Recursive Flint 40B-A2.5B on M5-class Macs, natively from RecursiveSI/flint-int4;
      • DeepSeek-V4.1 on Metal for text prompts (experimental, TF_EXPERIMENTAL=deepseek);
      • Qwen/Qwen3-Embedding-* (/v1/embeddings) and Qwen/Qwen3-Reranker-* (/v1/rerank) on CUDA from the published BF16 weights;
      • POST /v1/ocr in Mistral's OCR contract on the native HIP engine;
      • POST /v1/requests/{id}/cancel;
      • --max-connections, --max-connections-per-address and --trusted-proxy;
      • opt-in TF_GLM_CONTEXT_CEILING, TF_DSPINE_WINDOW and TF_PROMPT_INTERMEDIATE.
    • Speed and memory:
      • Flash Next on CUDA at --tp 2: cold prefill of 2k to 32k tokens is 26.5% to 26.8% faster on two GB10s and 30.9% to 33.9% faster on two RTX PRO 6000s.
      • Qwen3.8-27B MLX 8-bit on an M5 Ultra: cold prompts are about 33% faster.
      • Qwen3.8-27B with DFlash2 on an M5 Ultra: a copy-heavy greedy reply runs at about 792 tok/s instead of 241.
      • GLM-5.3-Flash with its MTP head: one greedy stream decodes 16% to 28% faster at TP=2 and 22-46% faster at TP=3.
      • GLM-5.3-Flash with TF_ROCE=1: decode is about 6% faster at one and two streams on three GB10s, and up to 12.9% faster on four.
      • Flash Next on HIP: cold decode at 4 streams is about 45% faster sampled and 18% greedy on a Radeon 8060S.
      • Video input decodes 2.1x to 3.4x faster on frame threads.
    • Fixes:
      • Qwen 3.5 on CUDA no longer refuses at startup with --prompt-cache-disk or --learn-conversations.
      • GLM-5.3-Flash at four ranks on a switchless ring names the setting that fixes its start-up.
      • A later --compact-at replaces an earlier one.
      • A token id past the embedding table is refused on HIP and XPU.
      • libtfvideo.so links FFmpeg's x86_64 assembly.

    New models and backends

    • Recursive Flint on Metal: Flint (40B-A2.5B MoE) is served natively from RecursiveSI/flint-int4 on M5-class Macs, with its kernels and 2048-wide router under the kernel contract, a 262,144-token window, copy drafts and the prompt cache. FLINT_LOAD_LIMIT_GB caps its memory (#1177, fixes #1175). Thanks to @BobClawblaw.
    • DeepSeek-V4.1 on Metal (experimental): with TF_EXPERIMENTAL=deepseek, tensorfold-dsv41 (zig build dsv41-metal-serve) serves the release checkpoint natively for text prompts, with DSpark drafts and the prompt cache.
      • On an M3 Ultra and an M5 Ultra with 512 GB, drafts make one stream 1.21x to 1.50x faster than --no-drafts and two streams up to 1.13x faster; three and four streams are level.
      • token_sha256 is equal in every cell (#1720, part of #1676). Thanks to @gilby, and to @3utsu for an independent M5 Ultra receipt.
    • Qwen3 embeddings on CUDA: Qwen/Qwen3-Embedding-0.6B, -4B and -8B serve /v1/embeddings from the published BF16 weights.
      • On one GB10 the worst cosine distance to float32 is 1.55e-4, 1.34e-4 and 1.08e-4, against transformers' own BF16 at 1.88e-4, 1.79e-4 and 1.77e-4.
      • A request's vectors equal each input sent alone (#2285). Thanks to @Arminova.
    • Qwen3 rerankers on CUDA: Qwen/Qwen3-Reranker-0.6B, -4B and -8B serve /v1/rerank, scoring a request's documents as one decision whose shared start runs once a pass.
      • On one GB10 the worst score from float32 is 5.5e-5, 6.2e-4 and 2.9e-4 on 16 documents of up to 2,579 tokens, against transformers' BF16 at 3.4e-5, 2.8e-4 and 2.2e-4.
      • A document scored alone equals its score in a request of 16 (#2995, part of #2261). Thanks to @Arminova.
    • OCR on HIP: the native HIP engine reads page images through POST /v1/ocr in Mistral's OCR contract, so Mistral's Python and TypeScript SDKs work, with dots.mocr's reader giving a box for each layout block.
      • PDF documents, pages and content-changing options it can't apply are refused.
      • A page cut at the context limit fails with HTTP 422.
      • docs/api.md lists the fields, statuses and limits (#2570, #2440). Thanks to @laudney.
    • dots.mocr's text decoder on CUDA: it serves text prompts on a GB10 from the publisher's BF16 weights, on a new shared engine for dense GQA decoders. --vision, prompt caching and fp8 caches are refused by name (#2673, part of #1927). Thanks to @laudney.
    • MOSS-Image on Metal: tf-moss-image-generate makes a picture from options alone (--prompt, --negative, --width, --height, --steps, --seed, --guidance) at the card's defaults (#2719, for #1531). Thanks to @devopsfortunato.
    • Groundwork that no served model selects yet:
      • a DFlash2 draft engine for chains in HIP's qwen3_5 engine: in the drafter test with Qwen3.8-27B on gfx1151, 0.86 of first drafts are right and a round makes about 5 tokens greedy (#2726, part 4 of #1563). Thanks to @AbrahamCete.
      • a bf16 grouped-experts format in the CUDA kernels (#1630). Thanks to @BobClawblaw.
      • a TCP transport for tensor parallel on hosts without RDMA, checked bit for bit over two hosts (#2718, part of #2065). Thanks to @Shoestring-dev.
      • pipelined rounds in the shared stage driver, with tokens checked equal to one engine (#2579, part of #2005). Thanks to @jschmied.

    Server and API

    • Cancel a request: POST /v1/requests/{id}/cancel cancels a running or queued request by its chatcmpl-, cmpl- or resp_ id. The reply ends cancelled with the tokens it had, and other streams are unchanged.
      • With API keys only a full or [admin] key may cancel.
      • A server without keys answers only direct loopback callers (#3193, fixes #3172).
    • Connections: under connection pressure (96 of 128 slots open), one client address holds at most a quarter of the slots, and an idle keep-alive connection gives its slot up only when every slot is taken.
      • New flags: --max-connections, --max-connections-per-address and --trusted-proxy.
      • Below pressure nothing is refused (#3048).
    • Limits on untrusted input:
      • a request body no route reads is capped at 64 KiB (#3029);
      • a chat template is held to a nesting depth, step count, stack depth and scratch memory, and renders byte-identically and as fast as before (#3072);
      • a tokenizer split pattern gets a work allowance of 2,048 instructions a byte (#3071), and a token id above 2^24 is refused at load (#3033);
      • a grammar's exploration stops at 2^38 steps, with no time limit, so the answer doesn't depend on the machine (#3037).
    • Media, files and sessions:
      • a media URL whose host resolves to many addresses no longer hangs the fetch (#3035);
      • compaction notes and the fact graph are written owner-only through a renamed temporary file (#3031);
      • a crafted session chunk is refused, and the disk tier's files are owner-only (#3030);
      • pull refuses repository files under the engine's reserved names (#3032).
    • Cluster:
      • on a real host, a node takes only the nodes its cluster file names (#3039);
      • a file pulled whole is checked against the manifest's hash (#3043), and a pull that would leave a file held only in part is refused unless allowed. No shipped command calls the cluster loader yet (#3074).
    • Prompt cache:
      • Intermediate checkpoints (opt-in for Flash Next on CUDA): with TF_PROMPT_INTERMEDIATE=1, a bounded ladder of intermediate checkpoints lets a compacted prompt resume inside its retained prefix. On one GB10 with drafts off, a 104K-token request that kept its first 100K resumed 65,536 tokens instead of 2, cutting time to first token from 50.7 s to 19.9 s with the same tokens (#1953, fixes #1909). Thanks to @javierbits.
      • Shared pages: on the core pool, the radix store holds each pool page once, and a snapshot save can no longer make reclaim prune the leaf it is writing to (#2875, part of #2444). Thanks to @laudney.
    • Settings:
      • TF_GLM_CONTEXT_CEILING (opt-in) opens GLM-5.3-Flash windows past 1,048,576 tokens (#2765). Thanks to @Bizuayeu.
      • TF_DSPINE_WINDOW=N (16 to 8,192, opt-in) narrows a Qwen3.8-27B DSpine drafter's window without editing the checkpoint (#2705). Thanks to @jschmied.
      • --profile fast refuses as not planned, and --profile fast-exact names the token gates it still needs (#2794). Thanks to @devopsfortunato.
    • Cortheon:
      • page links survive whitespace around href or inside the URL (#3006). Thanks to @ppardus.
      • DuckDuckGo results are kept, with their ads still skipped, whatever the markup's spelling (#2750). Thanks to @ppardus.
    • Startup lines:
      • Qwen3.8-27B on Metal says how many streams draft (#2806).
      • GLM-5.3-Flash with --vision and no video library says what --vision-video-tokens sets aside: 128 MiB a stream at the default 16,384, or 512 KiB at 64 (#2813). Thanks to @Bizuayeu.
      • DeepSeek-V4.1 prints its transport on both ranks (#2877).
      • The DFlash2 drafter for GLM-5.3-Flash gives its licence as Apache-2.0 (#3084).

    Speed and memory

    • Flash Next on CUDA at --tp 2: a prompt pass wider than 64 rows reduce-scatters its routed experts' slots, and replies keep their tokens.
      • On two GB10s, rank 0 sends 3.43 MiB a prompt token instead of 5.81, and cold prefill of 2k to 32k tokens is 26.5% to 26.8% faster.
      • On two RTX PRO 6000s it is 30.9% to 33.9% faster (#2977). Thanks to @swbiggart.
    • Qwen3.8-27B on M5 Macs:
      • Prompt lane projections at every width take a chunk's 16-row blocks in one dispatch. MLX 8-bit cold prompts are about 33% faster on an M5 Ultra (769 to 1,029 tok/s at 2K, 769 to 1,027 at 8K), with identical tokens (#2851, for #2818).
      • With DFlash2, one greedy request at the default window uses the long-copy driver again: a whole-file rewrite runs at about 792 tok/s instead of 241 on an M5 Ultra, with the same tokens (#3069, for #3013).
    • Qwen3.8-27B on Metal:
      • Prompt passes no longer write a buffer nothing read. On an M5 Ultra with the MLX 4-bit checkpoint, time to first token is 0.45% to 1.16% shorter (#2915, for #2905).
      • A client that sends the last reply back without its reasoning resumes at its history's end. On an M5 Max at 32k with a 5 GiB cache, turns 1-6 of a 7-turn chat took 16.5 s and 18.9 s of summed time to first token against 217 s, with identical replies (#2723). Thanks to @ThinkOffApp.
    • GLM-5.3-Flash on CUDA:
      • With its MTP head and --mtp-confidence, a temperature-0 stream drafts the depth its acceptance supports. At --mtp-confidence 0.5, one greedy stream decodes 16% (code) to 28% (chat) faster at TP=2 on two GB10s and 22-46% faster at TP=3 on three, with replies unchanged (#2864). Thanks to @Bizuayeu.
      • With TF_ROCE=1 on every rank, three ranks or more take a one-shot RoCE all-gather, byte-equal to NCCL's. Decode is about 6% faster at one and two streams on three GB10s, and 12.9%, 10.4% and 6.6% faster at one, two and four streams on four. The target's tokens are unchanged (#2205). Thanks to @shanedertrain.
      • EXL3 prompt passes route their experts in one call, with bit-identical rows (#2852, for #2819).
    • Qwen 3.5, 3.6 and 3.8 on CUDA, measured with Qwen3.8-27B (MLX 4-bit) on a GB10:
      • Small decode windows are no longer padded to 16 rows: about 1.5% faster at four streams (#2934, fixes #2909).
      • A one-row step no longer copies the recurrent state: 1-2% faster at one stream and about 4% at four (#2933, fixes #2908).
      • Both keep the same tokens.
    • CUDA EXL3 grouped experts: Qwen3.6-35B-A3B EXL3 sizes its grouped storage for 36,864 pair rows instead of 163,904 (about 3 GB less), with bit-equal outputs (#2843, for #2823).
    • HIP on gfx1151:
      • Flash Next's decode spreads its n-gram gather over the host workers. On a Radeon 8060S at 4 streams, cold decode is about 45% faster sampled and 18% greedy, and the cold 8K first token about 10% sooner, with tokens unchanged (#2695). Thanks to @gilby.
      • Flash Next's MTP head takes a prompt chunk on the prompt tiles, so cold prompts finish about 5% sooner at 8K and 32K. Replies are unchanged (#1878). Thanks to @gilby.
      • Flash Next's verify windows run their DeltaNet from the round's plan: decode is 2–5% faster at one to four streams, and drafted replies equal drafts off (#2728). Thanks to @gilby.
      • The routed prompt tile splits small experts: with Qwen3.6-35B-A3B (MLX 4-bit) at one stream, cold prompts of 64 to 256 tokens are 11% to 22% faster, with tokens equal to main's (#2878, fixes #2795). Thanks to @AbrahamCete.
    • Intel XPU, Arc Pro B70, Qwen3.8-27B:
      • The prompt gdn_out kernel takes 22.6% less time (736 to 570 ms over a 32K prompt), with byte-identical outputs (#2921, refs #2859). Thanks to @dinadur.
      • A prompt chunk nobody reads stops its last layer early: the cold first token comes 1.3-2.5% sooner at 8K to 66K prompts, with identical replies (#2854, fixes #2849). Thanks to @SergiioB and @Mirrdhyn for the B70 runs.
    • Video input: libtfvideo decodes MPEG-4 Part 2 and H.264 without B-frames on up to four frame threads.
      • The decoder alone is 2.1x to 3.3x faster on an M5 Max and 2.5x to 3.4x on an x86_64 Threadripper 3960X, with every intact frame equal to before.
      • H.264 with B-frames keeps main's slice-threaded path (#2863). Thanks to @swbiggart.
    • DeepSeek-V4.1 assets: aot-needs plans the same Triton variants about 15 times faster (713 s against 45 s at a 65,536-token context) (#3007, found on #2270). Thanks to @Defilan.

    Fixes

    • Qwen 3.5 on CUDA: with --prompt-cache-disk or --learn-conversations, the startup probe no longer refuses with ProbeUnmarked (#2838, fixes #2804).
    • GLM-5.3-Flash on CUDA at four ranks or more: when the split prefill's start-up exchange fails, as on a switchless ring of four, the refusal names TF_GLM_PREFILL_REDUCE=gather instead of a bare ncclGroupEnd error (#2868). Thanks to @Bizuayeu.
    • GLM-5.3-Flash on CUDA, tensor-parallel abort: an abort reaches the communicator once, and a start-up failure after it no longer destroys the communicator again (#2918, part of #2560). Thanks to @laudney.
    • Tensor-parallel shares in GLM-5.3-Flash: they go through one mesh layer, with tokens equal to main at TP=2. In any family on CUDA, an aborted tp_group call ends as Aborted instead of stopping the process (#2789, part of #2560). Thanks to @laudney.
    • Token ids past the embedding table: they are refused before the lookup on HIP (#3046) and XPU (#3047). An 8-bit Qwen3.8-27B MLX checkpoint on XPU is refused at load by name (#3047).
    • HIP ranks: a follower checks each step's counts against its message, so a malformed step is refused instead of read past (#3042).
    • --compact-at: a later one replaces an earlier one, as for every other serve flag (#2883). Thanks to @laudney.
    • Video on Linux: libtfvideo.so exports only its four tf_video_* functions, so on x86_64 it links FFmpeg's assembly. A CI check refuses a build that exports more (#2861). Thanks to @swbiggart.
    • Flash Next settings: twenty-nine TF_FLASHNEXT_* settings refuse a malformed value by name at startup (#2585, part of #2370). Thanks to @devopsfortunato.
    • Slide rollback: a fact graph is removed only when its own folders file names the folder being rolled back (#3073).

    Docs and tools

    • Docs:
      • The CUDA memory plan says what each setting decides and which file reads it (#3028). Thanks to @Bizuayeu.
      • The Intel Arc page notes that its B70 prefill row predates 1.1.0's more precise prompt DeltaNet (#2906). Thanks to @dinadur.
    • Tools:
      • zig build tf-tp-check checks per-rank dumps of a mixed Metal and CUDA tensor-parallel run (#2321, part of #1236). Thanks to @ThinkOffApp.
      • core/lanes gains a shared depth sweep any core drafter can run (#2729, part of #2460). Thanks to @jschmied and @EugeneClaw.
      • tf-cuda-test flashnext-rank passes again on two GPUs (#2976, fixes #2975). Thanks to @swbiggart.
    • CI and tests:
      • The serving pins run on every pull request (#3011).
      • The macOS nightly runs the Metal engine host tests (#2891).
      • A newer push to main cancels main's older run (#3230).
      • The CUDA source check passes again (#2902). Thanks to @Bizuayeu.
      • Main's nightly failures from #2585 and the re-pins are fixed (#3002).
      • Test fixes: #2946, #2889, #2865, #3010, #3255.
    • Internal, with no change to what runs:
      • One source for shared Metal kernels: argmax (#2949), image-tower helpers (#2948), decode matvec (#2792), prompt GEMMs (#2787) and GLM's TP2 kernels (#2786).
      • One core reader for MLX affine modules (#2583) and one for block FP8 (#2892).
      • Unused kernels removed (#3065, #2816).
      • All of the above thanks to @jschmied.
      • Execution-witness groundwork: the kept prompt-state identity goes through any hasher (#2903), and admission moves to its own file (#2896). Thanks to @kotevcode.
      • Saved prompt states: Qwen3.8-27B and GLM saved prompt states on Metal are recomputed once after these kernel moves.

    What can change for you

    • Request bodies: a body that no route reads is capped at 64 KiB; a larger one gets HTTP 400 (#3029).
    • Connections: under connection pressure (96 of 128 slots), one client address holds at most a quarter of the slots. --max-connections-per-address 0 turns the share off, and --trusted-proxy exempts a proxy (#3048).
    • Chat templates, tokenizers and grammars:
      • A template past its nesting depth is refused at load (#3072).
      • A tokenizer split pattern that is too deep or too large is refused at load (#3071), as is a token id above 2^24 (#3033).
      • A grammar past 2^38 steps of exploration gets HTTP 400 (#3037).
    • Invalid ids and settings:
      • Token ids past the embedding table are refused on HIP and XPU, and an 8-bit Qwen3.8-27B MLX checkpoint on XPU is refused at load (#3046, #3047).
      • A malformed TF_FLASHNEXT_* value is refused at startup by name (#2585).
      • --profile fast is refused (#2794).
    • Qwen3.8-27B with DFlash2 on M5 Macs: one greedy request at the default window takes the long-copy driver; TF_QWEN27_LANES=1 keeps every request on lanes (#3069).
    • GLM-5.3-Flash with TF_ROCE=1: three ranks or more use the RoCE all-gather. Drafter acceptance can move slightly, since the split drafter MLP sums in another order (#2205).
    • pull: a repository file under the engine's reserved names is refused (#3032).
    • Saved prompt states: Qwen3.8-27B and GLM saved prompt states on Metal are recomputed once after upgrading (#2816, #3065, #2786).

    Thanks

    • @3utsu (an independent receipt for #1720)
    • @AbrahamCete (#2726, #2878)
    • @Arminova (#2285, #2995)
    • @Bizuayeu (#2765, #2813, #2864, #2868, #2902, #3028)
    • @BobClawblaw (#1177, #1630)
    • @Defilan (#3007)
    • @devopsfortunato (#2585, #2719, #2794)
    • @dinadur (#2921; and #2906)
    • @EugeneClaw (#2729)
    • @gilby (#1720, #1878, #2695, #2728)
    • @javierbits (#1953)
    • @jschmied (#2579, #2583, #2705, #2729, #2786, #2787, #2792, #2816, #2892, #2948, #2949, #3065)
    • @kotevcode (#2896, #2903)
    • @laudney (#2570, #2673, #2789, #2875, #2883, #2918)
    • @Mirrdhyn (the B70 run for #2854)
    • @ppardus (#2750, #3006)
    • @SergiioB (the B70 run for #2854)
    • @shanedertrain (#2205)
    • @Shoestring-dev (#2718)
    • @swbiggart (#2861, #2863, #2976, #2977)
    • @ThinkOffApp (#2321, #2723)
  12. 1.2.7

    Expandir

    GitHub Release

    TensorFold 1.2.7

    1.2.7 is mostly about resuming long conversations where they left off: Qwen3.8-27B on Metal resumes a follow-up at the end of its history even when the client drops earlier reasoning (first token in about 0.3 s instead of 85 s on an M3 Ultra), a failed disk restore falls back to the state already in RAM, and GLM-5.3-Flash on CUDA can resume a chat at its previous turn (opt-in). It also adds a WebSocket mode for the Responses API and LightOnOCR-3 image chat on CUDA, with speedups on Metal, CUDA and HIP and fixes for -Dgpu builds, damaged JPEGs and malformed GLM tool calls.

    • New:
      • Responses API WebSocket mode: GET /v1/responses with a WebSocket upgrade, so client.responses.connect() works unchanged;
      • LightOnOCR-3 0.8B and 4B serve image chat on CUDA from the publisher's BF16 weights;
      • TF_GLM_REQUEST_STARTS=1 (opt-in) resumes a GLM chat's next turn at its previous turn's history on CUDA;
      • TF_FLASHNEXT_SCALE_INDEX=1 (opt-in) reads Flash Next's 4-bit scales and biases through a 16-bit index on Metal (M1 through M4);
      • the dashboard and /stats show the prompt cache, its disk tier and, on Metal, Flash Next's SSD-expert cache;
      • a Qwen3.8-27B conformance profile for XPU on an Arc Pro B70;
      • docs/optimizing.md says how to approach speed work in TensorFold.
    • Speed and memory:
      • Qwen3.8-27B on Metal: a follow-up from a client that drops earlier reasoning gets its first token in about 0.3 s instead of 85 s on an M3 Ultra (34K history).
      • Flash Next on Metal: a copy stretch decodes 7.7% faster on an M3 Ultra; the opt-in scale index makes drafted decode 1.3% to 3.9% faster.
      • Qwen3.8-27B on an M5 Ultra: sampled decode with DFlash2 is 6% faster, and five cold long prompts in a row with a 14 GiB prompt cache reach their first tokens 3.5% to 5.9% sooner in total.
      • GLM-5.3-Flash with DFlash2 at TP=2 on two GB10s: four-stream decode is 3.7% faster greedy and 3.5% faster at temperature 0.7.
      • Qwen3.8-27B on CUDA beside DSpine: agent turns decode about 6-7% faster at one stream on a GB10.
      • HIP on gfx1151: 8K-token prompts reach their first token about 5% sooner on Flash Next and about 6% sooner on Nemotron 3.5 Lightning 30B-A3B.
      • Flash Next on HIP at tensor parallel 2 on two Radeon AI PRO R9700s: each card holds 0.74 GiB less.
    • Fixes:
      • zig build -Dgpu=<gpu> compiles again.
      • A damaged JPEG is refused instead of accepted with rows the decoder never wrote.
      • A malformed GLM tool call stays as text instead of becoming a call with corrupt arguments.
      • A failed round fails only its own streams, and a finished stream delivers its reply.
      • Two failed disk restores in a row resume from the state in RAM, not from token 0.
      • GLM-5.3-Flash thin loads with TF_GLM_LAYERS count only the weights they read at start-up.

    Where a speedup was checked for equal output, its line says so. Some changes alter settings, refusals, memory or startup by default; they're listed under What can change for you.

    Headline numbers

    Each number names its machine and its PR.

    • Qwen3.8-27B on Metal, follow-ups without reasoning: a client that sends earlier replies back without their reasoning now resumes a follow-up turn at the end of its last message. On an M3 Ultra with --prompt-cache-gib 5 and a 34K history, such turns resume about 34,100 tokens instead of 7,424, with the first token in about 0.3 s instead of 85 s. Clients that keep the reasoning resume as before, and replies are unchanged (#2811, fixes #2791).
    • Flash Next on Metal (M1 through M4), grouped experts: a decode window of five rows or more runs its 4-bit experts grouped by expert, so rows that pick the same expert share its launch, and replies keep their tokens. A copy stretch decodes 7.7% faster on an M3 Ultra (256.6 to 276.3 tok/s); prose rounds, four rows or fewer, are unchanged (#2784, part of #2764).
    • Flash Next on Metal, scale index (opt-in): with TF_FLASHNEXT_SCALE_INDEX=1, on an M3 Ultra with the MLX 4-bit checkpoint, drafted decode on one stream is 1.3% to 3.9% faster (prose 137.3 to 139.1 tok/s, a copy-heavy edit 262.8 to 273.2) and "draft": false 0.8% to 2.2% faster, with every token unchanged. It costs 7.3 GiB more in use and about 4 s more load (#2760, part of #2751).
    • Qwen3.8-27B on Metal, sampled top-k: on an M5 Ultra with Qwen3.8-27B MLX 4-bit and its DFlash2 drafter, sampled verify rounds take 1.6 ms less and sampled decode is 6% faster, with the same candidates and replies; greedy is unchanged. The Qwen 3.5/3.6 CUDA engine shares this host draw for each first token and for grammar-masked windows; CUDA is not measured (#2507).
    • Qwen3.8-27B on Metal, keep-warm while a request runs: on an M5 Ultra with a 14 GiB prompt cache filling memory, five cold 24K- to 64K-token prompts in a row reach their first tokens 3.5% to 5.9% sooner in total; with the cache off, cold prompts are level. Replies are unchanged (#2725, fixes #2724).
    • GLM-5.3-Flash on CUDA with DFlash2, at TP=2 on two GB10s: with distinct prompts, four-stream decode is 3.7% faster greedy and 3.5% faster at temperature 0.7. One stream, the MTP head and every reply's tokens are unchanged (#2793, fixes #2720).
    • GLM-5.3-Flash on CUDA, request starts (opt-in): on two GB10s at TP=2 (EXL3 TR3, DFlash2), a chat of about 58.7K tokens resumed its later turns at 58,735 instead of 57,344, with replies identical to --prompt-cache-gib 0 and to the switch off (#2404, part of #2396).
    • Qwen3.8-27B on CUDA beside a DSpine drafter, on a GB10: the dense model copies from its context after 12 matching tokens instead of 20 (DFlash2 keeps 20), so agent turns decode about 6-7% faster at one stream, with chat and code level and greedy replies unchanged (#2703, after #2633).
    • HIP on gfx1151, routed prompt tiles: Flash Next's 8K-token prompts reach their first token about 5% sooner, and Nemotron 3.5 Lightning 30B-A3B's about 6% sooner. Served Qwen3.5/3.6 MoE prompts are unchanged, and replies are unchanged (#2576).
    • Flash Next on HIP, on two Radeon AI PRO R9700s at tensor parallel 2 with a 32k window: each card holds 0.74 GiB less, and --policy prefill_step=2048 loads where main refused it, with replies equal to main's (#2670).

    New models and backends

    • LightOnOCR-3 on CUDA: the 0.8B and 4B models serve image chat on a GB10 from the publisher's BF16 weights. A plain BF16 Qwen3.5 checkpoint with an image tower the CUDA tower reads and no Clef joint head now opens as chat, its tied head packed from the embedding. The flags it is not qualified on (--drafter, --slide, --kv-cache fp8, --prompt-precision int8), towers the CUDA tower cannot read and a joint head beside a tied backbone are refused by name before the weights load. MLX, EXL3, ModelOpt and Clef checkpoints load and answer as before (#2597, part of #1927).
    • OCR kernel groundwork on CUDA (part of #1927): no model serves through these in this release:
      • tf_dots_qkv_rope adds dots.mocr's q, k and v biases and rotates its queries and keys in one pass at Transformers' BF16 rounding points, with a contract against FP64 up to 1,024 rows and positions up to 131,071 (#2709);
      • pattn_kernel gains instances at two query heads a block for head dims 128 and 64, the prompt attention that dots.mocr, GLM-OCR and Nemotron Parse need on CUDA (#2609).
    • XPU conformance: a Qwen3.8-27B profile (tools/conformance_profiles/qwen27-xpu.json: GPTQ 4-bit group 128 with its DFlash2 drafter, four streams on an Arc Pro B70). Its first turn carries a 600-item document because the XPU prompt cache keeps states only at multiples of 64 tokens (#2677, landed as #2690).

    Speed and memory

    • GLM-5.3-Flash on CUDA, request starts (opt-in): TF_GLM_REQUEST_STARTS=1 cuts prompt passes at a request's message starts, so a chat's next turn resumes at its previous turn's history instead of the last 2,048-row point. GLM refuses it at startup with TF_KV_SHARE above 0 or with --learn-conversations (#2404).
    • GLM-5.3-Flash on CUDA with DFlash2: shared rounds size each stream's drafts by its last grant plus the slack, trimmed at verify, so a stream no longer stays at no drafts while its peers decode (#2793).
    • GLM-5.3-Flash on Metal with --vision: a prompt chunk sends the vision tower only the images that end after its start, so two interleaved image prompts no longer re-encode images their earlier chunks already injected (12 images through the tower instead of 18 in a host test). The rows a chunk reads are unchanged (#2744).
    • Lanes: where a family learns its shared rows' cost on the machine (GLM on Macs without tensor units), a fit that shows rows cost less than the table says now lowers their price, so a table timed on a slower build no longer keeps out drafts that would pay. While a stream count has no fit, its rounds reach the width they measure. Only how many drafts a round verifies changes; replies are unchanged (#2777, fixes #2776).
    • Qwen 3.5 on CUDA with --decode-share: the 512-row cap now reaches the prompt pass, cut inside the cold chunks on a 128-row grid. Decoders beside a long prompt wait one short step instead of a whole chunk, the long prompt's own first token comes later, and replies are unchanged (#2802, refs #840).
    • Flash Next on Metal (M1 through M4): TF_FLASHNEXT_GROUPED_ROWS sets the first grouped width, and 0 turns grouping off (#2784). The opt-in scale index sits beside the stored scales and biases, which prompt passes still read (#2760).
    • Qwen3.8-27B on Metal: while a request runs, the keep-warm ticker commits the residency sets' probe each interval, so the first command buffer after a wide prompt pass no longer waits in the kernel (#2725).
    • The speedups in Headline numbers: #2811, #2784, #2760, #2507, #2725, #2793, #2404, #2703, #2576, #2670.

    Serving and API

    • Responses API over WebSocket: GET /v1/responses with a WebSocket upgrade takes response.create events and streams the same events as SSE, token-equal to it. previous_response_id continues store: false chains from a per-socket cache, with stream_id lanes, generate: false warmups and OpenAI's 60-minute limit, so client.responses.connect() works unchanged (#2749, fixes #2746).
    • Dashboard (--dashboard) and /stats: the prompt cache shows its states, hits, held bytes against budget, cached tokens, prefill reuse and its 64 most recently used states. Its disk tier, when present, shows reads and writes, latency, queue depth and read-ahead. On Metal, Flash Next's SSD-expert cache shows hits, evictions and occupancy. State ids are hashed only with --dashboard on (#2682, fixes #2655).
    • Living Weights: a lesson's subject is never a number group ("12 500", "7,400", including thin-space and no-break-space forms) or a sentence-opening determiner such as "Any" on its own (#2807).

    Fixes

    • Builds: zig build -Dgpu=<gpu> compiles again. The -Dgpu products did not set is_release, which the server has read since 1.2.5, so every such build failed (#2879).
    • Images: a damaged JPEG whose decode stops before every pixel is written is refused as undecodable, where it could be accepted with rows the decoder never wrote. Clean JPEGs decode to the same bytes as before (#2759).
    • GLM tool calls: a call whose argument value runs into the next key/value pair, or never closes before the call ends, stays in content as text instead of becoming a call with corrupt arguments, whole and streamed. Other GLM calls parse as before (#2831, fixes #2801).
    • Failed rounds: when the backend fails a round, only the streams it held at the failure (paused ones included) and the prompts whose last piece the round planned fail with it. A prompt still filling keeps filling, and a stream that had already finished delivers its reply instead of an error (#2727).
    • Prompt cache: when two disk restores in a row fail (a damaged or missing state file), the request resumes from the shorter state it already had in RAM instead of prefilling from token 0 (#2694).
    • GLM-5.3-Flash on CUDA with TF_GLM_LAYERS=N: the start-up memory check counts the weights by tensor from the shard headers, only those the load reads, where it counted every checkpoint file. A 20-layer thin load of the 163.6 GiB checkpoint now counts 66.6 GiB without drafts (#2788, fixes #2745).
    • Flash Next on CUDA: a non-finite draft-head row fails as ProposalNonfinite instead of ProposalPaddingPick. Sampled draft candidates are checked for count, finite values and column range before sampling, and verify rows the same way before any output token is written (grammar-masked columns excepted). Finite rows pick exactly as before, and prompt passes and decode (chat and code, 1 to 8 streams) read level on a GB10 (#2753, refs #2734).
    • Qwen 3.5 and 3.8 configs: one tied-head rule reads tie_word_embeddings from text_config then the root, and a checkpoint that sets neither loads untied, as transformers does. Flash Next, LFM2, Kolibri-1 and Qwen 3.5 read rope_parameters, legacy rope_scaling and their top-level keys through one core reader, and every config they accepted parses as before (#2714, fixes #2561, part of #2460).
    • CUDA start-up: the note about pages parked on the kernel's per-CPU lists logs at debug level, so whether it shows no longer depends on the box's memory state. The budget still counts those pages (#2164, follow-up to #2127).

    Docs

    • docs/optimizing.md says how to approach speed work in TensorFold: measure first, keep every token exact, and write what lands from our own code, with a worked example (#2740, #2739).
    • The optimization ledger marks the rows that have open PRs and adds DSpine as row 29 (#2681).
    • The GLM CUDA recipe covers a four-GB10 switchless ring (gather starts there, the NCCL settings it needs, and the opt-in relay with its measured effect), and docs/api.md gives presence_penalty's measured cost to drafting, about 4-10% of tokens a round (#2742, closes #1971 and #2645).

    Internal

    • Shared CUDA code:
      • Flash Next's router logits template (route_logits) moves into common/router_mma.cuh and compiles to the same machine code on sm_80, sm_86, sm_89, sm_120 and sm_121 (#2556). GLM's router runs its eight K slices on the same tiles: every partial keeps its bytes, replies and speed at TP=2 on two GB10s are unchanged, and the unaligned copy tf_glm_router_part is gone (#2557, fixes #2535);
      • seven families (Spark 2.5, Kolibri-1, Dory, Gemma 4, Qwen4, Nemotron and MiniMax M3) take their sampled rule from cuda.sample.ruleFor, checked byte for byte against each old form over 25,480 settings, with the fatbins unchanged (#2680, #2460 item 3);
      • one core reader for ModelOpt projection parts serves Dory's NVFP4 and bf16 projections, Qwen 3.5/3.6's NVFP4 experts and check-precision, with the loaded weights unchanged (#2691, part of #2460);
      • one core walk copies kept prompt states, and GLM's copies on CUDA and Metal go through it, with the same copies in the same order (#2215, part of #1293);
      • opt-in build (-Dnative-fp-decode): qmmf's FP4 decode rows use the shared tf_common::e2m1_pairs, which equals the existing decode on all 2^33 inputs. The default build's 113 fatbins are byte-identical and GB10 decode is level (#2721);
      • a family can declare that it keeps no prompt states, so --prompt-cache-gib is refused by name before the weights load, and that its replies carry no reasoning block, as HIP already allows. Every family on main is unchanged (#2710);
      • kda.geometry refuses KDA heads or a conv window other than the kernels' with KdaGeometry. No family calls it in this release (#2338, refs #850).
    • Tests and CI:
      • the serving pins follow the sources main changed, so test-gradient-serving and test-qwen-serving-host pass on main again (#2738, #2798, #2872);
      • zig build test-qwen35-copies-host (#2836) and zig build test-fsr-cli-host (#2782) compile again, and zig build test-native no longer crashes in two Flash Next host tests on Metal (#2876);
      • host tests that rely on the operating system refusing access skip by name when run as root, as in containers (#2757, part of #2748);
      • the thinking benchmark check no longer flakes on busy Linux runners, and the image routes' fixture no longer hangs where socket buffers are small, as on macOS (#2743, closes #2735);
      • a HIP GPU test runs Flash Next's fused DeltaNet prompt prep and the chain through linear() and compares them bit for bit (#2706, after #2582);
      • tp.device runs tensor-parallel ranks as threads on one GPU, so DeepSeek-V4.1's exchanges are checked bit for bit at worlds 1 to 4, and zig build dsv41-test builds tf-dsv41-test. Serving still refuses three ranks (#2491, refs #2270);
      • host.runWith aborts and joins the ranks it already started when spawning one fails (#2700, follow-up to #2491);
      • the sessions-writes mixed load holds its pool to one slot's capacity, so it exercises spills to the tier (#2731).

    What can change for you

    • Flash Next on Metal (M1 through M4): decode windows of five rows or more run their 4-bit experts grouped by expert by default, with replies keeping their tokens. TF_FLASHNEXT_GROUPED_ROWS=0 turns it off (#2784).
    • Qwen 3.5 on CUDA with --decode-share: a long prompt's own first token comes later, as decoders beside it wait one short step. TENSORFOLD_PREFILL_POLICY=fcfs now cuts Qwen's prompt steps beside decoders too, at its row count floored to 128 (#2802).
    • GLM tool calls: a malformed call stays in content as text, though a stream may already have sent the call's first pieces. A value containing the literal text <arg_key> now stays as text (#2831).
    • Images: a damaged JPEG is refused as undecodable (#2759).
    • Qwen 3.5 and 3.8 configs: a checkpoint that sets no tie_word_embeddings loads untied (HIP had loaded it tied; Metal's 2B still requires the key). A root and text_config that disagree, or a value that isn't a flag, are refused with BadTiedHead (#2714).
    • Flash Next on CUDA: a non-finite draft-head row fails as ProposalNonfinite instead of ProposalPaddingPick, and a refused row logs one line naming the stream and the draft length (#2753).
    • Prompt cache: after two failed disk restores, the reply's cached_tokens reports the position of the state it resumed from in RAM (#2694).
    • GLM-5.3-Flash on CUDA: with TF_GLM_LAYERS=N, the start-up memory check counts only the weights the load reads. Unset, it counts the files as before (#2788).
    • Plain BF16 Qwen3.5 checkpoints with an image tower on CUDA: they open as chat instead of the decision-only refusal (#2597).
    • Lanes: on families that learn row costs (GLM on Macs without tensor units), how many drafts a round verifies can change. Replies are unchanged (#2777).
    • CUDA start-up log: the parked-pages note logs at debug level (#2164).

    Thanks

    • @AbrahamCete (#2706)
    • @ajensenwaud (#2338)
    • @Bizuayeu (the measurements for #2742)
    • @BobClawblaw (the report for #2782; the measurements for #2742)
    • @ciprianveg (#2727)
    • @Defilan (#2491, #2700; and finding the build break fixed in #2879)
    • @devopsfortunato (#2831)
    • @garvrao80 (#2731)
    • @gilby (#2576)
    • @jschmied (#2164, #2215, #2680, #2681, #2691, #2703, #2714, #2721, #2740, #2802; and the measurements for #2742)
    • @kelchm (#2793)
    • @laidick (#2404)
    • @laudney (#2556, #2557, #2597, #2609, #2709, #2710, #2749)
    • @millaguie (#2670)
    • @Mirrdhyn (#2677, landed as #2690)
    • @mrv777 (#2507, #2725)
    • @tacosta (the fix in #2879)
    • @ThinkOffApp (#2694)
    • @volfco (#2682)
    • @wojo (#2788)
    • and a community tester who reported the JPEG fault in #2759 privately
  13. 1.2.6

    Expandir

    GitHub Release

    TensorFold 1.2.6

    1.2.6 makes the prompt cache hold up under many agents at once: long conversations survive 8 to 16 agents sending follow-ups together, and a follow-up's first token comes far sooner, with every reply unchanged. Qwen3.8-27B on CUDA can draft with Tencent's DSpine-b16 (opt-in), and Qwen3.8-Flash-Next and the Qwen DeltaNet prompts get faster on HIP. Spark 2.5 and Dory load faster on CUDA with direct reads, a new --unix-socket serves on a local socket, and POST /v1/images/generations serves an engine's image capability. Settings are more consistent: blank values read as unset across GLM, Gemma 4, Flash Next and the KV share switches, and GLM's 0/1 switches are refused by name when malformed.

    • New:
      • Qwen3.8-27B on CUDA drafts with DSpine-b16 when --drafter names it;
      • --unix-socket PATH serves on an owner-only Unix socket;
      • tool-call ids are reproducible for a replayed request;
      • tools/conformance.py runs a family's served exactness gates from one profile, with a Qwen3.8-27B Metal profile;
      • HIP builds the DFlash2 drafter's kernels for qwen3_5 (not launched yet);
      • POST /v1/images/generations for an engine with an image capability;
      • --instruct-sampling card serves the model card's instruct sampling with thinking off.
    • Speed:
      • Many agents at once: a follow-up's median first token at 16 agents drops from 546 s to 15.9 s on an M3 Ultra and from 105 s to 25.8 s on a GB10.
      • Qwen3.8-Flash-Next on HIP (gfx1151): cold prompts finish 29 to 41% sooner.
      • Qwen DeltaNet prompts on HIP (gfx1151): 4.6-6.0% less time on Qwen3.8-27B and 5.7-9.9% on Qwen3.6-35B-A3B.
      • Qwen3.6-35B-A3B MoE prompts on a GB10: 9.9-14.1% less time, from 2K to 64K.
      • Spark 2.5 and Dory on a GB10: cold loads take 2.53 s instead of 5.03 s and 3.79 s instead of 4.79 s.
      • GLM-5.3-Flash at TP=2 on two GB10s: prompts fill 13-23% faster, and one-stream code decodes 32% faster.
      • Qwen3.8-27B on Macs: sampled decode with DFlash2 is faster on an M5 Ultra and an M3 Ultra.
      • Flash Next on Metal: served decode is 2.4-6.0% faster on an M3 Ultra.
    • Serving:
      • JSON tool calls cut by max_tokens come back as calls.
      • Dory on CUDA keeps prompts as pool pages with TF_KV_SHARE=n.
      • Flash Next on Macs no longer fails a request with HTTP 500 after idle.
      • Drama 3 on CUDA opens again.

    Where a speedup was checked for equal output, its line says so. Some changes alter settings, refusals, memory or startup by default; they're listed under What can change for you.

    Headline numbers

    Each number names its machine and its PR.

    Release reads (1.2.5 against 1.2.6 on fresh servers, alternating; replies equal to 1.2.5 on every machine):

    • Qwen3.8-27B on an M3 Ultra: prompts 1.6 to 4.7% faster (4.7% at 64K); decode and 1-8 stream sweeps level.

    • Qwen3.8-27B on an M5 Ultra: prompts up to 2.6% faster (at 64K); decode and sweeps level.

    • Qwen3.8-27B on a GB10: level throughout.

    • Qwen3.8-Flash-Next on a GB10: level throughout.

    • Nemotron 3.5 Lightning on a GB10: level. One cell, eight streams sending the same greedy prompt, read 5.7% slower; with a prompt per stream the two releases are within 0.1%, so it was identical replies running in step, not a change.

    • Prompt cache with many agents, Qwen3.8-27B with DFlash2: each agent sends one ~17K-token prompt, then a follow-up on the same conversation. Every agent's replies equal main's, at every agent count (#2699).

      • On an M3 Ultra (default budget): a follow-up's median first token drops from 50.1 s to 1.42 s at 8 agents and from 546 s to 15.9 s at 16. Follow-up decode rises from 15.4 to 79.5 tok/s and from 5.9 to 88.5.
      • On a GB10: from 14.6 s to 7.7 s at 8 agents and from 105 s to 25.8 s at 16. Follow-up decode rises from 47.7 to 93.9 tok/s and from 33.6 to 100.8.
      • At 1 and 4 agents and on Qwen3.8-Flash-Next it's level with main, and first-turn speed is unchanged.
    • Qwen3.8-Flash-Next on HIP, on a Radeon 8060S (gfx1151): sparse attention runs a new kernel with the same sums. Cold prompts of 2,048 to 63,728 tokens finish 29 to 41% sooner, with replies unchanged. Other HIP chips take the kernel but weren't run (#1877).

    • Qwen 3.5, 3.6 and 3.8 on HIP, on gfx1151: the DeltaNet prompt recurrence runs at half a value head a block, with the same bits. A prompt takes 4.6-6.0% less time on Qwen3.8-27B and 5.7-9.9% less on Qwen3.6-35B-A3B (2K to 32K) (#2582, piece J of #1667).

    • Qwen3.5/3.6 MoE on CUDA, on a GB10: router calls of 257 rows or more run on the shared register tiles, with every logit's bits unchanged. Qwen3.6-35B-A3B NVFP4's cold prompts take 13.4% less time at 2K (0.382 to 0.331 s), 14.1% at 8K, 11.8% at 32K and 9.9% at 64K (15.899 to 14.323 s), with decode and replies unchanged. tf-cuda-test moe-router-bench measures the crossover on other GPUs (#2537, #2499).

    • Tokenizer memo, on an M5 Ultra: segments of 64 bytes or more are kept, not 1,024, with the same ids. On real agent conversations (Qwen3.8-27B tokenizer, up to 60K tokens), a warm encode of the eight longest takes 146-151 µs instead of 680-691 µs, and a one-off prompt is no slower (#2509).

    • Spark 2.5 and Dory on CUDA, on a GB10: loads use direct reads by default, with the same replies:

      • Spark X2.6 4B 8-bit: cold loads go from 5.03 to 2.53 s; resident memory peaks at 6.1 GiB instead of 9.4, and 0.4 GiB of page cache is filled instead of 4.2;
      • Dory NVFP4: from 4.79 to 3.79 s; resident stays at 7.2 GiB, and 1.3 GiB of page cache is filled instead of 3.1 (#2449).
    • GLM-5.3-Flash on CUDA, at TP=2 on two GB10s: decode windows reach 32 rows. Prompts of 2K and 8K tokens fill 23% and 13% faster, and one-stream code decodes 32% faster, with every reply equal to before (#2257).

    • Qwen3.8-27B on CUDA with DSpine-b16, on a GB10 (opt-in): every drafted reply equals the same request with drafts off. Against DFlash2, agent-shaped requests decode 2.4-19.8% faster, and chat and code 10-19% slower, which is why it is opt-in (#2633, refs #2592).

    • Qwen3.8-27B on Macs, sampled with DFlash2:

      • a verify window draws its rows on up to four host threads. One-stream sampled decode is 4 to 8.8% faster on an M5 Ultra, with tokens and errors unchanged (#2644);
      • the drafter waits only for its taps and head row. One stream on an M3 Ultra: chat 75.3 to 77.0 tok/s, code 106.8 to 109.8, with every token unchanged (#2646).
    • Qwen3.8-27B on Metal: a prompt pass that keeps no row's logits skips its last layer's attention, MLP and final norm, with the prompt state and tokens unchanged. Served prefill is 1.6% faster at 4K and 2.3% at 16K on an M3 Pro, and 1.2% at 8K and 1.5-1.6% at 16K on an M5 Ultra (#2436, refs #2229).

    • Flash Next on Metal, on an M3 Ultra: 6- and 8-bit row products at 2 to 4 rows take two outputs a simdgroup. A 2,560 × 6,144 product at 2 rows takes 23.5 to 28.7% less time across the three widths measured, and served decode is 2.4-6.0% faster, with every token hash unchanged (#2593, fixes #2553).

    • Dory on CUDA with TF_KV_SHARE=n, on a GB10 at a 4 GiB cache: a 25-turn agent loop to 34K tokens spends 10.7% less time to first tokens (about level up to 12K). 72 round-robin turns keep 29 states against 9, with the same replies (#2430, part of #1657).

    • --learn at 100,000 learned states, on an M3 Ultra: find, has and touch take 0.02-0.04 µs instead of 24-57 µs, and a reload's finds after another writer appended take 1.1 ms instead of 2.8 s, with the same records, order, clock and eviction victims (#2351).

    New models and backends

    • DSpine-b16 on CUDA (opt-in): Qwen3.8-27B drafts with Tencent's DSpine-b16 when --drafter names its folder, never by default. Its code bridge and exact-sender table run on affine-4 projections. The draft tree walker moves into core/lanes (#2633).
    • HIP drafter groundwork for qwen3_5 (#1563):
      • the engine builds the DFlash2 drafter's kernels (tap gathers, key ring, dynamic conv, block attention), tested and in the kernel contract. Nothing launches them yet (#2545);
      • the load-time lane cost table times shared buckets with a distinct token a row, as shared rounds draft, and every row gets a distinct token for any vocabulary. Only the drafted width can change, never a token (#2652, #2661, part of #2605).
    • XPU DFlash2: Qwen3.8-27B's drafts go through the core Drafter and Drafted, and each stream's draft tree is keyed with its own request, where a sampled shared round read another's (#2672, #2460 item 5).
    • CUDA DFlash2 config: a target_layer_ids list that names one layer twice is refused, as on HIP (#2674).

    Speed and memory

    • Prompt cache (#2699):
      • redundant states are evicted before each conversation's newest one;
      • admission never evicts a state that a queued request resumes;
      • concurrent keeps reserve their room;
      • the default budget scales with the room left after streams on Metal and unified-memory CUDA. Discrete CUDA hosts keep 8 GiB, and Flash Next's batch host 16 GiB.
    • GLM-5.3-Flash on CUDA: decode windows reach 32 rows, and MTP chains longer drafts (#2257).
    • GLM on CUDA, opt-in with TF_GLM_KV_LIVE_HALF=1: a kept prompt state holds only the live half of the double-buffered KDA recurrent state, with replies unchanged, drafts off and on (#2181, part of #2180).
    • HIP on gfx1151: a skewed-row matrix tile runs three blocks a WGP for prompts up to 8,192 codes deep, with the same results as the padded tile (#2087).
    • HIP uploads: a host-to-device upload copies in 64 MiB windows, so a multi-GiB tensor no longer has its whole source pinned by one copy (#2584).
    • Responses and Kimi chat: a long reply holds memory in proportion to its length, with every reply and streamed event the same (#2642).
    • KV pages: a window past the engine's own counts toward the startup plan only where the room past every stream's fixed part holds it whole. A band of rooms (for example at TP=3 with a 1M window and eight streams) no longer leaves the prompt cache at 0, where GLM's TF_KV_SHARE kept no state (#2568, fixes #2547).
    • The speedups in Headline numbers: #2699, #2537, #2509, #1877, #2582, #2449, #2257, #2633, #2644, #2646, #2436, #2593, #2430, #2351.

    Serving and API

    • Image generation: POST /v1/images/generations serves an engine's image capability, one picture a request as a base64 PNG. An n other than 1, sizes past 1536 a side or 1,572,864 pixels, response_format url, unknown fields and a negative_prompt that is null or not valid UTF-8 are refused by name. A text model's routes are unchanged (#2253, part of #1573).
    • Instruct sampling: --instruct-sampling card (or field=value pairs) serves the model card's instruct sampling to sampled chat requests with thinking off that leave those fields unset. Request fields win, then the serve flags, then the pairs, and the server's own requests never take it (#2626).
    • Unix socket: --unix-socket PATH serves on a new owner-only Unix socket instead of TCP.
      • It refuses an existing path, a parent directory others can write to (unless sticky) and the TCP-only flags.
      • It checks each peer's user.
      • It is refused on Windows (#2389).
    • Tool-call ids: a reply's call ids are an HMAC-SHA-256 of the request under the server's key, so a request replayed to the same server gets the same ids. A stream names its calls as its whole reply does, and a Responses fc_ item id follows its call. The key is random per process unless TENSORFOLD_TOOL_ID_KEY_FILE names an owner-only file of at least 32 bytes. The call_ form is unchanged (#2653).
    • Cut JSON tool calls: a reply that max_tokens cuts inside a JSON tool call (the form Ripple-65B-Preview writes) returns that call with its arguments as far as written, whole and streamed alike, instead of leaving the markup in content. On /v1/messages, a whole reply with a cut XML call no longer returns a 500 (#2511).
    • Dory on CUDA: TF_KV_SHARE=n keeps prompts as the KV pool's pages in the shared prompt store, with at most n kept states, and turns Dory's pool pages on. With TENSORFOLD_DORY_KV_PAGES=0 it refuses to load, naming both (#2430).
    • With --cortheon: DuckDuckGo results and ads are matched regardless of letter case, Query and URL tool arguments are read, HTML's uppercase entities decode, and data: links are dropped (#2372).
    • Access log: control bytes in a request line appear as \xNN, so a request can't write terminal escapes into the log (#2542).
    • Living Weights on Nemotron (--slide): a lesson's pocket goes only into the layers that carry it and pass the full verifier. Corrections that overturn a shipped answer use an explicit additive fit, and serving without --slide is unchanged (#2025, part of #1968).
    • Diagnostics: opt-in startup receipts show Qwen3.8-27B Metal load phases and the first completed non-streaming reply (#2640).
    • Benchmark clients: bench_concurrent and bench_openai time content, reasoning and tool-call output separately and classify how each reply ended. tools/conformance.py --stream runs the exactness gates on streamed replies (#2625).
    • Conformance:
      • tools/conformance.py runs a family's served exactness gates from one JSON profile, and its own tests run in CI with no device (#2467);
      • a Qwen3.8-27B Metal profile, and a fresh_env key for the resumed gate on Metal (#2612);
      • the cancel and evict gates check that a cut reply and an evicted prompt leave the server as a fresh one, with a planted fault for each. The Metal profile skips evict with its measured reason; the CUDA profiles run both (#2611).
    • Evidence index: tools/evidence_index.py indexes what each family and backend has qualified, on which commit and at which grade (#2621). It reads saved native capabilities, including unknown and XPU chip labels, and invalid input stops with a bounded error (#2708).

    Fixes

    • Drama 3 on CUDA opens again. Since 1.2.5 every open stopped with "unregistered strict environment parser"; both settings now have rows in the environment table (#2658).
    • Flash Next on Macs:
      • after idle, when macOS has unwired the model, a prompt chunk's later segment no longer sits in a GPU wait past macOS's limit and fails the request with HTTP 500 (#2594, fixes #2552);
      • a server that closes while replies wait now ends each of them, even short of memory (#2616).
    • GLM-5.3-Flash at TP=4: with TF_GLM_PREFILL_REDUCE=gather, four GB10s cabled as a switchless ring start and serve, where before every rank stopped within 122 s after ibv_modify_qp timeouts (#2569, refs #1971).
    • Linux reads:
      • Nemotron's io_uring checkpoint reads no longer hang at shutdown after a failed read (#2608);
      • an O_DIRECT read past a file's end reports end of file instead of a failed read (#2602);
      • a failed direct-read load names its reader's error, such as EndOfFile (#2610);
      • DeepSeek-V4.1's Engram shards on disks that need more than 512-byte direct reads are read through the page cache instead of failing (#2610).
    • Sessions: a restore whose page write fails mid-stream, or whose tier queue can't take it, no longer leaves the next restore or shutdown waiting forever (#2615).
    • File readers: a session, conversation state, EXL3/EXLR8 shape, Engram row, tokenizer id or Drama codec count whose size arithmetic would overflow is refused with the reader's own error, where a safe build used to panic. Every file accepted before reads the same (#2618). The same holds for --learn-conversations trailers (#2544).
    • Flash Next on CUDA: a verify window's and a shared pass's graph keys hash every buffer of a stream's tables. Nothing changes on today's placement (#2577, part of #2444).

    Docs

    • A reply that quotes a template marker finishes with a plain request. A client that keeps ignore_eos should stop on the model's end-of-text and next-turn-open spellings and strip the trailing turn marker: behind an agent prompt, end-of-text alone let 7 of 9 replies run on, against 0 of 9 with both, on Qwen3.8-Flash-Next on an RTX PRO 6000 (#2437, refs #2399).
    • The Zig family recipe lists the core blocks on main with the call a family makes (#2468).
    • The LFM3 recipe records the qualification rules agreed on #1491, with an evidence ledger (#2416).
    • The image page says how the native server finds libjpeg-turbo 3.1.4.1 for JPEG input, and what each startup warning means (#2590, refs #2581).

    Internal

    • Shared CUDA code (#548, #850, #2499): with every function's SASS or machine code unchanged:
      • RMS scales call tf_common::rms_scale (#2580, #2684);
      • stored partial-sum folds call tf_common::sum_rn (#2666);
      • Nemotron's router tiles move to common/router_tiles.cuh (#2536);
      • GLM's KDA chain and saved-row replay move to cuda.kda (#2142);
      • GLM's SwiGLU rows move to glm_swiglu.cuh, with a template for a clip after silu (#2627);
      • a shared MLA image (mla.cu) that no family calls yet, under the kernel contract (#2335);
      • the MoE routing glue gains group-limited selection in its sigmoid score form; Nemotron keeps its kernels and bytes (#2334);
      • CUDA EXL3 experts gain a clamped-silu finish kernel; existing EXL3 models are unchanged (#2336).
    • CUDA disk staging: a family's disk module may declare its own host staging permit for kept states. No family declares one yet, so every family keeps the 1 GiB permit (#2337).
    • KV pool: stores join an ordered chain of reclaim hooks; every load keeps its one store, so nothing changes yet (#2528).
    • Qwen 3.5/3.8 config readers: one table with a column per backend; each admits what it did (#2563).
    • Nemotron on Metal: the 8 group norms share one source, with the same kernels and bits (#2540).
    • Sampling: Qwen 3.5's host draw moves unchanged into core/lanes as sampling_row (#2606).
    • Tests and CI:
      • host pins for documented limits and defaults, a replay of cache eviction on agent traces, and a snapshot-index timing (#2305);
      • zig build sessions-writes measures DeepSeek-V4.1 session tier writes without a model (#2660);
      • zig build bench-stream-scan streams a 32K-token thinking reply through the chat, Messages and Responses routes (#2642);
      • runtime Metal libraries compile for each loader, and every launch mapping is checked on the host (#2601);
      • the Qwen4 QSA backward host test prints only on failure (#2588);
      • the release privacy check walks the tree in Zig, so it runs on native Windows (#2614);
      • the nightly Linux host job runs test-pdf-worker, test-cache-fit-host and a deepseek shard (#2599, #2598); the macOS nightly runs the thirteen held-back host checks (#2566); pytest has its own job (#2586).
    • Experimental: TF_TP_ROCE_RELAY=1 relays gathers through both neighbours on a four-rank RoCE ring with no opposite links, instead of falling back to NCCL. It's off by default, and two- and three-rank behaviour is unchanged (#2352, part of #1971).

    What can change for you

    • Prompt cache budget (#2699): on Metal and unified-memory CUDA, the default budget now scales with the room left after streams, with the old default as a floor.
    • Persisted prompt states (#2287, closes #2131): the disk tier and --learn-conversations key each family's states by what its loaded run computed with (resolved arithmetic and kernel choices, every weight shard, external inputs such as the CUDA Qwen rotary table). Upgrading starts every kept state once cold, and so does changing a GLM or Qwen Metal prompt chunk height. GLM_EHPROJ_NAX takes only 0 or 1; other text, which used to read as on, is refused at start.
    • Spark 2.5 and Dory on CUDA: loads use direct reads by default. TF_LOAD_DIRECT=0 keeps the old mapped reads (#2449).
    • Nemotron on Metal: saved prompt states take their identity from the source text, so after upgrading they are not reused: the first long prompt prefills again (#2540).
    • DeepSeek-V4.1: prepared folders rebuild once after upgrading. At TP=2 on two GB10s that first boot took about 10.5 minutes to weights loaded, against about 5 later (#2325).
    • GLM-5.3-Flash on CUDA:
      • a malformed TF_GLM_* switch, TF_GLM_DFLASH2_LOG or TF_GLM_DRAFT_CONFIDENCE is refused by name when the engine opens. The seven 0/1 switches take exactly 0 or 1, where off, yes or 2 used to keep the default. Unset and blank keep every default (#2578);
      • decode windows reach 32 rows. The first load after upgrading times them: on two GB10s it took 100 s against 70 s, and 75 s on a later load (#2257).
    • Blank settings read as unset: an empty or whitespace-only TF_FLASHNEXT_KV_PAGES (#2619), TF_KV_SHARE, TF_QWEN_KV_SHARE, TF_QWEN_KV_PAGES (#2629), GLM's start settings (#2636) and TF_GEMMA4_CHUNK_SOLO (#2587) no longer stop the start. A blank GLM TF_KV_PAGES means auto, so at TP=1 a blank TF_KV_PAGES with TF_KV_SHARE or TF_GLM_KV_HOST=1 is refused by name, as an unset one is (#2629).
    • Config refusals:
      • Flash Next on Metal and HIP refuses a legacy rope_scaling (YaRN), and LFM2 and Kolibri-1 refuse both forms, where these readers ran plain RoPE (#2604);
      • a DFlash2 config naming a target layer twice is refused on CUDA (#2674).
    • Tool calls:
      • call ids are reproducible for a replayed request. A bad TENSORFOLD_TOOL_ID_KEY_FILE stops the start by name (#2653);
      • a JSON call cut by max_tokens returns as a call, not as text in content (#2511).
    • Benchmark clients: token ITL/TPOT is null where a chunk carries several tokens, and prefill_tps is deprecated in favour of prompt_ttft_tps (#2625).
    • Startup line: it names a --prompt-cache-gib only where it keeps all the states, and otherwise how many the room holds (#2568). Scripts that parse it may need updating.
    • Access log: control bytes in a request line are written as \xNN (#2542).

    Thanks

    • @AbrahamCete (#2087, #2545, #2582, #2652, #2661, #2674)
    • @ajensenwaud (#2334, #2335, #2336, #2337, #2511, #2627)
    • @abm9111 (#2593, #2594)
    • @BobClawblaw (#2626)
    • @akol1 (#2416)
    • @Bizuayeu (#2568, #2569, #2578, #2629, #2636; and the four-GB10 ring run for #2352)
    • @chadhurley25075-png (#2542, #2544)
    • @davidtai (#2582)
    • @Defilan (#2325)
    • @devopsfortunato (#2253, #2619)
    • @ElderOrb (#2584)
    • @gilby (#1877)
    • @javierbits (#2437)
    • @jschmied (#2430, #2436, #2449, #2467, #2468, #2528, #2540, #2563, #2577, #2580, #2604, #2606, #2611, #2612, #2633, #2666, #2672, #2684)
    • @kotevcode (#2389)
    • @laudney (#2536, #2537)
    • @Mirrdhyn (the Arc Pro B70 runs for #2672)
    • @mrv777 (#2509, #2644, #2646)
    • @ppardus (#2372)
    • @robertung88 (the agent-prompt runs for #2437)
    • @volfco (#2181)
  14. 1.2.5

    Expandir

    GitHub Release

    TensorFold 1.2.5

    1.2.5 brings LFM2.5-24B-A2B on CUDA, Nemotron Parse and LightOnOCR-3 on HIP, and Clef's joint schema head on CUDA. It also adds TensorFold Web, a local web app. Qwen3.8-27B's MLX 8-bit checkpoints get faster prompts on Macs, and a new opt-in keeps its keys and values in pool pages. HIP's opt-in gfx12 matrix tiles get faster with the same bytes. Settings are stricter: DeepSeek-V4.1's settings are refused by name when malformed, and an explicit thinking off that a chat template can't honour is refused.

    • New:
      • LFM2.5-24B-A2B on one NVIDIA GPU, from the MLX 4-bit export;
      • NVIDIA's Nemotron 3.5 Parse on HIP;
      • LightOnOCR-3 (0.8B, 1B, 4B) on HIP;
      • Clef's joint schema head and /v1/systemone on CUDA;
      • TensorFold Web, opened with tensorfold web;
      • the HIP qwen3_5 engine reads a DFlash2 drafter's config and weights, and taps its target layers;
      • a CPU projection and RMS norm in the kernel contract.
    • Speed:
      • Qwen3.8-27B MLX 8-bit on an M5 Ultra: cold prompts are 18% faster and decode 7.6% faster.
      • Flash Next BF16 cold prompts on a GB10 take about 4% less time, and under 1% less again on top.
      • HIP on gfx12 with --policy matrix=on: reranking and embedding take 2.9-4.8% less time on an R9700, with the same bytes.
      • Qwen 3.5 and 3.6 on HIP: sampled streams with an MTP head make 4-12% more tokens a second.
      • Qwen3.8-27B prompt chunks on an M3 Pro: 2-3% faster served prefill, bit-equal.
      • --learn with 100,000 kept states starts about 5 s sooner.
    • Serving:
      • An explicit thinking off that the template can't honour is a 400.
      • A refused disk read tries one shorter kept state.
      • Qwen 3.5 and 3.6 streams on CUDA take less memory.
      • A request's stats list its prompt pass widths.
      • The PDF render worker no longer crashes on macOS.
      • New opt-ins: the Qwen CUDA history starts with drafts; Gemma 4's 2,048-row solo chunk; CUDA prompt-cache keep-others; Qwen3.8-27B Metal KV pages.

    Where a speedup was checked for equal output, its line says so. Some changes alter settings, refusals, memory or startup by default; they're listed under What can change for you.

    Headline numbers

    Each number names its machine and its PR.

    Release reads, each machine with 1.2.4 and 1.2.5 in alternating fresh servers (base, new, new, base, after an unscored warm-up):

    • Flash Next MLX 4-bit on a GB10, against 1.2.4: level, with the same tokens: every prompt and decode cell from 2K to 64K within 0.8%, and every sweep from one to eight streams within 1.1% apart from greedy chat at four streams (3.6% faster). The 64K long-context answer is right on both.

    • Qwen3.8-27B on an M5 Ultra, against 1.2.4: level, with the same tokens: every sweep within 0.4% and every prompt and decode cell from 2K to 64K within 1.2%, apart from one 1.2.5 run's first 2K prompt, which came up cold while the other 1.2.5 run matched both 1.2.4 runs.

    • Qwen3.8-27B on a GB10, against 1.2.4: level, with the same tokens: all 56 cells within -1% to +2%. The 64K long-context answer is right on both.

    • Nemotron 3.5 Lightning 30B-A3B on a GB10, against 1.2.4: level, with the same tokens: prompts within 1% and one stream level. Greedy chat at two to eight streams moved both ways (-2.8% to +1.5%), as one-prompt multi-stream cells do; decode after a 32K prompt resumed 10K tokens in was 2.5% lower in both 1.2.5 runs.

    • Qwen3.8-27B on an M3 Ultra, against 1.2.4: level, with the same tokens: every prompt and decode cell from 2K to 64K within 1.3%, and 2K prompts 2.1% faster in both 1.2.5 runs. Sweeps were within 0.4%, against one 1.2.4 run. The 64K long-context answer is right on both.

    • Qwen3.8-27B MLX 8-bit (groups of 64), on an M5 Ultra: cold prompts are 18% faster (649 to 768 tok/s at 2K) and decode 7.6% faster, with the same tokens and prompt state (#2518, fixes #2502).

    • Qwen3.8 Flash Next on CUDA, on a GB10 (NVFP4):

      • BF16 prompt projections take a 128 × 128 tile on sm_12x wherever it fills the GPU, with the same output bytes: cold prompts take 3.7 to 4.4% less time (4K to 34K tokens), replies unchanged (#1846, refs #1754).
      • Staging K32 fragments from the same K64 pack takes another 0.6 to 0.8% off cold prompts, with the same bytes (#1848).
    • HIP on gfx12 under --policy matrix=on, on a Radeon AI PRO R9700, with the same output bytes:

      • the WMMA dense tile's 64-deep K step: Qwen3-Reranker-8B ranks 16 documents in 0.694 s instead of 0.720 s, and Qwen3-Embedding-8B embeds 100 short inputs in 0.946 s instead of 0.974 s (#2280, part of #2245);
      • silu(gate) × up in the product's epilogue, on top: 0.657 to 0.661 s instead of 0.687 to 0.697 s, and 0.901 to 0.911 s instead of 0.940 to 0.948 s (#2344, part of #2245).
    • Qwen 3.5 and 3.6 on HIP, on gfx1151: sampled streams with an MTP head draft on the graphed head chain, with the same tokens: 4-12% more tokens a second at temperature 1.0 (#2455).

    • Qwen3.8-27B on Metal, on an M3 Pro: prompt chunks of 64 rows or more use half operands where a tile's inputs fit. Logits and tokens are bit-equal, and served prefill is 2-3% faster (#2435, part of #2089).

    • Qwen CUDA with TF_QWEN_REQUEST_STARTS=1, on a GB10 with Qwen3.8-27B 4-bit and its DFlash2 drafter: turns 2 to 6 of a six-turn chat reuse 1,450 to 1,635 prompt tokens and take 0.72 to 1.33 s instead of 1.78 to 2.10 s (#2176, carries #1335).

    • Gemma 4 on CUDA with TF_GEMMA4_CHUNK_SOLO=2048, on a GB10 with the 31B 4-bit release: a cold prompt's first token comes 4-5% sooner at 4K, 16K and 29K tokens, with the same replies (#2391).

    • Gemma 4 and Nemotron on CUDA, on a GB10: prompt chunks that nothing reads skip their last layers, so cold prompts start up to 3.9% sooner (Gemma 4 31B: 1.3% at 2K, 3.1% at 16K, 3.9% at 32K; Nemotron 3.5 Lightning level at 2K, about 2% sooner at 16K and 32K), with identical replies (#2432, refs #2165).

    • Qwen 3.5 and 3.6 on CUDA, on a GB10: each pooled stream takes 147 MiB less on Qwen3.8-27B and 61 MiB less on the 35B-A3B, with tokens and speed unchanged (#2447, part of #1943).

    • --learn with 100,000 kept states, on an M3 Ultra: the server starts about 5 s sooner (8.0x faster open), with the same states and files (#2316).

    New models and backends

    • LFM2.5-24B-A2B on CUDA: served on one NVIDIA GPU from the MLX 4-bit export, on the shared CUDA kernels, with --parallel streams and copy drafts. It runs without a drafter or prompt cache (#1492, part of #1488).
    • Nemotron Parse on HIP: NVIDIA's nvidia/Nemotron-3.5-Parse is served natively from its FP32 safetensors on a Radeon AI PRO R9700 (gfx1201), with its RADIO image tower, convolution neck and mBART decoder. The token arrays match the published example's on three pages, plain and drafted, solo and concurrent (#1941, part of #1927).
    • LightOnOCR-3 on HIP: the native server reads lightonai/LightOnOCR-3-0.8B, -1B and -4B (BF16) and serves their OCR prompts, token-exact against Transformers apart from exact BF16 logit ties (#1965, for #1927).
    • Clef's joint schema head on CUDA: /v1/systemone answers on one NVIDIA GPU, as it already did on HIP (#2458).
      • Its readout streams fill in pieces of final-norm rows, 1,024 rows a piece unless the lane host caps it, as on HIP (#2384, part of #2324).
    • TensorFold Web: a local web app laid out like the desktop app (chat, models, learning, API, benchmarks and clusters) ships in web/.
      • tensorfold web opens it, and on first use offers to install it with uv, pinned to the same release.
      • It starts without network access and reaches a local engine directly, past any system proxy.
      • Adopted from @Stephane-Eden's TensorFold Studio (#1781).
    • HIP drafter groundwork for qwen3_5 (#1563):
      • the engine captures a drafter's requested target-layer taps in each stream's ring, with and without graphs (#2314);
      • it reads a DFlash2 drafter's config.json against its target, refusing one it can't run, and loads its weights as MLX affine-4. The server doesn't use the drafter yet (#2477).
    • CPU: Qwen3.5-2B's 4-bit, group-64 affine projection and an RMS norm run on the host's cores through the kernel contract's gates 1 to 4, with eight planted controls on any host with no device (zig build cpu-contract). Output bytes are pinned the same at 1 to 16 threads and across column splits on x86_64 and arm64 (#2478, part of #2448).

    Speed and memory

    • Qwen3.8-27B on Metal, opt-in with TF_QWEN27_METAL_KV_PAGES=1: each stream's keys and values live in pages of the core KV pool, with greedy replies equal to the default on one and two streams. It has run only on Macs without tensor units, and an M5 refuses the flag by name (#2283, part of #1293).
    • Qwen3.8-27B on a Mac, disk staging: the staging permit widens to one whole state at its --context, within --prompt-cache-gib, so conversations past about 13K new tokens are saved instead of skipped with StagingFull (#2388).
    • GLM-5.3-Flash on CUDA with TF_KV_SHARE=n: the startup plan sets aside a prompt-cache slot for each kept state, so the cache keeps as many states as its slots hold, up to n, and the rest goes to the KV pool's pages. The startup line names the slots (#2358).
    • Lane host: a stream paid for at load is a standing lease in the KV ledger, so a family that reserves per request admits as many full-window requests as the window plan, not one fewer. No family on main reserves per request, so every current load is unchanged (#2434, part of #1943).
    • The speedups in Headline numbers: #2518, #1846, #1848, #2280, #2344, #2455, #2435, #2176, #2391, #2432, #2447, #2316.

    Serving and API

    • Thinking off: an explicit thinking off that the chat template can't honour (a </think> marker, but no switch or closable generation prefix) is refused with HTTP 400 before submission.
      • Messages' count_tokens refuses it too.
      • A request that leaves thinking out, and a server or template default, never counts as an explicit off.
      • Model discovery's capabilities end with thinking_switch and thinking_applicable, and the benchmark clients read them (#2170, part of #2139).
    • Prompt cache on CUDA, opt-in: TENSORFOLD_PROMPT_CACHE_KEEP_OTHERS=1 stops a new prompt state from evicting another conversation's kept states.
      • A state that would fit only that way isn't kept, and is logged once.
      • A conversation's own older states still make room.
      • Tokens are unchanged (#2533, part of #2346).
    • Conversation states on disk: after a refused read, the server tries one shorter compatible state before prefilling from the start (#2442).
    • Stats: a request's finished stats list its prompt pass widths for Qwen3.8-27B, GLM-5.3-Flash and Nemotron (telemetry only) (#2304).
    • Qwen3.8-27B on Metal: the startup line reports how many admitted streams DFlash2 can draft for (#2526). Thanks to @mrv777 for the report.
    • Profiles: Dory's, Gemma 4's and Spark2.5's pool-page switches, and Nemotron's paging on Metal, are registered in the profile registry. The startup line and capabilities report them, and every default is unchanged (#2306, part of #1660).
    • Fabric: a pipeline stage's boot and round loop is one driver over an engine binding, which nothing uses yet. A stop that a middle stage receives now passes on instead of closing the ring (#2241, part of #2005).

    Fixes

    • Vision on macOS: PDFs with text no longer crash the render worker. Each PDF renders in a fresh server process instead of a fork, under the same limits and deadline, and a crash is reported by its signal (#2393, fixes #2385).
    • Non-finite values on Macs: a non-finite value in a masked key no longer reaches prompt attention's output, for Nemotron (#2322) and LFM2 (#2328) (both part of #1009). Finite prompts run the same kernels as before.
    • Nemotron on Macs: the masked prompt shader calls the shared tf_paged_row helper again, so its prompt sources compile (#2548). A test now compiles Nemotron's prompt shaders on a Metal device (#2558).
    • Qwen3.8-27B on Metal: TF_PROMPT_ROWS below 128 gets the prompt floor's own message again (#2527).
    • GLM CUDA: the peer warm-up after NCCL init is bounded to 300 seconds; on timeout every rank stops, naming the missing peers and the transport observed (#2512, part of #2347).
    • Release checks: on a Mac release binary, the private-path check no longer reads the code signature's hash bytes as text (#2524).
    • Kernel contract: the Metal limits check finds LFM3's launches again (#2565).

    Docs

    • The Qwen3.8-27B recipe says native serving reads MLX 8-bit with the same flags, measured against 4-bit on an M5 Ultra (#2506, refs #2502).
    • docs/evaluating.md says what to pin when testing TensorFold, how to check a release's signature, which tests need no GPU and which requests to replay. A root Dockerfile installs a verified Linux release archive (#2472).
    • /health's memory on Metal, and which Mac families report prompt_cache_plan (#2439).
    • WINDOWS.md: the host suite on a Windows machine with no usable GPU (#2479).
    • The README's and GLM CUDA recipe's Jammed XSFP4 row says it shipped in 1.2.3 (#2451, for #2041).
    • The optimization ledger's cells for #2011, #2162 and #2282 say they landed (#2431).

    Internal

    • Packaging: each stable release publishes its signed Mac arm64 desktop runtime and catalog update from main's release tooling (#2465).
    • Tests and CI:
      • python3 -m pytest from the repository root passes on a machine with no GPU (#2471);
      • thirteen host checks that no CI job ran build and pass again (#2550);
      • a nightly job runs 246 host checks that no per-PR job ran (#2554);
      • test-glm-snapshots-host runs under test-cuda-host (#2426, refs #2031);
      • the Qwen4 and Dory RoPE table tests print only on failure (#2519, refs #1852);
      • the 27B Metal lane and served draft checks (#2493, fixes #2489).
    • Checks on contributions:
      • a host check that every includer of a CUDA function-body fragment declares its names (#2495);
      • compile-cuda-tests builds again (#2463);
      • lean flags each new getenv of a setting outside platform/environment.zig, by a TF_/TENSORFOLD_ name or a non-literal one; reads already on main, test files and test blocks aren't counted (#2521).
    • Records:
      • HIP record counts are pinned in their owning arrays (#2461);
      • the contract registry's record joins live in registry_joins.zig (#2422);
      • 13 nvcc 13.0 register-count slots are refreshed from the five-SM audit (#2515, refs #2395);
      • the CUDA limits audit reads sm_110 resource usage from compiled cubins (#2395, part of #2319).
    • KV pool: a family's pool group is sized by its bytes a row over its layers, and a paged CUDA load prints each group's rows a page and padding; every family stays one group, so nothing else changes (#2532, part of #2444).
    • File splits: metal.zig (#2425) and GLM's cuda_engine.zig (#2429) are split under 600 lines, unchanged.

    What can change for you

    • An explicit thinking off: a request that turns thinking off where the chat template can't honour it now gets HTTP 400, where it used to be accepted and ignored. Leave thinking out of the request, or use a template with a switch, to keep it served. count_tokens refuses the same requests (#2170).

    • DeepSeek-V4.1 settings on CUDA:

      • a malformed TF_DSV41_* setting is refused by name before loading;
      • switches that used to read any text but 0 as on now take exactly 0 or 1, so a word such as false is refused rather than read the other way;
      • MHC_DEFER and COEF_LATE refuse no, which their old readers read as on;
      • a malformed TF_DSV41_TOOL_GRAMMAR is refused at server start unless TENSORFOLD_TOOL_GRAMMAR is set.

      Unset defaults are unchanged. Use 0 or 1 (#2379, #2516).

    • GLM-5.3-Flash on CUDA with TF_KV_SHARE=n: a value over 64 now stops the server, and a cache too small for one slot (for example --prompt-cache-gib 0) keeps no states, where before it kept them outside the plan (#2358).

    • GLM CUDA at two ranks or more: a peer warm-up that doesn't finish within 300 seconds now stops every rank instead of waiting (#2512).

    • HIP with --vision: a Qwen 3.5 checkpoint whose vision tower the HIP engine can't read (such as Qwen3.5-9B's 72-wide heads) is refused at start-up instead of answering each image with a 400 (#1965).

    • Flash Next on CUDA: the BF16 prompt tile is on by default on sm_12x where it fills the GPU, with the same bytes; TF_FLASHNEXT_PROMPT_BF16=0 turns it off. TF_FLASHNEXT_PROMPT_ROWS is gone (#1846).

    • Qwen 3.5 and 3.6 on CUDA: each pooled stream's rollback copy shares its verify log's bytes, so streams take less memory, with tokens unchanged (#2447).

    • Gemma 4 and Nemotron on CUDA: prompt chunks nothing reads skip their last layers by default, with identical replies; a drafter that reads those rows keeps them (#2432).

    • Qwen3.8-27B on Metal:

      • 8-bit checkpoints read their code bytes directly, with the same tokens and prompt state (#2518);
      • prompt chunks of 64 rows or more take half operands where they fit, bit-equal (#2435);
      • a Mac's disk staging permit is one whole state at --context, within --prompt-cache-gib (#2388).
    • Vision on macOS: each PDF renders in a fresh process instead of a fork (#2393).

    • Developers: the release packaging check is now tools/release/check_package.py (#2471).

    • /v1/models: each entry's capabilities gain thinking_switch and thinking_applicable. Clients that read the listing strictly will see new keys (#2170).

    • Request stats on CUDA: a finished request's stats gain its prompt pass widths for Qwen3.8-27B, GLM-5.3-Flash and Nemotron (#2304).

    • Startup lines: they now name registered pool-page switches (#2306), GLM's prompt-cache slots under TF_KV_SHARE (#2358), explicit DeepSeek settings (#2379), how many streams DFlash2 can draft for on the 27B (#2526), and a paged CUDA load's pool groups (#2532). Scripts that parse them may need updating.

    • Nemotron and LFM2 on Macs: replies change only where a NaN or infinity already sits in a masked key (#2322, #2328).

    • Conversation states on disk: after a refused read, the server reads one shorter compatible state before prefilling from the start, so a failed restore can take one more disk read (#2442).

    Known issue

    • JPEG input with the Homebrew install: the server decodes JPEG only with libjpeg-turbo 3.1.4.1, so image tokens can't change underneath a model, and the formula didn't provide that release at first. It does now: the formula builds libjpeg-turbo 3.1.4.1 into the install, where the server finds it first. Run brew update && brew reinstall tensorfold if JPEG images are refused with a startup warning (#2581, thanks to @knicolov).

    Thanks

    • @AbrahamCete (#2314, #2455, #2477)
    • @Bizuayeu (#2358, #2426, #2451, #2521)
    • @devopsfortunato (#2306)
    • @gilby (#1335, carried in #2176)
    • @gordonhatusupy (the #2385 report, fixed in #2393)
    • @jschmied (#1492, #2241, #2283, #2391, #2431, #2432, #2434, #2435, #2447, #2532; #2538, which found what #2548 fixed; the report behind #2463)
    • @laudney (#1846, #1848, #1941, #1965, #2280, #2344, #2384, #2458; and finding the gap #2434 closes)
    • @mrv777 (#2388; the report behind #2526)
    • @Stephane-Eden (TensorFold Studio, adopted in #1781)
    • @Whq02 (#2439, #2478, #2479)
    • @yguanrong (#2395, and the 13 records refreshed in #2515)
  15. 1.2.4

    Expandir

    GitHub Release

    TensorFold 1.2.4

    1.2.4 brings Gemma 4 E4B on CUDA, Cloudflare's Clef-Flash on HIP, LFM3-1.7B's text decoder on Metal, and the HIP runtime on Windows. DeepSeek-V4.1 recalls a saved long conversation in seconds instead of minutes. Flash Next gets faster prompts and decode, sooner first tokens, kept prompt states with drafts at --tp 2, faster SSD experts, and much faster overlapping clients on M5 Macs. Gemma 4 and Qwen 3.5 load faster cold on CUDA. HIP decode and rerank are faster. GLM on two or more GB10s prefetches its next decode weights into L2. DeepSeek-V4 and V4.1 prompts follow the release's recorded encoder outputs. An engine's refusals now reach the client as clear 400s.

    • New:
      • Gemma 4 E4B (NVIDIA Nemotron 3.5 Bolt E4B) on CUDA;
      • Clef-Flash's joint schema decisions on /v1/systemone on HIP;
      • DeepSeek-V4.x chat rendered with its own encoder;
      • LFM3-1.7B text on Metal, from the official MLX checkpoints;
      • the HIP runtime on Windows;
      • Clef-Flash's BF16 Qwen3.5 backbone on CUDA, as a decision backbone.
    • Speed:
      • A 319K-token DeepSeek-V4.1 conversation restores from NVMe in 1.2 to 1.4 s instead of 155 to 178 s.
      • A Flash Next chat resumed at --tp 2 with drafts replies in 1.5 s instead of 21.2 s.
      • Flash Next prompts at --parallel 1 on one CUDA GPU are 15-23% faster, and 8 streams decode 3-6% faster.
      • A new short Flash Next prompt's first token on CUDA comes 19% sooner.
      • Two overlapping Flash Next clients on an M5 Ultra finish in 47 s instead of 127 s.
      • Gemma 4 and Qwen 3.5 on CUDA load 28-31% faster cold.
      • A lone "draft": false Flash Next reply on Metal is 17-18% faster.
      • Rerank on HIP is about 25% faster, and one-stream HIP decode up to 2.7% faster.
      • Qwen 3.5 first tokens on a GB10 come 1 to 3% sooner.
      • GLM on CUDA prefetches a decode window's next weights into L2 on two or more GB10s, with the same replies.
    • Serving:
      • An engine's refusal reaches the client as a 400 before any header.
      • Flash Next on Metal enforces structured output at --parallel 1 too.
      • Unsupported penalties are refused instead of dropped.
      • A refused prompt-cache restore tries a shorter kept state.
      • DeepSeek-V4.1 tool calls stream sooner.
      • Tool calls made just before the thinking close are returned.
      • DeepSeek-V4 and V4.1 prompts match the release's recorded encoder outputs, and malformed tool requests are refused with a 400.
      • An opt-in queue-wait histogram for native metrics.
      • /v1/models lists what each model supports.
      • An opt-in drift gate for Living Weights lessons.
      • Malformed TF_, TENSORFOLD_ and TENSORFOLD_PREFILL_* settings stop the server at startup, by name.
      • A kept prompt state on disk is reused only by the same build and checkpoint files.

    Where a speedup was checked for equal output, its line says so. Some changes alter scheduling, memory, loading, prompts or startup by default. They're listed under What can change for you.

    Headline numbers

    Each number names its machine. Where replies were checked against the base, the line says how.

    Release reads, each machine with 1.2.3 and 1.2.4 in alternating fresh servers (base, new, new, base, after an unscored warm-up):

    • Flash Next MLX 4-bit on a GB10, against 1.2.3: prompts and one stream level, with the same tokens; two to eight streams up to 5.1% faster (eight streams 1.7% to 5.1%). The 64K long-context answer is right on both.

    • Qwen3.8-27B on an M5 Ultra, against 1.2.3: level, within 1.2% in every sweep and on every prompt and decode cell from 2K to 64K, with the same tokens.

    • Qwen3.8-27B on a GB10, against 1.2.3: level, within 1.0% in every sweep and on every prompt and decode cell from 2K to 64K, with the same tokens.

    • Qwen3.8-27B on an M3 Ultra, against 1.2.3: level on every prompt and decode cell from 2K to 64K, with the same tokens. At 64K one of the two 1.2.4 runs was up to 2.5% lower and the other matched both 1.2.3 runs. Sweeps were within 1.3%, against one 1.2.3 run.

    • Nemotron 3.5 Lightning 30B-A3B on a GB10, against 1.2.3: level, with the same tokens; no cell slower than 1.5%, and decode after a 32K prompt 2.0% to 2.6% faster.

    • DeepSeek-V4.1 on CUDA, on two GB10s at TP=2, with TF_DSV41_PREFILL=replay:

      • recalling a 319K-token conversation from the NVMe session tier takes 1.2 to 1.4 s instead of 155 to 178 s;
      • replies are byte-identical to a cold prefill (#2182).
    • Flash Next on CUDA at --tp 2 with drafts, on two GB10s: a chat with about 28,500 tokens of history replies in 1.5 s resumed, against 21.2 s fresh, with the same replies (#2214).

    • Flash Next on CUDA, on a GB10:

      • at --parallel 1, prompts run 15-23% faster, for about 3.2 GiB more memory (#2246);
      • 8 streams decode 3-6% faster with the same tokens (#1942);
      • a new short prompt's first token comes 19% sooner, with replies unchanged (#1866).
    • Gemma 4 and Qwen 3.5 on CUDA, on a GB10: loading cold is 28-31% faster, with the same weights and replies, for about 0.6 GB more host memory (#2282).

    • Flash Next on Metal, on an M5 Ultra with the MLX 4-bit checkpoint, at --parallel 2 or more: two overlapping clients finish in 47 s instead of 127 s, and a 64K prompt beside a 1,024-token reply in 21 s instead of 36-38 s, with the same tokens (#2394).

    • Flash Next on Metal, on an M3 Ultra: a lone "draft": false reply at --parallel above one is 17-18% faster, with the same tokens (#2272).

    • Qwen3-Reranker-8B on HIP, on a Radeon AI PRO R9700: 16 documents of 323 tokens, 87 of them shared, take:

      • 1.98 s instead of 2.63 s on the default dot2 tile;
      • 0.73 s instead of 0.99 s with the gfx12 WMMA tile (--policy matrix=on).
      • The responses are the same byte for byte on that card (#2262). On RDNA 3.5 (gfx1150 to gfx1153), a prompt row now gets the same bytes wherever its chunk starts (#2357).
    • HIP decode, on a gfx1151: one stream decodes 2.7% faster on Qwen3.6-35B-A3B and 1.1% on the 27B, with the same output bytes (#2247).

    • Qwen 3.5 on CUDA, on a GB10:

      • first tokens come 1 to 3% sooner, with the last row's logits bit-equal (#2229);
      • 8k and 32k prompts start 1.6 to 2.1% sooner with the same replies (#2113).

    New models and backends

    • Gemma 4 E4B on CUDA (NVIDIA Nemotron 3.5 Bolt E4B): served from mlx_lm.convert 4-bit checkpoints.
      • Per-layer inputs run in their own launch, and layers 24 to 41 read the caches of layers 22 and 23.
      • Replies are equal across streams and resumes (#2230, part of #1222).
    • Cloudflare's Clef-Flash on HIP (Radeon AI PRO R9700): its BF16 Qwen3.5 backbone and joint schema head answer /v1/systemone.
      • The head runs on the GPU over each prompt piece in the shared rounds.
      • Validation errors are 422s with their location.
      • Chat and the other routes refuse the checkpoint, naming /v1/systemone.
      • capabilities --json lists BF16 for HIP Qwen3.5 under a new decisions key; the chat formats are unchanged.
      • Checkpoints whose tokenizer_config.json publishes a pretokenize_regex split words with it (#2048, #1360, #1952).
    • DeepSeek-V4.x chat on the native server renders with its own encoder and schema prompt.
      • A served image part becomes the image token.
      • The startup line names the chat renderer.
      • Prompt token ids now equal the release's encoder goldens (#1698).
    • LFM3-1.7B on Metal: the text decoder serves the official MLX 4-, 6- and 8-bit checkpoints, with per-stream convolution and KV state, verification windows, snapshots and the prompt cache. LFM3-VL checkpoints are refused by name until the vision tower lands (#1514, part of #1491).
    • HIP on Windows: the HIP runtime builds and loads on Windows.
      • hipcc.exe is preferred, and hipcc.bat is found through -Dhipcc, PATH or HIP_PATH/ROCM_PATH and run through cmd /c call.
      • The runtime and the optional libraries load by their Windows names (amdhip64.dll and the versioned ones; TENSORFOLD_HIP overrides).
      • The admission budget comes from the driver where /proc/meminfo and sysfs don't exist.
      • check-native-hip-host compiles for the host OS, and the cooperative grid test runs plain where the driver reports no cooperative launch (ROCm/HIP#3640) (#2178).
    • Clef-Flash's backbone on CUDA: Qwen3.5 on CUDA loads a plain BF16 checkpoint as a decision backbone, not for chat.
      • Chat, and the flags the joint schema head isn't qualified with, are refused by name before the weights load.
      • Its norms scale by 1 + w in FP32.
      • A quantized Qwen3.5 checkpoint that ships joint_head_config.json is refused (QwenHeadNeedsBf16), as on HIP (#2383, part of #2324).

    Speed

    • DeepSeek-V4.1 on CUDA with TF_DSV41_PREFILL=replay: a conversation saved to the NVMe session tier now restores, instead of being refused as BadBlob and prefilled again. Numbers are above (#2182).
    • Flash Next:
      • On CUDA at --tp 2 with drafts, prompt states are kept, and the server no longer needs --prompt-cache-gib 0 to start. Numbers are above (#2214, fixes #1829).
      • On CUDA at --parallel 1 on one GPU, a prompt pass takes up to 8,192 rows, so prompts run 15-23% faster on a GB10 for about 3.2 GiB more memory. TF_FLASHNEXT_CHUNK_SOLO still decides (#2246).
      • On CUDA, a shared round's DeltaNet steps run in one launch each across its lanes instead of one launch a lane. So 8 streams decode 3-6% faster on a GB10 with the same tokens; one stream keeps its own launches (#1942).
      • On CUDA, the shared expert's down projection writes straight into its output slot, so NVFP4 prompts run about 0.7% faster on a GB10 with the same tokens (#1792).
      • With --ssd-experts, a request no longer waits for a forecast read it doesn't need, and a forecast that never started keeps the expert it displaced. That's about 8% faster at 35 GiB of experts and 4% at 17 GiB (#2236).
      • On Metal, a lone "draft": false reply at --parallel above one runs as it does at --parallel 1, 17-18% faster on an M3 Ultra with the same tokens (#2272).
      • On CUDA, a prompt-cache mark inside a prompt chunk is kept on the way through the pass instead of cutting the pass there. A new short prompt's first token comes 19% sooner on a GB10, with replies unchanged. TF_FLASHNEXT_KEEP_INPASS=0 cuts the pass at the mark as before (#1866).
      • On Metal with tensor units (M5), at an explicit --parallel 2 or more, the shared host takes the same defaults as other Macs: replies take 0.8 of a filling prompt's time, and the prompt's steps grow to 512 rows. Numbers are above (#2394, refs #1893).
    • HIP: the decode round's residual-add and norm tail issues each row's loads before its branches, and a MoE tail loads its slots' rows together. Output bytes are unchanged. Numbers are above, and tf_tail is now under the kernel contract (#2247).
    • Qwen 3.5 and 3.6 on CUDA:
      • A prompt chunk's last layer runs q, attention, o and the MLP over the kept row's 128-row tile only. The cache is unchanged and the last row's logits stay bit-equal. A model served with an MTP head, int8 or images keeps the full last layer (#2229, closes #2165).
      • On an integrated GPU, prompt states stay in device memory instead of pinning a host copy at each save, still within the host cache budget (#2113, #2043).
    • Loading on CUDA: Gemma 4 and Qwen 3.5 load with direct reads by default, 28-31% faster cold on a GB10 with the same weights and replies, for about 0.6 GB more host memory. TF_LOAD_DIRECT=0 keeps the old read-ahead (#2282).
    • Qwen 3.5 and 3.6 on CUDA, opt-in pages: with TF_QWEN_KV_PAGES=256, dense and MoE alike, --parallel is a cap rather than a reservation: a request can wait for pages instead of every stream holding a full-context window. Paged prompt attention stages a chunk's page ids in shared memory, decode looks a page up once, and a paged prompt-cache save or restore copies one 2D block a page. Replies are the same tokens on pages and windows. Unset keeps a window each, as before (#2011, part of #1943).
    • GLM-5.3-Flash on CUDA at TP=2: a prompt step takes two chunks while no other stream decodes, each one's exchanges under the other's, so prompts of 8K to 128K finish about 2% sooner, with replies unchanged. TF_GLM_PROMPT_PAIR=0 turns it off (#1423).
    • GLM-5.3-Flash on CUDA, on a GB10 at two ranks or more: a decode window's next weights are read into L2 on a side stream while its gathers and chains run, inside a 12 MiB budget. Replies are identical, and every other GPU is unchanged. TF_GLM_L2PF=0 turns it off, and TF_GLM_L2PF=1 turns it on for any GPU (#2162, #1580).
    • Qwen3.8-27B on Metal: a reply that would end well before a long prompt now goes first, and the prompt lends it at most a quarter of its own time (#2224).
    • Prompt scheduling: a resumed turn that hasn't started its prompt pass is ranked by its uncached tail, not its whole prompt. A long cached history no longer waits behind a cold prefill (#2276, #2256).
    • Qwen3-Reranker-8B on HIP: a rerank request's shared start (the system prompt, the instruction and the query) is computed once a pass instead of once a document. The responses are the same byte for byte on the R9700; RDNA 3.5's chunk starts are fixed in #2357. The numbers are above (#2262, part of #2245).

    Serving and API

    • DeepSeek-V4 and V4.1 prompts follow the release's recorded encoder outputs, except where those outputs drop a tool's namespace, which we keep (#2193, #2141).
      • Assistant thinking markers, blank-line text joins and tool schemas change. minimal keeps thinking on at budget 50, and xhigh uses 75. Developer instructions render as system.
      • Listings and tool-call history keep qualified function names, and schemas keep their namespace descriptions. Strict tools keep their grammar handling.
      • Malformed requests now get a 400: user null content, malformed tool-call lists, calls without a string id, name or arguments or type function, names outside 1-64 ASCII letters, digits, underscores and hyphens, tool replies without tool_call_id, and tool envelopes that aren't functions. ultra keeps its refusal.
    • /v1/models: each model's entry lists the capabilities it was loaded with, read through the same accessor as request admission, so the listing and the refusals agree (#2157, part of #2139).
    • Native metrics: TENSORFOLD_PHASE_METRICS=1 adds a bounded request queue-wait histogram and its vLLM alias. It's off by default (#2158, part of #2139).
    • Engine refusals: an engine can refuse a request it can't serve as asked, in words the client can use.
      • The server answers 400 invalid_request_error before any header, on chat, completions, Responses and Messages, streamed or not.
      • An engine without the entry behaves exactly as before (#2198, #2082).
      • The refusal names the body field the client sent: response_format, guided_json and the other four, or text.format and output_config.format on the Responses and Messages routes (#2110, #2084).
    • Tool calls before the thinking close: completed tool calls just before the thinking-close marker are returned as tool calls when no answer follows, whole and streamed. Calls followed by more reasoning or an answer stay in reasoning (#2313, fixes #2310).
    • Flash Next on Metal at --parallel 1: response_format (json_schema, json_object) and tool_choice "required" or a named function are enforced, through the same grammar path --parallel 2 uses. Unconstrained requests take exactly the single-stream path as before (#1969, #1894).
    • Penalties: native engines that can't apply presence or frequency penalties refuse nonzero values with a 400. Zero, null and omitted penalties keep working (#2166).
    • Prompt cache: a restore the backend refuses tries the next shorter kept state before prefilling from the start (#2144). On CUDA, when a kept state is larger than the whole cache budget, the log line now says that TF_KV_SHARE=n would keep its prompt rows as the pool's pages, for families on KV pages; nothing else changes (#2333).
    • DeepSeek-V4.1 tool calls: DSML calls stream from the invoke name, so a call whose first parameter is the long one streams while it is written (#2201, #1975).
      • GLM and XML calls have no such tag and still stream from the first parameter's end.
    • GLM-5.3-Flash on CUDA:
      • TF_KV_SHARE=n with TF_KV_PAGES=on keeps GLM's prompts in the shared prompt store that Spark 2.5, Gemma 4 and Kolibri-1 use, with the same tokens, resume marks and memory. GLM's own store and TF_GLM_KV_SHARE go (#2211).
      • New and off by default: TF_GLM_PROMPT_TAIL=1 keeps a raw /v1/completions prompt's state at its last chunk start in the unpaged prompt cache, so a repeat or a longer prompt resumes there, with tokens unchanged. Any value other than unset, 0 or 1 is refused by name before the weights load (#2226).
    • Metal request stats: a request's finished stats list its prompt pass widths (tensorfold.prefill_widths, one entry per completed target pass) on every Metal text family. This is telemetry only (#2293).
    • Qwen3.8-27B:
      • A refusal that no --parallel or --context can fix names the wired-limit raise, and only suggests one that leaves the system room (#2123).
      • A prompt frame below 128 rows (TF_PROMPT_ROWS=16) is refused before loading, with the setting, the value and the fix named, instead of a bare "TargetBinding" (#2298).
    • Startup settings: a malformed TF_ or TENSORFOLD_ setting stops the native server at startup with its name, the text it got and the forms it accepts, before any checkpoint or driver work. Empty or whitespace-only values still mean unset, and the documented lenient forms stay. --profile and the startup line report six more setting groups (#2405, part of #2370).
      • serve also refuses, by name, a TENSORFOLD_PREFILL_SHARE outside 0.01 to 1, a TENSORFOLD_PREFILL_POLICY other than fcfs, and TENSORFOLD_PREFILL_TOKENS or TENSORFOLD_PREFILL_BUDGET text that isn't a whole number. The lane host used to read each as its default without a word (#2369).
    • Kept prompt states on disk:
      • a state is reused only by the same build and the same checkpoint files, so a rewritten checkpoint or a new build starts cold instead of reusing an old state (#2163, #2131);
      • what the store drops as it opens is now logged with its cause: a kept state whose file fails its check or misses a block, one line a cause, and the count of blocks no kept state names any more. What is restored is unchanged (#2397, part of #2349).
    • GLM-5.3-Flash on CUDA at TP=2 and up: each rank names its startup phases (NCCL init, peer warm-up, weights, calibration, ready), prints NCCL's init device, version and log path, and warns once a minute while NCCL init or the warm-up is unfinished. Transfers are unchanged (#2354, part of #2347).
    • API key file: a refused --api-key-file logs the path it was given, the mode the file system reported and which test failed, at startup and when a reload is refused (#2365).
    • CLI: tensorfold models --json prints the cached checkpoints as one document (schema 1, and each checkpoint's repo, family and model_type). The plain listing is unchanged (#2364).
    • Living Weights: --slide-drift-gate (opt-in, with --slide) measures each lesson's drift on unrelated replies and checks its recall before keeping it. Without the flag nothing changes (#2028, part of #1389).
    • Cortheon:
      • a Windows path whose name holds a change word no longer turns a question into a change request;
      • fallback queries stop at a tabbed sentence end and drop a tabbed list mark;
      • search results with upper-case tags, HREF= or single-quoted links are kept;
      • a GitHub file under Blob is read as raw text;
      • an absolute link of another scheme stays as written (#2216).

    Fixes

    • CUDA on integrated GPUs such as the GB10: synchronous downloads stage through a per-thread pinned buffer. This guards against a driver fault where a copy into pageable memory could miss pages. Discrete cards keep the direct copy (#2103). Every other synchronous device-to-host copy now stages the same way (54 copies in families, tools and tests), with the bytes unchanged (#2289, for #2102).
    • GLM-5.3-Flash on CUDA: an EXL3 checkpoint whose quantization_config sits inside text_config loads as EXL3. Admission already read it there, but the config parser read only the top level, so such a pack was admitted and then asked for NVFP4 dense weights at load (#2327).
    • Qwen3.8-27B on Metal: a NaN or infinity in a value a row must not see no longer turns that row's attention output into NaN. This covers the prompt kernels, before M5 and on M5, and the M5 decode prefix. Finite inputs keep their bytes (#2106).
    • DeepSeek-V4.1's NVMe session tier restores saved conversations again (#2182, above).
    • HIP on RDNA 3.5 (gfx1150 to gfx1153): a prompt row gets the same bytes wherever its chunk starts. The 64-row prompt tile there takes each key past a row's causal edge as +0, since RDNA 3.5's dot2 rounds a -0 lane apart from +0. Its prompt bits change, and gfx1151's prefill is up to 0.7% slower at 2k and 8k. Other chips keep their prompt tile and bits. On every chip, a non-finite value at a key past a row's edge now adds nothing to that row (#2357, closes #2317).
    • Flash Next on CUDA with TF_FLASHNEXT_KV_PAGES: a shared round's grouped draft head reads and writes each stream's own pages, so paged streams' replies equal their runs alone again, and paged decode runs as fast as unpaged. Default settings are unchanged (#2244).
    • Qwen3.8-27B on Metal: a keep that fails part way (an allocation, a refused keep or path) returns its error instead of aborting the process, and after a failed allocation the round can keep again (#2376).
    • Vision: PDF pages reach the vision tower in their true colours. The render flags set FPDF_REVERSE_BYTE_ORDER where printing was meant, which swapped red and blue on every page (#2387, for #2386).
    • Clusters over RoCE: a Linux kernel built without transparent hugepages no longer refuses to start. prepareRegion keeps MADV_DONTFORK strict, asks for MADV_NOHUGEPAGE only where THP can apply it, and says at startup when it skips it (#2380, for #2378).
    • Qwen4: the rotary table comes from core's exact helper, matching transformers' FP32 values. Every moved value is a 1-ulp move (#2223, part of #2000).
    • Builds:
      • a plain zig build on Linux compiles again (#2362);
      • zig build -Dgpu=<gpu> builds the one-GPU server again (#2290);
      • zig build server-cpu compiles again (#2363);
      • zig build compile-dsv41-server and dsv41-serve build again, with the lanes module the DeepSeek server's /v1/systemone route reads (#2412).

    Docs

    • The optimization ledger: docs/optimization-ledger.md lists which speed and memory optimizations apply to which native family, and where each stands, with links to the PRs that measured them (#2232). The pull request pre-flight asks a PR that changes a family's optimization to update its cell (#2243).
    • docs/api.md matches what the server reads and writes (#2299). Its Reasoning section says what a no-thinking GLM-5.3 prompt is on each engine (#2297, #1911):
      • native appends </think> to the template's render;
      • Python 0.6.6 strips the Reasoning Effort head.
    • Contributing: authors post their own main-against-branch numbers first; our run follows once the review has no open asks (#2179).
    • Flash Next:
      • the CUDA recipe gives TF_FLASHNEXT_CONFIDENCE's real default, -0.4, and what its sign means (#2296);
      • the slow drafted request after a draft: false one no longer reproduces, and the expert recipe lists peak memory at each --ssd-experts budget (#2237).
    • Serving flags: ten native serve flags are now documented: --top-p, --top-k and --min-p as sampling defaults, --compact-at, --compact-keep and --compact-memory, Dory's --loops, the two silence-onset flags and Drama 3's --max-frames (#2345). docs/api.md lists DELETE /v1/slide/facts, and docs/control.md no longer says the native server refuses --spill-gib and --vision (#2341).
    • Model recipes and flags, checked against the code:
      • the recipes match the native server: Gemma 4 serves M1 to M4 through the row path and enforces "required" tool calls, Nemotron refuses --tp above 1, qwen3_5 serves EXL3 packs on CUDA, the CUDA CLI applies --alias, Flash Next on Metal's draft levels are 3, 6 and 8, and more (#2361);
      • the serve flags match the CLI: --metrics-open opens /v1/metrics too, --learn-conversations on CUDA serves the Qwen3.5 hybrids and Flash Next as well as Nemotron, and the Metal Qwen3.5-2B keeps prompt states (#2367);
      • four subcommand flags: slide audit --threshold's range, benchmark --context and --kv-cache, info on Flash Next, and run --device and --carveout on CUDA builds (#2348).
    • Hermes Agent: docs/hermes-agent.md shows how to use TensorFold from Hermes Agent through the community hermes-tensorfold plugin (a model provider and a dashboard tab), checked on a GB10 with Qwen3.8-Flash-Next (#2330, part of #2109).
    • GLM on CUDA: the recipe notes that TF_GLM_CLEAR_THINKING is read by the native server too, not only the Python engine (#2350). It also notes that TF_GLM_CHUNK_SOLO=4096 made prompts 12-14% slower with NVIDIA's NVFP4 checkpoint on two GB10s at --parallel 1, so leave it unset there (#2288).

    Internal

    No served output changes from any of these.

    • Tests:
      • the heaviest host test gates build in ReleaseSafe: the Qwen4 host gate's 113 checks take 18 seconds instead of 4 minutes on one 20-core host (#2249, part of #2242);
      • rollback conformance on the fake lane target, and 12 captured CUDA graph shapes replayed out of order (#2161, closes #2138);
      • the Metal kernel contract checks masked non-finite values across every family's prompt attention, with the remaining families registered as known (#2308);
      • the 27B's M5 decode control is fixed, so contract runs on M5 finish (#2303, fixes #2301);
      • the MOSS-Image teacher gate compares every step with the teacher (#2291);
      • other test fixes and re-baselined source pins (#2267, #2268, #2175);
      • the CUDA kernel contract releases each case's buffers when the case ends, so the full run fits in a GB10's memory (#1845);
      • test-metal-residency-owners-host compiles and passes again, with 68 tests (#2331, part of #2031);
      • tf-qwen27-reuse's yielded-pass check follows the host's lane loop on M5 chips (#2343);
      • tf-moss-image-blocks gates MOSS-Image's transformer block by block against the publisher's float32 run, on Metal and CUDA (#2294, part of #1529);
      • the resumed == fresh checks run a real fresh run and fail by name if it resumed: Qwen 3.5's two Zig checks (#2374, for #2353) and serve_check.py, through an optional cold server (#2381, for #2353);
      • exl3_load's allocation-failure test passes at any checkout path length; it failed at 70 of 102 lengths before (#2377);
      • the pull client's security tests build and run on Windows, on a portable fake hub, and CI runs them there (#2284);
      • test-quoted-markers-host checks with real tokenizers that quoted added-token spellings stay plain text through chat requests (#2400, part of #2399);
      • test-glm-snapshots-host builds again (#2403); four host steps no CI job runs build and pass again (#2409, part of #2031); the serving source pins take main's reviewed bytes (#2418, part of #2031);
      • the TP host reference adds bf16 and f16 sums in fp32 rank order and rounds once, as documented; sums at one or two ranks don't change (#2366, part of #1971).
    • CI:
      • faster and cached CI (#2252, #2274, #2277);
      • the portable-names check runs on every pull request again (#2311);
      • main's own pushes reuse main's newest build cache, as a pull request does, with each saved cache pruned to about one build and a nightly run from nothing (#2402).
    • Tools:
      • an XPU limits backend for the kernel contract (#2155);
      • a Living Weights keep-rate comparison tool (#2027);
      • image patch preparation rewritten from documented behaviour, with byte-equal output in 55,503 host cases (#2271);
      • tools/pr_check.py checks local changes against their merge base before a push, and the PR template asks for paired main-against-branch cells (#2355);
      • tf-xpu-contract-run runs the kernel contract's gates 1 to 4 on an Intel GPU through Level Zero, with planted controls and gate 5 checked live; its first run covers the Qwen3.8-27B glue on an Arc Pro B70 (#2269, part of #2080);
      • tools/zig/bench_sessions.py replays long agent sessions in turn patterns to measure the prompt cache, one JSON line per request with cached_tokens (#2359, for #2346).
    • Code:
      • Nemotron's 16 Metal decode attention partials share one source, with the same kernels and bits (#2263);
      • 310 lean findings fixed, comments reworded to one line (#2292, #2295, #2309, #2315, #2318, #2320, #2323, #2326, #2329, #2332);
      • zig/build/cuda.zig goes from 600 to 467 lines, with the same steps in the same order (#2420);
      • the kernel contract's nvcc 13.0 resource records match what nvcc 13.0.88 builds for 57 CUDA kernels (226 per-SM slots), so the limits gate passes; no kernel, flag or launch changes (#2390);
      • the engine API carries an optional image capability beside speech; an engine without the entry is unchanged (#2248, part of #1573).
    • Pipeline stages across machines: the stage protocol (boot description, round plan, rows layout and keep-alive), with golden bytes for every message, so a CUDA and a Metal stage can be built against the same bytes. Nothing serves through it yet (#2060, part of #2005). Clusters: MCDMA bring-up on real hosts, step 2a of #1594 (#2088).
    • Developers: -Dnative-fp-decode=true is off by default and needs nvcc 13.2 or later. It builds CUDA's prompt16 FP4 tile and FP8 expert prompt tile with the hardware FP4 and FP8 decode on sm_120 and later. Outputs are bit-equal to the default build, and on a GB10 the FP4 prompt projections took 0.95 to 0.96 of the time (#2238, refs #1448).
    • Changelog wording fixes with no code: #2278, #2286, #2312, #2371.

    What can change for you

    • Kept prompt states on disk: a state is reused only by the same build and checkpoint files, so after upgrading to 1.2.4 every kept disk state starts cold: the first long prompt prefills again, and is kept as before from then on. A rewritten checkpoint also starts cold. There's no setting to reuse old states (#2163).
    • Startup settings: a malformed TF_ or TENSORFOLD_ setting now stops the native server at startup, naming the setting, the text it got and the forms it accepts; empty values still mean unset. Kept disk states of Qwen 3.5 and Qwen3.8-27B on Metal, and of Nemotron and Qwen 3.5 on CUDA, are prefilled once after upgrading (#2405). A TENSORFOLD_PREFILL_SHARE outside 0.01 to 1, a TENSORFOLD_PREFILL_POLICY other than fcfs, or TENSORFOLD_PREFILL_TOKENS or TENSORFOLD_PREFILL_BUDGET that isn't a whole number is refused at start; before, each was read as its default (a share of 0 meant whole prompt steps). Unset it, or set a valid value (#2369).
    • Loading on CUDA: Gemma 4 and Qwen 3.5 read their weights directly by default, using about 0.6 GB more host memory while loading. TF_LOAD_DIRECT=0 keeps the old read-ahead (#2282).
    • Flash Next on CUDA, prompt-cache marks: a mark inside a prompt chunk no longer cuts the pass there. Replies are unchanged. TF_FLASHNEXT_KEEP_INPASS=0 cuts at the mark as before (#1866).
    • Flash Next on Metal with tensor units (M5), at an explicit --parallel 2 or more: replies take 0.8 of a filling prompt's time, and prompt steps grow to 512 rows, as on other Macs. The tokens are the same (#2394).
    • GLM-5.3-Flash on CUDA at TP=2: a prompt step pairs two chunks when no other stream decodes. Replies are unchanged. TF_GLM_PROMPT_PAIR=0 turns it off (#1423).
    • HIP on RDNA 3.5 (gfx1150 to gfx1153): prompt bits change, so replies can change where a token was a near-tie, and gfx1151's prefill is up to 0.7% slower at 2k and 8k. There's no setting to keep the old tile (#2357).
    • Quantized Qwen3.5 checkpoints with joint_head_config.json on CUDA are now refused (QwenHeadNeedsBf16); use the BF16 checkpoint (#2383).
    • Vision on PDFs: pages now reach the vision tower with red and blue the right way round, so replies about PDF pages can change (#2387).
    • DeepSeek-V4 and V4.1 prompts: prompt ids change where the recorded encoder outputs differ from the old rendering: thinking markers, blank-line joins, tool schemas, the minimal and xhigh budgets, and developer instructions as system. So replies can change. Requests that were malformed and used to pass (see Serving) now get a 400 (#2193).
    • GLM-5.3-Flash on CUDA, on a GB10 at two ranks or more: the L2 prefetch is on unless TF_GLM_L2PF=0. Replies are identical; it reads up to 12 MiB ahead on a side stream (#2162).
    • DeepSeek-V4.x chat prompts: the native encoder renders chat even when the checkpoint ships a Jinja template. A pack that carries an older chat_template.jinja gets different prompt ids, effort defaults and tool rules, and so can get different replies.
      • To keep a template file, pass --chat-template.
      • TF_DSV41_SCHEMA_PROMPT=0 turns off the ## Response Format block that a request's response_format adds (#1698).
    • Tool calls just before the thinking close: when no answer follows, they now come back as tool_calls instead of as markup in reasoning_content, whole and streamed (#2313).
    • GLM-5.3-Flash on CUDA with TF_GLM_KV_SHARE: a server started with it set to anything but 0 or empty now stops before the weights load, naming TF_KV_SHARE. Use TF_KV_SHARE=n with TF_KV_PAGES=on instead (#2211).
    • Presence and frequency penalties: on a native engine that can't apply them, a nonzero value is now a 400 instead of being ignored. Send 0 or omit them to keep the old replies (#2166).
    • Qwen3.8-27B on Metal, a reply beside a long prompt: by default, a reply that would end soon now goes first. To keep the old order, use --decode-share, TENSORFOLD_PREFILL_SHARE, or any TENSORFOLD_PREFILL_ORDER other than srpt (#2224).
    • Resumed turns are ranked by their uncached tail, so the order of waiting prompts can change; a rejected restore ranks the whole prompt again (#2276).
    • Flash Next on CUDA at --parallel 1 on one GPU takes about 3.2 GiB more memory for its larger prompt passes. TF_FLASHNEXT_CHUNK_SOLO still sets the pass size (#2246).
    • On integrated GPUs such as the GB10:
      • large synchronous downloads take longer: 212 µs instead of 85 µs at 4 MiB on an idle GB10 (#2103). Every other synchronous readback now stages the same way (#2289);
      • Qwen 3.5's prompt states sit in device memory, and the startup line says so (#2113).
    • Nemotron on Metal: saved prompt states take their identity from the kernel source text, so after upgrading they aren't reused. The first long prompt prefills again, and is kept as before from then on (#2263).
    • Qwen4: replies can change where a token was a near-tie, from the 1-ulp rotary-table moves. There's no setting to keep the old table (#2223).
    • Qwen3.8-27B with TF_PROMPT_ROWS=16: it's refused before loading, by name, instead of failing later as "TargetBinding" (#2298).
    • DeepSeek-V4.1 DSML calls: a call malformed after its name may already have streamed when the whole reply keeps it as text (#2201).
    • Qwen3.8-27B on Metal: replies change only where a NaN or infinity already sits in a masked key (#2106).
    • /v1/models: each entry gains the model's capability fields. Clients that read the listing strictly will see new keys (#2157).

    Thanks

    • @AbrahamCete (#2247, #2374)
    • @AdrianBinDC (the #2310 report, fixed in #2313)
    • @Arminova (#1866, #1942, #2244)
    • @atakann (#2290, #2330)
    • @Bizuayeu (#1423, #1580, landed in #2162; #2211, #2226, #2327, #2333, #2403)
    • @BlivionIaG (#1514)
    • @BobClawblaw (#2294, and finding and diagnosing #2301, fixed in #2303)
    • @cshintov (#2106)
    • @Defilan (#2412)
    • @devopsfortunato (#2110, #2123, #2198, #2201, #2248, #2249, #2276, #2297, #2380)
    • @ElderOrb (#2178, #2284)
    • @gilby (the first Clef-Flash encoder port, #1361, in #2048)
    • @gordonhatusupy (the #2386 report, fixed in #2387)
    • @goshi (#2182)
    • @jayleaton (#1698)
    • @jishnuvenugopal (#2331, #2377)
    • @jschmied (#2011, #2060, #2113, #2229, #2230, #2232, #2238, #2243, #2263, #2282, #2376, and the report behind #2362)
    • @jungjipdo (#2229)
    • @laidick (the #2256 report, in #2276)
    • @laudney (#1792, #2048, #2262, #2357, #2383)
    • @Maxrio9 (#1845)
    • @ppardus (#2216)
    • @shuuul (#2103, and the #2082 report)
    • @ThinkOffApp (#2088, and the run that found #2397's dropped states)
    • @tolewis (#2155, #2269)
    • @Whq02 (#2363, #2364, #2365)
  16. 1.2.3

    Expandir

    GitHub Release

    TensorFold 1.2.3

    1.2.3 is mostly fixes, memory and serving work, with a few new paths.

    • HIP: dots.mocr, Qwen3-Embedding-8B and Qwen3-Reranker-8B are served natively, and Qwen 3.5 loads BF16 checkpoints through rocBLAS.
    • Metal: the Qwen3.8-27B engine serves Qwen3.5-MoE checkpoints, including Ornith-1.5-122B on one M5 Ultra.
    • PDF documents work as input with --vision --vision-pdf.
    • Intel GPUs: LFM3-1.7B runs on Iris Xe.
    • Kimi K3 and K3.1 are reachable through the native server on Metal, but only as groundwork. They have run on a synthetic graph, not on real weights; see below.
    • Speed: Flash Next stops a long prompt from stalling a running reply on Macs without tensor units, and decodes faster on a GB10, at --tp 2 on two GB10s and on a Strix Halo. A GLM cold prompt at TP=3 gets its first token sooner.
    • Memory and correctness: a prompt cache you size with --prompt-cache-gib now gets that size on CUDA KV pages. Cached-token counts can't exceed the prompt. A few loaders and decoders refuse bad input they used to accept.

    Where a speedup was checked for equal output, its line says so. Opt-in switches change nothing unless set. A few changes move replies, change what a request returns, or refuse a start that used to go ahead. They're listed under What can change for you.

    Headline numbers

    Each number names its machine. Where replies were checked against the base, the line says how.

    • Flash Next NVFP4 on two GB10s at --tp 2: plain decode is 21% to 23% faster, drafted decode 9% to 11% faster at one stream and 76% to 77% at two, and prompts about 6% faster. Each rank holds 2.62 GiB less of the model and a stream's KV at 65,536 tokens takes 40% less, with replies token-equal to one GPU (#1784).
    • Flash Next on an M3 Ultra, --parallel above one: a 1,024-token reply beside a 64K prompt finishes in 8 s instead of 48 s. The prompt's first token comes at 54 s instead of 90 s, with the same tokens (#2167).
    • Flash Next on an M3 Ultra, a lone reply at --parallel above one: it runs as fast as at --parallel 1. Sampled replies are 12% to 19% faster than before and greedy ones about 4%, with the same tokens (#2199).
    • Flash Next on an M3 Ultra with --ssd-experts: about 11% less read from disk at 17 and 35 GiB pools, and a mixed workload took 8% less time at 35 GiB, with the same replies (#2209).
    • Flash Next FP4 on a GB10: one-stream decode up to 11.5% faster (chat +8.7%, code +6.3% at temperature 0), with every reply token-equal to the previous version (#1786).
    • Flash Next on a Strix Halo (gfx1151): the first request after start decodes at 35.8 tok/s instead of 24.4, and a cold 7K-token prompt starts in 28.9 s instead of 48.4 s, with every reply token-equal (#1615).
    • HIP on a gfx1151: Qwen3.8-27B at 16 streams goes from about 51 to 75 tok/s on code, with the same bytes. These are the contributor's own records, as we have no AMD GPU (#1694).
    • GLM-5.3-Flash on three GB10s at TP=3, with TF_GLM_ROCE_MULTI=1 and TF_GLM_CHUNK_SOLO=4096: a cold prompt's first token comes about 5% sooner, with the same tokens (#2116).
    • GLM-5.3-Flash on two GB10s at TP=2 with --drafter: TF_GLM_CHUNK_SOLO=4096 now serves, and a cold prompt's first token comes 6.1% sooner at 32K and 7.0% sooner at 64K, with the same tokens, for 80 MiB more a rank (#2219).
    • GLM-5.3-Flash on an M3 Ultra: about 14% more throughput at four streams when drafts land often, with the same tokens. This was measured on 40 of the model's 45 layers, not the whole model (#2111).
    • GLM-5.3-Flash csf0_v1 checkpoints on CUDA: about 13 GiB less across a TP=2 pair, with the same tokens (#2041).
    • Flash Next MLX 4-bit on a GB10, against 1.2.2: one stream is 3.5% to 6.6% faster and eight streams 1.1% to 3.8%, with prompts level and the same tokens. Decode after a long prompt is faster in 18 of 20 of our cells, by 2.3% to 14.8%; two cells where drafts land very often are slower, 32K by 5.2% and 64K by 3.1%, the cost of the same draft chain rule.
    • Qwen3.8-27B on an M5 Ultra, against 1.2.2: level, within 0.4% in every sweep and within 0.9% on decode after a 32K prompt, with the same tokens.
    • Nemotron on a GB10, against 1.2.2: level over 18 repeats a build at four streams, the one width where the same request can swing widely between runs, on both versions.
    • Qwen3.8-27B on a GB10, against 1.2.2: level, within 0.7% in every sweep and on every prompt and decode cell from 2K to 64K, with the same tokens.

    New models and backends

    • dots.mocr on HIP: the publisher's BF16 dots-studio/dots.mocr OCR checkpoint is served natively, with its own template, tokenizer, image processor and EOS ids. It's token-exact against its model card's example (#1938, part of #1927).
    • LFM3-1.7B on Intel GPUs through XPU, Iris Xe first (#1696).
    • Qwen3.5-MoE on Metal: the Qwen3.8-27B engine serves qwen3_5_moe checkpoints: Ornith-1.5-122B on one M5 Ultra from the publisher's own 4-bit MLX weights, with routed and shared experts, its DFlash2 drafter, images, the prompt cache and several streams. The dense 27B is unchanged (#1125).
    • Qwen3-Embedding-8B on HIP: served as Qwen publishes it (BF16) through /v1/embeddings on a Radeon AI PRO R9700 (gfx1201). Inputs of up to 32,768 tokens batch to the same vectors as alone, and dimensions takes any width from 32 to 4,096 (#1978).
    • Qwen3-Reranker-8B on HIP: POST /v1/rerank answers with results (index, relevance_score, document), and takes top_n and return_documents. Each document's prompt is the model card's template, token for token (#1981).
    • GGUF, groundwork: Qwen3.8-27B on Metal gains a host adapter for GGUF metadata, tensor names and exact affine preparation. GGUF serving remains unavailable (#2064, #1920).
    • Qwen 3.5 on HIP loads BF16 checkpoints with their Hugging Face tensor names, and runs the BF16 projections through rocBLAS. MLX checkpoints are unchanged (#2046).
    • Nanbeige4.3-33B-INT4 on Metal: Nanbeige's own int4 release (compressed-tensors, groups of 32, 21.0 GiB) is served as published, read in place. Any other quantization of the family is refused by name. Against a float64 reference over 1,500 teacher-forced positions on an M5 Ultra, the engine's mean KL is 0.0044 with 97.1% top-1 agreement. Prompts need Metal 4 tensor units, so M1 to M4 Macs are refused at load (#1782, part of #1414).
    • Kimi K3 and K3.1 on Metal, groundwork only (#2221, #2192):
      • The native server renders chat, reasoning and tool calls for both.
      • They have run only on a synthetic four-layer graph. No real weights have run yet, and token ids against the release's tokenizer are still to be checked.
      • The full 1.45 TB checkpoint doesn't fit one Mac through this path.
      • K3.1 is capped at 2,047 tokens until its sparse index is qualified. A longer request is refused with that limit's message.
      • A K3.1 config's dsa_config is checked, and refused where unsupported, instead of being read as K3.
      • Images, external draft heads, TP, learning, disk recall, structured-output enforcement and budgets are refused by name.
    • The native tokenizer reads a Qwen2 checkpoint's slow-tokenizer files when it ships no tokenizer.json. Structured output still needs tokenizer.json (#2225).
    • Clusters: the fabric layer can link nodes over ConnectX (RoCE v2), the first step of #1594 (#1957).
    • Clusters, groundwork: the fabric layer gains a pipeline stage link, a TCP ring between ranks on Linux and macOS that carries each round's plan and hidden rows. Each link proves a shared key both ways before any frame. Nothing serves through it yet (#2012, step 1 of #2005).

    Speed

    • Flash Next:
      • At --tp 2 on CUDA, each rank computes its own output columns of the dense projections instead of both repeating the whole projection, with the same replies as one GPU. The numbers are under Headline numbers (#1784).
      • On a GB10 beside another open stream, a greedy chain stops at 0.6 per draft, and a round with more than four streams drafting drafts greedy chains 6 deep. That fixes #1786's loss at eight greedy streams: MLX 4-bit chat goes from 288.8 to 303.8 tok/s and code from 336.9 to 358.5, FP4 stays level and every reply keeps its bits. TF_FLASHNEXT_GREEDY_WIDE sets the width and TF_FLASHNEXT_SHARED_DRAFTS=0 keeps the alone rule (#2160).
      • On a Mac without tensor units, with --parallel above one, a long prompt beside a running reply no longer slows both. Replies take 0.8 of the time by default, and the prompt's steps grow from 32 to 512 rows after eight. Numbers are above. --decode-share 0 keeps the old order (#2167, #1893).
      • FP4 on CUDA: drafted rounds send the first token earlier, keep the n-gram table resident, draft deeper on greedy requests and replay rounds through CUDA graphs (#1786).
      • On a Mac without tensor units, with --parallel above one, a lone reply runs as fast as at --parallel 1, and a second request joining it leaves it unchanged (#2199).
      • With --ssd-experts, the expert pool counts uses, so an expert used once leaves before one used again (#2209).
      • On HIP, the n-gram table's mapped tensors are read with random-access advice, so a gather's single-row reads fault only their own pages (#1615).
    • HIP:
      • A lane round of more than four rows reuses cached weights instead of reading them from memory again for each row block, and makes a chunk's code pairs once. On gfx1030, the 2x8 tiles that would spill keep their old loop (#1694).
      • Qwen 3.5's prompt convolution writes q, k and v to their own rows, which drops 144 of the 27B's 160 column copies, with the same results (#2117).
      • Qwen 3.5 prompts run the residual add and post-mixer norm in one launch, with the same bytes (#2099).
      • Qwen 3.5 decode reads the BF16 router rows the model already holds, with the same tokens (#2007).
    • GLM-5.3-Flash on CUDA:
      • At three ranks or more, where TF_GLM_ROCE_MULTI=1 opens the wire, TF_GLM_CHUNK_SOLO=4096 now puts a prompt chunk's exchanges in 8 pieces instead of 3.
      • TP=2 and every other combination keep 3. A set TF_GLM_OVERLAP_PIECES still wins, and rank 0 prints the count at startup (#2116).
      • TF_GLM_CHUNK_SOLO=4096 now serves beside --drafter (DFlash2), where it was refused, for 80 MiB more on each rank (#2219).
    • GLM-5.3-Flash on a Mac without tensor units learns what a shared round's row costs on that chip, instead of pricing it from an M5 Ultra's table, so it stops over-drafting with several requests at once.
    • CUDA on the RTX PRO 4500 (sm_120):
      • The dense 27B's MLP uses a 128-row tile, byte-equal to the 64-row one (#1730).
      • Attention takes the MT2 FP8 path from 8,192 cached tokens, token-equal to the default path (#1731).
    • Rerank on HIP: a request's documents go to the engine as one decision, and Qwen3-Reranker-8B packs them into as few prompt passes as fit, with the same responses byte for byte. 16 documents of about 260 tokens take 2.69 s instead of 3.22 s on a Radeon AI PRO R9700 (#2039).
    • HIP on the gfx1151 iGPU routes a many-expert prompt through a 64-row tile, with up to 12 expert pairs an item and prompt chunks capped at 1,024 rows. Other GPUs are unchanged (#1658).
    • Opt-in:
      • --policy matrix=on runs Qwen3-8B's BF16 projections on a new WMMA tile on RDNA4 (gfx12). On an R9700, Qwen3-Embedding-8B embeds 100 short inputs in 0.99 s instead of 2.47 s, and Qwen3-Reranker-8B ranks 16 documents in 1.39 s instead of 3.22 s, or 1.00 s with the batching above. The tile's fp32 sums are less precise than the dot2 chain's, so the default keeps the dot2 tile and its bits. gfx1200 is unmeasured (#2034).
      • TF_LOAD_PREFETCH adds checked read-ahead to CUDA loaders on Nemotron, Bolt, MiniMax M3, Kolibri-1, Spark 2.5 and DeepSeek-V4.1, off unless set. GLM keeps its default of 16 readers. This extends @jschmied's #1928 mechanism (#2033).
      • TF_GLM_COPIES=1 adds context copies for GLM on CUDA, verified and priced with the same row costs as drafts. Tokens are unchanged (#2146).
      • TF_KV_SHARE=n keeps Kolibri-1's prompts as its KV pool's pages, as Gemma 4's already can, with replies equal to a fresh prefill. It costs about 3.5% decode after a short cold prompt on Kolibri-1 (#1755, part of #1657).
    • llama with --drafter: a probe stays armed until a round verifies its drafts, so a request that once stood its drafter aside gets drafting back. On an M5 Ultra (Nanbeige4.3-33B with a 3B drafter), the case that had stood aside decoded at 17.15 tok/s instead of 11.86, and all 72 replies matched (#2169, closes #2168).
    • GLM on CUDA at TP>1 with DFlash2: the drafter reads complete prompt taps on every rank. It read stale rows under the split prompt reduce. Acceptance is back to the gathered level, with every reply unchanged (#1623).

    Memory and long conversations

    • --prompt-cache-gib N on CUDA with KV pages now keeps N GiB before the pool sets aside windows past the engine's own. Before, a named cache could be cut to almost nothing at some room sizes. Unset, the order is unchanged. The startup line now counts the windows the pages hold (#2220).
    • GLM-5.3-Flash csf0_v1 checkpoints on CUDA: NVFP4 routed experts carry their scales at block 32 as a base plus a 4-bit offset. That saves about 13 GiB across a TP=2 pair, with the same tokens. Block-16 checkpoints are unchanged (#2041).
    • Kolibri-1 on CUDA keeps its full-attention layers' caches in pages of the core KV pool, as Gemma 4 does, with identical tokens when the prompt store is off (#1620, part of #1657).
    • Qwen 3.5 on CUDA: the mixers' and the dense MLP's scratch rows share one region. That frees 0.46 GiB on the 27B, with the same tokens and speed (#1476).
    • Saved prompt states on disk now include the profile settings that can change a family's arithmetic. Changing one of those settings starts a fresh disk namespace, so the first long prompt under it prefills again (#2131).
    • Disk prompt states at startup: when allocation fails, valid files are kept and the failure is reported, instead of the files being treated as damaged (#2134).
    • DeepSeek-V4.1 on CUDA reads --prompt-cache-gib as the kept states' resident limit on every rank (0: none resident in RAM; with TF_DSV41_SESSION_DISK an evicted chat is parked on disk). With TP > 1, rank 0 sends its limit to the others at startup (#2056).
    • GLM on CUDA with TF_GLM_KV_SHARE: a stream with an image now keeps and resumes its prompt, so one screenshot no longer makes every later turn fill the whole prompt again (#1833, for #1828).
    • Qwen4 and tensor-parallel loaders on CUDA: Qwen4 drops its checkpoint from the page cache after loading, and tensor-parallel loaders drop theirs only once every rank has finished, so ranks on one host no longer evict pages another is still reading (#1887).

    Serving, build and API

    • PDF documents as input with --vision --vision-pdf (#1820).
    • Living Weights: tensorfold slide audit measures each learned fact's pocket neurons against its questions, subject contexts, other facts and 256 fixed general prompts. It's read-only: no weight, lesson or check changes (#1980).
    • Tool calls:
      • DeepSeek-V4 and V4.1 tool calls stream their arguments as they're written, from the first parameter's end, like GLM and XML calls. A call whose first parameter is the long one still arrives when that parameter closes (#1975).
      • GLM tool calls stream their arguments as the model writes them, and the joined pieces equal the whole reply's arguments (#2050).
      • In one-call tool mode, a stream sends any prose held after a hidden call envelope at the finish, so the streamed content equals the whole reply (#2049).
    • cached_tokens and prompt_tokens_cached_total can no longer exceed the prompt, whatever a backend reports (#1899).
    • Retryable 503s on the OpenAI-shaped routes name their wait in a fixed code: server_restarting, engine_loading, engine_reload_failed, engine_busy, engine_unavailable or memory_pressure. A parked model's reload now says engine_loading or engine_reload_failed instead of server_restarting, and a busy embeddings engine says engine_busy. Status codes, Retry-After and the drain's body are unchanged (#2202, for #2135).
    • /v1/embeddings: a batched request no longer hangs on a backend that prefills many prompts at once (#2047).
    • Decision routes include context_length_exceeded on context-limit errors for text-only prompts, keeping their status and text (#2183).
    • --reasoning-effort accepts minimal and max, from the shared request vocabulary. Template coercion and --no-thinking are unchanged (#2139).
    • capabilities and model discovery say what each server does (#2139):
      • HIP Qwen format discovery names each admitted MLX bit width and group, such as mlx-q4g64 (#2188).
      • HIP Qwen 3.5 and Qwen 3.5-MoE no longer list BF16, since those servers refuse a BF16 checkpoint for chat.
      • Fish Audio Drama 3 on Metal lists its NVFP4 expert weights beside FP8.
      • GLM-5.3-Flash on CUDA lists the EXL3 format its loader already serves.
      • Discovery omits reasoning for engines that disable it, including HIP OCR and scoring models.
      • It keeps reasoning.default_effort for templates that take reasoning_effort as free text.
      • Nemotron-H on Metal reports its 262,193-token limit in /v1/models when neither the checkpoint nor --context sets one.
      • The docs say what capabilities --json's env covers.
    • Model discovery reads one engine-info snapshot under the idle-unload lock, which avoids reload races (#2186).
    • Flash Next on Metal reports a filling prompt's progress, so the dashboard shows what's left, and TENSORFOLD_PREFILL_ORDER=srpt works from a server's first long prompt (#2194).
    • DeepSeek-V4.1 logs its resolved serving settings at start-up, so two runs can be compared setting by setting (#1395).
    • --profile stable now covers GLM's host KV tier (TF_GLM_KV_HOST, TF_GLM_KV_HOST_SHARED). Stable sets no value, so nothing changes by default (#1660).
    • Nemotron on CUDA: TF_KV_PAGES=0 and TF_KV_PAGES=all are now reported as overrides at startup and in capabilities, for Nemotron-H and Nemotron Omni, instead of "registered overrides: none". How the value is read is unchanged (#2061).
    • Clusters: cluster check, cluster status and serve's preflight exit 1 when a configured model can't be planned (#2069). The planner gives a dense model's rounds zero expert cost instead of dividing by zero, so its round times are finite (#2070).
    • Community benchmark receipts (v2) can record 1 to 8 loaded ranks and each node's hardware, in separate single-node and multi-node categories. v1 is unchanged, and v2 uploads stay off for now (#974).
    • tools/bench_fill.py measures a long prompt filling beside a running reply, in both arrival orders, with every reply checked against its run alone (#2154).

    Fixes

    • GLM on CUDA at TP=2 with TF_KV_PAGES=on and TF_GLM_KV_HOST=1: a long first prompt no longer faults (#2173, fixes #2119).
    • Qwen 3.5 on CUDA: a kept path longer than the 48-row pending buffer is kept at once, which fixes the occasional INVALID_VALUE on deferred keeps (#1982).
    • GLM-5.3-Flash on CUDA reads block 32's scales only for a csf0_v1 checkpoint, and every rank refuses a scale offset past 0x7E by name (#2091). TF_GLM_PREFILL_REDUCE=ring warms up only each rank's ring neighbours at startup (#1971).
    • Qwen 3.5's attention-layer pattern (layer_types, full_attention_interval) is read the same way on Metal, CUDA, HIP and XPU. A layer_types list that contradicts the interval is refused, naming both keys (#2086, fixes #1863).
    • MiniMax-M3 on Metal refuses logprobs with an external drafter before prefill. Plain decoding keeps logprobs (#2139).
    • Six remaining fp32-to-bf16 conversions use core's shared rounding. Every non-NaN input gives the same bits, and a NaN now stays a NaN (#2052).
    • Dory on CUDA takes its RoPE tables from core's exact helper, matching transformers' fp32 values (#2035, part of #1852).
    • PNG pictures with a tRNS key past 255, or a 16-bit key, decode with Pillow's transparency. Pictures without such a key decode as before (#2100).
    • Qwen3.5-MoE's prompt sorts its experts' rows in one threadgroup, in the same order as the serial sort (#1799).
    • Cortheon keeps a source, link, page or query that differs only in spelling, and resolves . and .. without dropping empty path segments (#2036).
    • The kernel contract:
      • frees each kernel's device buffers once its gates are done, so the full suite fits on a 16 GiB card (#2042);
      • checks Qwen3.8-27B's attention_io at its other two head shapes, GQA16 and the 9B's 16 over 4 (#2063).
    • Tests and builds:
      • test-native no longer crashes on the Qwen27 lanes' facts (#2122);
      • six host-test steps that had gone red pass again (#2024);
      • the Recall tests pass on a machine with less than 4 GiB free (#2051);
      • passing test binaries no longer print, so zig build test shows failed command: only when a test fails (#2153);
      • XPU's dense 27B takes its kernel sizes from one shared header, with byte-identical SPIR-V (#1425);
      • HIP's OCR families share one host protocol, with the same replies (#2040).
      • HIP's tf_sum_partials records follow ROCm 10.1's hipcc, taking 8 limit problems off the contract (#2233).
    • Living Weights: a lesson's extra wordings are seeded from the lesson, so the same lesson samples the same wordings on each run. A refused lesson round names the sub-check that failed (#1587).

    Docs

    • CUDA docs match the code. README, RUNBOOK and the recipes say which families refuse an A100 at startup, that no NVFP4 or FP8 model has run on sm_80 to sm_89, and that the largest recorded run is three GB10s (#2227).
    • Recipes:
      • The Qwen3.5-2B recipe says which listed format loads at its geometry: only mlx-q4g64 (#2139).
      • The Flash Next recipe says native Metal takes --ple-on-ssd (#2068).
      • The GLM CUDA recipe covers TF_GLM_OVERLAP_PIECES at TP=3 with TF_GLM_ROCE_MULTI (#2067).
    • README: the GLM-5.3-Flash Jammed XSFP4 row (#2114).
    • THIRD_PARTY_NOTICES.md names the model release and library code that some families' files follow, with the LFM Open License text (#2197).

    What can change for you

    These change what some requests get, or stop a start that used to go ahead.

    • --prompt-cache-gib N on CUDA with KV pages keeps N GiB first, so a command that already names N splits memory differently after the upgrade: a bigger cache, fewer pool pages. To get the old split, name a smaller N or leave it unset (#2220).
    • Saved disk prompt states for Qwen and Flash Next on CUDA from earlier versions aren't reused. The first long prompt after the upgrade prefills again, once (#2131).
    • Flash Next on a Mac without tensor units, --parallel above one: a running reply now takes 0.8 of the time beside a filling prompt. --decode-share 0 keeps the old order (#2167).
    • GLM-5.3-Flash at three ranks or more with TF_GLM_ROCE_MULTI=1 and TF_GLM_CHUNK_SOLO=4096 uses 8 exchange pieces by default. TF_GLM_OVERLAP_PIECES=3 keeps the old count (#2116).
    • Dory on CUDA: its RoPE values moved by up to 5 ulp to match transformers, so replies can change where a token was a near-tie. There's no switch back; the new tables are the reference's. Decode speed is unchanged within 0.3% on a GB10 (#2035).
    • A NaN in six fp32-to-bf16 conversions now stays a NaN, where it became a finite value before (#2052).
    • PNG pictures with a tRNS key past 255, or a 16-bit key, now decode with transparency, so a reply about such a picture can change (#2100).
    • DeepSeek-V4 and V4.1 with stream: false: a reply cut by length inside a DSML tool call now returns that call, not text (#1975).
    • Streaming clients get GLM tool-call arguments in pieces as they're written, and in one-call tool mode the held prose arrives at the finish (#2050, #2049).
    • cached_tokens is capped at the prompt's length (#1899).
    • Retryable 503s carry a code, and a parked model's reload is no longer reported as server_restarting (#2202, for #2135).
    • Decision routes add context_length_exceeded to a text-only context-limit error.
    • capabilities: HIP Qwen 3.5 and Qwen 3.5-MoE no longer list BF16, and discovery omits reasoning for engines that disable it (#2139).
    • /v1/embeddings on every family refuses a whitespace-only text, and names an input longer than the context with its token count (context_length_exceeded) before the batch limit (#1978).
    • /v1/rerank: only an engine that declares a reranker answers. Every other server returns HTTP 400, and a reranker server refuses the other model routes by name (#1981).
    • The lane host's score queue stops at a drain's deadline: the running score finishes and queued ones fail without running. This also reaches /v1/decisions on Flash Next on CUDA (#1981).
    • DeepSeek-V4.1 at TP > 1: a TF_DSV41_SESSION_RESIDENT_GIB set on rank 0 wins. Set on another rank, it must equal rank 0's limit or every rank refuses to start (#2056).
    • New refusals:
      • MiniMax-M3 on Metal: logprobs with an external drafter (#2139).
      • Qwen 3.5 on every backend: a layer_types list that contradicts full_attention_interval. XPU now checks a present config.json at load (#2086).
      • GLM-5.3-Flash on CUDA: a csf0_v1 scale offset past 0x7E (#2091).
      • Kimi K3.1: requests past 2,047 tokens, and an unsupported dsa_config (#2221, #2192).
    • Clusters: cluster check, cluster status and serve's preflight exit 1 when a configured model can't be planned (#2069).
    • Cortheon keeps sources and links that differ only in spelling, so a turn can see different fetched content (#2036).

    Thanks

    • @AbrahamCete (#1694, #2007, #2099, #2117, #2233)
    • @Arminova (#1786, #2160)
    • @BadAd84 (#1623)
    • @Bizuayeu (#2041, #2067, #2091, #2114, #2116, #2173, #2219, #2220)
    • @BlivionIaG (#2042, #2147)
    • @BobClawblaw (#1125, #1782, #1799, #2097, #2122, #2169)
    • @cshintov (#2063)
    • @devopsfortunato (#2049, #2050, #2177, #2202)
    • @dinadur (#2167)
    • @diwakergupta (#1476)
    • @garvrao80 (#2061, #2098)
    • @gilby (#1615, #1658)
    • @joernchen (#1820)
    • @jishnuvenugopal (#2024, #2092)
    • @jrb-ai (#1982)
    • @jayleaton (#1595)
    • @joshuaswarren (#1992)
    • @jschmied (#1620, #1696, #1755, #2012, #2127)
    • @laudney (#1784, #1938, #1978, #1981, #2034, #2039, #2040, #2046, #2047)
    • @Maxrio9 (#1730, #1731)
    • @MiaAI-Lab (#2219's patch, and finding the prompt-cache drop fixed in #2220)
    • @ppardus (#2036)
    • @swbiggart (#2068, #2069, #2070)
    • @shuuul (#2100, #2225)
    • @ThinkOffApp (#1957)
    • @tolewis (#1425)
  17. 1.2.2

    Expandir

    GitHub Release

    TensorFold 1.2.2

    1.2.2 adds new models on CUDA and HIP. Qwen3.8-Flash-Next serves NVIDIA's own NVFP4 checkpoint at --tp 2. GLM-OCR runs natively on HIP, and Qwen3.5-9B runs on Metal on the 27B's engine. Qwen3.8-27B EXL3 checkpoints prefill 38% to 42% faster on a GB10, HIP decode is faster on Ryzen AI Max, and Flash Next reads its per-layer embeddings from an SSD much faster on Macs. CUDA and Metal loaders release the page cache once the weights are loaded. CUDA loaders read checkpoints ahead, so they load sooner. zig build -Dgpu=<gpu> builds a much smaller server for one GPU. Readers of safetensors and other checkpoint headers across the engine now refuse a malformed file instead of crashing on it.

    Where a speedup was checked for equal output, its line says so. Opt-in switches change nothing unless set. A few changes move replies or refuse a start that used to go ahead; they're listed under What can change for you.

    Headline numbers

    Where a number's replies were checked against its base, its line says how.

    • Qwen3.8-27B EXL3 on a GB10: prompt prefill 38% to 42% faster from 2K to 64K tokens (494 to 705 tok/s at 2K), and decode 5% to 12% faster, with the same tokens (#1467).
    • HIP decode on a gfx1151: 7.5% to 18.9% faster on Qwen3.6-35B-A3B and Qwen3.8-27B at 32K and 64K, with identical tokens (#1932).
    • Ryzen AI Max (RDNA 3.5): Qwen3.6-35B-A3B chat decodes about 18% faster with drafts on, and Qwen3.8-27B about 5%, with the same tokens (#1855).
    • Flash Next on an M5 Max with --ple-on-ssd: decode 36% to 39% faster (75.8 to 105.1 tok/s on code), and a cold 2K prompt in a third of the time, with the same replies (#1462).
    • Flash Next on a gfx1151: the first cold prompt runs in 28.55 s instead of 48.44 s, and the page cache falls from 31.5 to 2.8 GiB (#1611).
    • GLM on three GB10s at TP=3: cold prompts of 32K to 167K tokens finish 5% to 14% sooner, with identical replies (#1577).
    • Flash Next on a GB10: a cold start drops from about 74 s to 48 s with the direct expert load (#1901). Cold prompts run about 4% to 5% faster, with identical tokens (#1764).

    New models and backends

    • nvidia/Qwen3.8-Flash-Next-NVFP4 on CUDA at --tp 2, on two GPUs, one rank a host (#1771, for #1754).
      • The BF16 attention, DeltaNet and shared-expert projections, the n-gram table (E4M3 rows with one BF16 scale) and the MTP head's E4M3 experts (128x128 block scales) load as stored.
      • Each rank owns half the routed experts whole, so replies are one GPU's bytes.
      • On two GB10s, drafted replies equal "draft": false (6 of 6), and concurrent replies equal their solo runs in 8 of 8 cells.
    • The CUDA server serves --tp, with --rank, --master and --master-port. Families that open without ranks refuse it by name, and --idle-unload is refused with it.
      • The ranks compute and compare a cached digest of every checkpoint byte, so TENSORFOLD_CHECKPOINT_SHA256 is no longer required (it still overrides the digest) (#1771).
    • GLM-OCR on HIP: the publisher's BF16 zai-org/GLM-OCR, served natively. Its CogViT image encoder and GLM decoder run in Zig and HIP, with no Python or libtorch. Every reply was checked against the model card's Transformers examples (#1940, part of #1927).
      • Groundwork for the OCR models (#1929, #1930, #1931, #1933):
        • a family can declare that its replies carry no reasoning block;
        • the tokenizer supports NFKC and NFKD normalizers;
        • HIP has a shared rocBLAS BF16 projection, loaded as an optional library;
        • the prompt cache can count repeated keyed prompts as repeats.
      • No model already served decodes differently.
    • Qwen3.5-9B on Metal runs on the 27B's engine, instead of being refused as an unqualified shape (#1826, part of #503). The dense Qwen Metal loader checks config-derived projection geometry through shared structural checks, and keeps the 9B and 27B qualification policy (part of #503).
    • DeepSeek-V4.1 on Metal, part one:
      • its kernels, the decoder over every layer, Engram, prompt chunks and DSpark drafts, each checked against float64 references (#1710-#1719);
      • its CSA2 attention, matvecs and glue kernels, under the kernel contract (#1709, #1710, #1711);
      • serving follows with #1720-#1722.
    • Intel GPUs without DPAS (Gen12LP): a server built with -Dxpu-dpas=false serves Nemotron-H. It refuses the Qwen3.8-27B runner and Gemma 4 E4B by name, and Nemotron's prompt projection takes 8 x 4 tiles (#1692).
    • Groundwork:
      • core/gguf.zig reads GGUF files with every length and offset checked, and repacks Q4_0, Q4_1, Q5_0, Q5_1, Q8_0, Q4_K, Q5_K, Q6_K, Q3_K and Q2_K blocks exactly into per-group affine weights. It is the first step toward native GGUF on Apple Silicon (#1926, part of #1920).
      • Ling's grouped expert routing runs on Metal, checked against a float64 reference (#1836, part of #1247).
      • MOSS-Image computes its sampling schedule natively from scheduler_config.json, bit for bit what its scheduler sets (#1670, part of #1529).
      • Living Weights on Gemma 4 and on Qwen4 dense, step 1 each: the attention backward passes on the host, checked against independent references. Nothing served changes (#2032, #2021).
    • TensorFold Starlight, the enterprise platform, lives in its own repository, ashhart/tf-starlight, with its history (#1922, #1972).
      • It's one governed OpenAI- and Anthropic-compatible endpoint for a fleet of TensorFold engines.
      • It pins the TensorFold release it is tested with, and checks the engine contract against that release in CI.

    Speed

    • Qwen3.8-27B EXL3 on CUDA: prefill 38% to 42% faster from 2K to 64K tokens on a GB10, decode 5% to 12% faster, with the same tokens (#1467).
    • HIP decode:
      • The planned decode score takes four keys a warp on long spans and two on short ones, with the same lane order and folds: 7.5% to 18.9% faster on a gfx1151 at 32K and 64K, with identical tokens (#1932).
      • On Ryzen AI Max, one- and two-row decode launches use narrower stream tiles: about 18% faster on Qwen3.6-35B-A3B chat with drafts on, and about 5% on Qwen3.8-27B, with the same tokens (#1855).
      • Softmax stats and partial sums load sixteen values ahead and fold in the same order, with the same bits (#1961).
    • HIP Qwen3.5-family servers price shared draft rounds at the row bucket they actually run. Qwen3.6-35B-A3B with MTP at four streams no longer drops into a slower drafting mode, and models load faster. Tokens are unchanged (#1830, fixes #1695).
    • Flash Next on HIP:
      • n-gram drafts are gathered in parallel, and the checkpoint's weight pages are released after upload. On a gfx1151 the first cold prompt runs in 28.55 s instead of 48.44 s (#1611).
      • On RDNA 3.5 iGPUs (gfx1150 to gfx1153) prompts fill in 4,096-row chunks by default on one GPU, falling back to 1,024 when the larger chunk would admit fewer streams. Tokens are unchanged (#1651, fixes #1649).
      • Routing reads the checkpoint's stored BF16 router rows, with the same tokens, for about 2.5 MiB more a layer (#1614).
    • Flash Next on CUDA:
      • Prompt passes do less work with the same bits, so cold prompts run about 4% to 5% faster on a GB10, with identical tokens (#1764).
      • The MTP head's experts run on a call's last row only, the one row that reaches the draft, and replies are unchanged (#1925).
      • A partly kept window's DeltaNet rows are applied at the start of the next window, lane buffers are reused across streams, and the shared expert runs on a side stream, all with the same tokens (#1763). TF_FLASHNEXT_KEEP_LATE=0, TF_FLASHNEXT_LANE_PARTS=0 and TF_FLASHNEXT_SHARED_SIDE=0 turn each off.
    • Flash Next on Macs with --ple-on-ssd: per-layer embedding rows are read from disk in batches. Decode is 36% to 39% faster on an M5 Max (75.8 to 105.1 tok/s on code), and cold prompts take a third of the time at 2K tokens, with the same replies (#1462, fixes #1461).
    • GLM on CUDA runs a prompt chunk's MTP pass on its last row past the caches. Cold prompts of 32K to 167K tokens finish 5% to 14% sooner on three GB10s at TP=3, with identical replies (#1577).
    • Nemotron on CUDA drafts copies of earlier text in its lanes. A verified copy is tried first inside the existing verify windows, with the same acceptance rule, so replies are unchanged (#1974, part of #1910).
    • Grammar masks for constrained streams are filled in parallel across streams, with the same masks and tokens. On an M5 Ultra, Qwen3.5-2B serves 0.7% to 1.3% faster at 4 to 32 constrained streams (#1881, fixes #1455).
    • Loading:
      • TF_LOAD_PREFETCH: Gemma 4 and Qwen 3.5 on CUDA read each layer ahead while the current one uploads, so the 27B loads about a third faster on a GB10. Replies are unchanged, and TF_LOAD_PREFETCH=0 is the old path (#1928).
      • Flash Next on CUDA reads its experts past the page cache with O_DIRECT, and keeps a load's shards open. A cold start on a GB10 drops from about 74 s to 48 s, with the same replies; TF_LOAD_DIRECT=0 keeps the mapped reads (#1901, fixes #1873).
      • On top of that, Flash Next's direct load reads the next chunk while the current one packs, so its experts load about 12% faster, with replies unchanged (#1960).
      • Qwen3.8-27B with a DFlash drafter on Metal compiles the drafter head's pipeline at load, so the first request no longer waits on it (#1734).
    • The kernel contract computes its affine and GLM float64 references on worker threads, so it finishes sooner, with the same reference bytes (#1776).
    • Opt-in:
      • TF_QWEN_KEEP_LATE=1: Qwen3.5-family models on CUDA apply a verified window's kept DeltaNet rows inside the next round's slot scan, with the same bits.
        • On a GB10, Qwen3.8-27B MLX 4-bit decodes 1% to 8% faster (most at 16 streams, none slower), for about 66 MiB more a stream.
        • It stays off by default because, on by default, it failed 8 of 64 served chat requests on a GB10 with CUDA_ERROR_INVALID_VALUE. Replies are unchanged either way (#1824, #1958).
      • TF_FLASHNEXT_READOUT_ROWS=128 keeps a large shared decode round on the row kernels: the same bits, and up to 7% more throughput at 16 streams on a GB10 (#1741).
      • TF_FLASHNEXT_ATTN_LANES=1 runs a shared decode round's attention in one launch a kernel, instead of a launch per stream. The kernels are bit-equal to the per-stream launches (#1739).
      • TENSORFOLD_PREFILL_ORDER=srpt lets short replies decode ahead of a long prompt that is still filling. The prompt keeps at least a tenth of the GPU time, and replies are the same tokens (#1876).
      • Gemma 4, MiniMax M3, Kolibri-1, Spark and Dory on CUDA can opt into verified root and context copies with a four-token match. Their suffix-copy policy stays the default until each checkpoint passes its device campaign (#1910).
      • On M5 Macs, TF_ATTENTION_PV_FP32=1 keeps attention's P x V at full fp32 for Nemotron's prompt attention.
        • It's closer to float64: output cells off the nearest bf16 value fall from about 1.1M to 1.8K of 8.6M.
        • The cost is large: prompts are 30% to 87% slower at 2K to 32K (#1882).

    Memory and long conversations

    • Page cache on load: loaders drop their checkpoint from the page cache once the weights are loaded, so unified memory doesn't hold them twice. Files read at runtime (PLE rows, DeepSeek's Engram tables, Metal's SSD expert and PLE files) are kept.
      • On CUDA, every family's loader does this; a served Qwen3.8-27B on a GB10 frees about 15 GiB (#1884).
      • On Macs, the q27, Nemotron, LFM2 and Qwen3.5 loaders do it, with the same replies: on an M5 Ultra a loaded Qwen3.8-27B frees about 14 GiB, and Nemotron 3.5 Lightning about 17 GiB (#1885).
      • So do GLM, GLM-DSA and Flash Next on Metal (#1888).
    • Gemma 4 on CUDA keeps its global layers' caches in pages of the core KV pool (#1619).
      • With TF_KV_SHARE=n, its prompts are kept and resumed as pool pages, with sliding-window tails kept per stream and the MTP assistant's pages bound to its cache.
      • Resumed, concurrent and drafted replies equal their plain runs. Unset, tokens and speed are unchanged (#1883).
    • GLM on CUDA, opt-in: TF_GLM_KV_HOST keeps the KV pages' latent rows in pinned host memory, for a 1M-token window on two 96 GB cards. Unset, the engine is as before, with identical tokens at TP=2 on two GB10s (#1795, part of #1794).
    • GLM on CUDA at TP=3, opt-in: TF_GLM_KDA_PAD=1 packs the fused KDA input to an even width, carried in the fingerprint every rank agrees on. Unset, the engine is unchanged (#1545).
    • Nemotron on Metal, opt-in: TF_NEMOTRON_METAL_KV_PAGES=1 takes KV pages as a reply grows, so a short chat holds 1 page instead of 17 (#1837). With it off, the paged checks cost one null check a pass (#1914).
    • On a CUDA card too small for an EXL3 checkpoint's embedding beside its window, the Qwen3.5 engine maps the embedding rows from host memory instead of refusing to start. Where they fit on the card, they stay there (#1678).
    • GLM-5.3-Flash on Macs with --learn-conversations: a prompt state restored from disk is charged at its full size. The prompt cache no longer grows past its budget, by about 2.5 GB a restored state at 130,000 tokens (#1818, part of #1572).
    • Images in the prompt cache: a cached state keeps exact image identities (position, rows, grid and a content hash, never a path). So a state is never resumed for a different, moved or re-gridded image. Text-only prompts are unchanged (#1962).
    • Lane hosts release a stream that finishes on its first token when its reply ends; before, it leaked until the server stopped. They also gain a byte ledger that families can opt into; no family uses it yet (#1945).
    • Drama speech on CUDA, opt-in: TF_DRAMA_REFERENCE_CACHE=N reuses a catalog voice's reference prefill across requests, as Metal does (1 to 16 voices, each up to 61.4 MiB plus 46 KiB a saved row) (#1745).
      • It's checked by host tests against a fake lane, and not yet measured on a GPU.
      • The default 0 keeps none, and the default voice is unchanged.

    Serving, build and API

    • zig build -Dgpu=<gpu> builds one stripped server for one GPU, with every model family (#1936, fixes #1934).
      • It's about 69% smaller on CUDA (sm_80, sm_86, sm_89, sm_120, sm_121 or spark), and 58% smaller on HIP (a gfx name).
      • A CUDA build refuses a GPU of another SM at startup, naming both.
    • serve --prompt-cache-disk DIR is a shorter spelling of --learn-conversations --learn-dir DIR, with the same limits (#1908).
    • serve --profile stable names today's defaults explicitly (#1944, #1959).
      • Startup reports the profile, and any registered switch set away from it.
      • Seven CUDA KV switches, and GLM's TF_KV_PAGES, are read through one registry, with environment values winning byte for byte.
      • fast-exact and fast are refused until qualified.
    • On HIP, an integrated GPU counts the card's own memory only when sysfs confirms the firmware carve-out. Otherwise it keeps the system's count, and the start-up line says which it used (#1963).
    • CUDA kernels share their duplicated device primitives; the machine code is identical on sm_80, 86, 89, 120 and 121 (#2018, closes #1409).
    • HIP loads a shared expert wider than the routed experts beside the stack instead of refusing it, with the same tokens (#1612). Flash Next on HIP loads oMLX checkpoints whose MTP head sits at the top-level mtp.*, so their drafts work (#1613, fixes #1598).
    • Cortheon:
      • reads a GitHub file as raw text from GitHub.com and www.github.com too;
      • keeps links whose scheme is written in capitals;
      • reads a link whose tag breaks after a carriage return (#1949);
      • finds closing tags in one pass, so many unclosed tags no longer take quadratic time (#1898).
    • Compaction keeps a memory note sent as text parts instead of summarizing the conversation again (#1939).
    • The proposal and pull-request templates ask for proof and an opt-in for any change to default-path output tokens, planted controls for new kernels, and the --version output (#1596).

    Fixes

    • Malformed checkpoint files are refused before anything large is read (part of #1872). Before, they could crash the loader, or read past a buffer.
      • Header lengths, entries and tensor ranges are checked through core's safetensors reader in the Metal vision towers' shard reader and the cluster planner (#1983), the Nemotron XPU loader and the XPU safetensors reader (#1919), the Living Weights view (#1923) and Flash Next's embedding shard on CUDA (#1917).
      • H3 on CUDA (#1906) finds each tensor by its real header entry, and loads spaced JSON headers.
      • Also covered: GLM's DFlash2 drafter on CUDA (#1904), DeepSeek V4.1 packs (#1903), EAQ containers (#1902), Gemma 4 on Intel GPUs (#1905) and pull's EXL8 width files (#1907).
    • NaNs in host bf16 rounding:
      • sixteen copies (#1864, fixes #1863), and seven on load and inference paths (#1954), now round through core's shared conversion. A negative NaN no longer overflows in Debug builds, and every finite value gives the same bits.
      • Qwen 3.5 on CUDA keeps a NaN weight as NaN at load, instead of a finite value (#1986).
    • GLM-5.3-Flash on CUDA refuses TF_GLM_CHUNK_SOLO=4096 beside --drafter at load. Before, it held 1.6 to 1.9 GiB of prompt buffers that no pass used (#1842).
    • GLM on CUDA with TF_GLM_KV_SHARE no longer reports a balanced idle KV pool as uneven at close (#1993).
    • CUDA's Qwen DFlash2 drafters must declare sliding attention on every layer, which the kernels run. A drafter that declares a full-attention layer is refused before loading (#1946).
    • GLM refuses a checkpoint whose tensorfold_activation_dtype asks for anything but bfloat16, naming the key. Before, bf16 activations were served silently. docs/api.md says which engines serve /v1/decisions (#1987).
    • Nemotron on Intel GPUs refuses a config with an unknown layers_block_type name at load, instead of serving that layer as attention (#1865).
    • Metal: Qwen3.8-27B's keep gathers and scatters the binding's KV heads a row, so a keep stages what the layout holds (#2013).
    • RoPE tables:
      • transformers' inverse frequencies are computed in one place, core.rope_freq.
      • Gemma 4 on CUDA (#1853), and lfm3, Spark 2.5 and the GLM vision tower (#1995), use it, with no value changes.
      • LFM3's backends share one copy of the frequencies and the layer schedule, bit for bit as torch's (#1839).
    • Benchmark clients:
      • refuse malformed or non-finite --temperatures, and nonpositive --tokens, --reps or --levels, before any request (#1875, #1869);
      • the image session benchmark fails a turn whose stream ends early (#1916);
      • cache benchmark runs qualify only when a complete stream showed real text or reasoning (#1967);
      • tools/bench_image_session.py checks that image turns keep and resume their prompt (#1889).
    • Tests and builds:
      • the CUDA contract's NVFP4 expert-waves control goes red on large GPUs such as the RTX 5090 (#1832);
      • Windows' cost-cache reads mid-replace count as a miss (#2001), and the server's linear-time tests count thread cycles (#1854);
      • zig build test-slide-xpu-host builds again (#1840);
      • test-info-config runs info's issue-934 test again (#2006);
      • a request-log test passes under any umask (#1900);
      • the XPU build makes one core module per device tree (#1918);
      • HIP gate-5 launch records are re-derived with ROCm 10.1's hipcc, record values only (#1979).
    • --tp 2 on CUDA: a crash on the first prompt (a vtable built on the stack) is fixed (#1771).

    Docs

    • The GLM CUDA recipe says what TF_GLM_CHUNK_SOLO gains at TP=3 with TF_GLM_ROCE_MULTI: a little under half its gain without it (#1996).
    • The Qwen3.8-27B recipe gains measurements on a 48 GB M5 Pro Mac mini with 1.2.1: 89.1 tok/s sampled code with DFlash2, against 86.5 on 1.1.0 (#1947).
    • The Flash Next recipe covers native HIP on a Strix Halo iGPU, with speed and quality for three checkpoints (#1747).
    • The cache benchmark receipts say which tool-call content they count (#1999).

    What can change for you

    These change what some requests get, or stop a start that used to go ahead:

    • GLM with a non-bf16 tensorfold_activation_dtype is refused at load, instead of served in bf16 (#1987).
    • A Qwen DFlash2 drafter that declares a full-attention layer is refused on CUDA (#1946).
    • TF_GLM_CHUNK_SOLO=4096 with --drafter is refused on CUDA (#1842).
    • --prompt-cache-disk with --learn-conversations or --learn-dir is refused (#1908).
    • --tp on CUDA is refused by name for families that open without ranks, and --idle-unload is refused with it (#1771).
    • A -Dgpu CUDA build refuses a GPU of another SM (#1936).
    • Nemotron on Intel GPUs with an unknown layers_block_type is refused (#1865).
    • On an XPU build without DPAS, the Qwen3.8-27B runner and Gemma 4 E4B are refused by name (#1692).
    • A malformed checkpoint header is refused (part of #1872). H3 on CUDA could load the wrong tensor for a look-alike metadata entry, and now finds the real one (#1906).
    • A checkpoint with a NaN weight: Qwen 3.5 on CUDA keeps it NaN instead of a finite value (#1986).
    • Image prompts: a cached state is never resumed for a different, moved or re-gridded image, and image prompts' states are no longer saved to disk or learned (#1962).
    • Cortheon fetches GitHub files from more hostnames, keeps capital-scheme links and reads more broken tags, so a turn can see different fetched content (#1949, #1898).
    • Compaction keeps a memory note sent as text parts, instead of summarizing the conversation again (#1939).
    • Benchmark clients refuse arguments they used to accept, and a cache run with only usage in its stream no longer qualifies (#1869, #1875, #1916, #1967).

    Thanks

    • @AbrahamCete (#1830, #1855, #1932, #1961)
    • @Arminova (#1763, #1764)
    • @BadAd84 (#1545)
    • @BHCC2025 (#1467)
    • @Bizuayeu (#1842, #1854, #1993, #1996)
    • @BlivionIaG (#1776)
    • @BobClawblaw (#1670)
    • @cshintov (#2013)
    • @diwakergupta (#1678)
    • @fkiene (code from the cuda.fast submission in #1824)
    • @garvrao80 (#1869, #1875, #1908, #1916, #1944, #1946, #1959, #1967, #1999)
    • @gilby (#1577, #1611, #1612, #1613, #1614, #1651, #1709-#1719, #1747, #1876)
    • @grantoverton (#1826)
    • @jayleaton (#1596, #1745)
    • @jishnuvenugopal (#1898, #1900, #2006)
    • @jrb-ai (#1824, #1958)
    • @jschmied (#1619, #1692, #1837, #1839, #1840, #1853, #1864, #1865, #1901, #1902, #1903, #1904, #1905, #1906, #1907, #1914, #1917, #1918, #1919, #1923, #1925, #1928, #1954, #1960)
    • @kieranscotney (#1734)
    • @laudney (#1771, #1929, #1930, #1931, #1933, #1936, #1940, #1945, #1962, #1979)
    • @llstrk (#1963)
    • @optimisme (#1739, #1741)
    • @paragontasx (#1462)
    • @pauldodd123 (#1947)
    • @ppardus (#1939, #1949)
    • @rootsbymenda (#1832)
    • @russellmm (#1795)
    • @ThinkOffApp (#1836)
  18. 1.2.1

    Expandir

    GitHub Release

    1.2.1 adds new models on CUDA. MiniMax-M3.1-Flash runs over two GB10s, Gemma 4 31B drafts with Google's MTP assistant, and Qwen3.6-35B-A3B gets a 1,048,576-token window and a DFlash2 drafter. MOSS-Image now runs end to end on Metal and its denoiser runs on CUDA. Decode is faster on GB10 for MLX 4-bit models, and Gemma 4 E4B reads prompts 2 to 2.6 times faster on Intel's Arc Pro B70. GLM-5.3-Flash gets opt-in ways to keep long conversations, and the server reports its load at GET /v1/load.

    Where a speedup was checked for equal output, its line says so, and the opt-in switches change nothing unless set. A few fixes change replies on purpose; they're listed under What can change for you.

    Headline numbers

    Where a number's replies were checked against its base, its line says how.

    • Gemma 4 31B on a GB10, with its MTP assistant: 28.3 tok/s against 12.2 undrafted at one stream (#1385).
    • Qwen3.6-35B-A3B (NVIDIA's NVFP4) on a GB10, with a DFlash2 drafter: 130 tok/s at one stream on a 4.2K-token prompt, against 99 with MTP (#1674).
    • Qwen3.6-35B-A3B on one GB10 at 1M tokens: a 1,048,512-token prompt prefills in 26 minutes and finds a passphrase placed 5% in (#1675).
    • Gemma 4 E4B on an Arc Pro B70: prompts read 2.0 to 2.6 times faster, with the same logits (#1746).
    • Nemotron 3.5 Lightning on a GB10: +13.3% at 8 streams, from grouped 4-bit projections (#1783).
    • GLM-5.3-Flash on GB10s at TP=3 with the 1M window: a 64k message sent again resumes in about 1.7 s instead of prefilling for 36 s (opt-in, #1732).

    New models and backends

    • MiniMax-M3.1-Flash on CUDA, at tensor parallel over two GB10s (sm_121, two ranks only; anything else is refused).
      • It reads Mia-AiLab's published EXL3 pack as stored. That's a lossy third-party quantization: against the release, teacher-forced over 2,406 tokens, its mean KL is 0.0788, with 89.9% top-1 agreement.
      • It serves the release's DSpark drafts, kept prompt states, tools, structured output and images. One stream with drafts ran 24 to 39 tok/s (#1388, after #1235).
    • Gemma 4 31B on CUDA takes google/gemma-4-31B-it-assistant as --drafter. Drafted replies equal "draft": false, and four concurrent replies equal their runs alone. Other assistant types are still refused by type (#1385, for #1383).
    • Qwen3.5 and 3.6 on CUDA past 262,144 positions: --rope-yarn 4, or a config with a YaRN block, raises the window to 1,048,576. Drafted, concurrent and resumed replies equal their plain runs. Without YaRN, replies are byte-identical to before. HIP, Metal, the DFlash2 drafters and other families refuse a scaled rope by name (#1675).
    • Qwen3.6-35B-A3B on CUDA with a DFlash2 drafter: --drafter takes a DFlash2 model, such as incoai/Qwen3.6-35B-A3B-DFlash2. The checkpoint's own directory still drafts with its MTP layer. Every drafted reply equals its plain run (#1674).
    • MOSS-Image on Metal, end to end: the prompt encoder (bf16 as published, under the kernel contract) and the image decoder (FLUX.2 small VAE, float32) now run inside the moss_image family, and tf-moss-image writes picture.png itself, with no torch step (#1687, #1504).
    • MOSS-Image-Base's transformer on CUDA, through tf-moss-image, on an RTX 5090 and a GB10.
      • Every step's cosine against the publisher's torch bf16 pipeline is 0.99967 or better, and a 1024x1024 picture is 44.0 dB (RTX 5090) and 45.9 dB (GB10) PSNR from torch's.
      • 50 guided steps at 1024x1024 take 24.6 s on an RTX 5090 and 69.6 s on a GB10, 1.26x and 2.03x faster than torch.
      • On CUDA, the prompt encoder and image decoder still run in torch, and nothing is served yet. See the recipe (#1528, for #1518).
    • DeepSeek-V4.1's release checkpoint (deepseek-ai/DeepSeek-V4.1-Flash-1017) is read as published: FP8 blocks, MXFP4 routed experts and the FP8 Engram table, beside the EXL3 trellises. tf-dsv41-engram-pack writes the Engram tables as row shards with a checked manifest. The CUDA engine runs EXL3, so it refuses the release checkpoint by name before loading (#1705, for #1676). On Macs, its FP8 block-scaled rows and MXFP4 experts have their own Metal kernels under the kernel contract, with Kimi's left as they are, and its routed experts a grouped prompt GEMM; nothing serves through them yet (#1706, #1707, #1708).
    • LFM3-1.7B and LFM3-VL-2B: their official MLX 4-, 6- and 8-bit checkpoints are admitted and checked ahead of their engines (#1513, part of #1491).
    • XPU on Gen12LP (Iris Xe, DG1): Nemotron's kernels build, with a plain bf16 fallback for its two DPAS products. DPAS builds are unchanged (#1673).
    • Qwen3.8-27B on two Macs, groundwork: the 27B family can load one rank's half of the checkpoint and run its layers with the pair's row exchanges, with one Mac's sums. Nothing serves through it yet, and on one Mac replies are the same tokens (#1433, after #1432).

    Speed

    • MLX 4-bit decode on GB10s: projections that read the same input run as one grouped launch, each output byte-equal to its separate launch, for the dense targets, Nemotron, the DFlash2 drafter, Gemma 4 and Spark.
      • Nemotron 3.5 Lightning: +13.3% at 8 streams, +5.9% at 2.
      • Qwen3.8-27B with DFlash2: +4.5% at 1 stream, +3.5% at 4, and +3.7% to +5.0% decoding after a prompt (#1783).
    • Shared draft rounds price each stream's drafts first and skip proposal work that would get no verify rows, for Nemotron, Qwen's MTP, GLM, Gemma 4 and attached LFM2 drafters, on CUDA and Metal. Nemotron 3.5 Lightning with MTP: +9.0% greedy and +4.7% sampled at 16 streams on an M5 Ultra; +2.1% at 16 and +1.1% at 8 on a GB10 (#1779).
    • Gemma 4 E4B on Intel GPUs: prompts read 2.0 to 2.6 times faster on an Arc Pro B70, and decode is 4% to 8% faster at 32K to 64K tokens, with the same logits (#1746, part of #1222).
    • HIP prompt attention on gfx1151: cold first token is 1% to 5% faster from 2K to 64K tokens on Qwen3.8-27B, with the same output bits. The tile is now under the kernel contract (#1788).
    • HIP prompt projections on gfx1151 round to the activation type in their tile instead of writing fp32 and launching a cast, with the same bytes. Cold prompts on Qwen3.8-27B are 2% to 3% faster (#1685).
    • Qwen3.8-27B on M5 Ultra: a prompt chunk of more than 128 rows reads each 4-bit weight matrix once per chunk (#1738).
    • Qwen3.8-27B on Metal with DFlash2: the drafter reads its sliding-window keys and values in place while the context hasn't wrapped, instead of copying them each round (#1727).
    • Flash Next's MTP head norm: 1.4x to 2.5x faster on a GB10 and 4x to 5x on a Radeon AI PRO R9700, at 1 to 16 rows, with the same bytes (#1702, fixes #1689).
    • EXL3 MoE models on sm_120 and sm_121 (GLM-5.3-Flash and the Qwen3.5-MoE EXL3 packs): the grouped experts kernel loads a warp's next tile while it decodes the current one, with the same output bits. 11% faster at MiMo-V2.6-Flash's expert shapes on a GB10. GLM-5.3-Flash on two GB10s is within 1% of its previous speed (#1505).
    • DeepSeek-V4.1 on CUDA: each window backs up only the ratio-2 recurrent carries, not every layer's sliding ring (89 device copies, 6.4 MB a window on Flash-1017) (#1752). DSpark draft passes no longer wait for every side stream (#1751).
    • Flash Next on CUDA, opt-in: TF_FLASHNEXT_CHUNK_SOLO (up to 16,384 rows) lets a lone prompt take a larger chunk. At 4,096 rows on a GB10, its first token comes 5% to 8% sooner. It costs 2.25 GiB more scratch, and a request that arrives during a large pass can wait up to about 2 s (#1733, option C of #1554).
    • GLM-5.3-Flash on CUDA, opt-in: TF_GLM_CHUNK_SOLO=4096, set on every rank, lets a prompt pass take 4,096 rows while no other stream is decoding, with the same bytes. On GB10s a cold prompt's first token comes 6% to 9% sooner from 8K to 128K tokens. It holds 1.6 to 1.9 GiB more for prompt buffers, and a request that arrives during a long pass waits for it to end (#1823, option C of #1554).
    • Lanes, opt-in: an external drafter's own chain chances price its verify rows, and a stream given no rows is never offered a hold. Defaults are unchanged (#1381).
    • Flash Next on Macs, opt-in: TENSORFOLD_PREFILL_POLICY=fcfs serves long prompts that arrive together oldest first, in chunks of TENSORFOLD_PREFILL_TOKENS rows (default 2,048) between decode rounds, with the same tokens. With eight 14K-token prompts at once on an M3 Ultra, the last user's first token comes after 93.6 s instead of 326.9 s. Each chunk pauses the streams decoding beside it for about 1.7 s (#1843).

    Memory and long conversations

    All of these are opt-in except Spark 2.5's paged layers and DeepSeek-V4.1's prefill planner. Unset, nothing else changes.

    • GLM-5.3-Flash prompts in the KV pool: TF_GLM_KV_SHARE=n with TF_KV_PAGES=on keeps prompts as the pool's pages in the shared prompt store, on one GPU and at tensor parallel. Token-id prompts resume at every width (#1732, #1510).
    • GLM-5.3-Flash prompt states in host memory: TF_GLM_HOST_CACHE=1 on every rank keeps them in pinned host memory, sized by --prompt-cache-gib. On discrete cards with little device room, a long conversation's state is kept instead of refused (#1736, #1735, #1510).
    • GLM-5.3-Flash vision tower in host memory: with --vision, TF_GLM_VISION_HOST=1 leaves rank 0 holding 240 MiB for the tower instead of 1.05 GiB, and every rank gets that room back for KV pages and the prompt cache (#1760).
    • Qwen3.8-27B and Qwen3.6-35B-A3B on CUDA: with TF_QWEN_KV_PAGES=n and TF_QWEN_KV_PAGES_ALL=1, the engine's own stream becomes a pool lane too, so no full-context window sits idle beside the pool: 1.90 GiB back for the 27B at --parallel 8 --context 16384 (#1750).
    • Spark 2.5 on CUDA:
      • The full-attention layers' K/V live in pages of the core pool, leased per stream as it grows, so streams no longer reserve a whole context up front. Tokens are unchanged and speed is level on a GB10. TENSORFOLD_SPARK25_KV_PAGES=0 keeps the linear caches (#1653).
      • TF_KV_SHARE=n keeps prompts as the pool's pages, so a conversation resumes at the store's last 256-token mark without a full copy (#1756, part of #1657).
    • DeepSeek-V4.1's prefill planner now sizes the indexer's scratch before it plans, so ragged prompts can't plan less than they use. It takes about 128 MiB more per rank on the Flash-1017 pack (#1681).

    Serving and API

    • GET /v1/load and scheduler load in /metrics: one JSON snapshot under the /metrics access rule.
      • It reports the server's identity, whether --idle-unload has parked the engine, requests in progress, queued prompt tokens, requeues and tokens as the work happens. On CUDA it also reports the KV mode, free lanes and GLM-5.3-Flash's page pool.
      • A value an engine can't count is left out, not shown as zero.
      • /v1/load answers in under a millisecond when idle, and replies are unchanged (#1655, #1558).
    • Top-level thinking switch: the server reads {"type": "disabled"} or "enabled", as DeepSeek's API sends it. chat_template_kwargs still wins when both are set (#1742).
    • Strict tools under tool_choice: "auto": a tool marked "strict": true is held to its schema on every family with a grammar runtime. TENSORFOLD_TOOL_GRAMMAR=1 holds every auto tools request the same way (#1688).
    • DeepSeek-V4.x tools: tool_choice: "required" and named calls are held to the model's own DSML markup (#1684).
    • DeepSeek-V4.x stats: replies carry the Spark recipe's per-response stats in their tensorfold block. TENSORFOLD_WIRE=spark turns them on for any family, and native turns them off (#1753).
    • Living Weights: DELETE /v1/slide/facts takes a list of fact ids and removes them as one reversible change. A single delete is unchanged (#1816, part of #678).
    • Living Weights on CUDA: Nemotron Omni learns through the shared Nemotron learner. A lesson that carries an image or audio is refused by name instead of training through the media towers (#1815, part of #1801).
    • Windows: the grammar library loads as tfgrammar.dll, so structured output and required or named tool calls work there too (#1796, fixes #1789).
    • Log times: TENSORFOLD_LOG_TIME=1 starts each log line with its UTC time to the millisecond. Off by default (#1690, fixes #1626).
    • Grammar timing: lane round metrics now include the time spent filling grammar masks. Nothing is read when no stream is constrained (#1814, part of #1455).

    Fixes

    • Flash Next on a GB10 keeps its long-prompt speed. A loaded server left about 36 GiB of its checkpoint in the page cache, and on a GB10 that memory is the GPU's too: under 1 GiB stayed free, and from some point in a server's life long prompts ran at about 0.73x until a restart. The server now drops those pages once the weights are on the GPU, with the same tokens (fixes #1868).
    • Session disk: a fresh start clears the .tfs and .tmp files earlier processes left, so restarts no longer fill the disk (#1680).
    • DeepSeek-V4.1 at tensor parallel: every rank charges disk eviction the same size, so the ranks' caps no longer drift apart, and a restore checks the leader's identity first (#1679).
    • CUDA graphs: an invalidated capture no longer leaves its stream marked as capturing, which had refused every later capture and host upload with UnownedCaptureSource (#1744).
    • CUDA tensor parallel: a rank that can't bind its liveness port (NCCL_COMM_ID's port + 1, often held by an earlier server still exiting) now says so, instead of a generic "glue kernels" error. So do a rank that never arrives and a failed accept (#1813, fixes #1761).
    • Mixed-bit Qwen3.8-27B on M5: checkpoints that mix bit widths in a fused projection, such as the oQ4 and oQ2 quantizations, answer prompts longer than 128 tokens instead of failing with BadCoreProjectionRows. Replies keep main's tokens (#1822).
    • Living Weights lessons no longer stop at their first step with LayerRoundsAgain (2 of 7 Nemotron lessons on a Mac, and both on a GB10, did before). A lesson that still can't round says so in words (#1810, fixes #1807).
    • Old CUDA drivers: a driver older than CUDA 13.0 is refused at startup with a message naming R580 or newer. An R550 driver had crashed with SIGILL on the first module load (#1791, #1724).
    • --cortheon: text beside an image counts toward the room for a fetched page. Progress lines no longer cut a character in half, and a fallback search that can't fit its first word is skipped instead of sent empty (#1677).
    • Intel GPUs on WSL2:
      • tensorfold-xpu devices and the device tests no longer crash with an Iris Xe (#1672).
      • Free memory falls back to the device's total less what TensorFold allocated, so Nemotron with MTP can size its prompt cache (#1691).
    • DeepSeek-V4.1 packs: with TF_DSV41_PF_4K=1, aot-needs lists the 2,048-row prefill variants too, so the pack's first operation no longer fails with MissingTritonVariant (#1683).
    • Windows: the cost cache reads its tables through a shared file handle, so a table being replaced reads as a quiet miss, not an unexpected status (#1809, fixes #1805).
    • Kernel contract on M5: the contract now states the tensor units' 10-mantissa-bit cut of fp32 operands for every Metal kernel with one, each with a control that fails without it. No output changes (#1748, part of #1546).
    • Tests: the CUDA drafter cost-identity host test passes on filesystems with a coarse clock, such as ramfs and NTFS (#1770, fixes #1697).

    What can change for you

    These change what some requests get, or stop a start that used to go ahead:

    • DeepSeek-V4.x without sampling fields, on a checkpoint with no generation_config.json, now samples at temperature 1.0 and top_p 1.0, as DeepSeek's model cards recommend, instead of decoding greedily. That file, the serve flags and the request still override them (#1725).
    • Strict tools under tool_choice: "auto" are held to their schema (#1688), and DeepSeek's required and named tool calls to DSML (#1684).
    • A top-level thinking switch now takes effect, where before it was ignored (#1742).
    • Streamed reasoning: the joined delta.reasoning_content pieces now equal the finished reply's reasoning_content byte for byte, without the whitespace the finished reply strips. A streamed /v1/responses reasoning item matches the non-streamed one (#1743).
    • --cortheon with images gets a smaller fetched page when the turn's text is long (#1677).
    • --slide on a family that doesn't learn on that backend now stops before loading, on CUDA, Metal, HIP and XPU. Before, it served and learned nothing (#1800).
    • A CUDA driver older than 13.0 is refused at startup (#1791).
    • Living Weights lessons: new fits are written on the 4-bit grid before they're judged, so a lesson's steps and outcome can differ from before, and the same lesson can take different steps on separate runs (fixes #1807).

    Known issues

    • DeepSeek-V4.1: the prompt cache resumes only at 2,048-token boundaries (#1625).
    • Living Weights on Nemotron 3.5 Lightning: a one-fact lesson is refused in a third to a half of runs, with or without --no-thinking. A refused lesson is taken out cleanly, and unrelated answers stay the same (#1587).
    • Qwen3.8-27B learning on CUDA: the learner's gradient is 1.6 to 1.8 times too large at a prompt's last row. The learning gates stop the bad lessons, so serving without lessons is unchanged (#1806).
    • GLM on Metal: an idle server's memory grows, about 4.6 GB an hour, until a restart frees it. With --learn-conversations, a prompt state restored from disk was charged less than it uses; the fix is in review (#1572, #1818).
    • Qwen3.5-4B on a 4 GB GPU: reported to fit on 1.1.2 but to be refused at load from 1.1.5 on (RTX 3050 Laptop). The likely cause is prompt scratch sized for 4,096 rows whatever the context (#1827).

    Thanks

    • @AbrahamCete (#1685, #1788)
    • @ajensenwaud (#1505)
    • @akol1 (#1433)
    • @atakann (#1690)
    • @Bizuayeu (#1732, #1823)
    • @BlivionIaG (#1381, #1513)
    • @BobClawblaw (#1388, #1512, #1528, #1687, #1748)
    • @florianbrede-ayet (the downstream fix #1679 adapts)
    • @gilby (#1705, #1706, #1707, #1708)
    • @grantoverton (#1822)
    • @ivanfioravanti (#1843)
    • @jayleaton (#1679, #1680, #1681, #1683, #1684, #1688, #1725, #1743, #1744, #1751, #1752, #1753)
    • @Jenpo (corroborating #1680)
    • @jschmied (#1513, #1653, #1672, #1673, #1691, #1733, #1750, #1756)
    • @kieranscotney (#1727)
    • @laudney (#1655, #1674, #1675, #1702)
    • @mikolaj92 (the downstream fix #1680 ports)
    • @Mirrdhyn (#1746)
    • @Nipale-ai (#1738)
    • @ppardus (#1677)
    • @rootsbymenda (#1791, and the report of the diverging caps behind #1679)
    • @russellmm (#1736, #1760)
    • @ThomasHalwax (#1385)
    • @wesley4546 (#1770, #1796)

    Release reads against 1.2.0 (1 Nov: main at 9e8c368b0, then the #1868 fix A/B)

    • Qwen3.8-27B MLX 4-bit on an M5 Ultra: GREEN. Prompts 9.4% to 10.8% faster at every length (for example 1,716 -> 1,901 tok/s at 2K), decode sweeps flat to +2%, decode after a prompt within the runs' own spread.
    • Qwen3.8 Flash Next MLX 4-bit + MTP on a GB10: GREEN after a ten-run alternating check. Prompts and decode within 1.5% of 1.2.0. The long-prompt slowdown (#1868) hit both builds alike (1 of 4 scored runs on 1.2.0, 1 of 5 on main); it's fixed in this release.
    • Qwen3.8-27B MLX 4-bit on a GB10: GREEN. Prompts level with 1.2.0's later runs (its first run is always its fastest), decode sweeps none slower.
  19. 1.2.0

    Expandir

    GitHub Release

    TensorFold 1.2.0

    1.2.0 makes Qwen3.8-27B faster on Macs. On an M3 Ultra with DFlash2 it decodes 14% faster than 1.1.9 at one stream and 44% faster at 16; on an M5 Ultra, 6% faster at one stream and 25% at 16. On a GB10, none of the ten models we read got slower. It adds a new family, MiniMax-M3.1-Flash on one 256 GB M5 Ultra, and new checkpoints and hardware: NVIDIA's NVFP4 Qwen3.6-35B-A3B, dense EXL3 Qwen3.8-27B on CUDA, and Gemma 4 E4B on Intel's Arc Pro B70. Every speedup keeps replies token-equal to 1.1.9. One change is deliberate: pictures on the Qwen-VL models are now prepared as the checkpoints' own processor prepares them, so replies to pictures can differ slightly from 1.1.9. Text-only replies are unchanged. The full list is in the changelog.

    Measured

    Every row was measured with the same tokens as its base.

    What Hardware Base Before After Change
    Qwen3.8-27B MLX 4-bit, DFlash2, 1 stream M3 Ultra 1.1.9 80.0 tok/s 91.6 tok/s +14.4%
    The same, 4 streams M3 Ultra 1.1.9 127.0 150.3 +18.3%
    The same, 16 streams M3 Ultra 1.1.9 145.2 209.4 +44.2%
    The same, prefill M3 Ultra 1.1.9 +17%
    Qwen3.8-27B MLX 4-bit, DFlash2, 1 stream M5 Ultra 1.1.9 168.5 tok/s 178.3 tok/s +5.8%
    The same, 4 streams M5 Ultra 1.1.9 298.0 334.6 +12.3%
    The same, 16 streams M5 Ultra 1.1.9 378.5 474.0 +25.2%
    Qwen3.8-27B, one stream, code / chat (#1726) M5 Ultra main before it +2.6% / +4.6%
    Qwen3.8-27B, four greedy code streams (#1726) M5 Ultra main before it +18.6%
    Flash Next, sampled code / chat at 5 streams, 5 x 131,072 (#1609) GB10 main before it +24% / +19%
    The same at 4 streams GB10 main before it +15% / +19%
    Qwen3.6-35B-A3B MTP, 2 / 4 / 8 users (#1562) GB10 streams drafting one at a time 116 / 138 / 159 tok/s 137 / 182 / 220
    LFM2.5-24B-A2B, a 2,048-row prompt chunk (#1590) M1 Pro main before it 243 s 3.9 s
    LFM2.5-24B-A2B, 16 greedy streams together (#1590) M1 Pro main before it 11 to 17 tok/s 116 to 123
    Qwen3.8-27B MLX 4-bit, cold prefill at 2k (#1663) Ryzen AI Max+ 395 (gfx1151) main before it 8.60 s 5.83 s 32% faster
    Qwen3.8-27B, cold prompt at 2k (#1648) gfx1151 main before it 8.64 s 7.60 s
    GLM-5.3-Flash XSFP4 load at TP=2 (#1616, #1636) two GB10s before #1616 327 s 51 s
    A 2,000-message DeepSeek-V4.1 chat's peak memory while its template renders (#1728) any main before it 154 MB 15 MB

    New models and hardware

    • MiniMax-M3.1-Flash on Metal (new family): the minimax_m3 family serves MiniMax's 428B-A23B model on one 256 GB M5 Ultra. It supports tools, structured output, thinking on or off, images, the prompt cache, two streams, and DFlash2 or DSpark drafts that keep replies equal to plain decoding.
      • It reads two community checkpoints. Both are lossy conversions of MiniMax's NVFP4 release, labelled with their cost against it: mean KL 0.244 on mix34 and 0.295 on mix256k. Everything from those weights on is exact, with a bf16 key/value cache (147,456 tokens on mix256k, 32,768 on mix34).
      • With DFlash2, one stream decodes 44 to 58 tokens a second on mix256k.
      • MINIMAX_LOAD_LIMIT_GB sets the memory budget, and MINIMAX_DRAFTER picks the drafter (#1235, for #1519).
    • NVIDIA's NVFP4 Qwen3.6-35B-A3B on CUDA (nvidia/Qwen3.6-35B-A3B-NVFP4) serves as downloaded, and --drafter naming the same checkpoint drafts with its MTP layer. One GB10 decodes 66 tok/s without drafts and 112 to 125 with them. Drafted, concurrent and resumed replies equal their plain runs (#1662).
    • Dense EXL3 Qwen3.8-27B on CUDA: turboderp's dense EXL3 checkpoints now load instead of being refused, and DFlash2 drafts them. At 4.00 bpw on a GB10, decode runs at 45.8 tok/s for chat and 71.9 for code with DFlash2, against 15.3 and 15.5 without (#1465). The drafter reads only the two vocabulary spans it proposes from, about 545 MB fewer reads a round at a 6-bit head (#1507).
    • ModelOpt Qwen3.8-27B on sm_80 to sm_89: NVFP4 and FP8 checkpoints now serve on cards such as a Jetson AGX Orin. This path hasn't run on such a card yet. Nothing changes on sm_90 and newer (#1470).
    • Gemma 4 E4B on Intel's Arc Pro B70 (Xe2): the XPU backend serves mlx_lm.convert 4-bit checkpoints, with an optional 8-bit attention, up to 8 streams with shared forwards, and the prompt cache. On the B70, 2,048-token prompts read at 6,772 tok/s, one stream decodes at 135.6 tok/s, and 4 streams reach 426 tok/s together, each reply equal to that stream's reply alone. The audio tower and the drafter aren't in yet (#1552, for #1222).
    • Gemma 4 structured output on CUDA: response_format and tool_choice now constrain its replies, with or without a drafter (#1386).
    • Three GB10s in a ring without a switch now connect at three ranks or more. An 8 KiB exchange takes 10.7 µs, against 26.3 µs for NCCL. A ring of four still falls back to NCCL (#1516).
    • gfx1100 with clang 21 (opt-in): -Dhip-relax-branches=true builds the dot2 prompt tiles with Ubuntu's clang 21. It hasn't run on a gfx1100 GPU yet (#1542).

    Speed

    Each of these keeps replies token-equal to main before it.

    • Metal:
      • Qwen3.8-27B:
        • The quantized tiles unroll their fixed loops, with bit-identical outputs, and a shared round whose drafts get no rows skips the drafter (#1686, for #1621).
        • On M5 Macs, one stream takes the lane loop by default (#1726, for #1621). On an M3 Ultra, the same change makes 16 streams 3.5% faster and one stream 1.9%.
      • Nemotron 3.5:
        • On M3-class GPUs, the decode attention and the experts' 2-row tiles unroll their fixed loops. On an M3 Ultra, Lightning decodes 1.8% faster at one stream (#1704, for #1621).
        • On M1-family Macs, routed experts in windows of 16 rows or more take two members a pass. On an M1 Max the kernels take 14 to 20% less time at 64 to 128 rows (#1466).
      • LFM2.5-24B-A2B on M1 and M2 Macs: the prompt tiles store their matrix fragments whole, and run at 2.4 to 2.7 TFLOPS on an M1 Pro. M3 and newer compile them as before. The M2 takes the M1's path but wasn't measured (#1590, fixes #1523).
    • CUDA:
      • Qwen3.6-35B-A3B: every stream of a shared round drafts together in the MTP layer (#1562).
      • Flash Next: a shared round's sampled streams draft in the batched MTP head pass. Greedy streams and time to first token are unchanged (#1609).
      • EXL3:
        • A context copy beside the dense 27B now needs 20 matching tokens instead of 5. On an RTX 3090 Ti, decode after long prompts is up 12.8% sampled and 18.5% greedy (#1477).
        • The dense projections zero their split-K counters only when the buffer grows. On a GB10 with the 27B 3.50 bpw pack, decode is 0.4% to 0.9% faster (#1475).
        • The trellis loads skip L1. On three GB10s at TP=3 with GLM-5.3-Flash EXL3 4 bpw, decode rose 2.3% on one stream (#1534).
      • GLM-5.3-Flash load: reader threads fetch each layer ahead (#1616), and 8 threads decode and pack each layer's routed experts (#1636). On three GB10s it now loads in 46 s, from 268 s.
      • Nemotron's router top-k runs on the shared MoE top-k: 2.74 µs a call instead of 4.37 on a GB10 (#1354).
    • HIP:
      • gfx11's matrix-core prompt tile no longer spills to scratch (#1663) and runs in bands of four row blocks (#1648). Cold prefill on a gfx1151 at 64k is 24.5% faster from #1663. #1648 cuts 365.7 s to 330.8 s.
      • RDNA4 short routed prompts: on an R9700, cold prefill takes 0.53 to 0.80 times as long on Qwen3.6-35B-A3B at 33 to 128 tokens. Other GPUs are unchanged (#1607).

    Opt-in

    • GLM --mtp-confidence: a draft chain stops where its chance falls under the floor. At TP=3 on GB10s, decode went from 51.6 to 54.1 tok/s. At TP=2, code was 3.7% slower with it (#1585).
    • GLM all-gathers on RoCE: TF_GLM_ROCE_MULTI=1, at three ranks or more. Decode at TP=3 went from 51.2 to 52.6 tok/s with drafts. A cold 136k-token prompt is 1.2 to 1.6% slower, so NCCL stays the default (#1524).
    • Qwen3.8-27B lane windows on pre-M5 chips: TF_QWEN27_WINDOW=32 or 64, and TF_QWEN27_COPIES=1. Both stay off until qualified (#1686).
    • --decode-share X: while a long prompt fills beside running replies, the replies get X of each fill step's time, on the CUDA, Metal and HIP lane servers. Without the flag nothing changes (#1327, for #840).

    Groundwork

    None of these changes what a default build serves.

    • Paged KV:

      • Nemotron on Metal with TF_NEMOTRON_METAL_KV_PAGES=1, bit-equal to the window kernels. It saves no memory yet (#1537).
      • The Qwen prompt cache as GPU pool pages with TF_QWEN_KV_SHARE=n: a kept 4,096-token state takes about 68 MiB of pinned memory instead of 148 MiB (#1357).
      • Paged attention kernels that nothing launches yet (#1618).
      • A paged prompt store that can serve GLM-style rows (#1659).
    • Qwen3.8-27B on two Macs: the pair seam's kernels exchange whole output rows, so every sum stays on one Mac (#1432).

    • Ling 3.1: a host-only family package for both engines, with config, weight map and a float64 reference (#1541).

    • Vulkan: a first opt-in backend for Linux GPUs, built only with -Dvulkan=true. It has the runtime and one kernel under the kernel contract. No model runs on it yet (#1526).

    • LFM2.5-24B-A2B taps for an external drafter, through a new lfm2_tap kernel. Nothing uses them yet (#1390).

    • Shared code:

      • Picture preparation (#1584, #1589, #1592, #1593).
      • CUDA kernel helpers (#1564, #1565, #1588, #1591, #1550, #1555, #1556).
      • Nemotron's norms (#1353).

      Inputs and compiled code are the same as before.

    • MOSS-Image: the seeded starting latents are made in host code, byte for byte what x86 torch makes (#1668, fixes #1530).

    Fixes

    • Resume after a tool reply: the next turn resumes at the right place with templates like Gemma 4's. On an Arc Pro B70 with Gemma 4 E4B, those turns reached their first token in 0.8 to 1.4 s instead of 1.7 to 2.7 s (#1551).
    • Chat templates: a prompt built by appending to a string no longer copies the whole prompt every turn, so memory grows with its length, not its square. Rendered prompts are byte-identical (#1728, for #1633).
    • Nemotron on CUDA keeps NaNs: squared ReLU no longer turns a NaN into 0, so a NaN reaches the output instead of vanishing. Finite values give the same bits (#1628).
    • DeepSeek-V4.1 (experimental):
      • After a sticky CUDA context fault, it fails fast instead of staying up and unable to answer (#1646).
      • The Flash-1017 EXL3 pack boots at TP=2 (#1643).
      • Boot hashes the pack once instead of twice (#1644).
      • EXL3 packs that declare the dsq-1 format are admitted (#1641).
    • Picture and video downloads (--vision-urls) stop at their deadline, however the remote server behaves (#1645).
    • Conversation states on disk:
      • A save that fits the staging permit waits for a write in flight instead of being skipped (#1548).
      • A state its model refuses is forgotten after one recall (#1543).
    • Cortheon: the task goal and planner queries stay valid UTF-8 (#1575, #1610).

    Pictures on the Qwen-VL models

    Qwen3.8-27B, Qwen3.6-35B-A3B and Qwen3.8 Flash Next, on Metal and CUDA, now prepare pictures as transformers' Qwen2VLImageProcessorFast does (#1586). Before this, 0.1% of one photo's pixel values differed from it, by at most 2 levels. So replies to pictures can differ slightly from 1.1.9. Text-only replies are unchanged.

    Known issues

    • DeepSeek-V4.1 at TP=2: a repeated long prompt can change the reply (#1395). Sending the same 32,768-token prompt again can give a reply that differs from its first run, with drafts on or off. We're tracing the cause.
    • DeepSeek-V4.1's prompt cache (#1625) resumes only at 2,048-token boundaries, and its server ignores --prompt-cache-gib. Multi-turn chats re-read more of their prompt than they need to.

    Upgrade notes

    • Unknown TF_QWEN27_* switches are now refused by name (#1686). Check your environment for misspelled ones.
    • Qwen3.8-27B on M5 Macs: one stream now takes the lane loop. TF_QWEN27_LANES=0 keeps the serial loop (#1726).
    • Flash Next on CUDA: TF_FLASHNEXT_SAMPLED_HEADS=0 restores drafting sampled streams one at a time (#1609).
    • DeepSeek-V4.1: after a sticky CUDA context fault the server now exits instead of staying up, so run it under something that restarts it. TF_DSV41_STALL_EXIT_S (off by default) also exits when a round makes no progress (#1646).
    • Dory: with TENSORFOLD_DORY_KV_PAGES=1, a context must be whole 256-position pages (#1387).
    • GLM load: TF_GLM_LOAD_PACK (1 to 16) sets the packing threads (#1636).
    • Pictures on the Qwen-VL models can give slightly different replies, as described above (#1586).

    Tests and tools

    • Kernel contract:
      • The CUDA runner loads fp8_experts' image and makes all 1,325 live-limit checks (#1579).
      • Nemotron's six pocket kernels on CUDA are checked against float64 (#1629).
      • Qwen4's dense activation check no longer fails by mistake near a BF16 midpoint (#1547).
    • tools/zig/cuda_sass_identity.py rebuilds a differing image and fails an unstable build (#1532).
    • Docs:
      • The Flash Next CUDA recipe documents TF_FLASHNEXT_CHUNK (#1553).
      • The runbook documents TENSORFOLD_PREFILL_SHARE and TENSORFOLD_PREFILL_BUDGET.

    Release testing

    Reads of the release tree against 1.1.9 found no regression, with tokens equal on both, alternating fresh servers.

    • M3 Ultra: Qwen3.8-27B MLX 4-bit with DFlash2 (the table above) and Qwen3.8 Flash Next MLX 4-bit.
    • M5 Ultra: Qwen3.8-27B MLX 4-bit with DFlash2 (the table above), Nemotron 3.5 Lightning (prefill within 0.1%), LFM2.5-24B-A2B and Qwen3.5-2B.
    • GB10: Qwen3.8-27B, Nemotron 3.5 Lightning and Bolt, Flash Next FP4 and MLX 4-bit, Kolibri-1, Gemma 4 31B and 12B, Qwen3.6-35B, Ornith-122B and Spark-X2.6. No model was slower beyond run-to-run noise.

    Thanks

    @AbrahamCete, @akol1, @alexderz, @Arminova, @BadAd84, @BHCC2025, @Bizuayeu, @BlivionIaG, @BobClawblaw, @diwakergupta, @fche, @gilby, @javierbits, @jayleaton, @joshuaswarren, @jrb-ai, @jschmied, @laudney, @Mirrdhyn, @mrv777, @ppardus, @simon-lin88, @swbiggart, @ThinkOffApp, @ThomasHalwax, @valacroix and @wojo.

  20. 1.1.9

    Expandir

    GitHub Release

    TensorFold 1.1.9

    1.1.9 speeds up prompts on DGX Spark and Flash Next on Macs: on a GB10, Qwen3.8-27B reads prompts 9% to 11% faster than 1.1.8 and Kolibri-1 3% to 8% faster, and on an M3 Ultra, Flash Next's copy-heavy edits run at 212 to 257 tok/s and sampled prose at up to 136 tok/s, from 122.5. On an M5 Ultra, Qwen3.8-27B reads prompts about 4% faster. Every model gives the same tokens as 1.1.8. The full list is in the changelog.

    Speed

    • Qwen3.8-27B prompts on CUDA: a prompt runs up to four of its projections in one launch, each keeping the shipped BF16 kernel's block order, and takes a 2x2-warp tile at large prompt widths (#1439, for #1398). Outputs are the same bytes. On a GB10 with the MLX 4-bit checkpoint, prefill is 10.8% faster at 2k tokens, 9.7% at 8k and 7.8% at 32k. Prompts on the default path (without TF_QWEN_KV_PAGES) also take whole-window attention kernels again, which wins back the long-prompt prefill 1.1.7 lost (#1458): 0.5% at 32k and 0.8% at 64k.
    • Kolibri-1 on CUDA, and Drama 3 with prompt chunks of more than one row: the block-FP8 routed experts' prompt kernels copy weights into shared memory in stored order, so each 32-byte sector is read from L2 once instead of twice (#1460). Outputs are the same bytes. On a GB10, Kolibri-1's prompts ran 13% faster at 2k tokens and 3% to 4% faster from 8k to 64k.
    • Flash Next copy drafts on Metal: when a reply repeats text from its prompt or from earlier in the reply (edits, rewrites, renames, quotes), its copied drafts verify in windows as wide as their measured acceptance pays for, about 11 rows where they stopped at about 4. Requests whose prompt plus max_tokens passes about 2,000 tokens, which includes every request at the default max_tokens of 4,096, now get the GPU gate that sets each round's width, as shorter requests already did. On an M3 Ultra, copy-heavy edits ran 212 to 257 tok/s and rewrites 222 to 300; at the default max_tokens, prose ran 138 to 142 and long documents 173 to 179.
    • Sampled Flash Next replies on Metal: the checkpoint samples by default (temperature 1.0, top_k 20, top_p 0.95), and a sampled reply now gets the GPU gate, MTP drafts drawn under the reply's own keyed rule, and a faster draw: for top_k up to 64 the GPU keeps each of 32 slices' top_k and merges them in a second pass, about 29 µs where the whole-vocabulary draw took about 700 µs, with the same sums, cuts and tie rule. It picks the same token at every seed and position. On an M3 Ultra, sampled prose ran 122.5 to 136.0 tok/s, code 180 to 194 and hard prompts 133 to 146. Greedy replies are unchanged.
    • Qwen3.8-27B prompt rows on M5: a request asks for 2,048 prompt rows when no other request is decoding, and caps each chunk at 512 beside a decoder (#1478). The larger frame is used only when the context, every stream and the full prompt scratch fit beside the weights and the existing 8 GiB margin, and startup reserves that scratch. Earlier chips keep 512 rows; TF_PROMPT_ROWS overrides the width. On an M5 Ultra, prefill is 3.7% to 4.5% faster from 2k to 64k tokens.
    • Nemotron 3.5 on Metal: a GPU round prices its draft head's depth from the backend's window-cost table, and no longer steps back up to a level that has shown it doesn't land (#1115). With Nemotron 3.5 Lightning 30B-A3B (MLX 4-bit), decode after 2k to 64k-token prompts is 1.2% to 2.4% faster on an M3 Ultra and within 0.3% on an M5 Ultra.
    • Qwen3.8-27B follow-up turns on Metal: a follow-up turn resumes from the state its conversation's last reply left in the server's first slot when the prompt cache holds nothing as far, so on a Mac whose cache can't keep a long conversation (a 32 GB Mac) the next turn reads only its new tokens instead of its whole prompt (#1197). Replies are the same tokens as a fresh prompt pass. TF_QWEN27_SLOT_RESUME=0 turns it off.
    • Qwen3.5-2B conversations on Metal (opt-in): with --prompt-cache-gib N, a request that extends a conversation resumes from its deepest kept prompt state in RAM instead of prefilling it again (#505). On an M5 Ultra the next turn of a 28.5k-token chat resumed with 28,544 tokens cached, and on an M5 Ultra and an M3 Ultra every resumed reply equalled a fresh one. Without the flag nothing changes.
    • Flash Next on CUDA with NVFP4 experts: at decode, the routed experts' work goes out in equal waves instead of leaving a short last wave (#1351). Each output keeps the same multiply-adds in the same order. On a GB10, served decode is 0.6% faster at one stream and 0.2% at two.
    • GLM-5.3-Flash on CUDA:
      • At long positions a decode step's DSA select gives each row a 1,024-thread block where it used 128, with the same picks in the same order (#1424). On three GB10s at TP=3, decode after a 136k-token prompt ran 1.8% faster.
      • With two or more ranks, a prompt chunk's DSA indexer splits across the ranks from position 2,048 on, and an all-gather gives every rank every row's picks (#1404). Replies are the same tokens, and decode never splits. TF_GLM_INDEX_SPLIT sets the starting position, and 0 turns it off. On two GB10s at TP=2, prefill at 128k tokens was 1% to 2% faster.
      • With TENSORFOLD_PREFILL_SHARE below 1, a long prompt's step ends on the GPU before it returns when the lane host bills it to decoding streams, so its tail no longer runs in the decoders' next round (#1352). At the default of 1 nothing changes.

    Server

    • The serving line names its drafters: for example drafts: copies only, drafts: MTP + copies or drafts: DFlash2 (z-lab/Qwen3.8-27B-DFlash2) + copies, where it used to say drafts: on whether or not a drafter was loaded (#1515). Drafting itself doesn't change.
    • Qwen3.8-27B profiling on Metal (opt-in): TF_Q27_PROFILE=N logs each kernel class's GPU time, the DFlash2 drafter's included, every N decode rounds, and adds gpu_seconds to replies (#1215). It is a diagnostic: on an M5 Ultra one stream decodes at about a ninth of its usual rate with it on. Without it replies are byte-identical to before.

    Fixes

    • --compact-at auto on small windows: on a context window smaller than its 16,384-token reserve, it reserves fifteen percent of the window instead, so a short request on --context 8192 is no longer compacted (#1536). Larger windows keep the 16,384-token reserve.
    • Release builds: the release path check no longer refuses a clean binary whose address tables happen to hold bytes that read as \.o (#1533). Every other rule is unchanged.

    HIP

    • AMD RDNA4 cards (gfx1201) take a tuning table of their own, which keeps gfx1100's bounds for now, so no kernel choice changes; zig build hip-affine-tune -Dhip=true times the MLX affine prompt tiles on a card to fill it (#1527).

    Tests and tools

    • CUDA kernels take their shared helpers from one set of headers; every kernel compiles to the same code as before (#1440).
    • kernel-contract-limits no longer reports Qwen's prompt partials as launched past their bounds on every SM.

    Release testing

    1.1.9 against 1.1.8 on the same machines and checkpoints, alternating the two builds (1.1.8, 1.1.9, 1.1.9, 1.1.8). The cells were cold prompts from 2k to 64k, and the stream sweep at 1 to 8 streams (16 for LFM2) with every stream checked against its run alone. Every change above was also measured against main on its own before it landed.

    • Every model gives the same tokens on both releases in every cell.
    • DGX Spark (GB10):
      • Qwen3.8-27B: prefill +11.1% at 2k, +10.4% at 8k and +8.8% at 32k. Decode and the sweep are within 0.2%.
      • Kolibri-1: prefill +8.1% at 2k, +3.7% at 8k, +3.4% at 32k and +3.0% at 64k. Decode after the prompt is within 2%, about as much as the 1.1.8 runs vary between themselves. Across twelve alternating runs, one stream is within 0.4%.
      • Qwen3.8 Flash Next FP4-Local: prefill +0.3% to +1.4%, decode +0.1% to +0.5%, and the sweep +0.8% to +0.9%.
      • Nemotron 3.5 Lightning: no difference beyond run-to-run spread.
    • Two GB10s at TP=2, GLM-5.3-Flash NVFP4: no stream differs from its run alone (52 of 52), prefill is within 0.2%, and chat and code at one and two streams are within 0.4%.
    • M5 Ultra:
      • Qwen3.8-27B: prefill +3.7% to +4.5% from 2k to 64k (#1478). The sweep is within 1%.
      • Nemotron 3.5 Lightning: prefill within 0.2%, the sweep within 0.1%.
      • LFM2.5-24B-A2B: prefill within 0.2%; the sweep is no slower at any level.
      • Qwen3.5-2B (default settings): prefill within 0.4%, the sweep within 0.3%.

    Thanks

    @jschmied, @yguanrong, @Bizuayeu, @jishnuvenugopal, @akol1, @RS91Dev, @grantoverton, @Deesha08, @laudney and @ppardus.

  21. 1.1.8

    Expandir

    GitHub Release

    TensorFold 1.1.8

    1.1.8 starts Flash Next on CUDA much sooner and brings conversations back from disk without holding up other streams: a Flash Next server on a GB10 (Qwen3.8-Flash-Next-FP4-Local) starts in about 83 s instead of about 200 s, and with --spill-gib on an M5 Ultra, returning Qwen3.8-27B conversations came back in 0.6–1.0 s instead of up to 21 s. LFM2.5-24B-A2B on Macs serves 4 to 16 streams 20% to 34% faster in aggregate. All three give the same tokens as before. The full list is in the changelog.

    Speed

    • Flash Next on CUDA starts sooner: NVFP4 experts load on several threads straight from the memory-mapped checkpoint (#1368). On a GB10, Qwen3.8-Flash-Next-FP4-Local starts in about 83 s instead of about 200 s, with the same tokens and prompt and decode speed unchanged or slightly faster.
    • LFM2.5-24B-A2B on Macs runs each layer's short convolution and attention once over all of a round's streams, bit-equal to the per-stream kernels (#1377). On an M5 Ultra with the 4-bit export, aggregate decode rose 20% at 4 streams, 34% at 8 and 31% at 16, and one stream about 2%, with the same tokens. The recipe has the author's own receipt, measured against an earlier main.
    • Conversations on disk no longer stall other streams: with --spill-gib (off by default), evicted states are written to disk in the background (#1453), and a queued request's state is read back ahead of its turn (#1464; TENSORFOLD_RESTORE_PREFETCH=0 turns this off). On an M5 Ultra with Qwen3.8-27B, returning conversations came back in 0.6–1.0 s instead of up to 21 s, and decoded at 149 tok/s instead of 61.
    • Restarts keep conversations on CUDA: with --learn-conversations, Qwen3.8-27B, Qwen3.6-35B-A3B and Flash Next keep conversation states on disk on CUDA too, as Nemotron does, so a turn after a restart reads its state back instead of prefilling it again (#1358, #1359). On a GB10, a 16k-token conversation's next turn after a restart took 3.9 s instead of 12.7 s with Qwen3.8-27B, and 0.4 s instead of 10 s with Flash Next, with the same tokens. Flash Next refuses the flag with --tp.
    • --spill-gib on CUDA: Nemotron, the Qwen3.5 hybrids and Flash Next take --spill-gib and --checkpoint-slots on CUDA too, with the same store and disk cap as a Mac (#1413). On a GB10, a conversation sent to disk came back for its next turn in 0.9 s instead of 2.5 s with Nemotron 3.5 Lightning, 7.0 s instead of 16.8 s with Qwen3.8-27B and 2.0 s instead of 9.7 s with Flash Next, with the same tokens.
    • Idle unloads keep conversations: with --spill-gib, conversations held only in RAM are written to disk when the server unloads for idleness, so the next turn resumes (#1471). On an M5 Ultra, a 32k-token Nemotron conversation woke in 1.3 s instead of 4.9 s.
    • GLM-5.3-Flash on CUDA (opt-in): TF_GLM_INDEX_CUDA=1 runs a prompt chunk's DSA indexer in two kernels of its own, byte-equal to before (#1449, for #1430). A cold prompt's first token came 2% sooner at 131k tokens, 9% at 524k and 16% at 1M.
    • Short prompts beside decoding streams (opt-in): TENSORFOLD_PREFILL_BUDGET=N caps the short-prompt rows filled before decoding streams get their next round, so a burst of short prompts holds them up for less time.
    • The KV pool keeps its page counts up to date as pages change hands, so an admission check takes constant time instead of about 55 µs at 262k pages.
    • The prompt cache finds a conversation's kept state through an index kept longest first instead of comparing the prompt with every kept state, with the same resumes and evictions.

    Memory

    • macOS memory-pressure governor (on by default) for engines served through the shared lane host (Flash Next with --parallel above one, Qwen3.8-27B and GLM): at warning, queued requests wait until no other stream runs and the prompt cache sheds kept states down to half its budget (TENSORFOLD_PRESSURE_CACHE_PERCENT), writing each to disk first with --spill-gib; at critical, new requests get 503 (#1454). Replies are the same tokens, and at normal pressure nothing changes. TENSORFOLD_MEMORY_PRESSURE=0 turns it off; see the runbook.
    • Resident memory on Linux: /metrics reports tensorfold:process_resident_bytes, its anonymous, file and shared parts, and the kernel's lifetime peak (#1422). On a GB10, host memory counts against the same pool as the weights.
    • Nemotron on CUDA counts checkpoint bytes for admission from the shard headers alone, so with memory mapping off it no longer reads every shard into memory. The estimate is unchanged.
    • Qwen3.6-35B-A3B on CUDA with TF_QWEN_KV_PAGES keeps each stream's MTP and DFlash2 draft ring and state in that stream's pool pages, instead of a fixed allocation for every stream past the first (#1356). Replies are the same tokens at the same speed.

    Models

    • MOSS-Image on Metal (test tool): MOSS-Image-Base's 5B transformer runs natively on an M5's tensor units as tf-moss-image, from the released bf16 checkpoint as published, on cases prepared with the publisher's own pipeline, which still encodes the prompt and decodes the picture (#1457). On an M5 Ultra a 1024x1024 picture's 50 steps take 47.3 s, and the decoded picture is 31.9 dB PSNR from the publisher's torch pipeline. Nothing is served yet; see the recipe.

    Server

    • Key scopes (opt-in): a key in --api-key-file can be limited to model requests (app[inference]: KEY) or to listings and metrics (grafana[read]: KEY), and gets 403 elsewhere before its body is read. Keys without brackets, and keys from --api-key or TENSORFOLD_API_KEY, keep every route. See key scopes.
    • Admission limits (off by default): --max-inflight N and --max-inflight-per-key N cap model requests in progress, overall or per key, and --requests-per-second N with --request-burst N limit how fast a key starts them; a refused request gets 429 with Retry-After. See admission.
    • Grammar budget (off by default): "grammar_budget": true keeps a reply under a grammar or a required tool call able to finish within max_tokens, so a tool call is no longer cut off unparsed (#1473). A grammar it cannot follow gets HTTP 400; a new grammar costs about 60 ms once for one tool, 640 ms for twelve.
    • --loop-guard-stop (opt-in, implies --loop-guard): when the reasoning-loop guard fires, the reply ends there, with finish_reason: "content_filter" and error code reasoning_loop, instead of answering, so a client running tools no longer receives calls that repeat finished work (#1463).
    • Streamed tool replies now carry an unoffered or malformed tool call that the whole reply keeps as text (#1365, #1429). An answer that starts with whitespace is sent when the reply ends.
    • CUDA peer-to-peer report (on by default): with two or more ranks, the server logs at startup each GPU's P2P status and PCIe paths, the driver, CUDA and NCCL versions, the P2P settings in effect and NCCL's chosen transport, and changes nothing. TENSORFOLD_P2P_DIAGNOSTICS=0 turns it off.

    Fixes

    • GLM-5.3-Flash on CUDA with the DFlash2 drafter: at one rank, or three or more, loading the drafter at 4 bits (the default) no longer writes about 9.4 MB past the end of its scratch (#1496). Two ranks were not affected.
    • Qwen3.5 and 3.6 on HIP (Linux): when a shard is read into memory because it can't be memory-mapped (as on some network or FUSE mounts), releasing a layer no longer zeroes neighbouring tensors not yet uploaded (269 of 690 layer tensors on Qwen3.5-2B), which ran the model on wrong weights. A malformed shard header is refused by name.
    • MLX affine checkpoints: a projection with malformed geometry is refused by name before it is loaded. On HIP, a MoE shared expert stored in a different dtype from its routed experts is now converted from its own dtype instead of being read as the wrong bytes.
    • Speech: the speech lane is freed as soon as a request finishes, and before any error reply, so back-to-back requests no longer get 503 "speech output capacity is full" (#1438).
    • Compaction reads text parts as the chat template does, so a turn sent as an array of text parts is no longer treated as empty (#1406).
    • --cortheon reads a vision turn's text parts as the chat template does, so its checks see the turn's words and different vision turns no longer share a key (#1469).

    Tests and tools

    • CI runs the release path check on a built release server, on Linux for pull requests and on every platform for pushes to main, so a private path left in a binary fails CI instead of the release (#1472).
    • tools/bench_cache.py takes --api-key-env NAME to reach a server started with --api-key, and never prints or stores the key (#1483).
    • The CUDA kernel contract runs to completion in a ReleaseSafe build (#1428).
    • The kernel contract checks Nemotron's routed-expert Metal pipelines from one row to 128 (#1494).
    • Gemma 4's E-series per-layer inputs have a host reference equal to MLX 0.32.4 bit for bit at one row; the E-series stays refused (#1402).
    • The LoRA symlink tests skip on Windows when the account may not create symlinks (#1405).

    Release testing

    1.1.8 against 1.1.7 on the same machines and checkpoints, alternating the two builds. The cells were cold prompts from 2k to 64k, and the stream sweep at 1 to 8 streams (16 for LFM2) with every stream checked against its run alone. Every change above was also measured against main on its own before it landed.

    • Every model gives the same tokens on both releases in every cell.
    • DGX Spark (GB10):
      • Qwen3.8-27B: across eight alternating runs, prefill at 2k and 8k is within 0.2%; one pair puts 32k within 0.3%. The sweep is within 0.4%. #1458 still tracks the 32k and 64k prefill lost in 1.1.7.
      • Nemotron 3.5 Lightning: prefill within 0.7%. Across eight alternating runs, the sweep is within 0.3% at 1, 4 and 8 streams. At 2 streams the sampled replies are within 0.5%, and the greedy ones vary by up to 10% between repeats in both builds.
      • Qwen3.8 Flash Next FP4-Local: prefill +0.3% to +3.4%, decode −0.6% to +2.6%, and the sweep +0.3% to +0.5%.
    • Two GB10s at TP=2, GLM-5.3-Flash NVFP4: no stream differs from its run alone (52 of 52), prefill is within 0.1%, and chat and code at one and two streams are within 0.4%.
    • M5 Ultra:
      • LFM2.5-24B-A2B: the sweep rises 1.9%, 18.4%, 33.6% and 31.4% at 1, 4, 8 and 16 streams, and prefill is within 0.2%.
      • Qwen3.8-27B: across eight alternating runs, prefill is within 0.1% at every size from 2k to 64k. The sweep rises 2.3% and 1.4% at 1 and 2 streams.
      • Nemotron 3.5 Lightning: prefill within 0.2%. Across eight alternating runs, the sweep is within 0.3%.

    Thanks

    @Bizuayeu, @plotarmordev, @nuk3s, @ppardus, @BobClawblaw, @Arminova, @wojo, @kesslerio, @Maxrio9, @BlivionIaG, @Mirrdhyn, @jschmied, @gilby, @BadAd84 and @paragontasx.

  22. 1.1.7

    Expandir

    GitHub Release

    TensorFold 1.1.7

    1.1.7 lets Flash Next on a Mac serve a checkpoint larger than the Mac's memory by reading experts from SSD with the same tokens, and makes concurrent Flash Next chats on Macs faster: on an M3 Ultra, decode across 4 and 8 streams is 10–12% higher than 1.1.6. Flash Next shared sessions can now keep conversations on disk, Qwen3.8-27B NVFP4 prefill on a GB10 is 4–6% faster, and Qwen3.8-27B and Qwen3.5-MoE on CUDA now apply presence and frequency penalties. The full list is in the changelog.

    Speed

    • Flash Next on Macs, concurrent chats: a shared round samples every stream's rows in one dispatch, drafts every stream in one packed MTP pass, and runs the sessions' recurrences in one verify (#1338–#1343). Against 1.1.6 on an M3 Ultra with the 4-bit MTP checkpoint, the stream sweep rises 1.2%, 4.0%, 10.2% and 11.9% at 1, 2, 4 and 8 streams, with prefill unchanged and the same tokens.
    • NVFP4 prefill on CUDA: the prompt GEMM gains a persistent 128x256 tile with a decoupled copy ring that does the same arithmetic in the same order (#1350). On a GB10, Qwen3.8-27B NVFP4 prefill rises 4.2% to 6.3% from 2k to 64k tokens with identical prompt tokens.
    • Flash Next shared sessions keep conversations on disk with --spill-gib and --checkpoint-slots (#1349). On an M3 Ultra with four sessions, a returning 16k-token conversation that was pushed to disk starts its next turn after 0.9 s instead of 11.9 s, with the same reply.
    • The prompt cache picks eviction victims from links between entries instead of comparing every pair (#1363): about 0.5 ms instead of 20 ms in a 220-turn forked conversation with 200 slots, with the same choices. A request's grammar now compiles once (#1362).

    Memory

    • Flash Next larger than memory on a Mac: --ssd-experts GIB and --ple-on-ssd leave the routed experts and n-gram tables in the checkpoint and read them from SSD (#1039). Neither is on by default, and replies are the same tokens as with everything in memory. On an M5 Ultra, the 6-bit MTP checkpoint, which doesn't fit in memory, serves with a 16 GiB expert budget. See Exact Fluid Subgraph Residency.

    Models and serving

    • Penalties on CUDA: Qwen3.8-27B and Qwen3.5-MoE apply presence_penalty and frequency_penalty (-2 to 2), which the server used to ignore silently (#1346). Drafted replies equal undrafted ones.
    • Qwen3.8-27B with TF_QWEN_KV_PAGES on CUDA: a stream on pages takes the same tensor-core attention as a whole window, so its reply beside other paged streams equals its reply alone (#1373).
    • Streamed tool calls: a call cut by max_tokens no longer gains an extra framing newline in its argument, so the stream matches the whole reply (#1408).
    • Preparation, with no change to existing models:
      • Qwen4 dense configs are admitted on Metal and CUDA ahead of a released checkpoint (#1244).
      • The Gemma 4 E4B geometry and tensor plan are in, with each backend refusing it by name until it computes it (#1400, #1401).
      • Two opt-in lane hooks prepare the LFM2 drafter work (#1378, #1380).
    • --prompt-precision int8 on CUDA logs a prompt chunk that falls back to bf16 (#1371). The kernel contract records nvcc 13.3's limits (#1397). Flash Next CUDA NVFP4 next-chunk file hints are opt-in (#1292).

    Release testing

    1.1.7 against 1.1.6 on the same machines and checkpoints, alternating the two builds. The cells were cold prompts from 2k to 64k, and the stream sweep at 1 to 8 streams with every stream checked against its run alone. Every change above was also measured against main on its own before it landed.

    • Every model gives the same tokens on both releases in every cell.
    • DGX Spark (GB10):
      • Qwen3.8-27B: prefill within 1% (32k −1.0%, 64k −0.7%; #1458 tracks recovering it). The sweep is within 0.4%.
      • Nemotron 3.5 Lightning: prefill within 0.4%. Across six alternating runs, the sweep moves +0.1% to +4.5%.
      • Qwen3.8 Flash Next FP4-Local: prefill +0.5% to +2.4%. Across six alternating runs, the sweep is within 0.3%.
    • Two GB10s at TP=2, GLM-5.3-Flash NVFP4: no stream differs from its run alone (52 of 52), prefill is within 0.1%, and decode is within 0.7%. Resumed chats hit the cache with and without thinking.
    • Mac Studio M3 Ultra:
      • Qwen3.8-27B: prefill and the sweep within 0.1%.
      • Nemotron 3.5 Lightning: prefill within 0.1%. Across six alternating runs, the sweep moves −0.6% to +1.7%.
      • Qwen3.8 Flash Next MLX 4-bit MTP: prefill within 0.1%. Across six alternating runs, the sweep rises 1.2%, 4.0%, 10.2% and 11.9% at 1, 2, 4 and 8 streams.
    • M5 Ultra:
      • GLM-5.3-Flash: prefill and one and two streams within 0.2% after the first run's warm-up.
      • The 1.1.7 binary serves Qwen3.8 Flash Next 6-bit MTP, which doesn't fit in memory, with --ssd-experts 16, with the same tokens on repeated runs.

    Thanks

    @gilby, @jschmied, @BobClawblaw, @Mirrdhyn, @BlivionIaG, @Maxrio9 and @MiaAI-Lab.

  23. 1.1.6

    Expandir

    GitHub Release

    TensorFold 1.1.6

    1.1.6 stops concurrent requests from each prefilling the same new system prompt: on a GB10, eight chats arriving together on a new 28k-token prompt get their last first token after 31 s instead of 201 s. Conversations pushed out of memory on a Mac come back from disk (--spill-gib), Qwen3.8-27B on Metal keeps decoding streams moving while a long prompt fills, and GLM-5.3-Flash image chats stop re-running the vision tower on later turns. It also adds Spark-X2.5/2.6-4B on CUDA and Metal, per-request sampling and dialogue for Drama speech, and tensorfold plan. The full list is in the changelog.

    Speed

    • Requests that arrive together on a new shared prefix no longer each prefill it when prompts fill a chunk a step. A request whose prefix another prompt is filling waits for that prompt's cut and resumes it (#1321, fixing #1310); TENSORFOLD_PREFIX_WAIT_MS bounds the wait (60000 by default, 0 off). On a GB10 with eight chat requests on a new 28k-token system prompt, the last first token comes after 31 s instead of 201 s with Qwen3.8-27B, and after 25 s instead of 146 s with Flash Next FP4. Every reply equals its run alone.
    • Conversations come back from disk on Macs. --spill-gib N writes a conversation state the prompt cache pushes out of memory to disk (at most N GiB), and reads it back when the conversation returns; --checkpoint-slots N bounds how many stay in memory (#840, from Python #68). Off by default. With one slot and a second 16k-token conversation in between, the returning conversation's next turn starts after 2.6 s instead of 56 s with Qwen3.8-27B on an M3 Ultra (1.8 s instead of 31 s with GLM-5.3-Flash), with the same reply as a fresh pass.
    • Qwen3.8-27B on Metal fills prompts a chunk at a time between the other streams' rounds, so streams already decoding keep going while a long prompt fills (#1303), and kept states reuse spare buffers (#1304). With an 8.7k-token prompt arriving while two streams decode on an M3 Ultra, the decoding streams' longest pause goes from 28.6 s to 0.47 s; the long prompt's first token comes 7.9% later.
    • Gemma 4 on CUDA with a drafter keeps its prompt-cache mark after a stepped prompt chunk, so a chat's next turn resumes: a 30k-token chat's next turn starts after 3.6 s instead of 45 s with Gemma 4 31B and its DFlash drafter on a GB10 (#1286).
    • GLM-5.3-Flash on CUDA takes KV pages from the core pool from two ranks, not only three (#1322, fixing #1313): at TP=2 on two GB10s with the NVFP4 checkpoint, two streams serve 14% more tokens/s, and prefill is flat to +17%.
    • GLM-5.3-Flash images on Metal: later turns of an image chat no longer run the vision tower again for images the kept prompt state already holds: on an M3 Ultra a follow-up image turn's first token comes about 90 ms sooner.
    • Host sampling with no rank cut (top_k: 0, top_p: 1) finds the sampled token by a keyed race instead of sorting the whole vocabulary (#1337). The draw is the same token for token.

    Models

    • Spark-X2.5/2.6-4B (new family, spark2_5) on CUDA from MLX affine checkpoints converted by tools/zig/spark25_convert.py (#1297), and on Metal from the bf16 release as published (#1320). On a GB10 at 8 bits it prefills 5,800 tokens/s at 2k and decodes 160 tokens/s on one stream; on an M3 Ultra, 2,840 tokens/s and 69 tokens/s, and its tokens match the CUDA engine's.
    • GLM-5.3-Flash reads the vision tower of MLX conversions that name it vision_tower. with channels-last convolution kernels, which it used to refuse with NoVisionTower.
    • DeepSeek-V4.1 (experimental native engine): zig build dsv41-serve installs runnable tensorfold-dsv41 and tf-dsv41 binaries (#1325), and packs that store the router bias or DSpark confidence head in F16 load them widened exactly to F32 (#1326).
    • Dory on CUDA can keep its full-attention caches in pages of the core pool with TENSORFOLD_DORY_KV_PAGES=1 (#1284), and Qwen3.5 on Metal with TF_QWEN35_METAL_KV_PAGES=1 (#1294); both off by default, with the same tokens as the contiguous caches.

    Serving

    • Drama speech: POST /v1/audio/speech takes per-request temperature, top_p, top_k and an exact 64-bit seed, whole and streamed (#1277), and dialogue with speaker tags <|speaker:0|> to <|speaker:15|> (#1278). Requests without them give byte-identical audio.
    • tensorfold plan MODEL says, before any download or weight load, the memory CUDA admission would grant and whether the checkpoint's weights fit (#1319).
    • --name-priority ID=background gives a served name a background default (#1317).
    • GLM-5.3: a tool call that max_tokens cuts comes back in tool_calls with finish_reason: "length" instead of leaking its markup into the reply's text (#1298). DeepSeek-V4.1 (experimental): a tool call in the model's spaced DSML spelling comes back in tool_calls instead of the reply's text, and a lone DSML opener no longer crashes the parser (#1324).
    • Metal: Qwen3.5, Nemotron, LFM2 and Gemma 4 lower an unnamed --parallel to what fits under the load limit at startup, and refuse a named one that does not fit, instead of failing under load (#1302). The lane host's prompt scheduling around short prompt bursts is fairer, with tokens and speed unchanged (#1287).
    • Fixes: on GB10s the start-up budget counts free pages the kernel parks on its per-CPU lists, so a start right after another process freed memory admits what fits (#1323, fixing #1311); tensorfold pull on macOS finishes a connection interrupted by a signal instead of crashing; tools/image_cache_turns.py measures multi-turn image chats' cache reuse against a served model.

    Release testing

    1.1.6 against 1.1.5 on the same machines and checkpoints, alternating the two builds: cold prompts from 2k to 64k, and the stream sweep at 1 to 8 streams with every stream checked against its run alone. Every change above was also measured against main on its own before it landed.

    • Every model gives the same tokens on both releases in every cell.
    • DGX Spark (GB10): Qwen3.8-27B prefill within 1% (2k -1.0%, 8k -0.8%, 16k-64k within 0.2%) and the sweep within 0.1%; Nemotron 3.5 Lightning prefill within 0.3% and the sweep from -1.7% to +10%; Qwen3.8 Flash Next FP4-Local prefill within 1.1% to 16k and the sweep +0.3% to +0.7%, while its 32k and 64k prefill varied between two levels on both builds alike across six alternating runs (a box effect, not a build difference).
    • Two GB10s at TP=2, GLM-5.3-Flash NVFP4: no stream differs from its run alone; prefill and one- and two-stream decode within 0.4%; resumed chats hit the cache with and without thinking.
    • Mac Studio M3 Ultra: Qwen3.8-27B prefill and the sweep within 0.3%; Nemotron 3.5 Lightning prefill within 0.1% and, across six alternating runs, the sweep from -1.8% to +3.0%; Qwen3.8 Flash Next MLX 4-bit MTP prefill within 0.1% and, across six alternating runs, the sweep within 1%.
    • M5 Mac, GLM-5.3-Flash: prefill within 0.1%, one and two streams within 0.1%.

    Thanks

    @jschmied, @wojo, @jvr0x, @BobClawblaw, @krunkosaurus, @ecohash-co, @Maxrio9, @ajensenwaud, @akol1, @philip-pentatonic, @gilby, @BlivionIaG, and for reports @Boscoeuk.

  24. 1.1.5

    Expandir

    GitHub Release

    TensorFold 1.1.5

    1.1.5 makes Qwen3.8 Flash Next faster on both engines with the same tokens: up to 28% faster prefill and decode on a GB10 with NVFP4 checkpoints, and 16% to 23% faster decode on Macs without tensor units. A follow-up question about a long document you already sent no longer prefills the document again, and GLM-5.3-Flash at TP=2 serves two streams 22% faster. It also adds Nemotron-Labs Dory on CUDA, NVFP4 and EXL3 exports for Qwen3.8-27B on CUDA, and Drama 3's pruned NVFP4 checkpoint on Metal. The full list is in the changelog.

    Speed

    • Flash Next on CUDA with NVFP4 checkpoints prefills with NVFP4 experts on prompt tiles, skips zero fills, and splits the hyper-connection and dense-mix work across more of the GPU (#1143, #1147, #1164, #1171). On a GB10 with Qwen3.8 Flash Next FP4-Local against 1.1.4, prefill goes from 1,306 to 1,583 tokens/s at 2k (+21%), 1,359 to 1,723 at 16k (+27%), 1,323 to 1,687 at 32k (+28%) and 1,174 to 1,373 at 64k (+17%). The served sweep gains 2%, 10%, 20% and 28% at 1, 2, 4 and 8 streams.
    • Flash Next on Macs without tensor units decodes 16% to 23% faster: the hyper-connection kernels run for wider windows without staging, rounds are gated on the GPU, and wide windows use grouped experts. On an M3 Ultra with Qwen3.8 Flash Next MLX 4-bit MTP, one stream goes from 120.8 to 147.8 tokens/s and eight from 154.8 to 180.2. Prefill is unchanged.
    • A follow-up about a long document (the same document again with a new question, in one user message) resumes from a kept prompt state instead of prefilling the document again, on Flash Next CUDA and Qwen3.8-27B on Metal (#1262). With a 35k-token document, the follow-up's first token comes after 2.8 s instead of 25.7 s with Flash Next FP4-Local on a GB10, and after 9.0 s instead of 125.9 s with Qwen3.8-27B on an M3 Ultra. The reply equals a fresh run's.
    • GLM-5.3-Flash. At TP=2 on two GB10s with NVIDIA's NVFP4 checkpoint, two streams serve 22% more tokens/s than in 1.1.4 for greedy chat and code, and one stream and prefill are unchanged. On Metal, decode reads the weights once per decode window (#1130): on an M5 Mac, two streams gain 8%.
    • Drama 3 on Metal reuses a catalog voice's reference prefill, so the first audio of a streamed reply comes 90% sooner (15.6 s to 1.5 s over four texts on an M3 Ultra) with byte-identical audio (#1237).
    • A CUDA request cancelled during its prompt keeps the prefill it completed, so a retry resumes from there; its reply equals an uncancelled run's (#1228).
    • Smaller changes: Flash Next CUDA's copy window widens after a copy that lands whole (#1252), tokenizer scratch starts on the stack (recovering a small one-stream loss in 1.1.4, #1248), and the lane host gives prompt steps their share of wall time beside decoding streams, so a long prompt no longer stalls them (#1188).

    Models

    • Nemotron-Labs Dory 1.0 4B on CUDA (new family, dory), at 1 to 4 loops from ModelOpt W4A16 NVFP4 checkpoints, with kept prompt states. On a GB10 at 2 loops it decodes 44 tokens/s on one stream and 299 in aggregate at eight (#1256 to #1261).
    • Qwen3.8-27B on CUDA serves ModelOpt and compressed-tensors NVFP4 and FP8 exports such as nvidia/Qwen3.8-27B-NVFP4, with bf16 activations against the stored weights (#1145), and ExLlamaV3 (EXL3) Qwen3.5-MoE checkpoints such as Ornith-1.5-122B (#1150).
    • GLM-5.3-Flash on CUDA loads nvidia/GLM-5.3-Flash-FP4-Local as stored (#1050), and Bizuayeu/GLM-5.3-Flash-XSFP4 through the same path, at TP=2 or TP=3.
    • Drama 3 on Metal reads the pruned NVFP4 checkpoint as stored, and has opt-in classifier-free guidance (--cfg-gamma and related flags). The default and catalog voices' audio is byte-identical to 1.1.4 (#1268).
    • Gemma 4 runs on Macs before the M5, with its dense projections on the row path.

    Serving

    • A tool call that max_tokens cuts now comes back in tool_calls with finish_reason: "length" in non-streamed replies too, as it already did when streamed (#1238, #1299).
    • return_token_ids adds the reply's token ids to the response's tensorfold block (#1290).
    • GLM-5.3's chat template receives clear_thinking from TF_GLM_CLEAR_THINKING or the request; the EXL3 checkpoint, whose template used to clear earlier reasoning, now keeps it, so earlier turns' prefill is reused (#1300).
    • LFM2 tool calls take the schema's types, parse the JSON list form, stream each call as it ends, and work through a grammar when required or named (#1265).
    • GLM-5.3-Flash on CUDA queues a request when the shared context pool is momentarily full instead of failing it (#1263), bootstraps /32 rings (#1178) and runs RoCE at 2 to 16 ranks (#1209).
    • Drama voice catalogs can carry descriptions, listed by /v1/voices (#1270).
    • Fixes: --prompt-precision int8 (opt-in) now falls back to bf16 for a chunk with a non-finite input, as intended; Gemma 4 on CUDA counts its vision workspace and drafter at admission and refuses a malformed DFlash config (#1245); a rare crash at shutdown after a tensor-parallel rank fails; CUDA builds on Windows with MSVC as the host compiler (#1296); the desktop app stops an agent run cleanly at a question's deadline.
    • The CUDA kernel contract's gates pass on a GB10 again: all 338 registered kernels pass gates 1 to 4 and all 92 planted controls are caught. Its resource-limit check still reports 52 problems, all in Qwen3.5 lane kernels' records (stale or missing register counts, no failing launch); those records are being completed.

    Release testing

    1.1.5 against 1.1.4 on the same machines and checkpoints: cold prompts from 2k to 64k, and the stream sweep at 1 to 8 streams with every stream checked against its run alone. Every change above was also measured against main on its own before it landed.

    • Every model gives the same tokens on both releases in every cell.
    • DGX Spark (GB10), Qwen3.8 Flash Next FP4-Local: the speedups above.
    • Two GB10s at TP=2, GLM-5.3-Flash NVFP4: 52 of 52 token checks equal; prefill within 0.4%; one stream within 0.5%; two streams +22%; resumed chats equal fresh ones with and without thinking.
    • DGX Spark, Qwen3.8-27B and Nemotron 3.5 Lightning: prefill within 0.2%; the sweep from +0.3% to +1.4% (Nemotron at 1, 2 and 4 streams across six alternating runs).
    • Mac Studio M3 Ultra, Qwen3.8-27B: prefill and the sweep within 0.2%. Nemotron 3.5 Lightning: prefill within 0.1%; across six alternating runs, greedy decode at one stream within 0.3% and two and four streams within 0.3%. Sampled one-stream decode averages 1.5% lower, inside its run-to-run spread (243 to 250 tokens/s on 1.1.4 alone).
    • Mac Studio M3 Ultra, Qwen3.8 Flash Next MLX 4-bit MTP: the sweep +16% to +23%, prefill unchanged.
    • M5 Mac, GLM-5.3-Flash: prefill within 0.1%; one stream +0.3%, two +8.4%.
    • The release archive's Linux binary on a GB10 reports 1.1.5, serves Qwen3.8-27B, and answers plain chat and a JSON-schema request; host tests and the archive checks pass on Linux and macOS.

    Thanks

    @jschmied, @Bizuayeu, @BlivionIaG, @harrisonfriia, @plotarmordev, @jerryfane, @drowzeys, @MiaAI-Lab, @outcastofmusic, @neko-legends, @Sapphire-Rapids, @GumbiiDigital, @Boscoeuk, @BobClawblaw, @jvr0x, @vcruz305, @CanadaApollo6, and for reports @devopsfortunato, @laidick, @flashosophy and @ss-cong.