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.
Distributed LLM Training Gains Efficiency with Streaming DiLoCo Method - OpenSmartRoute
Distributed LLM Training Gains Efficiency with Streaming DiLoCo Method
Google researchers introduce Streaming DiLoCo, a method that reduces network traffic during large-scale language model training across multiple datacenters.
Key points
Streaming DiLoCo reduces cross-slice network traffic by up to 65 times.
Model training with Streaming DiLoCo maintains quality even with low-bandwidth links.
Qwen3-32B model trained with Streaming DiLoCo shows 9.57× speedup under severe network constraints.
MaxText provides native implementation for Streaming DiLoCo without external servers.
Why it matters: Reducing network communication improves training speed and cost-efficiency for large models across distributed datacenters.
By OpenSmartRoute editorial · written through the router by llm-small
From Google AI developers blog - “Distributed LLM Training Across Metros: Streaming DiLoCo in MaxText”
Introduction - what was announced and why it matters
Google researchers have introduced a new method called Streaming DiLoCo. It improves how large language models (LLMs) are trained across multiple data centers. This method reduces the amount of network traffic needed during training. It is especially useful when training across wide-area networks with limited bandwidth. This change can make training faster and more efficient in distributed environments.
Training large models usually requires a lot of computing power and high-speed networks. When models are spread across different locations, network limitations slow down training. Streaming DiLoCo addresses this problem by changing how and when model parameters are synchronized. This allows teams to train bigger models across more distant data centers without costly network upgrades. It matters because it can lower costs and increase training speed for large AI models.
Limitations of traditional monolithic training - the need for distributed methods
Traditionally, training state-of-the-art large language models relies on a single, powerful cluster of accelerators. These accelerators are usually colocated in the same data center and connected with high-bandwidth links. This setup allows for fast synchronization of gradients and weights during training. However, physical and financial constraints make scaling this setup difficult.
As models grow larger, the hardware needed becomes more expensive and harder to expand. The cost of high-speed connections and physical space limits how big a single cluster can get. This makes it hard to train the largest models within a single data center. To go beyond these limits, researchers need to connect multiple compute slices across different locations.
Distributed training across multiple data centers introduces new challenges. Wide-area networks (WANs) have lower bandwidth and higher latency than local networks. Standard data-parallel training methods require frequent synchronization, which can cause network stalls. These stalls slow down training and increase costs. Therefore, new methods are needed to make distributed training more efficient over WANs.
Google's new open-source guide details how to design and optimize models for TPU hardware, focusing on shape alignment, architecture choices, and parallelism.
ATOM announced agreements for borrowing up to 4.5 billion yen to build a GPU cluster and prepare humanoid robots for volume production.
Overview of DiLoCo - how it reduces communication during training
DiLoCo, short for Distributed Low-Communication, is a distributed optimization algorithm designed for large-scale training. It was developed by Google DeepMind and Google Research. DiLoCo reduces the amount of data exchanged between compute groups during training. Instead of synchronizing weights after every step, it divides training into multiple independent groups called learners.
Each learner runs many local optimization steps independently. These steps are performed without communicating with other learners. Only after a set number of steps, called the synchronization interval, do the learners share information. They compute the difference between their current weights and the initial weights at the start of the interval. These differences are then averaged across all learners.
This approach significantly cuts down on communication volume. It allows training to proceed with less network traffic, making it suitable for environments with limited bandwidth. Despite less frequent communication, DiLoCo achieves convergence and model quality comparable to traditional methods. It offers a way to scale training across multiple locations without overwhelming the network.
Local and global loops in DiLoCo - how learners operate independently
DiLoCo organizes training into two main loops: the inner loop and the outer loop. The inner loop is called the local loop. During this phase, each learner runs a standard optimizer, such as AdamW, on its local data. It performs a set number of steps, often between 37 and 65, without any communication with other learners.
While performing these local steps, the learner updates its weights based on its data. It also continues with intra-replica communication, which is fast and happens within the same data center or slice. This local operation allows each learner to make progress independently, reducing the need for constant network communication.
The outer loop occurs after the local steps are completed. All learners compute the difference between their current weights and the weights at the start of the interval. These differences, called deltas, are shared across the network. The deltas are averaged using a distributed all-reduce operation. The average is then used to update the global weights, which serve as the starting point for the next local phase. This process balances local progress with periodic synchronization.
Streaming DiLoCo - partitioning model parameters for low-bandwidth training
Streaming DiLoCo enhances the basic DiLoCo method to work better over low-bandwidth networks. It does this by partitioning the model's parameters into smaller fragments. Instead of synchronizing the entire model at once, it synchronizes only one fragment at a time.
The model is divided into P fragments. These include one fragment for all parameters outside the scanned layers, such as token embeddings and output heads, and one for each transformer decoder layer. During training, instead of waiting to synchronize the full model every H steps, Streaming DiLoCo synchronizes a single fragment every Δh steps.
This approach spreads out communication evenly over time. It prevents large spikes in network traffic that happen when transferring the entire model at once. By synchronizing small fragments in a staggered manner, the network sees a steady, low-volume stream of data. This makes training feasible even on constrained networks.
Fragmentation and staggered synchronization - spreading communication evenly
Fragmentation involves breaking the model into smaller parts called fragments. MaxText, the training framework, creates P fragments based on the number of layers plus one. One fragment contains all non-scanned parameters, while each of the other fragments corresponds to a transformer layer.
Instead of synchronizing all fragments at once, Streaming DiLoCo synchronizes one fragment at a time. The synchronization occurs every Δh steps, which is calculated based on H and P. When H equals P, each fragment is synchronized once per step, spreading the communication evenly.
The selection of which fragment to synchronize at each interval is interleaved across the network's depth. For example, it might synchronize fragment 0, then layer 1, then layer 2, and so on. This ensures different parts of the model are updated at different times. It prevents any part of the model from becoming stale while others are fresh.
This staggered approach balances the load across the training process. It avoids large, periodic network spikes and keeps communication steady. As a result, training remains efficient even when network bandwidth is limited.
Embedding load balancing - managing large parameter fragments
Some fragments in the model are larger than others. For example, fragment 0, which contains token embeddings and output heads, can be very large depending on the vocabulary size. Without management, synchronizing this fragment would create a big spike in network traffic.
To handle this, MaxText evenly splits large matrices from fragment 0 and merges them with other fragments. This process, called embedding load balancing, reduces the size of the largest fragment. It spreads the communication load more evenly across all fragments.
Load balancing ensures that no single synchronization step becomes a bottleneck. It allows the network to handle large models without causing delays. This is especially important when training models with big vocabularies or many parameters outside the main layers.
Network bandwidth considerations - how to size links for different methods
The amount of network bandwidth needed depends on the training method. For standard data-parallel training, the network must transfer all gradients at every step. This can require very high bandwidth, especially for large models.
For example, transferring all model parameters in a single synchronization can need hundreds of gigabits per second. If the network cannot support this, training stalls or slows down significantly. Over constrained links, this creates long delays and reduces efficiency.
Vanilla DiLoCo reduces total communication by a factor of H but still requires transferring the entire model at intervals. This can still cause stalls if the network is slow. Streaming DiLoCo, by synchronizing smaller fragments, greatly reduces the bandwidth needed per step.
For instance, in a typical example, standard data parallel needs around 85 Gbps to avoid stalls. Vanilla DiLoCo reduces this to about 1.3 Gbps, and Streaming DiLoCo needs only about 1.3 Gbps as well, making it suitable for slower links. This allows training to proceed without stalls even on limited bandwidth connections.
Performance evaluation - benchmarks and results under various network conditions
Google researchers tested Streaming DiLoCo using a model called Qwen3-32B, which has 64 decoder layers. They ran training across two TPU slices connected with limited bandwidth. They used traffic shaping to simulate different network conditions: unthrottled, moderate congestion at 30 Gbps, and severe congestion at 10 Gbps.
In these tests, Streaming DiLoCo drastically reduced network traffic. It cut the data transferred across slices from over 4,200 GB to just 67 GB. This is a reduction of about 64 times. It also maintained steady training speeds even under network constraints.
Under ideal conditions, all methods performed similarly. But when bandwidth was limited, Streaming DiLoCo outperformed traditional data parallel and vanilla DiLoCo. It kept training fast and avoided stalls caused by large data transfers. Even at 10 Gbps, it delivered a speedup of nearly 10 times compared to data parallel.
These results show that Streaming DiLoCo can keep training efficient across different network environments. It scales well with model depth and size, and it preserves model quality. It also avoids the periodic stalls seen in other methods, making it suitable for geographically distributed training.
How OpenSmartRoute helps - what a team routing through OpenSmartRoute does with Distributed LLM Training Gains Efficiency with Streaming DiLoCo Method
Teams using OpenSmartRoute can route their AI requests through its open-source platform. OpenSmartRoute sends each request to the best-fit model, agent, or tool from a defined catalog. It scores each candidate based on quality, cost, speed, and safety, with team-set weights.
Using Streaming DiLoCo for distributed training can lower the cost and improve the speed of large models. Teams can set up their models to train across multiple data centers with limited bandwidth. OpenSmartRoute can help by managing request routing to models trained with this method.
The platform also tracks request costs and model performance. It learns from outcomes to direct more requests to well-performing models. This setup helps teams optimize their AI deployment for efficiency and safety. It ensures that models are trained and used in ways that meet their specific needs and constraints.