Leleka: Model Compression and Session Multiplexing for Long-Context Coding Agents on One GPU
Leleka serves long-context coding agents on one RTX 5090. It integrates Koference’s nested bit-plane encoding with a verified sparse archive view that preserves the serving path’s offsets. Level-2 KAR reduces the per-layer embedding representation from 28.8 GB to 16.0 GB relative to GGUF. Sparse materialization separately reclaims 36.6 GiB versus a full copy of the same KAR archive, with bitwise agreement on recorded output traces. The KAR–GGUF comparison changes 4.27% of teacher-forced argmaxes, against 1.50–1.87% across same-encoding runs. Leleka multiplexes sessions at request boundaries with reference-counted attention blocks and checkpoints of recurrent, embedding-history and speculative draft state. On 96 synthetic requests from four interleaved sessions, p95 time to first token falls from 27.6 s to 5.5 s relative to a single-active-history Leleka baseline. Returning sessions at about 180,000 tokens see 2.72–4.76 s versus 53.1–53.7 s. A live Codex run measured a 29 ms median state import on session switches and a 51 s maximum queue wait.
Authors
- Pavlo Ratushnyi
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24519079
- Primary Topic
- Advanced Neural Network Applications
- Type
- preprint