Very Large Open-Weight Models: Local Deployment Hardware and Licensing Assessment

    This article explains how to assess whether a very large open-weight model can actually run locally, using a mixture-of-experts example to estimate weight memory, KV cache, bandwidth limits, and GPU sizing. It also covers system memory and storage, download integrity, license terms, deployment options, and a pre-deployment checklist.

    1. “Downloadable” Does Not Mean “Runnable”

    When open-weight model files are released, many people first download and try them. But weight file size only indicates the storage threshold. What really determines whether a model can run is GPU memory, system memory, bandwidth, and support from the inference framework.

    A typical very large model may have weight files in the multiple-terabyte range. To load it locally, three questions must be answered first: Can the weights fit entirely in available GPU memory? After loading, is the remaining space sufficient for intermediate data during inference? Can inference speed meet actual usage requirements? If any answer is no, the model remains at the stage of being “downloadable and inspectable.”

    This article uses a mixture-of-experts (MoE) weight with about 2.8 trillion total parameters and about 104 billion activated parameters per forward pass as an example to explain the assessment method. The numbers in the example are used to demonstrate the calculation process. Readers should base their own assessment on the model files and hardware specifications they actually have.

    2. Basic Conversion Between Weight Size and GPU Memory

    2.1 Bytes per Parameter Determine Size

    Model weights consist of large numbers of floating-point values, and the storage precision of those values directly determines how many bytes each parameter occupies. Common precisions are as follows:

    • FP32 (single precision): 4 bytes per parameter, mainly used for high-precision accumulation during training.
    • BF16 / FP16 (half precision): 2 bytes per parameter, a common precision for original large-model weights.
    • FP8 / INT8 (8-bit): 1 byte per parameter, often used for inference quantization.
    • 4-bit quantization: about 0.5 bytes per parameter, the lowest pressure on GPU memory, but the accuracy loss needs to be confirmed through evaluation.

    For the same model, each reduction in precision roughly halves the weight size. Therefore, confirming the actual precision of the weight files is more reliable than estimating from parameter count alone.

    2.2 Components of GPU Memory Requirements

    Loading weights is only the first step. GPU memory usage during inference usually includes four parts:

    1. The weights themselves: parameter count multiplied by bytes per parameter.
    2. KV cache: grows linearly with context length and the number of concurrent requests, and in long-context scenarios may exceed the weights themselves.
    3. Activation values and temporary buffers: related to batch size and sequence length.
    4. Framework overhead: fixed space occupied by the inference framework, communication libraries, and runtime.

    Therefore, weight size can only be treated as a lower bound. In engineering practice, a margin of 10% to 30% is usually reserved, and long-context and high-concurrency scenarios require more.

    2.3 Example Calculation

    The following script estimates the average weight footprint across multiple GPUs at different precisions. It depends only on the standard library and can be run directly.

    1. def estimate_weight_memory_gb(total_params_b: float, bytes_per_param: float, num_gpus: int):
    2. """
    3. Estimate total weight size and average per-GPU footprint when weights are split across multiple GPUs.
    4. total_params_b: Total parameter count in billions (B).
    5. bytes_per_param: Number of bytes per parameter.
    6. num_gpus: Number of GPUs across which weights are split.
    7. Return values are in GB.
    8. """
    9. total_gb = total_params_b * bytes_per_param # billions of params × bytes = GB
    10. per_gpu_gb = total_gb / num_gpus
    11. return total_gb, per_gpu_gb
    12. if __name__ == "__main__":
    13. for name, bpp in [("BF16", 2.0), ("FP8", 1.0), ("4bit", 0.5)]:
    14. total, per = estimate_weight_memory_gb(2800, bpp, 8)
    15. print(f"{name}: total weight {total:.0f} GB, average per GPU across 8 GPUs {per:.0f} GB")

    The output is:

    Precision Total weight Average per GPU across 8 GPUs
    BF16 5600 GB 700 GB
    FP8 2800 GB 350 GB
    4-bit 1400 GB 175 GB

    If the actual weight file is only 1.56 TB (about 1560 GB), the converted result for each precision will fall between 4-bit and FP8. With an 8-way average split, each GPU carries at least about 195 GB of weights, before KV cache and framework overhead are included. This shows that the answer to “how many GPUs are needed” depends on the memory capacity of each GPU, not on the total number of GPUs alone.

    3. Impact of Mixture-of-Experts Structure on Inference

    3.1 Total Parameters and Activated Parameters

    In a dense model, all parameters are used for every inference. A mixture-of-experts model instead splits the network into a large number of expert subnetworks, and a routing module selects a small number of experts for each token to participate in computation. Therefore, the model has two parameter concepts:

    • Total parameters: determine weight size and also determine how much storage and GPU memory are needed.
    • Activated parameters: determine the computation per token and affect the upper bound of inference speed.

    In the example above, the total parameter count is about 27 times the activated parameter count. This means that storage and GPU memory need to be planned according to total parameters, while computation speed can be estimated according to activated parameters. The two cannot be mixed up.

    3.2 Expert Routing and Shared Experts

    A mixture-of-experts structure usually includes the following elements:

    • Number of experts: the larger the expert pool, the larger the model capacity, but the larger the weight size as well.
    • Number of experts selected per token: determines the size of the subnetwork actually activated in a single computation.
    • Shared experts: experts that every token passes through, used to preserve general knowledge and reduce information fragmentation caused by routing.

    In multi-GPU deployment, experts are usually distributed across different devices. The routing result determines which GPUs a token needs to access, and the frequency and data volume of cross-GPU communication directly affect latency. Therefore, inter-GPU interconnect bandwidth and topology are more sensitive for MoE models than for dense models.

    3.3 Rough Estimate of Bandwidth Upper Bound

    During the decoding phase, each generated token requires reading the activated weights used by that token from GPU memory. If calculated at 4-bit precision, the weight read per token is approximately:

    104 billion parameters × 0.5 bytes ≈ 52 GB

    Assuming the system’s effective aggregate GPU memory bandwidth is 4000 GB/s, the theoretical upper bound for decoding speed is approximately:

    4000 ÷ 52 ≈ 77 tokens/s

    This value ignores communication, scheduling, and attention computation overhead, so actual speed will only be lower. Its purpose is to quickly judge whether a configuration is feasible at the order-of-magnitude level. If the theoretical upper bound is only single digits, the hardware selection needs to be reconsidered.

    4. Selection Path for Hardware Configuration

    4.1 Determine GPU Memory Capacity First, Then GPU Count

    The recommended assessment order is as follows:

    1. Divide the total weight size by the target number of GPUs to get the per-GPU weight footprint.
    2. Add KV cache and framework overhead on top of this to get the minimum GPU memory required per GPU.
    3. Choose hardware whose per-GPU memory meets that value, and confirm that the GPU count can be evenly divided by the sharding scheme.
    4. Check inter-GPU interconnect bandwidth to confirm that multi-GPU communication will not become a bottleneck.

    If the result of the first step already exceeds single-GPU memory, increasing the GPU count is the only option. If the GPU count is already high but inter-GPU bandwidth is insufficient, performance may actually be worse than a solution with fewer GPUs.

    4.2 System Memory and Storage

    When loading a model, files usually need to be read from storage into system memory first and then moved to GPU memory. Therefore, note the following:

    • Storage capacity must hold all weight files and leave room for decompression, conversion, and logs.
    • System memory should be sufficient to handle temporary data during loading; otherwise, frequent paging will greatly extend startup time.
    • High-speed solid-state storage can shorten loading time, but its impact on inference speed is limited.

    4.3 Power and Cooling

    A multi-GPU server may draw thousands of watts. Before deployment, confirm the data center’s power supply capacity, cooling capacity, and rack load-bearing capacity. These conditions are often more easily overlooked than the hardware purchase itself.

    5. Download and Integrity Verification

    Large weights are usually split into hundreds of shard files. Interrupted downloads, network hijacking, or inconsistent mirrors can all corrupt files, and damaged shards sometimes do not immediately report an error during loading but instead cause abnormal output during inference.

    The recommended process is as follows:

    1. Download from an authoritative source and save the file manifest and hash values.
    2. Check whether the number of shards matches the manifest.
    3. Compute the hash of each shard and compare it with the official value.
    4. Before formal deployment, run a benchmark with fixed prompts and compare whether the output is stable.
    1. # Verify all shards in the weights directory; OK means pass
    2. sha256sum -c checksums.txt

    If the manifest file does not exist, at least record the size of each shard and keep it consistent across machines for later troubleshooting.

    6. How to Read License Terms

    “Open weights” and “open-source license” are two different concepts. The fact that weights can be downloaded does not mean that the scope of use is unrestricted. When reading license terms, focus on checking the following:

    • Commercial use scope: whether use in for-profit products is allowed, and whether there are revenue or user-scale thresholds.
    • Derivative models: whether fine-tuning, distillation, or quantization followed by redistribution is allowed, and what obligations must be met during distribution.
    • Attribution and notices: whether the source and license text need to be marked in products or documentation.
    • Geographic and industry restrictions: some terms impose restrictions on specific regions or sensitive industries.
    • Liability and disclaimers: how responsibility for output content is allocated.

    The license terms provided by the publisher are authoritative. Before adoption, the team should have legal or compliance personnel review them rather than relying on summaries or secondhand interpretations.

    7. Three Deployment Paths

    Depending on the team’s data requirements, budget, and operations capabilities, there are three common deployment approaches:

    1. Local deployment: data stays within the domain, with the strongest controllability, but requires large hardware investment and high operations requirements. Suitable for scenarios with highly sensitive data or long-term high load.
    2. Private cloud deployment: the cloud platform provides compute resources, and weights and services are managed through container platforms and object storage. Elasticity is good, making it suitable for teams with obvious resource fluctuations.
    3. Managed inference service: directly call a mature inference service without managing hardware. Cost is calculated by usage, making it suitable for prototyping and small-to-medium-scale applications.

    The three approaches can be combined. For example, first use a managed service to validate results, and then decide whether to invest in local hardware.

    8. Pre-Deployment Checklist

    Before formally committing resources, confirm the following items one by one:

    • Weight precision and file size have been confirmed, and hash verification has been completed.
    • Per-GPU memory covers the footprint after weight splitting and reserves headroom for KV cache.
    • Inter-GPU interconnect topology has been confirmed, and the multi-GPU communication scheme has been tested.