Skip to content
All topics

Domain

Model inference and serving

Running models yourself: batching, quantization, GPU memory, serving frameworks and autoscaling.

0 of 11 articles published. Topics are listed in reading order: each comes after the topics it builds on.

Serving fundamentals

What it takes to run a model yourself.

  1. How model serving worksComing soon

    Loading weights onto accelerators, handling requests, and why generation speed is limited by memory bandwidth.

    Fundamentals · Intermediate

  2. GPU memory: weights, KV cache and batch sizeComing soon

    Estimating memory from parameter count and precision, plus the KV cache that grows with context and concurrency.

    Fundamentals · Advanced

Inference optimization

Serving more tokens per second per GPU.

  1. Continuous batchingComing soon

    Adding and removing requests from a running batch every step, and its effect on throughput and latency.

    Performance · Production

  2. Paged KV cache managementComing soon

    Allocating the KV cache in blocks to avoid fragmentation and share prefixes between requests.

    Advanced engineering · Production

  3. Quantizing models for inferenceComing soon

    Lower-precision weights to fit larger models or serve faster, and measuring the quality cost on your task.

    Performance · Production

  4. Speculative decodingComing soon

    Drafting tokens with a small model and verifying them with the large one to cut latency without changing output.

    Advanced engineering · Principal / Architect

Serving frameworks

The software that runs models in production.

  1. Choosing an inference serverComing soon

    Comparing high-throughput GPU servers with lightweight local runtimes on features, hardware support and operations.

    Comparison · Advanced

  2. Serving behind an OpenAI-compatible APIComing soon

    Exposing self-hosted models through a common API so application code can switch between hosted and self-hosted.

    Configuration · Advanced

Operating self-hosted models

Scaling, cost and the decision to self-host at all.

  1. Autoscaling GPU inferenceComing soon

    Scaling on queue depth and token throughput rather than CPU, and handling slow model loading.

    Operations · Production

  2. Cold starts and model loading timeComing soon

    Why loading weights takes minutes, and keeping warm capacity, caching weights and pre-pulling images.

    Performance · Production

  3. Self-hosting or calling a provider APIComing soon

    Comparing total cost, utilisation, staffing, data control and model choice before running your own GPUs.

    Comparison · Production