Self-Hosting a 743B-Parameter MoE Model: A Hardware Budget Breakdown

    This article explains what it costs to self-host a 743B-parameter Mixture-of-Experts open-weight model. It covers why total parameters, not active parameters, determine GPU memory needs, itemizes memory usage including the KV cache, compares three budget tiers, lists hidden costs such as networking, power, and engineering time, and outlines alternatives for teams that find self-hosting too expensive.

    Open-weight models can be downloaded by anyone, but running them is a separate question. The cost of the hardware needed to serve them can be substantial. A recently discussed open-source model with 743B total parameters illustrates this well. Its official weights are publicly available, and the FP8-quantized version appears to have a low entry barrier: a single server with 8 high-end accelerator cards. However, if you want to offer a stable service to external users, your budget could easily double. Here is a line-by-line breakdown of the costs.

    1. Why MoE Memory Requirements Cannot Be Based on Active Parameters

    Many people see “39B parameters activated per token” and assume deployment costs scale with 39B. This is the most common misconception.

    A Mixture-of-Experts (MoE) model uses a router that selects a small subset of expert subnetworks for each token during inference. Fewer active parameters means less compute per token. However, the weights of all experts must stay resident in GPU memory, because you cannot predict which expert the next token will be routed to. Therefore:

    • Compute cost ≈ active parameters (39B)
    • Memory cost ≈ total parameters (743B)

    As a rough estimate, 743B parameters in FP8 precision require about 743GB of memory for weights alone. BF16 would require close to 1.5TB. A flagship accelerator card with 141GB of memory gives a single 8-card server about 1.1TB of total memory. That is just enough to hold the FP8 weights. Note that it is “just enough” and nothing more.

    2. Memory Holds More Than Model Weights

    In production, GPU memory usage typically covers four components:

    1. Model weights: about 743GB in FP8.
    2. CUDA, runtime, and inference framework overhead: usually a fixed few gigabytes per card, which adds up to tens of gigabytes across eight cards.
    3. KV cache: the component most often underestimated. Native support for a 1M-token context means that a single long-context request alone can consume tens of gigabytes of KV cache. When many requests run concurrently, the KV cache becomes the main memory bottleneck.
    4. Activations and communication buffers: MoE expert routing requires all-to-all communication across cards, so buffers must be reserved.

    You can estimate the KV cache for a single request with this formula:

    1. KV Cache ≈ 2 × layers × KV heads × head dimension × context length × bytes per element

    Grouped-query attention (GQA) reduces the KV dimension, but a single request with a 1M-token context still requires a significant amount of memory. After loading the weights, a single 8-card server has little memory left over. It is therefore difficult to support high concurrency and a full 1M-token context at the same time.

    3. Comparing Three Budget Tiers

    Tier 1: About RMB 3.5 million, single 8-card server (FP8), an “entry ticket”

    This tier can run inference and validate model quality. It suits functional testing and small-scale internal use. However, the remaining memory is limited. Long-context serving will have weak concurrency and cannot support production-level traffic.

    Tier 2: About RMB 7.3 to 8 million, two nodes (FP8 with 1M-token context)

    Two 8-card nodes connected by a high-speed interconnect double the total memory. After the weights are split across both nodes, enough memory remains for the KV cache. This setup can reliably support the full 1M-token context with reasonable concurrency. This is the realistic starting point for production use. This tier also requires budgeting for high-speed switches, cables, RDMA network cards, and data center power. A two-node setup plus network equipment typically draws more than 15kW.

    Tier 3: Higher budget, multi-node cluster

    Serving external users at scale requires expanding beyond two nodes and building operations infrastructure, including load balancing, monitoring and alerting, and log services. At this point, staffing and operations costs begin to exceed the hardware cost.

    4. Hidden Costs You Should Not Overlook

    • Networking: Bandwidth between nodes directly affects inference latency for tensor and expert parallelism. Even for clusters below a thousand accelerator cards, a non-blocking network design is recommended.
    • Power and cooling: A cluster like this is an ongoing operating expense. Annual electricity costs may reach a few percent to over ten percent of the hardware cost.
    • Engineering staff: Downloading and verifying weights, tuning the parallelism strategy, validating quantization accuracy, load testing, and fault drills typically require at least one senior engineer working for several weeks.
    • Quantization validation: Before deploying in FP8, evaluate the model on your own business data to confirm that the accuracy loss is acceptable.

    5. Alternatives When Self-Hosting Does Not Make Sense

    After calculating the costs, many small and mid-sized teams reconsider their approach. Common options include:

    1. Cloud inference services: Call a cloud provider’s hosted model API and pay per token. This requires no upfront hardware investment and suits variable traffic or evaluation phases.
    2. Smaller models on modest hardware: Self-host an open-source model with fewer active parameters. This can be set up for a few hundred thousand RMB. You trade some capability for lower, more predictable costs.
    3. Hybrid architecture: Route routine requests to a cloud API, and send sensitive data or long-context tasks to a local smaller model. This balances security and cost.

    Conclusion

    Open source does not mean free. Deploying a 743B-class MoE model on your own hardware means RMB 3.5 million only buys an entry ticket. To run a production-grade service with a 1M-token context, plan for a budget of at least RMB 7 to 8 million, plus ongoing costs for networking, power, and operations. Before deciding, load test concurrency and long-context performance with real traffic. Then choose between building your own cluster and a hybrid approach that uses cloud inference services. Running the numbers before committing is what makes the calculation worthwhile.