Deploying Ultra-Large MoE Models Locally: VRAM Estimation and License Review

    Downloadable model weights do not guarantee that inference will run reliably. Before deploying a very large MoE model locally, check three things: whether your hardware can hold the weights, whether VRAM covers runtime needs, and whether the license allows your use case. This article covers storage estimates at different precisions, VRAM components, parallelism and quantization trade-offs, a license review checklist, deployment options, and a pre-launch checklist.

    1. Public Weights Do Not Mean the Model Can Run Directly

    Downloading the weights only shows that you have access. It does not show that the inference service will run stably. Three factors usually decide whether a deployment works: whether the hardware can hold the model, whether VRAM is enough at runtime, and whether the license allows your intended use. The sections below cover each one.

    2. Storage First: Parameter Count and Weight Size

    The size of a weight file depends on the total parameter count and the number of bits used to store each parameter:

    Storage size ≈ total parameters × bits per parameter ÷ 8

    Precision has a large effect on file size. Take a model with 2.8 trillion parameters as an example:

    • 16-bit floating point: about 5.6 TB
    • 8-bit quantization: about 2.8 TB
    • 4-bit quantization: about 1.4 TB. Metadata such as quantization scaling parameters makes the actual file somewhat larger.

    The following code gives a quick estimate of the file size at each precision:

    1. def estimate_weight_gb(total_params_b: float, bits: float) -> float:
    2. """total_params_b: total parameter count (in billions); bits: bits per parameter"""
    3. return total_params_b * 1e9 * bits / 8 / 1e9
    4. for bits in (16, 8, 4):
    5. print(bits, "bit ->", round(estimate_weight_gb(2800, bits)), "GB")

    A mixture-of-experts (MoE) model has two relevant numbers. The total parameter count determines storage requirements. The active parameter count determines how much computation each token uses. A single inference step does not compute all parameters, but the weights of every expert must stay in accessible storage. Low computation therefore does not mean low hardware requirements.

    3. Next, VRAM: What Else Uses Memory

    Loading the weights is only the starting point. Inference VRAM use consists mainly of four parts:

    1. Model weights: all experts and shared layers must reside in VRAM or in memory that can be accessed quickly.
    2. KV cache: scales with context length and the number of concurrent requests. In long-context or high-concurrency workloads, it often uses more VRAM than the weights.
    3. Intermediate activations and temporary buffers: depend on batch size and sequence length.
    4. Runtime overhead: the inference framework, communication buffers, and similar components.

    Take weights of about 1.5 TB as an example. Spread across 8 GPUs, the weights alone take about 190 GB per GPU. With 80 GB per GPU, the 8 cards provide 640 GB in total, which cannot even hold the weights. For an 8-GPU setup to hold the weights, each GPU needs close to 200 GB of VRAM. You also need headroom for the KV cache, so the actual configuration is usually larger.

    If the hardware falls short, there are two options: add more GPUs, or offload part of the weights to host memory and local disk. Offloading can get the model running, but throughput drops noticeably. It suits only offline or low-frequency tasks.

    4. Parallelism Strategies and Quantization Trade-offs

    Very large models usually need several GPUs working together. There are three common parallelism strategies:

    • Tensor parallelism: splits the matrix operations within a single layer across multiple GPUs. Communication is frequent, so it requires high inter-GPU bandwidth.
    • Pipeline parallelism: splits the model by layers. It suits cross-node deployment, but it creates pipeline bubbles that reduce device utilization.
    • Expert parallelism: distributes different experts across different devices. This strategy is specific to MoE architectures. Each token must be routed to the device that hosts its assigned expert, so communication overhead depends heavily on the routing strategy.

    Quantization reduces VRAM and storage use, but you should not judge accuracy loss by average metrics alone. Run comparative evaluations on your own business samples, focusing on long-context understanding, code generation, tool calling, and similar scenarios. After you choose a quantization scheme, run regression tests, because quality can differ widely between methods.

    5. License Review Checklist

    “Open source” and “commercially usable” are different things. Before launch, confirm each of the following:

    • Whether commercial use is allowed, and whether there are revenue or user-scale limits
    • Whether modification and redistribution are allowed, and whether derivative models carry any release obligations
    • Requirements for attribution, notices, and distributing the license text with your product
    • Restrictions on specific industries, regions, or uses
    • Restrictions on generated content and who bears responsibility for it

    If the license terms are complex, have legal or compliance staff review them and archive their conclusions.

    6. Comparing Deployment Paths

    There are three common deployment paths. Compare them on the following dimensions:

    • Upfront investment: a self-built cluster costs the most. On-demand GPU instances cost the least. A managed service requires almost no hardware investment.
    • Data privacy: self-built deployment gives the most control. Cloud deployment depends on access control and compliance configuration. For managed services, review the provider’s data processing terms.
    • Reversibility: migrating self-built hardware is costly. Cloud resources can be resized more flexibly. Managed services depend on the provider’s availability and pricing.
    • Operations burden: self-built deployment is the heaviest. You must handle drivers, the inference framework, and failure recovery yourself.

    Whichever path you choose, you can store the weight files in object storage, orchestrate the workload with a container platform, and monitor it with logging and alerting services.

    7. Checklist Before Launch

    1. Estimate storage and VRAM based on your actual concurrency and context length, and reserve headroom for the KV cache.
    2. On small-scale hardware, first confirm that loading and inference work. Record first-token latency and throughput.
    3. Run accuracy regression tests on your business samples, and define an acceptable quality threshold in advance.
    4. Complete the license review, and record the conclusions and any restrictions.
    5. Design a fallback plan, such as switching to a smaller model when the primary model is unavailable.
    6. Set up monitoring for VRAM usage, request queue length, and error rate.

    Do not infer overall capacity from the speed of a single request. Only sustained load testing under realistic workloads shows whether a cluster is ready for production.