LLM Deployment Configuration: From Weight Size to Production Readiness
This article explains how to plan hardware for deploying a large Mixture of Experts (MoE) model. It covers why active parameter counts differ from weight storage, how KV Cache needs grow with context length and reasoning modes, where quantization fits and where it falls short, and which server-level factors affect production readiness. Readers get a starting configuration framework and a decision path for moving from a model that loads to a service that runs reliably in production.
1. Start with the Goal: Define Requirements Before Configuration
When someone asks what hardware a 40B-class MoE model needs, the answer is not a simple yes or no. It depends on three core variables: deployment precision, target context length, and expected concurrency. Many teams focus only on model weight size at the start and overlook the dynamic demands of an inference system under real workloads. As a result, their configuration plans diverge from actual production performance.
This article uses a typical MoE model as an example. Its full weights total about 744B parameters, and about 40B parameters are active during inference. It walks through the complete evaluation logic: GPU memory calculation, quantization choices, KV Cache reservation, and delivery of the full server. A model that can be loaded into GPU memory and a system that can reliably meet production SLAs are two very different problems.
2. Memory Requirements: Active Parameters Are Not the Weight Footprint
2.1 Active Parameters Determine Compute, Weights Determine Storage
An MoE (Mixture of Experts) model activates only a subset of its expert networks in each forward pass. So “40B” usually refers to the number of active parameters per inference. However, the full set of weights, including all expert parameters, must still be loaded into GPU or CPU memory. For this model:
- At FP8 precision, the full weights need about 744 GB of GPU memory.
- At BF16 precision, the theoretical requirement is about 1.49 TB.
- After INT4 quantization (for example, UD-Q4_K_M), the weights shrink to about 373 GB.
Many developers assume that a “40B model needs only 40 GB of GPU memory.” This confuses active parameters with weight storage. Compute size affects throughput and latency, while memory footprint sets the hardware floor.
2.2 KV Cache: The Hidden Cost of Context Length
Beyond weights, inference requires a KV Cache for each request. Its size grows with context length and batch size. The main factors are:
- Typical context vs. peak context: If the long tail of your traffic needs 1M tokens, you must reserve enough KV Cache for that single request. Most daily requests may use only a few thousand tokens.
- Maximum output length and thinking mode: Deep reasoning and chain-of-thought modes can greatly increase output token counts, so the KV Cache keeps growing.
- Tool calls and multi-turn agent workflows: Long-running agents keep accumulating message history, so memory usage rises linearly.
Even if 8×H200 GPUs (141 GB each) can hold the FP8 weights, that does not mean they can support a single request with a full 1M-token context. Higher-memory GPUs, such as 180 GB per card, are usually needed to leave headroom for the KV Cache.
3. Quantization: Memory Savings and Their Trade-offs
3.1 Common Quantization Options and Memory Estimates
For this model, UD-Q4_K_M quantization brings the weights to about 373 GB. In theory, that fits on 8×80 GB or 8×96 GB class GPUs. Keep two risks in mind:
- Multi-GPU communication overhead: Quantized backends such as GGUF use different low-level kernel optimizations than native FP8. They may not fully use NVLink or RDMA bandwidth.
- Quality loss: Quantization reduces accuracy, especially on sensitive tasks such as math reasoning, long-form generation, and code. Validate task quality with your own data before relying on the model.
3.2 Typical Use Cases for Quantized Deployments
- Cost-sensitive POC validation: verifying model functionality, workflow logic, and API compatibility.
- Low-concurrency internal testing: development environments, demo systems, and automated testing.
- Edge devices or constrained environments: when GPU resources are limited but you need to evaluate the model quickly.
Important: Quantized setups should not go directly to production. Production deployments require full quality regression testing, stability stress testing, and concurrency scaling validation. Without these, output quality may fluctuate, and the service may become hard to control.
4. Full Server Configuration: More Than Adding Up GPU Memory
4.1 Key Factors Beyond GPU Memory
- System memory (CPU RAM): If CPU offload is enabled, with some weights or KV Cache stored in host memory, you need large, high-bandwidth RAM. Also account for PCIe and memory bandwidth bottlenecks.
- NVMe storage: Loading model files, storing quantization caches, and writing logs all depend on high-throughput storage.
- GPU interconnect topology: NVLink, InfiniBand, or PCIe switches connecting the eight GPUs determine tensor parallel efficiency.
- Power and cooling: Under full load, 8×H200-class GPUs may draw more than 10 kW. Evaluate data center power capacity and whether liquid cooling is needed.
- Framework and versions: Inference frameworks differ significantly in MoE support and kernel optimization. Test compatibility early.
- Monitoring and alerting: Production services need monitoring for GPU utilization, memory usage, latency percentiles, and error rates.
4.2 Configuration as a Starting Point, Not an Acceptance Result
The table below lists common reference baselines. Treat them as starting points, not final acceptance criteria.
| Deployment Scenario | Recommended Configuration | Notes |
|---|---|---|
| Native FP8 weights | 8×141 GB-class GPUs (e.g., H200/H20) | Supports standard concurrency and normal context lengths |
| Full 1M context | 8×180 GB-class GPUs (e.g., B200) | Leaves ample room for the KV Cache |
| Q4_K_M quantized POC | 8×80 GB or 8×96 GB-class GPUs | Low-concurrency validation only; not for direct production use |
| High-concurrency production | Add GPUs or split into partitioned services | Run load tests to determine maximum concurrency and latency SLA |
Suggested decision path:
- Define business goals: maximum context length, peak concurrency, P99 latency, and thinking mode usage.
- Run a load testing tool, such as a load generator, to measure real resource usage curves.
- Compare output quality between quantized and original precision.
- Decide whether multi-node distributed inference is needed, such as tensor parallelism combined with pipeline parallelism.
- Finalize the GPU model, server count, storage, and networking.
5. Common Questions
Q1: Why can 8×80 GB fit a quantized model but still deliver insufficient throughput?
Enough memory capacity is only a prerequisite. The compute efficiency of the quantized backend, thread scheduling, and communication synchronization may fall behind native precision. In multi-GPU parallel setups, interconnect bandwidth can become the bottleneck. For production, native FP8 or BF16 is recommended.
Q2: Do GPUs with the same memory capacity, such as H20 and H200, perform the same?
No. Memory capacity determines only how much a GPU can hold. Compute capability (FLOPS), memory bandwidth (GB/s), and power limits (TDP) differ between models. Measure actual throughput with benchmarks rather than inferring it from memory size.
Q3: What does “active parameters are not the same as weight footprint” mean?
Active parameters determine the size of the matrix multiplications in each forward pass, which sets the compute demand. Weight footprint determines the storage capacity needed to load the model. The two point to different bottlenecks, compute and storage, and they call for different optimizations.
Q4: What additional components does a production environment need?
Beyond GPU servers, production environments need high-availability load balancing, auto-scaling policies, model version management, request queuing, timeout and backoff mechanisms, log collection, performance monitoring, and a CI/CD pipeline.
6. Conclusion: The Gap Between “It Loads” and “It Runs in Production”
Deploying a large model involves more than buying a few GPUs and loading the weights. A stable production system requires several rounds of validation, including stress testing, capacity planning, failure drills, and quality evaluation. Form a joint team of algorithm, systems, and operations engineers early in the project. Together, define acceptance criteria that cover four areas: context length, concurrency target, latency SLA, and cost budget.
Only by combining hardware configuration, framework optimization, quantization trade-offs, and workload characteristics can you avoid a model that loads successfully but fails once it goes live. Use this article as a practical checklist for your deployment decisions.
