Open-Source Multimodal Model Selection: Architecture, GPU Memory, and Licensing
Choose an open-source multimodal model by evaluating inference architecture, GPU memory requirements, and commercial licensing—not benchmark scores alone. This guide provides a three-step selection checklist, explains MoE performance and KV cache sizing, and covers on-device distillation evaluation and common deployment pitfalls.
Choosing an open-source multimodal model starts with three questions: How does its architecture affect inference? How much context can fit in GPU memory? And what does its license allow you to do commercially?
Benchmark scores are typically measured under ideal conditions that may not reflect your concurrency, input lengths, or latency requirements. Selecting a model on scores alone can lead to excessive latency, insufficient GPU memory, or licensing restrictions discovered only after deployment.
Start with the following three-step checklist, then examine each area in detail.
A Three-Step Model Selection Checklist
| Step | What to check | Deliverable |
|---|---|---|
| 1. Match architecture to concurrency | Determine whether the model is dense or mixture-of-experts (MoE). Establish whether the workload is a low-concurrency, single-user application or a high-concurrency service, and estimate target throughput. | A one-page set of selection assumptions: concurrency, target time to first token, and target generation speed |
| 2. Budget GPU memory and context | Calculate memory requirements for weights, the KV cache, and activations. Check whether the longest input plus the longest output will fit. | A GPU memory budget with headroom |
| 3. Verify commercial licensing | Review commercial-use permissions, user-scale limits, redistribution, derivative models, and training-data provisions. | A licensing checklist for legal review |
Why MoE Models Can Be Slower for Single Users
In low-concurrency scenarios, MoE inference is often constrained primarily by GPU memory access and expert-weight reads rather than insufficient compute.
Mixture-of-experts architectures aim to reduce the computation required for each inference step. Although a model may have a large total parameter count, only a subset of its experts is activated for each token.
Consider an illustrative example—not a measured result: a model has 300 billion total parameters, activates 30 billion parameters per token, and uses FP8 weights at one byte per parameter.
The computation appears relatively modest because only 30 billion parameters participate in processing each token. Memory traffic, however, remains substantial. In typical single-GPU or single-node deployments without expert sharding or CPU offloading, expert weights generally need to remain resident in GPU memory. For each generated token, the gating network determines routing, and the selected expert weights are read from GPU memory.
Under these assumptions, each token requires roughly 30 GB of weight reads. With GPU memory bandwidth of 3.35 TB/s, the theoretical bandwidth-limited ceiling is approximately 110 tokens per second. Actual performance will be lower because attention computation, communication, and framework overhead also contribute to latency. As a result, single-user inference with a batch size of 1 is more likely to be memory-bandwidth-bound.
The picture changes as concurrency increases. Tokens from multiple requests may be routed to the same experts, allowing weight reads to be amortized across more tokens and improving compute utilization. The bottleneck can then shift toward compute capacity and communication overhead from expert parallelism across GPUs.
Match your evaluation to the intended workload:
- Low-concurrency local assistants: Prioritize generated tokens per second and GPU memory bandwidth.
- High-concurrency online services: Load-test throughput and tail latency at different batch sizes.
Estimating GPU Memory for Long Contexts and the KV Cache
As context length increases, so does KV cache memory consumption. The cache can become a memory bottleneck even before model weights do.
For standard attention architectures, estimate KV cache memory as follows:
KV cache memory =2 × number of layers × number of KV heads × head_dim× sequence length × batch size × bytes per element
The factor of 2 accounts for the separate key and value caches. The number of KV heads refers to the attention heads used for keys and values. With grouped-query attention (GQA) or multi-query attention (MQA), this is typically smaller than the number of query heads.
FP16 and BF16 use two bytes per element; FP8 uses one.
For example, assume:
- 48 layers
- 8 KV heads
head_dimof 128- Sequence length of 32,768
- Batch size of 1
- FP16 cache storage
The estimated memory requirement is:
2 × 48 × 8 × 128 × 32768 × 1 × 2≈ 6.44 GB, or approximately 6.0 GiB
At a batch size of 8, the same configuration requires approximately 51.5 GB for the KV cache alone. This illustrates how quickly concurrency can consume GPU memory.
Multimodal models also require an image-token budget. An image is converted into a number of tokens, with higher resolutions generally producing more tokens. These tokens also consume KV cache space, so mixed image-and-text inputs need their own context-length calculations.
Use this checklist:
- Read the layer count, KV head count, and
head_dimfrom the model’sconfig.jsonrather than relying on estimates in model specification tables. - Check whether the model uses a specialized attention architecture such as multi-head latent attention (MLA). If it does, adjust the calculation according to the official documentation.
- Add memory requirements for weights, the KV cache, and activations, then reserve 10%–20% headroom. The appropriate margin depends on the inference framework.
- Validate with the longest expected inputs and outputs to ensure that requests do not run out of memory or require truncation.
Evaluating Distilled Models for On-Device Deployment
On-device models are often distilled from larger cloud models. Evaluation should cover performance on real devices, not just general benchmark scores.
Compare the following metrics:
| Metric | How to measure it | How to assess it |
|---|---|---|
| Time to first token | Measure the time from input submission to the first output token on the target device. | Compare against the acceptable wait time for the interaction. |
| Generation speed | Measure output tokens per second. | Compare against the pacing required by the interface or voice interaction. |
| Peak memory usage | Record the maximum memory consumption throughout inference. | Compare against available device memory and the needs of other applications. |
| Accuracy retention | Divide the student model’s score by the teacher model’s score on the same benchmark. | Set a minimum acceptable retention ratio for each task. |
| Task success rate | Use real application samples to measure the share of outputs that meet requirements. | Apply the application’s acceptance criteria. |
For multimodal distillation, test image understanding, optical character recognition, and reasoning-based question answering separately. Similar overall scores can hide substantial degradation in an individual subtask.
Test distilled models under realistic device conditions, including low battery, thermal throttling, and concurrent applications. Latency under these conditions is often substantially worse than laboratory results suggest.
Checking Commercial Licensing Boundaries
A license for model weights does not, by itself, establish that all conditions for commercial use have been met. Common license categories include:
- Permissive licenses, such as Apache 2.0 and MIT. These generally allow commercial use, modification, and redistribution, while requiring retention of applicable copyright and license notices.
- Custom community licenses. These may include user-scale thresholds, restrictions on specific industries or use cases, and requirements for derivative models to retain the same license.
- Noncommercial or research-only licenses. These generally do not permit use in commercial products.
Review the following items individually:
- Commercial use and prohibited uses: Is commercial use allowed, and are any intended uses prohibited?
- User-scale thresholds: Are there monthly active user or other user-count limits? Does exceeding them require separate authorization?
- Redistribution and derivatives: Must redistributed or fine-tuned models retain the same license and include specific notices?
- Training on model outputs: May outputs be used to train other models?
- Training-data provenance and copyright: A weight license does not resolve copyright or privacy issues associated with training data. Assess these separately.
- License version and publication date: Terms may change. Record the version reviewed.
This article provides a technical review framework, not legal advice. Before commercial deployment, submit the completed checklist to legal counsel.
Common Selection Mistakes and How to Investigate Them
| Mistake | Typical symptom | What to do |
|---|---|---|
| Relying only on benchmark scores | Production latency and costs differ from expectations. | Load-test real application requests and record latency and throughput. |
| Inferring production throughput from single-user latency | Individual requests are fast, but performance drops sharply under concurrency. | Test different batch sizes at the target concurrency. |
| Ignoring context limits | Long-document requests fail or outputs are truncated. | Estimate KV cache requirements using the formula above and test the longest inputs. |
| Overlooking image-token usage | Mixed image-and-text requests run out of GPU memory more often than text-only requests. | Measure the token count produced per image and include it in the budget. |
| Treating the weight license as the complete set of terms | User-scale restrictions or data-related risks emerge after launch. | Complete the licensing checklist and obtain legal review. |
| Evaluating distilled models only on general benchmarks | Real on-device tasks perform worse than expected. | Test real application samples on target devices. |
Complete the architecture, memory, and licensing checks before committing to a model. Doing so can prevent much of the rework that otherwise appears during deployment.
