Deploying Open-Weight LLMs Locally: A Complete Guide to Compute and VRAM Requirements

    Open weights being downloadable does not mean a model can actually run on your hardware. This article explains how to assess local deployment feasibility for trillion-parameter, Mixture-of-Experts (MoE) open-weight models: the difference between total and active parameters, why sparse activation lowers compute but not storage, how to convert parameter counts and precision (FP16/BF16, FP8, INT4) into real VRAM needs, why multi-GPU parallelism (tensor, pipeline, and expert) is required, the license constraints that ship with open weights, and the three practical deployment paths—extreme quantization on local multi-GPU servers, elastic cloud GPUs, and hosted inference.

    Open-Weight LLMs Enter the Trillion-Parameter Era

    As the capability frontier of large models keeps rising, more and more teams are choosing to release the full model weights alongside a commercial API. Open weights mean any developer can download a model to their own hardware or compute environment, freeing them from reliance on remote endpoints and enabling private, auditable, and deeply customizable deployment. For teams that handle sensitive data, prioritize low latency, or want to fine-tune on top of a base model, this carries real value.

    But open weights also introduce an easily overlooked problem: downloadable ≠ runnable. When a model’s parameter count reaches the trillion scale, its demands on VRAM, system memory, and interconnect bandwidth jump by orders of magnitude. Whether it can “run locally” itself becomes an engineering question that needs to be calculated carefully.

    Parameters: Total vs. Active

    To understand deployment cost, you first need to read the parameter description on a model card correctly. Take a typical ultra-large open-weight model as an example: it usually reports two numbers on the model card—total parameters and the active parameters that are actually invoked in a single forward pass.

    This class of models generally adopts a Mixture-of-Experts (MoE) architecture. Its defining trait is splitting each layer’s internal structure into a large number of parallel “expert” subnetworks. During inference, not all experts are used; instead, a router selects a small subset of experts to participate in the computation based on each input token. As an illustrative configuration: around 2.8 trillion total parameters, containing hundreds of experts, with each token activating only about a dozen of them, plus a small number of shared experts that are always active; the model stacks dozens of layers and supports a context window on the order of a hundred thousand tokens.

    It is worth emphasizing that sparse activation reduces only the “compute,” not the “storage.” MoE makes the FLOPs of a single inference far lower than those of a dense model of equivalent size, but all expert weights must reside completely in VRAM or memory, standing by to be called by the router. So when assessing the feasibility of local deployment, you must never look at active parameters alone—you must use total parameters as the baseline for your VRAM estimate.

    VRAM Math: Why Parameters Eat Up Several TB

    The VRAM footprint of model weights is essentially “parameter count × bytes per parameter.” Different precisions map to very different byte counts, which directly determines the on-disk footprint of the weights:

    1. def estimate_weight_memory(total_params, bytes_per_param):
    2. """Estimate the storage footprint of model weights (in TB)"""
    3. total_bytes = total_params * bytes_per_param
    4. return total_bytes / (1024 ** 4)
    5. precision = {
    6. "FP16/BF16": 2, # half precision, 2 bytes per parameter
    7. "FP8": 1, # 8-bit float, 1 byte per parameter
    8. "INT4": 0.5, # 4-bit quantization, 0.5 bytes per parameter
    9. }
    10. total_params = 2800 * 10**9 # example: ~2.8 trillion parameters
    11. for name, bpp in precision.items():
    12. mem_tb = estimate_weight_memory(total_params, bpp)
    13. print(f"{name} precision needs about {mem_tb:.2f} TB for weights")

    A rough estimate from the formula above: at half precision, the weights alone need several TB, and even compressed to 4-bit quantization they remain in the TB range. This also explains why the download size of such models routinely exceeds 1 TB—it far exceeds the VRAM capacity of any single GPU.

    Beyond the weights themselves, inference also needs extra VRAM reserved for activations, temporary buffers, and—most importantly—the KV Cache. The longer the context and the larger the batch, the higher the KV Cache footprint. For models that support very long contexts, the actual peak VRAM can be significantly higher than the “weight size,” so always leave headroom when planning.

    Hardware Requirements: Why 8 GPUs Is the Starting Point

    Precisely because a single GPU’s VRAM (commonly tens of GB up to a hundred-plus GB) cannot hold several TB of weights, local deployment of this class of model must rely on multi-GPU parallelism. Common parallelism strategies include:

    • Tensor Parallelism: splits a layer’s weight matrices across multiple GPUs, which work together to complete a single matrix computation;
    • Pipeline Parallelism: assigns different layers to different GPUs, with data flowing stage by stage between them;
    • Expert Parallelism: specific to MoE models, distributing different experts across different GPUs and dispatching work across GPUs based on routing results.

    These strategies are often combined. For a model that needs several TB of VRAM, even at the lowest quantization precision you typically need 8 or more high-end accelerators working in tandem, connected through a high-speed GPU interconnect (such as an NVLink-class bus) to reduce communication overhead, before you can achieve usable inference throughput. You also need to account for total memory capacity, inter-GPU bandwidth, and power and cooling—these “invisible” costs are often the real barrier to local deployment.

    Open-Source Licenses: Open Weights ≠ Unconditional Use

    Open weights usually come with license constraints, and “downloadable” does not mean “free to use commercially in any way.” Common restrictions include commercial-scale thresholds (e.g., separate authorization is required once monthly active users or revenue exceed a certain limit), redistribution limits, attribution and compliance obligations, and so on. Before bringing a model into a production environment, review the license terms one by one to confirm whether your intended use case is permitted, and avoid legal and compliance risk from licensing issues.

    Deployment Paths: From Quantization to Cloud Elasticity

    For teams that want to put this class of model into production, there are usually three practical paths:

    1. Extreme quantization + local multi-GPU: use a 4-bit or even lower-precision quantization scheme to compress VRAM demand, paired with your own 8-GPU server for local inference. This suits scenarios where data cannot leave its domain, but demands significant hardware investment and operations capability.
    2. Elastic cloud GPUs: rent multi-GPU compute on demand through a cloud provider’s GPU instances, releasing it when done to avoid heavy upfront capital investment. Combined with a container platform, you can quickly spin up inference services; with object storage, you can host model weights and artifacts; and with monitoring and alerting services, you can track VRAM, throughput, and latency. For example, general-purpose capabilities such as the GPU compute, container orchestration, and object storage offered by Baidu AI Cloud can support this kind of elastic deployment need.
    3. Hosted inference services: if you do not need private deployment, calling a hosted endpoint directly is easier, but it comes at the cost of full control over your data.

    The core of the decision is balancing three factors: data sovereignty, cost structure, and operational complexity.

    Conclusion

    The arrival of trillion-parameter open-weight models has pushed large-model deployment from “calling an API” to the engineering stage of “doing the compute math.” Understanding the difference between total and active parameters, mastering the VRAM conversion method, recognizing the necessity of multi-GPU parallelism, and verifying the license in advance are all homework that every team wanting to run large models on a local setup must complete. Do the math first, then decide where and how to run it.