Tag: #llm-inference
All published articles with this tag "llm-inference". 3 items published.
- Research · Deep Learning
GQA & MQA: Mathematical Foundations, Memory Bandwidth Optimization, and KV-Cache Scaling from Multi-Head to Grouped-Query Attention
Master Grouped-Query Attention (GQA) and Multi-Query Attention (MQA): KV cache memory explosion calculus, architectural comparison across MHA/GQA/MQA, tensor broadcasting vs FlashAttention stride tricks, MHA-to-GQA uptraining, and production PyTorch implementations powering LLaMA-3 and Mistral.
- Research · Deep Learning
Speculative Decoding: Mathematical Foundations, Rejection Sampling Proofs, Tree Attention (Medusa & EAGLE), and Production PyTorch Serving
Master Speculative Decoding: memory-bandwidth bottlenecks, modified rejection sampling proof of exact distributional equivalence, expected speedup dynamics, tree-based verification (Medusa & EAGLE), and production PyTorch serving implementations.
- Research · Reinforcement Learning
PagedAttention: Virtual-Memory KV Cache Management, Continuous Batching, and PyTorch Architecture
Master PagedAttention: virtual memory KV cache paging, block tables, prefix caching (CoW), continuous batching, memory fragmentation math, and PyTorch kernels.