@@ -53,16 +53,16 @@ echo "Using pip executable: $PIP_EXECUTABLE"
5353# package versions.
5454if [[ -x " $( command -v xpu-smi) " ]];
5555then
56- PYTORCH_NIGHTLY_VERSION=dev20241217
56+ PYTORCH_NIGHTLY_VERSION=dev20250110
5757else
5858 PYTORCH_NIGHTLY_VERSION=dev20241218
5959fi
6060
6161# Nightly version for torchvision
62- VISION_NIGHTLY_VERSION=dev20241218
62+ VISION_NIGHTLY_VERSION=dev20250111
6363
6464# Nightly version for torchtune
65- TUNE_NIGHTLY_VERSION=dev20241218
65+ TUNE_NIGHTLY_VERSION=dev20250105
6666
6767# Uninstall triton, as nightly will depend on pytorch-triton, which is one and the same
6868(
9090if [[ -x " $( command -v xpu-smi) " ]];
9191then
9292 REQUIREMENTS_TO_INSTALL=(
93- torch==" 2.6 .0.${PYTORCH_NIGHTLY_VERSION} "
93+ torch==" 2.7 .0.${PYTORCH_NIGHTLY_VERSION} "
9494 torchvision==" 0.22.0.${VISION_NIGHTLY_VERSION} "
95- torchtune==" 0.4.0"
95+ # torchtune=="0.4.0"
9696 )
9797else
9898 REQUIREMENTS_TO_INSTALL=(
122122
123123# For torchao need to install from github since nightly build doesn't have macos build.
124124# TODO: Remove this and install nightly build, once it supports macos
125- (
126- set -x
127- $PIP_EXECUTABLE install git+https://github.com/pytorch/ao.git@2f97b0955953fa1a46594a27f0df2bc48d93e79d
128- )
125+ if [[ -x " $( command -v xpu-smi) " ]];
126+ then
127+ # install torchao nightly for xpu
128+ (
129+ set -x
130+ $PIP_EXECUTABLE install --extra-index-url " ${TORCH_NIGHTLY_URL} " torchao==" 0.8.0.dev20250110"
131+ )
132+ else
133+ (
134+ set -x
135+ $PIP_EXECUTABLE install git+https://github.com/pytorch/ao.git@2f97b0955953fa1a46594a27f0df2bc48d93e79d
136+ )
137+ fi
138+
139+ # install torchtune from source for xpu
140+ if [[ -x " $( command -v xpu-smi) " ]];
141+ then
142+ (
143+ set -x
144+ $PIP_EXECUTABLE install git+https://github.com/pytorch/torchtune
145+ )
146+ fi
129147
130148if [[ -x " $( command -v nvidia-smi) " ]]; then
131149 (
@@ -134,7 +152,6 @@ if [[ -x "$(command -v nvidia-smi)" ]]; then
134152 )
135153fi
136154
137-
138155(
139156 set -x
140157 $PIP_EXECUTABLE install evaluate==" 0.4.3" lm-eval==" 0.4.2" psutil==" 6.0.0"
0 commit comments