← Back home

Memory · scheduling · kernels

Keep the GPU busy,
without losing control.

10 chapters

Turn a checkpoint into a reliable service by connecting latency objectives, request execution, cache economics, scheduling, numerical formats, and operational evidence.

See every chapter

Inference / 10 chapters

Put the model into production

Ten chapters follow the full serving path from service-level objectives to realistic load tests and reliable overload behavior.

  1. 01
    Chapter 01 · 13 Aug 20264 min read

    Inference Begins With a Service Contract

    Define time to first token, inter-token latency, end-to-end latency, throughput, availability, workload shape, and cost before selecting hardware.

    Read
  2. 02
    Chapter 02 · 13 Aug 20264 min read

    Anatomy of an Inference Request

    Trace admission, tokenization, queueing, batching, model execution, sampling, streaming, cancellation, and observability across explicit boundaries.

    Read
  3. 03
    Chapter 03 · 13 Aug 20265 min read

    Prefill and Decode Are Different Workloads

    Separate compute-heavy prompt processing from memory-bound token generation and measure each phase with the metric it controls.

    Read
  4. 04
    Chapter 04 · 13 Aug 20265 min read

    KV-Cache Arithmetic and Memory

    Calculate cache bytes per token and request, then connect context length, concurrency, paging, eviction, and admission control.

    Read
  5. 05
    Chapter 05 · 13 Aug 20265 min read

    Continuous Batching and Scheduling

    Schedule token work rather than whole requests, control queue delay, handle preemption and cancellation, and prevent long prompts from dominating.

    Read
  6. 06
    Chapter 06 · 13 Aug 20265 min read

    Parallel Inference Across Accelerators

    Choose tensor, pipeline, data, or expert parallelism by balancing memory fit, communication volume, latency, throughput, and failure domains.

    Read
  7. 07
    Chapter 07 · 13 Aug 20265 min read

    Quantization and Numerical Formats

    Compare weight, activation, and cache precision; measure memory traffic and kernel support while guarding output quality and stability.

    Read
  8. 08
    Chapter 08 · 13 Aug 20265 min read

    Speculative Decoding and Latency Levers

    Use fused kernels, prefix reuse, speculative decoding, and workload-aware tuning only after identifying the phase that dominates latency.

    Read
  9. 09
    Chapter 09 · 13 Aug 20265 min read

    Capacity Planning and Reliable Overload

    Turn memory, token throughput, queue limits, timeouts, retries, backpressure, and degraded modes into an explicit capacity envelope.

    Read
  10. 10
    Chapter 10 · 13 Aug 20265 min read

    Load Testing and the Evidence Bundle

    Benchmark realistic prompt and output distributions, concurrency, streaming, cache pressure, failures, tail latency, quality, and cost together.

    Read