How much VRAM does a vision language model need?
A VLM needs VRAM for three things: its weights, the image tokens and the KV cache. Only the weights are a fixed cost. Image tokens and the cache grow with every request, which is why a GPU that fits the model can still run out of memory under real traffic.
- Weights. The numbers the model learned. Qwen2.5-VL-72B has 73.4 billion of them, stored in BF16 (a format that uses 2 bytes per number), so the weights take 146.8 GB.
- Image tokens. The model turns each image into tokens, the small units it reads like words. Qwen's model card puts the default at up to 16,384 tokens per image. You cap it with the max_pixels setting, the largest image size in pixels.
- KV cache. The KV cache (key-value cache) is the record the model keeps of every token it has read. With it, the model does not read them again.
For Qwen2.5-VL-72B, the cache takes about 0.33 MB for every token of every request, computed from the layer and head counts in its config. The table shows what that means for a hypothetical service that reads scanned pages.
| Image size cap | Tokens per request | Cache per request | Requests that fit on 2× H200 | Requests that fit on 4× H100 |
|---|---|---|---|---|
| 1,280 image tokens | 1,580 | 0.52 GB | about 200 | about 270 |
| 16,384 image tokens | 16,684 | 5.5 GB | about 19 | about 25 |
Hypothetical example: one image and 300 text tokens per request, BF16 weights, and the inference server (vLLM, below) may use 90% of GPU memory. The weights take the first 146.8 GB and the rest is cache. Tokens per request are the image tokens plus the 300 text tokens.
Which GPUs fit Qwen2.5-VL-72B and MiniCPM-V 4.5?
Qwen2.5-VL-72B fits on 2 H200 GPUs or 4 H100 GPUs, and MiniCPM-V 4.5 fits on a single L40S. Our VMs come with 1, 2, 4 or 8 GPUs of the same type. Our VM profiles list 141 GB of VRAM for an H200, 80 GB for an H100 or A100, and 48 GB for an L40S.
| Model | Weights in BF16 | Fits on | Left for cache at 90% |
|---|---|---|---|
| Qwen2.5-VL-72B | 146.8 GB | 2× H200 or 4× H100 | 107 GB or 141 GB |
| MiniCPM-V 4.5 | 17.4 GB | 1× L40S | 25.8 GB |
Left for cache is 90% of the memory of all GPUs together, which is what vLLM uses by default, minus the weights:
2 H200: 2 * 141 * 0.9 - 146.8 = 107 GB
4 H100: 4 * 80 * 0.9 - 146.8 = 141 GB
1 L40S: 48 * 0.9 - 17.4 = 25.8 GBTwo 80 GB GPUs do not work for the 72B model: vLLM uses 90% of their 160 GB, and 0.9 × 160 GB = 144 GB is less than the 146.8 GB the weights need.
MiniCPM-V 4.5 is a smaller model with 8B parameters in total. It turns an image into a different number of tokens than Qwen does, so measure its cache on your own images. We cover the model in more detail in our MiniCPM-V 4.5 walkthrough.
We have not benchmarked either model on our VMs, so read both tables as arithmetic, not measurement.
How do you cap image tokens in vLLM?
You cap image tokens in vLLM with the max_pixels setting. vLLM is an open-source server that runs a model behind an OpenAI-compatible API. The command below is for 2 H200 GPUs. It splits the model across 2 GPUs (--tensor-parallel-size 2) and caps every image at 1,003,520 pixels (--mm-processor-kwargs, the image-processing settings). On 4 H100 GPUs, use --tensor-parallel-size 4.
vllm serve Qwen/Qwen2.5-VL-72B-Instruct \
--tensor-parallel-size 2 \
--mm-processor-kwargs '{"max_pixels": 1003520}'Qwen reads each 28 by 28 pixel patch (784 pixels) as one token. A max_pixels of 1,003,520 allows at most 1,003,520 / 784 = 1,280 such patches, so at most 1,280 tokens, which is the example in Qwen's model card. Larger images are resized to fit.
How do you launch it on a GPU VM?
In the dashboard, open Compute → VMs → Launch instance. From a terminal, use our CLI:
lyceum vm availability
lyceum vm start -h <profile> -g 2 -k <ssh-key>
lyceum vm status <vm_id>
ssh lyceum@<ip-address>The first command lists the profiles you can launch right now. The default SSH user is lyceum, not root. A VM bills from the moment it is running until you terminate it.
Each VM has at least 100 GB of local disk, and the disk is wiped on termination. Qwen2.5-VL-72B needs 146.8 GB, so check the disk size with df -h before you download. Your account's S3-compatible storage bucket survives termination, but it is not mounted on VMs automatically. Keep the weights in the bucket, and on each new VM copy them from the bucket to the VM disk with an S3 client.
When is serverless image input the simpler route?
Serverless image input is simpler when you do not need your own weights: you send the image to a model we already host. Lyceum is a sovereign European AI inference provider for open-source models. Our serverless models run in Paris and Finland. We don't keep your prompts or outputs, and we never use them for training.
This guide is for running the open weights yourself. On our serverless API we retired Qwen2.5 VL 72B, and our models page points to GLM-5.3 Flash instead. Our docs list the models that read images in our test on 15 September 2026, among them Qwen3.8 27B, Qwen3.8 Flash Next, GLM-5.3 Flash and Kimi K3.
import base64
from openai import OpenAI
client = OpenAI(api_key="lk_...", base_url="https://api.lyceum.technology/openai/v1")
with open("page.jpg", "rb") as f:
image = base64.b64encode(f.read()).decode()
resp = client.chat.completions.create(
model="qwen/qwen3.8-27b",
messages=[{"role": "user", "content": [
{"type": "text", "text": "List the line items on this invoice."},
{"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{image}"}},
]}],
)
print(resp.choices[0].message.content)Images count toward the request body limit (the maximum size of one API request), so downscale them first. The dashboard playground caps the longest edge at 1568 px. Before you rent a GPU for another model, enter it in the model sizing tool on our compute page. It takes a Hugging Face model, a context length, the concurrent requests and the precision, and shows the memory it needs.