Repository navigation
TensorFold 0.6.2: faster Flash Next on Macs at long context, faster 27B streams on CUDA, community fixes
- Flash Next on Macs at 64k-128k. A window's n-gram ids are hashed on the GPU, so the window no longer waits on a
host read; the copy proposer indexes a long first context by sorting packed n-grams; the chain's first draft step
is built while the GPU verifies; and a one-stream window queues its first two layers alone, then every third. On
an 80-core M3 Ultra, one stream: code 1.2% and chat 3.4% faster at 64k, code 5.5% and chat 3.9% faster at 128k,
level from 1k to 32k, with the same tokens and the same prompt speed. - 27B with several streams on CUDA. The DeltaNet tree kernel spends fewer instructions a node: one spread
butterfly, per-lane pointer loads, and, with two or more streams, 8 value rows a warp on SM 12.0 cards with 96 or
more SMs. On real verify trees it takes 17-35% less time on an RTX PRO 6000 and 8-28% less on a DGX Spark, with the
same bits. Served on an RTX PRO 6000 at its 250 W limit, 4 and 8 streams of the NVFP4 27B decode 1.1-4.2% faster
(8 streams of code, greedy: 1,196 to 1,232 tok/s), and every stream's reply equals its solo run. The DFlash2
drafter's gate and up projections also share one launch, with the same bits. - Community pull requests.
- NVIDIA's MIXED_PRECISION Flash Next export, whose one FP8 tensor is the n-gram table, now passes the config check
(#222). Two load-path refusals remain before that checkpoint serves, so #179 stays open until it does. Thanks to
@plotarmordev, and to @Yuepixel for the report. - GLM-5.3 on CUDA reports its drafted and accepted tokens in replies,
/healthand/metrics(#225), and the
README gives--mtp-confidence's 0.70 default (#221). Thanks to @plotarmordev. - The disconnect check works past file descriptor 1023, so a server with many open sockets or shards stops a reply
whose client has gone (#218). Thanks to @jayleaton. - The CUDA server prints a line for each request and a done line with tokens, speed and drafts, as the Mac server
does (#199). Thanks to @cshintov. - A failed or interrupted snapshot write removes its partial file, and a starting server removes those left by
processes that have ended (#206); Gemma 4's QKV kernel reserves the 1024 threads it launches, so pipelines that
would offer fewer on M1, M2 and macOS VMs take its launch (#224); one reading of the GPU generation, so a VM's GPU
or a CPU default device no longer takes the M5 kernels (#209). Thanks to @di37.
- NVIDIA's MIXED_PRECISION Flash Next export, whose one FP8 tensor is the n-gram table, now passes the config check
- Mixed-bit EXL3 checkpoints are refused by name. GLM-5.3 on CUDA reads one bit width a checkpoint. A mixed-bit
encode now gets an error that says so, instead of a failedint()on its bits (#226). Support for those encodes
is not in yet. Thanks to @satindergrewal for the report. - Credit for the GLM-5.3-Flash EXL3 checkpoint. The docs now credit Brandon M. Music for the EXL3/TR3 checkpoint
that Mia-AiLab's repository re-hosts (#215). Thanks to @brandonmmusic-max.
Update with tensorfold update, or pip install -U git+https://github.com/ashhart/TensorFold.git@v0.6.2.
Known limits: NVIDIA GPUs need compute capability 8.9 or newer (RTX 40, Hopper, Blackwell, the DGX Spark); RTX 30
cards are refused at startup for now. GLM-5.3 image prompts are prefilled again each turn.