Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Google improves MoE training on Ironwood TPU with batch-split scheduli - OpenSmartRoute
Introduction - announcement of new MoE training improvements on Ironwood
Google has improved how mixture-of-experts (MoE) models are trained on the Ironwood TPU. These updates aim to eliminate communication stalls and increase efficiency at large scale. The new methods allow training to run faster and more smoothly on many chips. This progress helps push the limits of large AI models.
The improvements focus on better use of Ironwood's hardware. They address problems that appeared when scaling up to thousands of chips. The goal is to make training more efficient, especially at the largest scales. These changes can benefit teams working on big AI models that need many chips.
Benchmark setup - details of DeepSeek-V3 pretraining across multiple chip counts
Google tested these improvements using a model called DeepSeek-V3, which has 671 billion parameters. They trained it on different numbers of chips: 2,048, 4,096, and 8,192. These are large-scale tests to see how well the system performs as it grows.
During these tests, they measured how many tokens per second each chip could process. They achieved nearly 5,000 tokens per second on 2,048 chips, about 4,800 on 4,096 chips, and around 3,700 on 8,192 chips. They also looked at how effectively the model used its floating point operations, called effective model FLOPs utilization. It was over 55% at smaller scales but dropped to 45% at the largest scale.
Scaling challenges - communication stalls and efficiency drops at 8,192 chips
Scaling MoE training to thousands of chips introduces new challenges. As the number of chips increases, each chip processes fewer sequences per step. This makes it harder to keep all parts of the hardware busy.
At 8,192 chips, the efficiency drops because of communication delays. The chips often sit idle while waiting for data to arrive. These stalls happen during communication between chips, which slows down the entire training process. Overcoming these stalls is key to scaling further.
Communication bottlenecks - weight and token communication issues during scaling
Clay is developing a system to run and select AI agents for sales and marketing. It aims to make agent use easier and more cost-effective.
Two main types of communication slow down large-scale MoE training. The first is weight communication, which involves sharing expert weights across devices. Since expert weights are large, they must be gathered from many chips before use. This process is called fully sharded data parallelism (FSDP).
The second is token communication, which happens in the expert parallelism (EP) stage. Tokens are dispatched to experts on different devices, then combined afterward. This dispatch and combine process takes time, especially as the number of chips grows. Both types of communication compete for bandwidth and can cause delays.
When scaling to many chips, increasing one type of communication often worsens the other. For example, spreading experts over more devices reduces weight communication but increases token travel. Conversely, reducing token travel can increase weight communication. Balancing these is difficult at large scale.
Batch-split scheduling - method to hide communication under compute
To solve these issues, Google introduced batch-split scheduling. This method overlaps communication with computation, hiding delays. It allows both weight and token communication to happen while the chips are busy doing other work.
Batch-split scheduling breaks down the training process into smaller steps. It splits each batch into microbatches, which are processed separately. By interleaving these microbatches, communication can be hidden under computation. This keeps the chips busy and reduces idle time.
This approach is especially useful at 8,192 chips, where communication delays are most severe. It helps maintain high efficiency even at very large scale. The goal is to keep all parts of the system working continuously without stalls.
Implementation details - pipelining, microbatches, and microbatch interleaving
Implementing batch-split scheduling involves several techniques. First, it pipelines weight all-gather operations across layers. While one layer runs, the next layer's weights are prefetched. This means weights are available when needed, avoiding stalls.
Next, it splits each batch into two microbatches of half the size. These microbatches are processed sequentially but interleaved. While one microbatch's tokens are dispatched, the other microbatch's attention computation runs. This overlap hides communication delays.
Further, the microbatches are offset so that their communication stages do not happen at the same time. This interleaving allows both the TensorCore and SparseCores to stay busy. It also shifts the attention stage of one microbatch to overlap with the combine stage of the other microbatch.
These steps create a schedule where communication and computation are fully overlapped. This results in higher hardware utilization and faster training times. The process requires careful control of the order of operations, often enforced through custom scheduling.
Final sharding scheme - expert parallelism and memory management on Ironwood
The final sharding scheme on Ironwood uses a combination of expert parallelism and data parallelism. Expert parallelism (EP) is set to 16 along one axis of the hardware grid. This means experts are spread across 16 chips along the X axis.
Weights are sharded across the Y and Z axes using fully sharded data parallelism (FSDP). This divides the weight matrices into many parts, reducing memory load per chip. The Y and Z axes are used to distribute weights over the chips, balancing memory and communication.
Token traffic uses the X axis and the die-to-die (D2D) links, while weight traffic uses the Y and Z axes. Different links handle different types of data, avoiding contention. The token communication involves all-gather operations, and weight communication uses reduce-scatter.
This scheme allows efficient use of the hardware. It balances compute, memory, and communication. The design ensures that neither token nor weight traffic dominates the system, enabling large-scale training without stalls.
Evaluation results - speed and efficiency gains from new scheduling
The new batch-split scheduling significantly improves training speed. At 8,192 chips, the effective tokens per second per chip are higher than before. The system maintains better hardware utilization, reducing idle time during communication.
The speed gains come from overlapping communication with compute. The schedule allows the chips to work continuously, instead of waiting for data. This results in faster training times and higher overall efficiency.
The improvements also increase the effective model FLOPs utilization. Although it drops at larger scales, the new methods help recover some of that efficiency. Overall, the system runs more smoothly and at higher throughput than previous setups.
Why it matters - implications for large-scale MoE training
These advancements show that large MoE models can be trained more efficiently on many chips. Overcoming communication stalls is crucial for scaling models to thousands of devices. Batch-split scheduling provides a practical way to do this.
Better scaling means larger models can be trained faster and with less wasted hardware. This can lead to more powerful AI systems that require fewer resources per training step. It also helps teams push the limits of what large models can do.
The techniques developed here can be applied to other large-scale distributed training tasks. They demonstrate how careful scheduling and hardware-aware design improve performance. This progress supports the future of large AI models and their deployment.
How OpenSmartRoute helps
Teams routing AI requests through OpenSmartRoute can benefit from these improvements by efficiently managing model deployment. OpenSmartRoute can direct requests to models optimized with batch-split scheduling, ensuring fast response times. It can also help balance costs and safety by choosing the right model for each request.
Using OpenSmartRoute, teams can set rules to keep personal data on-premises and meet regional or cost constraints. It learns from outcomes, directing more traffic to well-performing models. This ensures that large models trained with these new methods are used effectively and securely.
OpenSmartRoute's platform supports models served locally or via cloud providers. It provides a catalog of models with prices and rankings based on real traffic. This allows teams to optimize their AI requests, reducing costs and improving quality. The improved training techniques help ensure that models in the catalog are more capable and efficient.
How it compares - what existed before, what this changes and what stays the same
Before these improvements, large MoE (mixture-of-experts) models faced challenges in scaling efficiently across many chips. Communication between devices often caused stalls, especially at very large scales like 8,192 chips. These stalls happened because communication of weights and tokens could not be fully overlapped with compute. As a result, the overall training speed was limited.
Traditional training used fixed schedules where each layer all-gathered weights just before use. This caused idle time for the TensorCores while waiting for data. Communication was a bottleneck that limited how well the hardware could be utilized. Scaling to more chips made these problems worse, reducing efficiency and increasing costs.
The new approach introduces batch-split scheduling. It overlaps weight and token communication with compute more effectively. This allows the chips to work continuously without waiting for data. It also reduces wasted memory bandwidth by sizing buffers for only the tokens that exist. Custom kernels fuse data movement and quantization into core operations, keeping hardware busy.
What stays the same is the basic structure of MoE layers. They still have attention, token dispatch, expert computation, and token combine stages. The improvements focus on how these stages are scheduled and how communication is overlapped with compute. The core model design remains, but the way data flows and is scheduled is optimized.
These changes lead to higher throughput, better hardware utilization, and more efficient scaling. They allow training larger models faster and with less idle hardware. The improvements are compatible with existing MoE architectures, but they require careful scheduling and kernel optimization.
Questions this leaves open - what the source does not say and how a reader can check it
The source does not specify the exact hardware costs or energy consumption improvements from these techniques. It also does not detail how much the training time is reduced in real-world scenarios. The focus is on technical methods and benchmarking results, not on deployment or operational costs.
It is unclear how these methods perform with different model architectures or other hardware types beyond Ironwood TPU7x. The results are based on a specific benchmark with DeepSeek-V3 671B. Other models or datasets might see different gains.
The source does not mention the complexity of implementing batch-split scheduling or custom kernels. It is unknown how much engineering effort is needed to adopt these techniques in existing training pipelines. Teams may need specialized knowledge or tools.
To verify these claims, a reader can look for published benchmarks or case studies from other teams using similar methods. They can also experiment with scheduling strategies in their own training setups. Open-source tools or libraries that support such scheduling can help test these techniques.
Additionally, teams can measure their own hardware utilization and throughput before and after applying these methods. Monitoring tools can reveal how communication overlaps improve efficiency. Comparing training times and costs can provide practical insights.
Finally, consulting with hardware vendors or research papers on similar scheduling methods can clarify the generality of these techniques. Understanding the trade-offs involved in custom kernel development and buffer sizing is important for practical adoption.