How to Estimate VRAM for Local Deployment of Native Multimodal LLMs
This guide explains why activated parameter count cannot be used to estimate VRAM requirements for large sparse multimodal models, and presents a five-dimension capacity model covering weights, KV cache, context length, concurrency, and latency targets. It outlines a practical single-node versus multi-node decision path and a step-by-step evaluation workflow to avoid common capacity misjudgments during hardware selection.
1. The Starting Problem: A Number That Gets Misused
When discussing local deployment of large multimodal models, the most common opening question is “How many accelerators do I need?” The debate usually converges quickly on activated parameter count: since only a small fraction of parameters participate in a single inference pass, can VRAM requirements be scaled down by that same fraction?
This reasoning looks plausible, but it conflates two entirely different types of resources. Activated parameter scale describes computation volume; VRAM usage describes resident state volume. Both occur during a single forward pass, but their constraints are independent. Using a compute-side number to answer a storage-side question is one of the most typical and most costly misjudgments in the local deployment stage.
A recently released native multimodal model from a vendor uses an ultra-large sparse architecture, with a gap of more than an order of magnitude between total and activated parameter counts. This magnifies the misconception to the point where the VRAM budget can spiral out of control. This article uses such models as the analysis target and abstracts a capacity evaluation method that is independent of any specific product.
2. Why Activated Parameter Count Cannot Be Used to Estimate VRAM
The core idea of large sparse models (commonly known as mixture-of-experts architectures) is that total model capacity can be made very large, but each token is routed to only a few experts for computation, keeping the per-token compute cost under control. What is controlled here is compute, not memory.
During deployment, the inference engine must load all expert weights into VRAM, because routing is data-dependent—which experts the next token will hit cannot be determined before decoding. If only some experts are loaded, a request that hits an unloaded expert must swap it in on the fly, introducing unacceptable latency jitter. Therefore, the VRAM floor is determined by total parameter count and is independent of the activation ratio.
This relationship can be expressed with an illustrative estimation snippet:
# Illustrates the calculation logic only; not real data from any specific productdef rough_vram_budget(total_params, bytes_per_param, overhead_ratio=0.2):weights = total_params * bytes_per_paramruntime = weights * overhead_ratio # framework, temporary buffers, communication areareturn weights + runtime # does not yet include KV Cache
It is important to note that bytes_per_param depends on weight precision: half precision, 8-bit integer quantization, and 4-bit integer quantization correspond to progressively fewer bytes, but quantization formats also introduce additional overhead such as group scaling factors and alignment padding, so the actual value is usually slightly higher than the theoretical value.
3. The Five-Dimension Capacity Model: From Card Count to Configuration
A more reliable way to ask the question is: how much VRAM is needed under a given context length, concurrency level, request type, and response latency target. These five dimensions together determine the configuration; card count is only a result.
Weights and runtime space. This is a fixed cost, including all expert weights, quantization metadata, the framework’s own footprint, and operator workspaces. Multi-card deployment must also reserve communication buffers for tensor parallelism and expert parallelism.
KV Cache. This is the most easily underestimated variable. It grows linearly with context length and concurrency, and is affected by the number of layers, number of attention heads, key-value dimension, and whether multi-query or grouped-query attention is used. Multimodal input also generates additional visual tokens; the combination of long documents and high-resolution images can significantly raise this portion of usage.
Context length. Million-level context is not a free tier switch, but a dual stress test on VRAM and bandwidth. If the business genuinely requires ultra-long context, alternative paths such as chunked prefill, paged cache management, context compression, or retrieval augmentation should be considered first.
Concurrency and batching strategy. Continuous batching can improve throughput, but it keeps multiple requests’ caches resident simultaneously, and peak VRAM is determined by the concurrency ceiling rather than the average. Headroom must be reserved for burst traffic.
Request type and latency target. The prefill stage is compute-intensive, while the decode stage is bandwidth-intensive, and the two have different hardware preferences. Interactive scenarios are sensitive to time-to-first-token, while offline batch processing can relax latency in exchange for throughput, so the configuration orientation is completely different.
4. Single-Node vs. Multi-Node Trade-offs
On a single node, the feasible route is usually to choose accelerators with larger VRAM capacity and higher inter-card interconnect bandwidth, carrying the complete weights on fewer devices to reduce cross-device communication. A multi-node approach becomes necessary only when the complete weights plus cache can no longer fit on a single node, or when ultra-long context becomes a hard requirement, but the cost is introducing network communication overhead, parallel partitioning complexity, and a larger fault domain.
A pragmatic order of judgment is: first determine weight precision and the total VRAM floor, then add the cache budget corresponding to the target context and concurrency, and finally verify whether inter-card and inter-node bandwidth can support the target latency. If any step falls short, adjust context or concurrency expectations on the business side rather than simply adding cards.
5. A Practical Evaluation Workflow
- Define the business profile: average and peak input length, output length, concurrency ceiling, and latency target.
- Determine weight precision and the parallel partitioning scheme, and calculate the fixed VRAM usage.
- Estimate the cache peak based on the target context and concurrency, leaving headroom for bursts.
- Run load tests with the real request distribution, observing VRAM peaks, time-to-first-token, and the throughput inflection point.
- Set up monitoring alerts and log retention to continuously track cache hit rate and batching efficiency.
For cloud-based implementation, container platforms can handle elastic scaling of inference services, object storage can hold model weights and datasets, and monitoring, alerting, and logging services can help locate VRAM and bandwidth bottlenecks. Cloud providers such as Baidu AI Cloud typically offer these general capability categories, making it easier to engineer the evaluation workflow.
6. Conclusion
Back to the original question: instead of asking how many cards are enough, ask how much VRAM and bandwidth are needed under a given context, concurrency, and latency target. For large sparse multimodal models, the VRAM floor is determined by total weights, while the elastic portion is determined by cache and concurrency, and the two must be accounted for separately. Only by turning this five-dimension model into a standard evaluation checklist for your team can you avoid most capacity misjudgments at the selection stage.
