Understanding the 744B Open-Source MoE Model: Architecture, Data, and Deployment

    This article analyzes a 744B open-source Mixture of Experts (MoE) large language model, exploring its sparse activation architecture, 28.5T token pretraining strategy, and deployment considerations. It details technical elements such as expert routing mechanisms, VRAM estimation, parallelism strategies, and pre-launch quantization checks, providing developers with a practical guide to evaluating and deploying ultra-large MoE models effectively.

    1. Conclusion First: Sparse Activation Separates Capacity from Compute

    According to the model’s technical report, it features a total of 744B parameters with 40B activated per inference, spanning 80 layers and containing 256 expert networks. The previous generation had 355B total parameters with 32B activated. While the total parameter count has more than doubled in the new version, the activated parameters per token have only increased by about 25%. This means the model can store significantly more knowledge while keeping the per-token computation increase limited.

    2. How MoE Sparse Activation Works

    The Mixture of Experts (MoE) architecture splits a massive feedforward network into multiple expert sub-networks. A gate network calculates scores for each expert per token, selects the top K experts with the highest scores, and performs a weighted sum of these experts’ outputs based on normalized weights. Unselected experts do not participate in the computation. Dividing 40B by 744B yields approximately 5.4%, which is the actual proportion of parameters participating in the computation for each token.

    The following code demonstrates this process. The top_k is set to 8 in the example for illustrative purposes; the actual value should be based on the technical report.

    1. import torch
    2. import torch.nn as nn
    3. import torch.nn.functional as F
    4. class MoELayer(nn.Module):
    5. def __init__(self, hidden_size, expert_hidden, num_experts=256, top_k=8):
    6. super().__init__()
    7. self.top_k = top_k
    8. self.gate = nn.Linear(hidden_size, num_experts, bias=False)
    9. self.experts = nn.ModuleList([
    10. nn.Sequential(
    11. nn.Linear(hidden_size, expert_hidden),
    12. nn.SiLU(),
    13. nn.Linear(expert_hidden, hidden_size),
    14. )
    15. for _ in range(num_experts)
    16. ])
    17. def forward(self, x): # x: [tokens, hidden]
    18. logits = self.gate(x) # [tokens, num_experts]
    19. topk_logits, topk_idx = torch.topk(logits, self.top_k, dim=-1)
    20. weights = F.softmax(topk_logits, dim=-1) # Normalize only within the selected experts
    21. output = torch.zeros_like(x)
    22. for e, expert in enumerate(self.experts):
    23. token_pos, slot = (topk_idx == e).nonzero(as_tuple=True)
    24. if token_pos.numel() == 0:
    25. continue
    26. out = expert(x[token_pos])
    27. output[token_pos] += weights[token_pos, slot].unsqueeze(-1) * out
    28. return output

    This code omits the load balancing loss and the capacity factor limits. In production environments, these two mechanisms are used to prevent a few experts from being overly invoked and must be understood alongside the training configuration.

    3. Pretraining Stages with 28.5T Tokens

    The pretraining data for this model increased from 23T tokens in the previous generation to 28.5T tokens. Of this, 27T tokens were used in the regular pretraining phase, and 1.5T tokens in the mid-training phase.

    The regular pretraining phase focuses on breadth and diversity, with data sources including web text, academic papers, code repositories, and books. The mid-training phase focuses on high-quality data, including instruction data, reasoning data, and long-context data, aiming to improve the model’s ability to follow instructions and decompose complex tasks.

    The original text does not disclose the specific ratios for deduplication, cleaning, and data blending, making it difficult to judge the exact improvement in data quality. When citing these numbers, refer to the original technical report.

    4. How to Interpret Benchmark Results

    The original text states that the model scored 50 points on a third-party intelligence evaluation index v4.0. It also claims that it ranks first among open-source models in both text and code arenas, with overall performance on the same tier as leading closed-source models.

    When reading such conclusions, three things must be verified: the benchmark version and date, the specific versions of the compared models, and whether the tests were conducted under identical conditions. Arena rankings change over time, so you should refer to the leaderboard from the release period. When selecting a model, it is best to conduct your own tests under identical conditions using your business data before making a decision.

    5. Estimating Deployment VRAM

    Weight VRAM equals the parameter count multiplied by the number of bytes per parameter. Calculating 744B parameters in BF16 (2 bytes per parameter) results in approximately 1488GB, or about 1.49TB (in decimal units). With INT8 quantization, it is about 744GB, and with INT4, about 372GB.

    Weights are only part of the VRAM requirement. Actual deployment must also account for the following overheads:

    • KV Cache: Grows with the number of concurrent requests and context length, usually representing the main overhead in long-context scenarios.
    • Activations: Related to batch size and sequence length.
    • Communication and framework buffers: Includes temporary tensors for parallel communication, framework reserved space, and VRAM fragmentation.

    Total VRAM demand can be roughly written as: Weights + KV Cache + Activations + Buffers. The specific margin ratio should be determined through stress testing and should not rely directly on empirical values.

    6. Parallelism Strategies and Scheduling

    Deploying ultra-large-scale MoE models typically requires combining multiple parallelism methods:

    1. Tensor Parallelism (TP): Splits matrix operations within a single layer, suitable for use across GPUs within the same node connected by high-speed interconnects.
    2. Expert Parallelism (EP): Places different experts on different cards. Each routing step requires all-to-all communication, which is sensitive to network bandwidth and latency. High-speed networks like RDMA can reduce this overhead.
    3. Dynamic Batching: Different requests activate different experts, causing the computational load on each card to fluctuate. The scheduling service should monitor expert loads to prevent hot experts from slowing down the entire batch.

    Cloud platforms such as Baidu AI Cloud offer containerized inference services and elastic GPU resources that can be used to build such deployment environments. When choosing a platform, verify whether it supports the parallelism schemes, high-speed networks, and billing models required by this model.

    7. Quantization and Cost: Verify Before Launch

    INT8 and INT4 quantization can significantly reduce VRAM usage but will introduce accuracy loss, the extent of which depends on the task type. Under specific workloads, quantization may lower the unit inference cost. This conclusion must be confirmed through actual testing and cannot be assumed to be true directly.

    Before going live, it is recommended to complete the following checks:

    1. Compare the accuracy of the BF16 version and the quantized version using your business evaluation set.
    2. Stress test Time To First Token (TTFT), Time Per Output Token (TPOT), throughput, and peak VRAM.
    3. Predefine rollback conditions, such as switching back to the original version if the accuracy drops beyond a threshold or if P99 latency exceeds the target value.
    4. Compare the total cost of cloud on-demand billing versus reserved resources based on actual invocation volume.

    8. Conclusion

    The core idea of this 744B MoE model is to achieve larger model capacity using the compute of 40B activated parameters. During deployment, you should first estimate VRAM, then design the parallelism strategy, and finally validate the performance and cost using your own data. The technical report is the starting point for understanding the model, and key numbers in this text should be cross-checked item by item against the original report.