A Practical Guide to Evaluating Large-Scale MoE Models for Production Deployment
This guide explains why parameter counts alone cannot determine resource requirements for large Mixture-of-Experts (MoE) models, and how to plan GPU memory, context length, concurrency, and POC acceptance criteria before going live. It covers a four-part memory breakdown, tiered serving strategies for long contexts up to 1M tokens, the real meaning of max-model-len and max-num-seqs, and a matrix-based load testing approach for validating quality, performance, capacity, and operations.
1. Why Parameter Count Does Not Translate Directly into Resource Requirements
When evaluating a Mixture-of-Experts (MoE) model with roughly 744B total parameters and about 40B activated parameters, the most common mistake is treating the activated parameter count as the sole basis for GPU memory planning. Activated parameters describe the expert capacity routed to during a single forward pass; they affect compute volume and memory access intensity. What actually occupies GPU memory during deployment is the full weight set, the KV Cache, runtime framework overhead, and extra buffers created by concurrent requests.
Memory usage can be roughly broken down into four parts:
Total GPU memory ≈ weights + KV Cache + runtime and framework overhead + communication/temporary buffers
Weight usage is determined by all expert parameters and the quantization precision, regardless of how many are activated. KV Cache is determined by context length, the number of concurrent sequences, and the attention structure. Runtime overhead includes the computation graph, operator workspaces, memory fragmentation, and reserved headroom. As a result, a model with “40B activated” parameters still needs capacity estimation based on its full weight set.
For resource tier判断, a common industry practice is:
- High-memory accelerator cards on a single node with multiple GPUs (for example, the 141GB per-card class) can host FP8 weights with moderate concurrency.
- If full 1M context is required, a higher-memory configuration in the 180GB per-card class is the better choice.
- For a proof of concept, 4-bit quantization can significantly lower the entry barrier.
Note that this is only a resource tier judgment, not a statement that the model is ready for production.
2. 1M Context Is Not a Default Serving Window
Long context capability is often assumed to be freely usable, but what is actually consumed is the KV Cache. Its growth is roughly proportional to sequence length multiplied by the number of concurrent sequences, and it keeps accumulating as output length increases. A single request close to 1M tokens and several 128K requests may put a similar amount of pressure on memory and scheduling queues, yet they behave very differently: the former is a single long-tail point, while the latter is a sustained high watermark.
A more reliable strategy is to first measure the real request length distribution, then design serving in tiers:
- Mostly under 32K: prioritize retrieval-augmented generation and shared service pools to improve reuse.
- 32K to 128K: set quotas, queuing, and timeout policies so long requests do not crowd out short ones.
- Above 128K: split out a dedicated long-context serving group to isolate resources.
- Close to 1M: use a low-concurrency dedicated queue with asynchronous task-based submission.
This tiering is more stable than “enabling the full 1M by default,” and it makes capacity forecasting and fault isolation easier.
3. max-num-seqs Is Not the Number of Online Users
Two frequently misunderstood parameters need clarification. max-model-len sets the maximum context window the service allows. max-num-seqs sets the upper limit on active sequences in a single scheduling step. Neither is the business-side “number of online users.”
Business concurrency is also affected by request length, output length, queue policy, rate-limiting thresholds, and continuous batching efficiency. As a rule of thumb, when long requests make up a large share, max-num-seqs needs to be lowered to keep the KV Cache watermark under control; when short requests dominate and memory has headroom, it can be raised gradually while watching throughput and latency. Tuning must be tied to a real workload profile; “optimal parameters” detached from the workload are meaningless.
4. A POC Must Do More Than a Startup Test
An enterprise POC should answer at least four questions:
- Is quality stable: task completion rate, human evaluation scores, failure type distribution, tool call success rate.
- Does performance meet targets: TTFT, TPOT, P95/P99, end-to-end task duration.
- Where is the capacity boundary: maximum stable throughput and degradation inflection points under different concurrency and length combinations.
- Are production constraints met: rate limiting, isolation, observability, canary release, and rollback.
Use a “length bucket × concurrency gradient” matrix load test instead of a single-point startup check, and include monitoring and alerting, logging services, and the elasticity of the container platform in the acceptance scope. Only when quality, performance, capacity, and operations all pass does the model qualify for production; otherwise, return to tiered serving and quota policies and keep converging.
