Repository navigation
TensorFold 0.5.0: Responses API, long context on Sparks ahead of vLLM, community PRs
- OpenAI's Responses API on both servers.
/v1/responsesruns as a chat completion: every response has its chat
completion's token SHA and prompt tokens, and a tool round trip gives the same reply throughprevious_response_id,
the turn resent whole, or chat. A second turn resumes from the cache. - Long context on Sparks, the same bits as 0.3.6.3. The 27B's attention reads each key chunk once for a round's
rows, with 16-byte loads, and prompt attention runs in its own CUDA kernel. On one Spark (MLX 4-bit + DFlash2):
decode at 128k 18.4 -> 38.9 tok/s, at 96k 23.6 -> 45.9; cold prefill at 128k 860 -> 1,173 tok/s and at 255k
545 -> 809. On the same NVFP4 weights, prefill runs 1.16-1.27x vLLM at every depth from 32k to 255k. - The CUDA server reads requests as the Mac server does.
reasoning_effortandthinking_budget, usage with the
cached prompt tokens in every reply (streamed ones too), typed tool arguments,min_pon both backends,
ignore_eoson Flash Next and Nemotron, andtop_k0 drawing the whole nucleus on two GPUs as on one. Thinking
uses the template's own default effort on both servers. priority: backgroundon CUDA. A background request yields to foreground ones and replays from its prompt,
so its reply still equals its solo run. Under--parallel, the 27B and Qwen3.6 prefill a background prompt 1,024
rows a step (measured waits in docs/api.md).- Community pull requests.
- Faster CUDA startup and model loading (#82). Thanks to @pmeenan.
- Qwen3.6-35B-A3B serves
--parallel Non CUDA, each reply equal to its solo run (#84), andresponse_format
JSON schemas on the 27B, exact under drafts (#80). Thanks to @philip-pentatonic. /healthpublishes live token totals (#79). Thanks to @MiaAI-Lab.- The 27B's concurrent drafter keeps no stale context after a prefill step (#92). Thanks to @nood-co1.
- Flash Next lists its sparse-attention blocks past 131,072 keys in tiles, the same lists (#93). Thanks to
@MovieMaker93.
Update with pip install -U git+https://github.com/ashhart/TensorFold.git@v0.5.0.
Known limit: on Qwen3.6 under --parallel, a foreground request that arrives during a background prompt's prefill still waits for most of it (0.57 s against 0.70 s without the priority). The 27B yields sooner.
Also in the works, not in this release: caches that grow with use on Sparks, wider copy rounds for one stream on CUDA (edits 147 -> 547 tok/s in testing), prompt processing that shares rounds with decoding streams, and GLM-5.3 prompt speed on Macs.