Frontier Research Engineering

Training & Inference at Scale

Socratic Tutor

Memory math, parallelism, mixed precision, KV caches and batching — what a research engineer reasons about daily.

Memory & Precision

Training Memory MathCore
12 min
Floating Point for ML: fp32, fp16, bf16, fp8
11 min

Parallelism

Data Parallelism, All-Reduce and ZeRO/FSDPCore
13 min
Tensor and Pipeline ParallelismCore
13 min

Inference

KV Cache Memory Math: MHA vs GQA vs MQACore
12 min
Serving Throughput: Prefill, Decode and Batching
13 min
Making Inference Cheaper: Quantization and Speculative Decoding
12 min
StackSweep | Engineering practice