Add MaxText and Raiden optional dependencies to Dockerfile - #2013
Open
SurbhiJainUSC wants to merge 1 commit into
Open
Add MaxText and Raiden optional dependencies to Dockerfile#2013SurbhiJainUSC wants to merge 1 commit into
SurbhiJainUSC wants to merge 1 commit into
Conversation
SurbhiJainUSC
requested review from
abheesht17,
hgao327,
jiangyangmu,
lc5211,
s-noghabi,
sizhit2,
tianshub and
wang2yn84
as code owners
August 27, 2026 20:29
SurbhiJainUSC
force-pushed
the
chore/maxtext-raiden-deps
branch
from
August 27, 2026 20:50
20d293b to
9111f12
Compare
SurbhiJainUSC
force-pushed
the
chore/maxtext-raiden-deps
branch
from
August 27, 2026 20:51
9111f12 to
9d124fd
Compare
jiangyangmu
reviewed
Aug 27, 2026
Collaborator
There was a problem hiding this comment.
This will change user workflow, can you revert it ?
Collaborator
Author
There was a problem hiding this comment.
The reason for this change is that hf.login() opens an interactive shell whenever HF_TOKEN is unset. In non-interactive environments such as GKE, this causes the process to hang waiting for user input or fail.
jiangyangmu
reviewed
Aug 27, 2026
SurbhiJainUSC
force-pushed
the
chore/maxtext-raiden-deps
branch
from
August 27, 2026 23:08
9d124fd to
e07c476
Compare
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.
Summary
This PR adds modular build support for MaxText and Raiden dependencies in Dockerfile via conditional build arguments (INSTALL_MAXTEXT and INSTALL_RAIDEN), allowing reproducible container builds for distributed RL workloads without bloating or breaking the standard base image.
Key Changes
INSTALL_MAXTEXT=falseto conditionally install MaxText/Flax training dependencies from requirements/maxtext_requirements.txt.ARG INSTALL_RAIDEN=falseto conditionally install Raiden weight synchronization wheels (/app/raiden_wheels/*.whl) ortpu-raiden-jaxfrom Google Artifact Registry.Checklist