Serving multimodal models: patterns per modality
How serving differs for vision-language models, speech recognition, speech synthesis, image and video generation and embeddings: what dominates latency and memory for each, batching and queueing, image token budgets and caching, streaming audio, GPU sharing, and the metrics to watch.
By Sandip Maity, Applied AI Engineer
Serving a text LLM is about prefill, decode and the KV cache (anatomy of a production service). Each other modality has its own bottleneck, and the serving pattern follows from it. This lesson goes modality by modality, then covers what they share.
#Summary table
| Modality | What dominates | Latency to watch | Serving pattern |
|---|---|---|---|
| Vision-language (image in, text out) | Prefill of image tokens, then normal decode | Time to first token | LLM engine with multimodal support; cap image resolution |
| Speech recognition (ASR) | Encoder over the audio; decode of the transcript | Real-time factor; latency per chunk for streaming | Batch for files; streaming with voice activity detection for live audio |
| Speech synthesis (TTS) | Generating audio tokens or frames | Time to first audio; faster than real time | Stream audio chunks as they are made |
| Image and video generation | Many denoising steps, compute-bound | Seconds to minutes per job | Job queue, progress updates, limited concurrency per GPU |
| Embeddings and rerankers | One forward pass per input | Throughput per second | Large batches, length bucketing |
#Vision-language models
An image is turned into tokens by the vision encoder and projector, and those tokens are prefilled with the text (how VLMs work). Consequences:
- Image tokens drive time to first token and memory. Many models tile large images, so a high-resolution photo can become thousands of tokens. Set a maximum resolution or tile count that is enough for your task (reading a receipt needs more than classifying a photo).
- Count images in your token budgets and KV-cache sizing, exactly like text (KV cache and memory).
- Cache repeated images. Engines with prefix caching can reuse the encoded image when the same image appears again in a conversation.
- Preprocess on the CPU, in parallel. Decoding, resizing and normalising images should not hold up the GPU.
- Engines such as vLLM and SGLang serve many open VLMs with continuous batching, so the text-serving playbook applies once images are tokens.
Pro content
Keep reading with Inference Academy Pro
Unlock the rest of this lesson, plus every advanced lesson, hands-on lab, the larger playground models and completion certificates.
Still to come in this lesson
- Speech recognition
- Speech synthesis
- Image and video generation
- Embeddings and rerankers
- Sharing GPUs between modalities
- Metrics per modality
- Exercises
You will be able to answer
- Why does a high-resolution image make a vision-language model's first token slow?
- Image generation requests take 5 to 20 seconds each on a GPU. What serving pattern fits?
- Which metric matters most for a streaming text-to-speech service?
- Embedding requests are small and numerous. How do you get high throughput?
- Why might you run speech recognition and the LLM of a voice agent on the same GPU carefully?