@@ -139,7 +139,27 @@ run_name_folder_path=$(pwd)
139139
140140# Install dependencies from requirements.txt
141141cd " $run_name_folder_path " && python3 -m uv pip install --upgrade pip
142- python3 -m uv pip install --no-cache-dir -U -r requirements.txt
142+ if [[ " $MODE " == " nightly" ]]; then
143+ echo " Nightly mode: Installing requirements.txt, stripping commit pins from git+ repos."
144+ cp requirements.txt requirements.txt.nightly-temp
145+ # Create a temp file, strip commit pins from git+ repos in requirements.txt
146+ # Remove/update this section based on the pinned github repo commit in requirements.txt
147+ sed -i -E \
148+ -e ' s|^mlperf-logging @ https?://github.com/mlcommons/logging/archive/.*\.zip$|mlperf-logging@git+https://github.com/mlperf/logging.git|' \
149+ -e ' s|^([^ ]*) @ https?://github.com/([^/]*\/[^/]*)/archive/.*\.zip$|\1@git+https://github.com/\2.git|' \
150+ requirements.txt.nightly-temp
151+
152+ echo " --- Installing modified nightly requirements: ---"
153+ cat requirements.txt.nightly-temp
154+ echo " -------------------------------------------------"
155+
156+ python3 -m uv pip install --no-cache-dir -U -r requirements.txt.nightly-temp
157+ rm requirements.txt.nightly-temp
158+ else
159+ # stable or stable_stack mode: Install with pinned commits
160+ echo " Installing requirements.txt with pinned commits."
161+ python3 -m uv pip install --no-cache-dir -U -r requirements.txt
162+ fi
143163
144164# Install maxtext package
145165if [ -f ' pyproject.toml' ]; then
0 commit comments