0
stars
17
commits
HTML
primary language
Aug 19, 2026
updated
A from-first-principles LLM inference engine, progressing from naive autoregressive decoding to continuous batching, KV-cache management, profiling, speculative decoding, and DFlash.
Static batching
Naive concurrency
Stage 1: batched decoding
Stage 2A: dynamic request removal
Stage 2B: dynamic request admission
Stage 2C: variable prompt lengths
Stage 2D: persistent KV-cache slots — no full cache rebuild
Current progress:
slot_id per requestStage 2E: block/paged KV-cache management
Code cleanup and argparse CLI
PyTorch Profiler integration
Profiler-guided optimization
Vanilla speculative decoding
EAGLE-style speculative decoding comparison
DFlash
Understand the inference stack by building each bottleneck and its solution:
AR decoding → KV caching → batching → continuous batching → KV-cache memory management → profiling → production serving → speculative decoding → DFlash
17 commits
HTML
95.8%
Python
4.1%
0
stars
17
commits
HTML
primary language
Aug 19, 2026
updated
A from-first-principles LLM inference engine, progressing from naive autoregressive decoding to continuous batching, KV-cache management, profiling, speculative decoding, and DFlash.
Static batching
Naive concurrency
Stage 1: batched decoding
Stage 2A: dynamic request removal
Stage 2B: dynamic request admission
Stage 2C: variable prompt lengths
Stage 2D: persistent KV-cache slots — no full cache rebuild
Current progress:
slot_id per requestStage 2E: block/paged KV-cache management
Code cleanup and argparse CLI
PyTorch Profiler integration
Profiler-guided optimization
Vanilla speculative decoding
EAGLE-style speculative decoding comparison
DFlash
Understand the inference stack by building each bottleneck and its solution:
AR decoding → KV caching → batching → continuous batching → KV-cache memory management → profiling → production serving → speculative decoding → DFlash
17 commits
HTML
95.8%
Python
4.1%