@@ -146,7 +146,7 @@ if [[ "$MODE" == "nightly" ]]; then
146146 # Remove/update this section based on the pinned github repo commit in requirements.txt
147147 sed -i -E \
148148 -e ' s|^mlperf-logging @ https?://github.com/mlcommons/logging/archive/.*\.zip$|mlperf-logging@git+https://github.com/mlperf/logging.git|' \
149- -e ' /^tunix/! s|^([^ ]*) @ https?://github.com/([^/]*\/[^/]*)/archive/.*\.zip$|\1@git+https://github.com/\2.git|' \
149+ -e ' s|^([^ ]*) @ https?://github.com/([^/]*\/[^/]*)/archive/.*\.zip$|\1@git+https://github.com/\2.git|' \
150150 requirements.txt.nightly-temp
151151
152152 echo " --- Installing modified nightly requirements: ---"
@@ -189,14 +189,10 @@ if [[ "$MODE" == "stable" || ! -v MODE ]]; then
189189 python3 -m uv pip install ' jax[tpu]>0.4' -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
190190 fi
191191
192- if [[ -n " $LIBTPU_GCS_PATH " ]]; then
193- # Install custom libtpu
194- echo " Installing libtpu.so from $LIBTPU_GCS_PATH to $libtpu_path "
195- # Install required dependency
196- python3 -m uv pip install -U crcmod
197- # Copy libtpu.so from GCS path
198- gsutil cp " $LIBTPU_GCS_PATH " " $libtpu_path "
199- fi
192+ # TODO: Once tunix has support for GPUs, move it from here to requirements.txt
193+ echo " Installing tunix for stable TPU environment"
194+ python3 -m uv pip install ' google-tunix @ https://github.com/google/tunix/archive/e03f154edd2abfddd6b9babb72a3d0d3c4d81bb2.zip'
195+
200196 if [[ -n " $LIBTPU_GCS_PATH " ]]; then
201197 # Install custom libtpu
202198 echo " Installing libtpu.so from $LIBTPU_GCS_PATH to $libtpu_path "
@@ -256,6 +252,8 @@ elif [[ $MODE == "nightly" ]]; then
256252 fi
257253 echo " Installing nightly tensorboard plugin profile"
258254 python3 -m uv pip install tbp-nightly --upgrade
255+ # Installing tunix
256+ python3 -m uv pip install ' git+https://github.com/google/tunix.git'
259257 fi
260258 echo " Installing nightly tensorboard plugin profile"
261259 python3 -m uv pip install tbp-nightly --upgrade
0 commit comments