---
title: Design the serving stack for a large multimodal assistant used by millions of people. Where are the bottlenecks?
url: https://gurkanozkan.ai/learn/questions/research-serving-a-large-multimodal-assistant-081/
markdown: https://gurkanozkan.ai/learn/questions/research-serving-a-large-multimodal-assistant-081.md
kind: question
role: Research
stage: System design
difficulty: Hard
json: https://gurkanozkan.ai/api/learn/questions/research-serving-a-large-multimodal-assistant-081.json
robots: noindex
---

# Design the serving stack for a large multimodal assistant used by millions of people. Where are the bottlenecks?

Research · System design · Hard

## Answer

*Model answer, written in a candidate's voice*

### In short

- Split serving into prefill and decode pools behind a router
- Use continuous batching and model parallelism for throughput
- Manage KV-cache capacity, locality, and handoff explicitly
- Cache reusable prompt prefixes and use quality-checked quantisation
- Set explicit SLOs (p95 TTFT, per-user tokens/sec); autoscale on them plus queue depth and KV pressure
- Put safety filters and media preprocessing at the edge and before inference
- Instrument routing, latency, cache, batching, KV, filters, and quality

### In full

The core design is a stateless edge and router in front of two specialised GPU pools: prefill workers that ingest prompts and media (with image and audio encoders scaled as their own stage, and embeddings of repeated media cached), and decode workers that stream tokens, with continuous batching inside each pool and KV-cache handoff between them. The main bottlenecks are decode memory bandwidth and KV-cache capacity, prefill compute and long-context attention, and media/prompt ingestion, so I would shard the model with tensor or pipeline parallelism, keep hot KV blocks close to the workers that use them, and avoid moving large KV state across nodes unless necessary. Routing should send short interactive requests to low-latency replicas, long or multimodal requests to prefill-heavy pools, and cacheable prefixes to prompt-cache-aware workers; quantisation of weights or KV is used where quality checks allow, not as a blanket default. Autoscaling is driven by explicit SLOs (a p95 time-to-first-token budget and a minimum per-user streaming rate), especially time to first token for prefill and steady-state tokens per second for decode, plus queue depth and KV-cache pressure rather than raw GPU utilisation alone. Safety filters and media preprocessing sit at the edge and before inference, with observability across routing, prefill/decode latency, cache hit rate, batch size, KV usage, filter rejections, and end-to-end quality so regressions are caught before they become user-visible.

*Corrected by an independent AI reviewer.*

## What a strong answer covers

- Routing and continuous batching.
- KV-cache management; model-parallel inference.
- Separating prefill from decode.
- Prompt caching and quantisation.
- Autoscaling against latency targets (time to first token, tokens per second).
- Safety filters, media preprocessing, observability.

## Common mistakes

- Ignoring the prefill/decode asymmetry.
- No latency target.

## Topic guides

- [LLM inference: decoding, batching, quantisation and speculative decoding](https://gurkanozkan.ai/learn/topics/inference.md)
- [Reliability engineering for ML and LLM systems](https://gurkanozkan.ai/learn/topics/systems-reliability.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
