Architecture, Training, and Deployment Practices of 100B-Scale Mixture-of-Experts LLMs

    This article systematically reviews the technical practices of 100B-scale Mixture-of-Experts (MoE) Large Language Models. It covers the core MoE architecture design, large-scale pretraining and cost control strategies, inference acceleration techniques, continuous model iteration, and cloud deployment practices. Readers will gain insights into how MoE models balance performance, cost, and deployment flexibility through sparse activation, parallel strategies, and engineering optimizations.

    Architecture, Training, and Deployment Practices of 100B-Scale Mixture-of-Experts LLMs

    In recent years, Large Language Models (LLMs) have gradually shifted from “stacking parameter scales” to “improving computational efficiency.” In this technical trend, Mixture-of-Experts (MoE) models have become an important direction for LLM architecture evolution. By leveraging a sparse activation mechanism, MoE models maintain a large parameter capacity while significantly reducing the actual computation required for each inference and training step. Taking a class of 100B-scale MoE language models open-sourced in late 2024 as an example, the total parameter count reaches hundreds of billions, but only tens of billions of parameters are activated per token. Through large-scale corpus pretraining, engineering scheduling, and inference optimization, these models achieve a balance between performance, cost, and deployment flexibility.

    This article will systematically review the technical practices of this class of large models from the perspectives of architectural principles, training processes, inference optimization, version iteration, and cloud deployment.

    1. Core Design of Mixture-of-Experts Models

    Traditional dense models typically involve all parameters in the computation when processing each input token. The larger the parameters, the stronger the model’s expressive capability, but the computational cost also increases synchronously. MoE models adopt a different design approach: the model contains multiple expert networks internally, and each token goes through a gating mechanism to select a subset of experts for computation, while the remaining experts remain silent during the current step.

    This mechanism can be summarized as follows:

    1. Input token
    2. ↓
    3. Gate network computes expert weights
    4. ↓
    5. Select a small number of relevant experts
    6. ↓
    7. Execute expert computation
    8. ↓
    9. Merge expert outputs

    The main advantages brought by sparse activation include:

    • Expanding parameter capacity: The total number of model parameters can be much higher than the parameters actually used in a single computation, thereby enhancing knowledge storage and expressive capability.
    • Controlling computational cost: Only a few experts are activated per token, preventing the computational volume from growing linearly with total parameters.
    • Promoting specialized division of labor: Different experts may develop differentiated capabilities during long-term training to handle different types of semantic, syntactic, or domain-specific information.
    • Improving scaling flexibility: In certain engineering scenarios, model capacity can be expanded by increasing the number of experts without proportionally increasing the computational overhead per request.

    However, the MoE architecture also introduces new engineering challenges. For example, the gating network needs to allocate tokens reasonably; otherwise, it is prone to situations where a few experts are overloaded while many remain idle for long periods. Therefore, model training usually requires introducing load balancing mechanisms to ensure expert calls are as uniform as possible, while avoiding breaking the semantic relevance of routing results for the sake of balance.

    2. Large-Scale Pretraining and Cost Control

    The training cost of large models is jointly determined by model parameters, training corpus size, single computation volume, hardware utilization, and training cycle. According to public information, a 100B-scale open-source MoE model completed pretraining on approximately 14.8 trillion tokens. The training process utilized about 2,000 data center-oriented high-performance computing GPUs, with a total training time of about 2.788 million GPU hours, of which pretraining accounted for about 2.664 million hours. Based on public estimates, its R&D cost was at the level of several million US dollars.

    The reason this cost level attracts attention is not that training large models has become a low-barrier task, but rather that architectural optimization and engineering efficiency can significantly improve resource utilization. Its main technical implications include:

    1. Sparse Computation Reduces Effective Training Overhead

    Although the total parameter scale of the model is large, only a portion of experts is activated per token, making the computation for forward and backward propagation lower than that of a dense model with an equivalent parameter scale. For training tasks, this means that a larger model capacity can be supported under limited hardware resources.

    2. Collaborative Design of Parallel Strategies

    100B-scale models cannot rely on a single GPU for training and usually require a combination of multiple parallel methods:

    • Data Parallelism: Allocating different batches of data to multiple computing nodes.
    • Tensor Parallelism: Splitting single-layer matrix calculations across multiple devices.
    • Pipeline Parallelism: Assigning different layers of the model to different computing stages.
    • Expert Parallelism: Deploying different experts to different devices to alleviate expert parameter storage and computation pressure.

    These strategies are not simply stacked. Unreasonable splitting methods may cause a surge in communication traffic, causing GPUs to spend significant time on parameter synchronization and intermediate result transmission. Therefore, engineering teams need to make overall plans combining network topology, GPU memory capacity, batch size, and expert routing distribution.

    3. Training Stability Directly Affects Total Cost

    The training cycle for large-scale models is long. Any loss value anomaly, gradient explosion, node failure, or checkpoint corruption can cause training rollback. To mitigate risks, it is usually necessary to:

    • Regularly save training checkpoints;
    • Continuously monitor changes in loss values, gradients, and learning rates;
    • Automatically isolate failed nodes and recover tasks;
    • Use mixed precision training strategies with higher numerical stability;
    • Fully validate on a small scale before scaling up training.

    Cost optimization should not only look at hardware unit prices but also comprehensively evaluate actual utilization, fault recovery time, communication efficiency, and training convergence speed.

    3. Inference Acceleration and Online Serving Capabilities

    After training is completed, whether a large model can truly be put into business depends on inference speed, service stability, and resource cost. Compared to previous versions, related models have achieved about a 3x improvement in generation speed. Such improvements usually come from coordinated optimization at multiple levels.

    1. Reducing Single Decoding Computation

    When LLMs generate content, they usually output token by token, and each step depends on the previous step’s results. Through sparse activation, the network size required for each decoding computation can be reduced, fundamentally lowering latency.

    2. Optimizing Attention Cache

    During autoregressive inference, the intermediate attention results of historical tokens can be cached and reused. Reasonably designing the storage format, memory layout, and access methods of the key-value cache can reduce redundant computations. For long-text scenarios, solutions such as attention compression, hierarchical caching, or sparse attention can be combined to control memory growth.

    3. Batching and Dynamic Scheduling

    Online requests vary greatly in input length, output length, and arrival time. Static batching can easily waste computing resources, while dynamic scheduling can merge multiple requests for execution under the premise of guaranteeing response time, thereby improving hardware utilization.

    4. Quantization and Distillation

    When business accuracy requirements are met, low-bit quantization can be used to reduce memory footprint and data transmission volume. Alternatively, knowledge distillation can transfer large model capabilities to smaller models for scenarios more sensitive to cost and latency. It is important to note that the higher the quantization ratio, the greater the risk of accuracy loss. It must be validated with real business samples rather than relying solely on general benchmark test results.

    4. From Base Model to Continuous Iteration

    Large models usually do not remain unchanged after release but undergo continuous upgrades based on inference efficiency, task capabilities, context length, and safety strategies. Taking the development process of related open-source models as an example, after the initial release, it underwent multiple small to medium-sized updates and gradually formed a more complete model system. Subsequent versions continuously optimized capabilities around general Q&A, code generation, mathematical reasoning, Chinese understanding, and long-context processing.

    This iterative approach has two values:

    On the one hand, minor version upgrades can fix specific capability shortcomings, reducing the high costs of full retraining. On the other hand, major version upgrades can unify architectural optimization, training data, and inference strategies, enabling the model to maintain stable performance across more business scenarios.

    Long context is an important upgrade direction in recent years. After the context length expands from tens of thousands of tokens to a higher scale, the model can process longer contracts, technical documents, code repositories, and multi-turn dialogue records. However, expanding the context window does not mean the model can accurately use all the information. Practical applications still need to focus on:

    • Key information recall capability in long texts;
    • Attention computation and caching costs;
    • Input truncation and content chunking strategies;
    • Multi-document information conflict resolution;
    • The division of labor between Retrieval-Augmented Generation (RAG) and model context.

    Therefore, enterprises should not simply pursue longer context windows but should weigh between “full-text input” and “post-retrieval input” based on business characteristics.

    5. Cloud Deployment and Engineering Implementation

    For enterprise users, model capability is only the foundation. A complete production system also requires deployment, elastic scaling, access control, log auditing, monitoring alerts, and cost management. Shortly after the release of related models, they were launched on multiple cloud computing platforms, intelligent computing platforms, and developer platforms, indicating that standardized model services have become an important form of large model deployment.

    When planning cloud deployment, the following aspects can be prioritized.

    1. Deployment Models

    Common models include:

    • Public cloud online service: Suitable for teams needing quick validation, experiencing significant traffic fluctuations, or lacking self-built computing power.
    • Private deployment: Suitable for businesses with sensitive data, requiring intranet isolation for access links, or having compliance requirements.
    • Hybrid deployment: Routing general requests to the cloud while keeping sensitive data locally or in dedicated environments.

    Cloud providers such as Baidu AI Cloud typically offer general cloud product capabilities like model deployment, container platforms, object storage, log services, and monitoring alerts to help enterprises integrate models into their existing technical systems. When making specific choices, API openness, resource elasticity, O&M costs, and data boundaries should be core metrics.

    2. Service Interfaces and Traffic Governance

    In production environments, business systems should not directly operate underlying model instances; instead, standard APIs should be provided through a unified inference gateway. The gateway can handle responsibilities such as identity authentication, request rate limiting, content auditing, gray release, timeout retries, and call statistics.

    An example configuration is as follows:

    1. model_service:
    2. max_input_tokens: 128000
    3. max_output_tokens: 4096
    4. timeout_seconds: 60
    5. rate_limit:
    6. requests_per_minute: 600
    7. routing:
    8. enable_gray_release: true
    9. observability:
    10. enable_metrics: true
    11. enable_trace: true

    This type of configuration represents a general service governance approach. Specific parameters must be determined after stress testing based on hardware resources, concurrency scale, and business response targets.

    3. Observability System

    Large model services should not only monitor CPU, memory, GPU memory, and network but also focus on model-level metrics, including:

    • Time to first token (TTFT);
    • Average generation speed;
    • Request success rate;
    • Number of input and output tokens;
    • Cache hit rate;
    • Queue waiting time;
    • Resource cost per request.

    When latency increases, relying solely on host resource metrics often cannot pinpoint the cause. It is necessary to combine request tracing to determine whether the bottleneck appears at the gateway, expert scheduling, attention computation, memory swapping, or external dependency services.

    4. Security and Compliance

    After enterprises access large models, they should establish security mechanisms covering input, output, and logs. For sensitive information, strategies such as data masking, permission isolation, and minimized log retention can be adopted. For model outputs, risk identification should be combined with business rules. Especially in scenarios like code generation, knowledge Q&A, and automated decision-making, model results should be verified and not directly used as the sole basis.

    6. Evaluation Beyond Benchmarks

    Public tests show that related models have achieved high levels in mathematics, Chinese understanding, and general reasoning tasks. However, enterprise selection cannot rely solely on leaderboard scores because there may be significant differences between benchmark tests and real business applications. More reliable evaluation methods include:

    1. Building a private test set covering real business problems;
    2. Simultaneously evaluating accuracy, completeness, format stability, and explainability;
    3. Stress testing on long texts, multi-turn dialogues, and abnormal inputs;
    4. Comparing latency and throughput under different concurrency conditions;
    5. Quantifying the comprehensive cost per thousand requests or per million tokens;
    6. Establishing a continuous evaluation mechanism combining manual spot checks and automated evaluation.

    For code, mathematical, or knowledge-intensive tasks, model error types should also be recorded, distinguishing between factual errors, reasoning errors, formatting errors, and context omissions, to determine whether the problem should be solved through prompt engineering, RAG, post-processing rules, or model upgrades.

    7. Conclusion

    The value of 100B-scale MoE large models lies not only in parameter scale and benchmark scores but also in a more efficient model design philosophy: expanding model capacity through sparse activation, reducing training costs through various parallel strategies, improving inference efficiency through caching, batching, and quantization, and completing large-scale deployment through cloud services and engineering governance.

    For enterprises, when introducing such models, they should avoid focusing solely on release data or leaderboard rankings. Instead, they should make comprehensive plans from dimensions such as business tasks, data security, inference costs, system integration, and continuous evaluation. Only by transforming the architectural advantages of the model into stable, observable, and governable service capabilities can large models truly support complex business scenarios such as search Q&A, code assistance, document analysis, and knowledge management.