Why is the vision-encoder phase a different bottleneck class from LLM decode in a multi-modal model?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Explain why the vision-encoder phase of a multimodal model (ViT + LLM) creates serving headaches when co-located on the same GPU as LLM decode. What does production do to fix it?
A ViT encoder is a compute-bound burst; LLM decode is bandwidth-bound and steady. Co-located, the burst monopolizes the GPU and stalls every in-flight decode, so production isolates or interleaves them.
Picture one kitchen serving two kinds of orders. The vision encoder is a giant catering job: it briefly grabs every burner and oven at once, runs hot for a few seconds, then finishes. The chat decode is a steady drip of tiny single plates, each one waiting on the pantry rather than the stove. While the catering job hogs all the burners, every small plate just sits there getting cold, even though they barely needed a burner at all. Customers waiting on their tiny plates suddenly see long, jittery delays. The fix is the same one any busy kitchen reaches for: give the catering job its own dedicated stoves, or force it to cook in small chunks between the little plates so nobody starves.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: two rooflines (ViT compute-bound burst vs decode bandwidth-bound) + the SM monopoly and tail latency spike + three fixes (encoder pool disaggregation, chunked interleaving, image-token caching).
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating the vision encoder as just more prefill. It is a separate compute-bound burst with its own roofline, and ignoring that interference is why co-located decode latency spikes.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.