Skip to content

Commit

Permalink
[Test] Resolve version compatibility issues in tests/test_smoke.py (#…
Browse files Browse the repository at this point in the history
…3903)

Resolve version issues in test_cancel_pytorch and test_tpu_vm.
  • Loading branch information
Conless committed Sep 7, 2024
1 parent 363f27b commit 272226b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/resnet_distributed_torch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ setup: |
git clone https://github.com/michaelzhiluo/pytorch-distributed-resnet
cd pytorch-distributed-resnet
# SkyPilot's default image on AWS/GCP has CUDA 11.6 (Azure 11.5).
pip3 install -r requirements.txt torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
pip3 install -r requirements.txt numpy==1.26.4 torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
mkdir -p data && mkdir -p saved_models && cd data && \
wget -c --quiet https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz
tar -xvzf cifar-10-python.tar.gz
Expand Down
7 changes: 4 additions & 3 deletions examples/tpu/tpuvm_mnist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ setup: |
conda create -n flax python=3.10 -y
conda activate flax
# Make sure to install TPU related packages in a conda env to avoid package conflicts.
pip install "jax[tpu]==0.4.26" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
pip install clu
pip install \
-f https://storage.googleapis.com/jax-releases/libtpu_releases.html "jax[tpu]==0.4.25" \
clu \
tensorflow tensorflow-datasets
pip install -e flax
pip install tensorflow tensorflow-datasets
fi
Expand Down

0 comments on commit 272226b

Please sign in to comment.