Skip to content

TensorFold 0.6.0: RTX 40 cards, prompts inside the decode rounds, resumes on more engines, Apache-2.0

Choose a tag to compare

@ashhart ashhart released this 30 Sep 21:31
· 13743 commits to main since this release
  • RTX 40 cards. CUDA now runs on compute capability 8.9 (Ada). On one RTX 4090 the 27B serves with DFlash2 in a
    40,182-token window, exact: drafted replies equal serial ones, and a resume or resend gives a fresh run's reply.
    Prompts fill at 2.4-2.6k tok/s from 2k to 32k tokens, and replies decode at 64-86 tok/s. On one GPU the 27B's kept
    prompt states give way, oldest first, when a live reply needs the room, so admission counts one live window.
  • Prompts fill inside the decode rounds. With --parallel on CUDA, Flash Next prefills a queued prompt in the
    same forward as the live replies instead of stopping them: on one DGX Spark, first tokens came 2.8-3.1x sooner than
    on 0.5.0. On Macs several prompts fill side by side, the fewest tokens left first: on an M3 Ultra, short requests
    queued behind a long prompt got their first token in a median 9.9 s instead of 113 s (the slowest 11.7 s, not 130).
  • Conversations resume on more engines. An identical resend or the next thinking turn now resumes from the kept
    prompt state on Flash Next, Qwen3.6, Nemotron and GLM-5.3 on CUDA, as the 27B did, with a fresh run's reply: an
    18.7k-token Flash Next resend went from 8.3 s to 0.08 s. On Macs the prompt cache keeps each conversation's newest
    checkpoint and grows into memory the model leaves idle.
  • CUDA prompts run at bf16 by default. Against an fp32 reference the 27B's prompt rows are 20x closer than with
    FP8 (KL 0.0031 against 0.0624). --prefill-fp8 keeps 0.5.0's faster FP8 prompts for those who want them.
  • Tool calls for agents. The CUDA server streams tool-call arguments as the model writes them (the longest
    silence in a long call fell from about 30 s to half a second), Python-spelled values like False and None
    decode to their schema types, Gemma 4's bare tool calls parse (#121), and a prompt past the context window gets
    OpenAI's context_length_exceeded, so clients compact instead of retrying.
  • More checkpoints. GLM-5.3 on Macs reads 8-bit and Q8_0 GGUF checkpoints and takes images, and has an opt-in
    float32 activation mode (bf16 stays the default). On Macs, Flash Next loads oMLX's oQ checkpoints with scaled
    n-gram tables; on CUDA it reads consolidated EXL3 tables and block-scaled FP8 linears.
  • Faster. Flash Next NVFP4 decodes 4.9-7.1% faster and fills prompts 15-16% faster at 2k-16k, bit-identical. On an
    M5 Ultra the 27B with DFlash2 on an oQ4e checkpoint went from 33 to 131-160 tok/s. Before M5, a lone stream's copy
    windows widen to 128 rows (an M3 Ultra edit ran 190 -> 233 tok/s), and Flash Next's concurrent rounds use the matrix
    units. GLM-5.3's DFlash2 reads only its sliding window: 8% faster at 52k, and 3.8 GiB lighter a rank on two Sparks.
  • Operations. Prometheus /metrics on both servers, TENSORFOLD_MEMORY_RESERVE_GIB for the CUDA startup
    reserve, --checkpoint-slots for the 27B's concurrent decoder on CUDA, and an idle GLM rank no longer spins.
  • Apache-2.0. TensorFold is licensed under the Apache License 2.0 from this release, which adds an explicit patent
    grant from contributors. Releases up to 0.5.0 stay MIT, and code written before 0.6.0 keeps its MIT notice in
    LICENSES/MIT.txt.
  • Community pull requests.

Update with tensorfold update, or pip install -U git+https://github.com/ashhart/TensorFold.git@v0.6.0.

Known limits: NVIDIA GPUs need compute capability 8.9 or newer (RTX 40, Hopper, Blackwell, the DGX Spark), and NVFP4
and FP8 checkpoints need 9.0; RTX 30 cards are refused at startup for now. Gemma 4 with thinking off can leak an
empty thought block into its reply (#157; the fix is planned for 0.6.1). GLM-5.3 image prompts are prefilled
again each turn.