Skip to content

Commit 942ee7b

Browse files
Merge pull request #3585 from AI-Hypercomputer:bvandermoon-uxr-fixes
PiperOrigin-RevId: 896056051
2 parents a4b4b90 + 7b539d8 commit 942ee7b

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

docs/build_maxtext.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ uv venv --python 3.12 --seed ${VENV_NAME?}
6060
source ${VENV_NAME?}/bin/activate
6161

6262
# Install MaxText with the [runner] extra
63-
# This enables Docker image building and workload scheduling via XPK
63+
# This enables Docker image building and workload scheduling via XPK.
64+
# Once installed, you will have access to the `build_maxtext_docker_image`
65+
# and `upload_maxtext_docker_image` commands.
6466
uv pip install maxtext[runner]==0.2.1 --resolution=lowest
6567
```
6668

@@ -80,8 +82,11 @@ export VENV_NAME=<your virtual env name> # e.g., docker_venv
8082
uv venv --python 3.12 --seed ${VENV_NAME?}
8183
source ${VENV_NAME?}/bin/activate
8284

83-
# Install MaxText with the [runner] extra in editable mode
84-
uv pip install .[runner] --resolution=lowest
85+
# Install MaxText with the [runner] extra in editable mode.
86+
# This enables Docker image building and workload scheduling via XPK.
87+
# Once installed, you will have access to the `build_maxtext_docker_image`
88+
# and `upload_maxtext_docker_image` commands.
89+
uv pip install -e .[runner] --resolution=lowest
8590
```
8691

8792
> **Note:** The `maxtext[runner]` extra includes all necessary dependencies for building MaxText Docker images and running workloads through XPK. It automatically installs XPK, so you do not need to install it separately to manage your clusters and workloads.

docs/install_maxtext.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ install_tpu_pre_train_extra_deps
4545

4646
# Option 2: Installing maxtext[cuda12]
4747
uv pip install maxtext[cuda12]==0.2.1 --resolution=lowest
48-
install_cuda12_pre_train_extra_dep
48+
install_cuda12_pre_train_extra_deps
4949

5050
# Option 3: Installing maxtext[tpu-post-train]
5151
uv pip install maxtext[tpu-post-train]==0.2.1 --resolution=lowest
@@ -55,6 +55,8 @@ install_tpu_post_train_extra_deps
5555
uv pip install maxtext[runner]==0.2.1 --resolution=lowest
5656
```
5757

58+
> **Note:** The `maxtext[runner]` extra is used for building MaxText Docker images and scheduling workloads through XPK. Once installed, you will have access to the `build_maxtext_docker_image`, `upload_maxtext_docker_image`, and `xpk` commands. For more details on building and uploading Docker images, see the [Build MaxText Docker Image](https://maxtext.readthedocs.io/en/latest/build_maxtext.html) guide.
59+
5860
> **Note:** The `install_tpu_pre_train_extra_deps`, `install_cuda12_pre_train_extra_deps`, and
5961
> `install_tpu_post_train_extra_deps` commands are temporarily required to install dependencies directly from GitHub
6062
> that are not yet available on PyPI. As shown above, choose the one that corresponds to your use case.

0 commit comments

Comments
 (0)