jitllm moves a running LLM's layers between GPUs mid-reply in 8ms with zero recompute
web3samy · reddit · 2026-10-14
Inspired by OS and JIT compiler design, a developer built jitllm, an inference engine that treats model layers like schedulable processes: the paged KV cache moves with the layers, so no re-prefill is needed.
Benchmarks:
- On 2×T4, Llama-3.2-3B Q4KM migrated from GPU 0 to GPU 1 mid-reply in 8.1ms with 0 tokens recomputed; the reverse move took 8.4ms
- On 2×V100 with a 1.8k-token chat, migration took 20-21ms
- On an RTX 3050 Ti laptop, the model was split across CPU, CUDA and Vulkan (iGPU) and rearranged while generating, in 91ms
The author argues JIT-generated kernels bring every optimization to every machine, and that paging plus relocation turns placement into scheduling — enabling models larger than memory, mismatched GPUs, and workloads that shift as conversations grow. Code is open-sourced on GitHub.
More from Infra
- Amazon Ergo enters most attractive quadrant at $1.64 per Intelligence Index task — ArtificialAnlys · 2026-12-02
- Amazon Ergo takes open-weights crown: 38 on AA Index, 1.1T params (55B active) — ArtificialAnlys · 2026-12-02
- Jensen Huang warns the US risks repeating its "5G mistake" and losing the AI race to China — TinfoilTricorn · 2026-12-02
- Hyperscaler capex consensus keeps being redrawn upward, now at $1.2T — peterwildeford · 2026-12-02
- Netlify served 54B requests over Black Friday weekend, peaking at 249K rps — thisiskp_ · 2026-12-02
- Rumor: Tencent and ByteDance may have snapped up Envision's Xinghe Phase I, leaving DeepSeek no Huawei 950DT capacity — teortaxesTex · 2026-12-02