Capacity Planning and Load Test Design for Private MoE LLM Deployment
This guide explains how architects and operators can size memory for private deployment of large MoE models on a four-node unified memory cluster. It covers how to calculate capacity first, then design load tests, and finally choose tuning parameters. The formulas and example figures illustrate the method only and do not represent measured results for any specific model or hardware.
This guide is for enterprise architects and operations teams. It explains how to calculate capacity, design load tests, and choose tuning parameters for private deployment of large MoE models on a four-node unified memory cluster. The formulas and example numbers show the calculation method only. They do not represent measured results for any real model or hardware.
1. Key Takeaways
- The 512 GB of unified memory is the total cluster capacity, not the capacity available for inference. Calculate weights, KV cache, communication buffers, and system overhead separately. Only the remainder can be allocated to concurrent requests.
- Long context windows consume KV cache quickly. The larger the context window, the more memory each request uses, so the number of concurrent requests must be reduced accordingly.
- Load test results are only meaningful when they state the model, precision, concurrency definition, and success criteria. Results without these definitions should not be used directly for procurement decisions.
2. Baseline Required Before Testing
Complete the table below before the proof of concept (POC) starts. If any item is missing, the capacity estimates cannot be verified later.
| Item | Description | Data Source |
|---|---|---|
| Total model parameters | Includes parameters of all experts | Model card or official configuration |
| Active parameters per token | Determines computation per token | Model card or official configuration |
| Weight precision | FP8, FP4, or mixed precision. Specify the precision of each layer. | Quantization configuration file |
| Weight size | Parameter count multiplied by bytes per parameter | Verify against actual file size |
| Layers, KV heads, head dimension | Used to calculate KV cache | Model configuration file |
| KV cache precision | BF16, FP8, etc. | Inference engine configuration |
| Node hardware | CPU or accelerator model, memory capacity per node | Hardware specification sheet |
| Network | Actual port speed, whether RDMA is enabled, switch model | Link information captured on site |
| Parallelism strategy | Degrees of tensor, expert, and pipeline parallelism | Deployment manifest |
| Inference engine and version | Needed to reproduce test results | Deployment manifest |
Experts in an MoE model are usually distributed across different nodes, and each node may host a different number of experts. Memory must therefore be calculated per node, not only as a cluster total.
3. Memory Budget Formula
The memory available for requests is calculated as follows:
Memory available for requests = Total cluster unified memory − Resident weights − Communication buffers − System and monitoring overhead − Safety margin
Reserve 10% to 15% of the total as a safety margin to absorb memory fragmentation and peak fluctuations.
Resident weight memory is calculated as: weight size = total parameters × bytes per parameter. FP8 uses 1 byte per parameter, and FP4 uses 0.5 bytes. If some layers keep higher precision, calculate each part separately based on its actual proportion.
KV cache is the most sensitive factor for concurrency and context length.
