Skip to content

TandemLLM 0.15.3

Choose a tag to compare

@0xBakeer 0xBakeer released this 09 Nov 13:25
· 922 commits to main since this release

TandemLLM 0.15.3 fixes a server that refused requests with memory_full after a day of use, and lets long chats wait for memory and share the box instead of being cancelled. Flash-Next prefills long prompts faster and drafts past 32k again. Ten pull requests from four contributors are in it: Ada kernels, every GGUF quant type on NemotronH, strict HTTP framing and the engine's context in usage among them.

Memory that comes back

  • Flash-Next's CUDA graphs are captured on their slot's own stream and dropped together (SRV-795). Each graph kept a private allocator pool that nothing reset: after 29 hours a server held 3,905 pools and 33.0 GB, 21.2 GB of it free and unreleasable. The KV pool's reclaim now drops idle sets after the caches and before any conversation's rows, and QSE_GRAPH_POOL_GIB (8) caps their growth. Over an 8.4 h run of 758 requests the pools peaked at 9.87 GiB.
  • A request short of memory waits at the KV pool's floor and goes on (SRV-797). The admission and the pool used two floors, so a 49k turn was admitted, refused at its first page and given way 16 times before it ended with memory_full. A refused lane now gives way alone and during its prefill too, and backs off.
  • A streamed request waits up to 3 hours for memory, with an SSE comment every 15 s. A request not streamed gets a 503 with Retry-After, or the long wait with wait_for_memory: true or X-Tandem-Wait-For-Memory: 1.

Long chats side by side

  • A chat has a priority for memory, normal by default (tandem.priority). Waiting requests stand in line by priority, and the reclaim takes lower-priority chats first.
  • An idle conversation is written to the NVMe while its rows stay, a side slot's before its pages go, and a returning chat reads it back. A turn is charged the rows it forwards, not a cold prefill.
  • On one DGX Spark with Flash-Next 3.05, five chats of 221k to 225k tokens, with room in the KV pool for four, took a turn at once in 32 to 68 s each with the session spill on, and 659 to 894 s with it off. docs/caches.md has the table and its limits.
  • A compaction's summary is one more turn of the chat's own request: 36 to 38 s at 212k, where it read 100k to 194k tokens again before.

Engine

  • Flash-Next's long-context prefill selects its blocks with a radix select and fused scores (#158): a cold 185k prompt in 198.4 s, 312.2 s on 0.15.2.
  • Flash-Next drafts past 32k again (#159): 62.8 tok/s at 60,907 tokens of context, 37.6 on 0.15.2, with the same text.
  • Ada (sm_89) Triton kernels with load-time verdicts (#144); every ggml quant type on NemotronH's GGUF loader (#143).

Server and chat

  • --usage-context engine reports the occupied context in usage.prompt_tokens (#140). The HTTP server drops a stalled client after 60 s and frames bodies strictly, and the relay keys its login throttle on the TCP peer (#37, #42).
  • Plan mode runs read-only tools; chatd's grep reads files up to 16 MiB (#65); every weight card states its slot count (#163).

Flash-Next 3.05 writes the same text as 0.15.2. Every family's fingerprint moves once, so prompt-cache files and spilled conversations are rebuilt once. CHANGELOG.md lists every change.