Skip to content

TensorFold 1.1.1

Choose a tag to compare

@ashhart ashhart released this 19 Oct 11:33
· 10022 commits to main since this release

TensorFold 1.1.1

1.1.1 adds native CUDA families, improves Qwen drafting and brings Flash Next's image, video and extended-window support to Metal.

  • DeepSeek-V4.1's CUDA pieces land, but no release binary serves DeepSeek checkpoints until its whole-model gate (#827) passes; the server refuses them with one line. Kolibri-1's text research checkpoint also gains native CUDA serving.

  • Qwen on CUDA uses larger verification trees, shared stream rounds and batched DFlash proposals, choosing draft widths from measured complete-round costs. Short-context DFlash2 sessions can open without room for the calibration windows.

  • GLM CUDA stepped serving interleaves fresh prompt chunks with running decode. Whole-prompt serving can batch eligible fresh text prompts across ranks, keeping each sequence's final prompt row and first draft separate, with at most 16 prompts and 2,048 rows per pass. Images and resumed prompts keep their own paths. Prompt log probabilities, structured output and required or named tool calls are supported. Prompt projections use one K slice at every operator row count by default. This equal-precision regrouping can change replies versus 1.1.0, including long or resumed prompts with internal projection calls under 128 rows. TF_GLM_PROMPT_K=shape, with TF_GLM_MM=1 on every rank, selects K slices by shape throughout prompt projections, including full blocks; it does not restore 1.1.0's mixed row-count policy. Verify and draft windows keep their existing policy.

  • CUDA gains shared graph/arena facilities, tensor-parallel transports and paged-KV session tiers, enabled by participating families. Failed kernel launches include their launch dimensions.

  • Qwen3.8-27B Metal allocates DeltaNet rollback scratch only where needed.

  • Flash Next on Metal reads images and video with media-aware prompt-cache identity and offers a 1,048,576-token window on one Mac. Windows beyond the trained range use static YaRN; paired long-window loads are refused.

  • Flash Next on Metal uses precise exp2, sin and cos for rotary preparation and index pooling, including M-RoPE (#986, #1005): the probes pass 11/11 and 34/34 comparison cells keep their tokens on M3 Ultra and M5 Ultra. M3 shows no measured cost; M5 decode is 0.4-0.7% slower. Cold prompts are unchanged.

  • Native CUDA and recording wrappers preserve a family's first-token handoff flag, allowing enabled families to deliver that token before the next draft. Contributor links follow @jrb-ai's handle change.

  • Native sampling uses fresh seeds unless explicitly configured; request logs record seeds and request-owned timing. Source builds report the correct release version.

  • The server drains active requests on shutdown and sends pre-token streaming keepalives. Community-v2 benchmarks count eligible natural stops using delivered tokens; publication remains disabled.

  • FP4-Local gains host-side format foundations and shard-aware weight estimates; complete mixed-format model loading remains separate.

  • Qwen3.8-27B CUDA caches measured startup window costs between processes. A hit still warms live resources before ready.

  • A missing optional CUDA library is named in the error, with the feature that needs it, and listed in capabilities --json (#1030).

  • GB10 efficiency-core pinning is documented in the runbook (#1033). The engine fix for idle spinning remains separate, so the issue stays open.

  • The Hub fake-IP and endpoint fix is on main and ships in the next app beta (#1037). Private and metadata addresses remain refused on the Hub path.

  • Qwen3.8-27B Metal keeps Neural Engine prompt columns off by default because fp16 prompt rows can change replies; TF_ANE_COLUMNS=N is an explicit opt-in.

Security

  • Every request needs one valid Host, including HTTP/1.0; hostless HTTP/0.9 is refused.
  • Loopback binds accept localhost or loopback IPs; add trusted names with --allowed-host NAME.
  • Cross-origin browser requests are refused unless allowed with --allowed-origin ORIGIN; this adds no CORS permission. Native clients may omit Origin.
  • Configured keys protect every route except public GET root/health, fixed slide page/assets and explicitly opened GET metrics. OPTIONS keeps its nonmutating 501 response.
  • Key files with group/other write bits are refused; use chmod 600.
  • Public health no longer resets the memory peak.

Thanks to @BobClawblaw, @jayleaton, @akol1, @jschmied, @Bizuayeu, @cwschroeder, @tpischke, @jrb-ai, @BlivionIaG, @easthambuilds, @GustavBlack, @ajensenwaud and @sethforprivacy, with the original ExLlamaV3, YaRN and format attributions retained.

Known issues:

  • Qwen3.8-27B cold prefill at 64K tokens on RTX 50-series GPUs (sm_120) measures about 2% slower than 1.1.0 in three runs; 2K and 32K prompts on the same card, and 2K to 64K on GB10, measured at parity or faster. We're investigating it for 1.1.2.
  • Flash Next on Metal still runs a long prompt to its end before other streams' rounds (#1032); the fix is in review for 1.1.2. GLM Metal's idle keepalive experiment is also outside this release.
  • GLM's ModelOpt NVFP4 checkpoint on two CUDA ranks: a community run on two GB10s at TP=2 loads and serves the whole checkpoint on 1.1.0 (#1040, thanks @Bizuayeu); scored prompts and more than two ranks are untested.
  • Living Weights implementation and safety work is in the 1.1.1 tree, while its model, retention and save/restart qualification remains pending; the #1029 lesson-counter repair is excluded. MiMo and a complete DeepSeek Metal backend remain outside this release.
  • Flash Next Metal's separate shared-session cache-count and lone-decode performance repair remains deferred.
  • On CUDA, Qwen3.6-35B-A3B with native MTP switched on (--drafter pointing at the model's own folder) decodes about 13% slower than without drafts at one stream, and about even at eight; the default server doesn't use MTP for this model.
  • With --cortheon, a streamed reply whose research stays quiet for longer than the 15-second keepalive interval can write a keepalive before the HTTP response head, so the client sees a malformed response; the fix is queued for 1.1.2.