Key Points for Selecting and Deploying 320B Sparse-Activated Multimodal Models
This article outlines the key considerations for selecting and deploying large sparse-activated multimodal models, such as a 320B parameter MoE model. It covers the differences between total and activated parameters, how to interpret benchmark data, VRAM estimation, multi-GPU deployment planning, routing balance, serving scheduling, multimodal input preprocessing, tiered invocation strategies, and provides a comprehensive checklist for model selection.
1. Total Parameters vs. Activated Parameters
When evaluating sparse models, the most common confusion lies between total parameters and activated parameters. Total parameters determine the VRAM required for weights, while activated parameters dictate the actual computation involved per token.
For instance, in a Mixture-of-Experts (MoE) model with 320B total parameters and 18B activated parameters, all expert weights must be loaded into VRAM. However, for each token, the routing network (Router) only selects a subset of experts for computation. Consequently, the FLOPs for a single forward pass are roughly equivalent to a dense 18B model, but the VRAM requirement is still dictated by the 320B total parameters.
This means sparse models primarily save computation, not weight storage. Before deployment, you must estimate both resource types separately; evaluating hardware solely based on activated parameters is insufficient.
Details such as the exact number of experts, Top-k value, presence of shared experts, and parameter attribution for attention and embedding layers should be based on the official Model Card.
2. How to Interpret Performance Benchmarks
Public benchmark scores are a starting point for evaluation but cannot directly replace business-specific testing. When reading scores, verify four things: the evaluation organization, benchmark version, test date, and the model version alongside inference parameters (e.g., temperature, maximum output length).
Figures lacking this information should not be used as a basis for selection. Developers should conduct small-scale evaluations using their own business data, covering realistic input length distributions, formatting requirements, and failure cases.
Multimodal capabilities also require separate testing. Chart parsing, scanned document recognition, and screenshot comprehension vary in difficulty; establish individual test sets for each and record accuracy and error types.
3. VRAM and Multi-GPU Deployment Planning
Weight VRAM can be roughly estimated by multiplying the number of parameters by the bytes per parameter.
- BF16 or FP16: 2 bytes per parameter. 320B parameters require about 640GB. Using 80GB GPUs, weights alone need at least 8 cards, excluding KV Cache, activations, and communication buffers.
- INT8: 1 byte per parameter, weights around 320GB. 4x 80GB cards’ VRAM would be almost entirely consumed by weights, leaving no room for KV Cache. Practical deployment usually requires more cards or larger VRAM.
- INT4: Weights around 160GB, theoretically fitting into 2x 80GB cards, but with little headroom. Long-context scenarios can easily lead to Out-of-Memory (OOM) errors.
These figures are for initial planning only. Actual deployment requires testing on target hardware, focusing on VRAM peaks under different concurrency and context lengths.
During quantization, monitor the routing network’s precision. Minor deviations in Router outputs might assign tokens to the wrong experts, affecting output quality. A common practice is to keep the Router at higher precision while applying low-bit quantization to other layers, followed by an accuracy regression test comparing results before and after quantization on the same evaluation set.
4. Load Balancing and Serving Scheduling
When deploying MoE models as a service, load balancing is a primary challenge. If a large number of tokens are routed to a few experts, the GPUs hosting those experts become bottlenecks, leaving others idle.
Monitoring routing distribution helps identify issues. Common metrics include the token ratio received by each expert and the entropy of the routing distribution. A drop in entropy usually indicates routing concentration. Alert thresholds should be based on pre-launch baseline data rather than fixed values.
The scheduling layer can improve throughput via Dynamic Batching. For requests of varying lengths, avoid mixing sequences with drastically different lengths in the same batch to prevent long sequences from slowing down the entire batch’s response time.
If chronic expert load imbalance is detected, consider adjusting the Auxiliary Loss weight during training. However, for pre-released models, developers usually cannot modify the training process; optimizing deployment topology and request scheduling becomes more practical.
5. Multimodal Input Preprocessing
Native multimodal models have specific requirements for input formats. Images typically need scaling and splitting according to the official preprocessor rules, and the concatenation order of text and images must align with the model’s training phase.
For high-resolution documents, a common practice is to scale the whole image to retain layout information, then crop local regions to preserve small text details. Crop size, overlap regions, and maximum input length should be configured per official documentation and verified with test sets.
Scanned document noise, screenshot color deviations, and low-contrast images all affect recognition accuracy. Add these real-world samples to your test set before launch to check for missing characters, line misalignment, or numerical misreads.
6. Tiered Invocation and Cost Accounting
Mixing lightweight and flagship models within the same system is a common cost-control strategy. Simple tasks (e.g., keyword extraction, intent classification) are routed to the lightweight version, while complex tasks (e.g., cross-file code refactoring, long-document reasoning) go to the flagship version.
Tiering rules need data-driven validation. When using request length as a routing condition, thresholds should be determined through A/B testing rather than empirical guessing. Record cost, response time, and task success rate simultaneously; all three are indispensable.
Cost accounting should be based on actual invocation volumes and pricing tables. Developers must calculate the average token consumption per request and multiply it by the provider’s unit price. Cost savings depend on traffic structure and cannot be directly borrowed from others’ numbers.
7. Model Selection Checklist
Before deciding on a model, confirm the following items:
- Total parameters, activated parameters, expert configuration, and context length from the official Model Card.
- Measured VRAM usage for weights, KV Cache, and communication overhead on target hardware.
- Accuracy, error types, and long-tail scenario performance on business data.
- Recognition quality of multimodal inputs on real image samples.
- Accuracy differences before and after quantization, and Router stability.
- Total cost per unit task, including retries, manual review, and maintenance.
Completing these checks before deciding on model scale and deployment approach is more reliable than merely comparing benchmark scores.
