Skip to content

Commit 9dbb12c

Browse files
Merge pull request AI-Hypercomputer#2908 from AI-Hypercomputer:custom_wheels_mode
PiperOrigin-RevId: 852865112
2 parents 72e779c + 21163f6 commit 9dbb12c

3 files changed

Lines changed: 4 additions & 17 deletions

File tree

RESTRUCTURE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ comments, or questions by creating a new
2727
├── README.md
2828
├── dependencies/
2929
│ ├── dockerfiles/
30-
│ │ ├── maxtext_custom_wheels.Dockerfile
3130
│ │ ├── maxtext_tpu_dependencies.Dockerfile
3231
│ │ ├── maxtext_gpu_dependencies.Dockerfile
3332
│ │ └── maxtext_runner.Dockerfile

dependencies/dockerfiles/maxtext_custom_wheels.Dockerfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

dependencies/scripts/docker_build_dependency_image.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ if [[ -z ${JAX_VERSION+x} ]] ; then
9696
fi
9797
if [[ -z ${MODE} ]]; then
9898
export MODE=stable
99-
# TODO: Remove 'custom_wheels' mode support when tpu-recipes migration is complete.
100-
elif [[ ${MODE} == "custom_wheels" ]]; then
101-
export WORKFLOW=custom-wheels
102-
export MODE=nightly
10399
fi
104100
if [[ -z ${DEVICE} ]]; then
105101
export DEVICE=tpu
106102
fi
103+
if [[ -z ${WORKFLOW} ]]; then
104+
export WORKFLOW=pre-training
105+
fi
107106

108107
# Create docker build arguments array
109108
docker_build_args=(
110109
"DEVICE=${DEVICE}"
110+
"WORKFLOW=${WORKFLOW}"
111111
"MODE=${MODE}"
112112
"JAX_VERSION=${JAX_VERSION}"
113113
)
@@ -172,12 +172,6 @@ build_tpu_image() {
172172
if [[ ${WORKFLOW} == "post-training" || ${WORKFLOW} == "post-training-experimental" ]]; then
173173
build_post_training_image
174174
fi
175-
176-
# TODO: Remove 'custom_wheels' mode support when tpu-recipes migration is complete.
177-
if [[ ${WORKFLOW} == "custom-wheels" ]]; then
178-
echo "Building custom wheels dependencies."
179-
run_docker_build "$MAXTEXT_REPO_ROOT/dependencies/dockerfiles/maxtext_custom_wheels.Dockerfile" "BASEIMAGE=${LOCAL_IMAGE_NAME}"
180-
fi
181175
}
182176

183177
if [[ ${DEVICE} == "gpu" ]]; then

0 commit comments

Comments
 (0)