LocalAI 5.1 cuts 35B first-token wait from 35.5s to 8.3s with paged serving
mudler_it · reddit · 2026-12-01
LocalAI maintainer mudler released v5.1, benchmarking Ornith-1.5-35B-A3B Q80 on a single DGX Spark at 16 concurrent requests:
- Paged serving: median first-token wait dropped from 35.5s (4 slots) to 8.3s (16 slots + paging); total output rose from 81 to 153 tokens/s, with all 128 requests completed.
- Scheduler design: a layer around llama.cpp's existing shared KV cache — queues requests that won't fit and chunks long prompts so streaming chats keep going. Works on any model.
- vs stock llama.cpp: inserting an 8,000-word prompt while 8 Qwen3-8B chats stream: longest pause 688ms vs 109ms; total throughput barely moved, p99 first-token delay only 0.5s worse.
- Automatic prompt caching: 32 Qwen requests sharing a system prompt reuse it while the first is still generating — prompt tokens per run fell 7,989 → 3,945, median TTFT 220ms → 110ms, no client changes.
The scheduler is MIT-licensed for other llama.cpp-based servers. Benchmarks and code in PR #13528.
More from Infra
- Oxide engineers dissect why and how they built their own FPGA-based NIC — Sethwinterroth · 2026-12-01
- SGLang adds open-source safety monitoring with Reflection AI's Iris, ~0.7% throughput cost — ying11231 · 2026-12-01
- CoreWeave cut F1 aero prediction error by 50% on small, noisy telemetry data — CoreWeaveDevs · 2026-12-01
- Nvidia reportedly weighing board purge after Jensen Huang's reinstatement as CEO — Polymarket · 2026-12-01
- Georgi Gerganov's open-source stack: llama.cpp, whisper.cpp, Keytap, ggwave — alex_verem · 2026-12-01
- Space data center narrative set to flip from 'IPO scam' to 'must be regulated' — Darpinian · 2026-12-01