Open to software engineering roles

Search ⌘K Résumé

AI Learning / Production / Days 46-54

Inference Engineering

Inference engineering is where model quality meets infrastructure reality: hosted APIs, self-hosting, vLLM, TGI, SGLang, Ollama, llama.cpp, quantization, caches, batching, and cost-performance trade-offs.

Advanced 8 subtopics 9 daily blocks

Outcome

Understand serving choices, quantization, caching, batching, GPU economics, latency, throughput, and provider trade-offs.

What to learn

  • API-based vs self-hosted inference
  • Inference servers: vLLM, TGI, SGLang, Ollama, llama.cpp
  • Quantization: GGUF, AWQ, GPTQ, INT4 and INT8
  • KV cache optimization, prefix caching, speculative decoding
  • Continuous batching and throughput tuning
  • Latency vs throughput trade-offs: TTFT and TPS
  • GPU economics, edge inference, on-device models
  • Inference providers: Together, Fireworks, Groq, Cerebras, Replicate, Bedrock

Daily study plan

  1. Day 46: Compare API inference and self-hosted inference constraints.
  2. Day 47: Run a small local model with Ollama or llama.cpp.
  3. Day 48: Learn quantization formats and measure quality/latency trade-offs.
  4. Day 49: Study vLLM or TGI serving architecture.
  5. Day 50: Measure TTFT, tokens per second, and total latency.
  6. Day 51: Test prefix caching or prompt reuse patterns.
  7. Day 52: Explore continuous batching and throughput tuning.
  8. Day 53: Compare provider pricing and latency for one workload.
  9. Day 54: Write an inference decision matrix.

Practice builds

Inference benchmark dashboardProvider latency comparisonLocal model playground

Resources

↑↓ move↵ openesc close