[DiLoCo] Add Docs for Streaming DiLoCo - #4942
Open
Dr-Left wants to merge 1 commit into
Open
Conversation
Dr-Left
requested review from
A9isha,
NuojCheng,
RissyRan,
SurbhiJainUSC,
abhinavclemson,
aireenmei,
bvandermoon,
darisoy,
dipannita08,
gagika,
gobbleturk,
hengtaoguo,
huytransformer,
igorts-git,
jacoguzo,
jiangjy1982,
khatwanimohit,
richjames0,
shralex,
shuningjin,
vipannalla and
xibinliu
as code owners
August 19, 2026 05:59
There was a problem hiding this comment.
Code Review
This pull request adds comprehensive documentation and tutorials for Vanilla and Streaming DiLoCo training in MaxText, detailing the theoretical background, arithmetic intensity, and production recipes. The review feedback highlights critical formatting issues in the LaTeX math blocks that prevent proper rendering, as well as a mismatch in the Vanilla DiLoCo recipe where the referenced shell script does not support the ENABLE_STREAMING_DILOCO environment variable.
Dr-Left
force-pushed
the
chris/dlco-doc
branch
from
August 19, 2026 07:26
1765ccd to
139de10
Compare
Fix LaTeX formatting in DiLoCo docs and support ENABLE_STREAMING_DILOCO in runner script Update Recipe 1 in DiLoCo tutorial to direct train command and keep run_spmd_streaming_diloco.sh hardcoded for streaming
Dr-Left
force-pushed
the
chris/dlco-doc
branch
from
August 19, 2026 07:30
139de10 to
00adb52
Compare
huytransformer
approved these changes
Aug 19, 2026
huytransformer
left a comment
Collaborator
There was a problem hiding this comment.
bi level optimization!!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds comprehensive reference documentation and a production tutorial for DiLoCo (Distributed Low-Communication) and Streaming DiLoCo training in MaxText.
Changes Made
DiLoCo Theory & Mathematics Reference (
docs/reference/core_concepts/diloco.md):DiLoCoTrainState,drjax.programmulti-placement,FragmentedTreeManipulator).docs/reference/core_concepts.md.DiLoCo Pre-training Tutorial (
docs/tutorials/diloco_pretraining.md):v5p-128).v5p-128with0.3–0.9inverse scaling rule).docs/tutorials.md.Homepage & Index Updates:
## 🔥 Latest news 🔥inREADME.md(rendered ondocs/index.md).README.md.Future Improvements
num_communication_overlapping_stepsandcommunication_overlapping_alphasimulate the algorithmic behavior of delayed weight merging without cross-step asynchronous hardware overlap. Future MPMD multi-threading designs will leverage these parameters for true non-blocking hardware compute/communication overlap.Tests
Checklist
Before submitting this PR, please make sure (put X in square brackets):
gemini-reviewlabel.