Behind Hundred-Billion-Scale Large Models: Compute Architecture Evolution and Practice
This article explains the compute architecture behind hundred-billion-parameter large models. It covers hybrid parallel training, memory optimization with ZeRO and activation recomputation, cloud-native scheduling and high-speed networking for large clusters, and inference techniques such as quantization, paged KV cache management, and continuous batching.
A leading large model company recently completed a hundred-billion-scale funding round. The founding team kept full control, and the post-money valuation set a new industry record. Across two rounds in a short period, the company raised more than 150 billion yuan in total. This reflects strong capital market interest in artificial general intelligence (AGI). It also highlights the technical barriers in very large model development: compute infrastructure, distributed training frameworks, and efficient inference deployment. As parameter counts grow from hundreds of billions toward trillions, traditional single-machine architectures and simple distributed strategies can no longer meet the demand. This article takes a technical perspective and examines the architectural challenges and practical solutions in large model evolution.
1. Compute Bottlenecks and the Evolution of Parallelism in Large-Scale Training
At the hundred-billion-parameter scale, model weights alone require terabytes of memory. Gradients, optimizer states, and activations add to that load. A single server cannot hold a full model for training. Distributed training is therefore a requirement, not an option.
1.1 Deep Application of Hybrid Parallelism
Mainstream training frameworks typically use 3D hybrid parallelism, which combines data parallelism, tensor parallelism, and pipeline parallelism.
- Data parallelism: Data is split across nodes. Each node computes gradients, which are then synchronized globally.
- Tensor parallelism: Weight matrices are split within a single layer. This reduces memory usage per GPU but adds communication overhead.
- Pipeline parallelism: The model is split by layers across nodes. Micro-batching improves throughput.
In practice, developers must tune the degree of each parallelism type based on cluster topology. Key factors include the gap between high-speed intra-node interconnect bandwidth and inter-node network bandwidth. The goal is an optimal balance between computation and communication.
1.2 Memory Optimization and Redundancy Elimination
To further reduce memory pressure, the Zero Redundancy Optimizer (ZeRO) is widely adopted. ZeRO partitions optimizer states, gradients, and model parameters across the data-parallel dimension, which greatly reduces memory usage per GPU. Combined with activation recomputation, it supports larger batch sizes at a small increase in computation cost. This improves overall cluster compute utilization.
2. Cloud-Native Infrastructure and Elastic Compute Scheduling
Training clusters at the 10,000-accelerator scale place demanding requirements on the underlying infrastructure. Managing thousands of heterogeneous compute resources efficiently while keeping training jobs stable is a new challenge for cloud-native technology in the large model era.
2.1 Elastic Scheduling and Containerized Deployment
Scheduling systems built on container orchestration platforms have become the standard foundation for AI compute clusters. Through device plugin mechanisms, the scheduler can detect and allocate underlying compute resources. For large model training, exclusive device mode is typically used to protect communication performance. Cloud-native elasticity also helps. Idle nodes can be released while tasks wait in the queue, and instances can be migrated automatically when a node fails. Both measures improve the availability of the overall resource pool.
2.2 High-Performance Storage and Network Communication
Model training is both compute-intensive and I/O-intensive. Reading massive training datasets and frequently synchronizing model parameters place high demands on storage and network architecture. A tiered storage architecture is common in practice. A high-performance parallel file system serves as the hot data cache, and object storage serves as the cold data foundation.
On the network side, Remote Direct Memory Access (RDMA) technologies such as InfiniBand or RoCE are key to reducing inter-node communication latency. RDMA lets compute units access remote memory directly, bypassing the CPU protocol stack. This substantially improves the efficiency of collective communication operations.
3. Model Inference Optimization and End-to-End Deployment
Deploying hundred-billion-parameter models depends on inference performance as much as on training. Inference costs are high, so developers continue to explore model compression and inference engine optimization.
3.1 Quantization and Sparsification
Quantization lowers the precision of model weights and activations, for example from FP16 to INT8 or even INT4. This noticeably reduces memory usage and memory bandwidth pressure. Low-bit quantization causes some accuracy loss. Techniques such as activation distribution smoothing and mixed-precision quantization can substantially increase inference throughput while preserving model capability.
3.2 KV Cache and Memory Paging
In autoregressive generation, the KV cache stores previously computed attention key-value pairs to avoid redundant computation. As generation length grows, however, KV cache memory usage expands rapidly and can fragment. Borrowing the paging technique from operating system virtual memory management, the KV cache is divided into fixed-size blocks. This effectively addresses memory fragmentation and increases the system’s concurrent processing capacity.
3.3 Continuous Batching
Static batching requires every request in a batch to finish before the next batch starts, which often leaves compute idle. Continuous batching adds new requests and removes completed requests dynamically at each iteration. This keeps the underlying compute resources highly utilized. The simplified pseudocode below shows the core logic of continuous batching for inference request scheduling:
class ContinuousBatchingEngine:def __init__(self, model, max_batch_size):self.model = modelself.max_batch_size = max_batch_sizeself.running_queue = []def add_request(self, request):if len(self.running_queue) < self.max_batch_size:self.running_queue.append(request)else:# Queue is full; the request waits in the waiting queuepassdef step(self):if not self.running_queue:return# Prepare the inputs for the current stepbatch_inputs = [req.get_next_input() for req in self.running_queue]# Run one forward passoutputs = self.model.forward(batch_inputs)# Update request states and remove completed requestsfor req, out in zip(self.running_queue, outputs):req.update(out)if req.is_finished():self.running_queue.remove(req)# New requests can be pulled from the waiting queue to fill the slot
4. Conclusion
The hundred-billion-scale funding round marks the start of the large model industry’s growth. The evolution of underlying compute architecture and the ability to engineer it for production will shape the industry. Each stage, from hybrid parallel training to cloud-native compute scheduling and advanced inference optimization, presents technical challenges. For developers and enterprises, understanding these underlying technologies and building stable, efficient, and elastic AI infrastructure will be a core foundation for the era of artificial general intelligence.
