Repository navigation
TensorFold 1.1.7
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-giband--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 GIBand--ple-on-ssdleave 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_penaltyandfrequency_penalty(-2 to 2), which the server used to ignore silently (#1346). Drafted replies equal undrafted ones. - Qwen3.8-27B with
TF_QWEN_KV_PAGESon 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_tokensno longer gains an extra framing newline in its argument, so the stream matches the whole reply (#1408). - Preparation, with no change to existing models:
--prompt-precision int8on 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.