How to Choose Open-Source Multimodal LLMs: Edge, Dense, and MoE
This article provides a practical guide for selecting open-source multimodal large models across edge, dense, and Mixture-of-Experts (MoE) architectures. It covers key parameters, architectural differences, long context and multilingual limits, benchmark interpretation, and deployment best practices to help you make an informed decision based on your specific use case.
1. Version Selection: Look at Three Key Numbers
Open-source multimodal models are typically categorized by parameter size. Before selecting a model, verify three numbers for each version: total parameters, activated parameters per inference, and maximum supported context length. These figures directly determine VRAM usage, response speed, and per-request cost.
Common versions include edge lightweight, cloud dense, and Mixture-of-Experts (MoE). For specific parameters, licenses, and supported languages, refer to the official model card. This article focuses on selection methodology rather than unverified numbers.
2. Dense Models vs. MoE Models
Dense models utilize all parameters during every inference. They have a simple structure, predictable behavior, and mature toolchains for fine-tuning and quantization. The trade-off is that more parameters mean higher computational cost per token and greater VRAM pressure.
MoE models use a gating network to select a few expert sub-networks for each token’s computation. The total parameter count can be very large, but only a portion is activated per inference. Under the same inference compute, MoE can accommodate more knowledge capacity.
The deployment threshold for MoE is not significantly lowered by fewer activated parameters. All expert weights still need to be loaded into VRAM. Load imbalance can cause some experts to overheat, dragging down overall throughput. Therefore, MoE is not necessarily cheaper than dense models. When selecting, evaluate both VRAM requirements and throughput performance.
3. Practical Limits of Long Context and Multilingual Capabilities
Long context allows the model to read longer documents, code repositories, or video descriptions in a single pass, reducing manual chunking. However, it cannot completely replace Retrieval-Augmented Generation (RAG). RAG or other retrieval methods are still necessary in the following scenarios:
- The knowledge base is frequently updated, requiring the latest content at request time.
- The total volume of documents far exceeds the context window, or the cost of inputting all content per request is too high.
- Precise tracing is needed, requiring answers to be located in specific paragraphs.
- Data from multiple users or permission domains needs isolation.
Long context requests involve a large number of input tokens, increasing both cost and time-to-first-token (TTFT). The model’s ability to extract information from the middle of extremely long inputs may also degrade. It is recommended to conduct recall tests with your own data rather than relying solely on the nominal context length.
For multilingual support, the nominal number of supported languages only indicates training coverage. Quality variations for minor languages are usually significant. You can sample the target language and manually check translation quality, customer service responses, and factual accuracy.
4. How to Interpret Benchmark Data
Public benchmark scores can serve as a reference but do not equal post-deployment performance. When reading the data, verify at least four aspects:
- Benchmark name and version. Question sets from different years cannot be directly compared.
- Evaluation settings, including whether few-shot examples are used, tool calling is allowed, and the sampling temperature and decoding parameters.
- Model version and evaluation date. Different revisions of the same series may yield different scores.
- Statistical criteria of the leaderboard, such as whether closed-source models are included, and whether rankings are based on user voting or automated evaluation.
If an article only provides scores without the above information, the conclusions should be treated merely as clues. Make a decision only after retesting on your own business data.
5. Deployment Essentials
Cloud deployment typically uses containerized inference services. A common practice is to use Kubernetes to manage inference instances and configure auto-scaling based on request queue length or GPU utilization. Large model instances have long cold start times, so auto-scaling should set a minimum replica count and reserve buffer capacity.
Inference engines like vLLM or TensorRT-LLM can be selected. Before deploying an MoE model, confirm whether the chosen framework supports the model’s expert parallelism and related operators, and conduct throughput stress tests on the target hardware. Quantization (e.g., INT8, INT4) affects accuracy, so compare results before and after quantization using a business evaluation set.
Edge deployment commonly uses ONNX Runtime or vendor-provided inference frameworks combined with quantization compression. Focus on memory peak and time-to-first-token (TTFT).
Below is pseudo-code for a business-level API call. The endpoint URL, field names, and model name should be replaced with the actual content from the service provider’s official documentation:
import osimport timeimport requestsAPI_URL = os.environ["MM_API_URL"]API_KEY = os.environ["MM_API_KEY"]def call_multimodal_api(image_url, prompt_text, retries=3, timeout=30):payload = {"model": "your-model-name","messages": [{"role": "user","content": [{"type": "text", "text": prompt_text},{"type": "image_url", "image_url": {"url": image_url}},],}],"max_tokens": 1024,"temperature": 0.7,}headers = {"Authorization": f"Bearer {API_KEY}"}for attempt in range(1, retries + 1):try:resp = requests.post(API_URL, json=payload, headers=headers, timeout=timeout)if resp.status_code == 429 or resp.status_code >= 500:# Service temporarily unavailable, status code {resp.status_code}raise RuntimeError(f"Service temporarily unavailable, status code {resp.status_code}")resp.raise_for_status()return resp.json()["choices"][0]["message"]["content"]except (requests.RequestException, RuntimeError):if attempt == retries:raisetime.sleep(2 ** attempt)if __name__ == "__main__":answer = call_multimodal_api("https://example.com/chart.png","Please analyze the data trends in this chart.",)print(answer)
Check the image format and size before calling the API. Service providers usually have limits on image dimensions and request body size; requests exceeding these limits will be rejected.
6. Selection Recommendations
- Devices can only run locally, or privacy requirements are high: Start with the edge lightweight version and test memory peak and TTFT.
- Strong inference capabilities needed with controllable concurrency: Dense version deployment is simpler. Conduct stress tests before deciding on the scale.
- High-concurrency API services sensitive to per-request cost: Evaluate the MoE version while calculating the VRAM requirements for all expert weights.
Regardless of the choice, evaluate using your own data and record accuracy, latency, and cost per thousand requests.
