forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix air_example_vicuna_13b_lightning_deepspeed_finetuning tests (ray-…
…project#37923) Signed-off-by: can <can@anyscale.com>
- Loading branch information
1 parent
ba2e406
commit 787de4c
Showing
4 changed files
with
370 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# This script is used to build an extra layer on top of the base anyscale/ray image | ||
# to run the air_example_vicuna_13b_lightning_deepspeed_finetuning test. | ||
|
||
set -exo pipefail | ||
|
||
echo "sudo lsblk -f" >> ~/.bashrc | ||
echo "yes N | sudo mkfs -t ext4 /dev/nvme1n1 || true" >> ~/.bashrc | ||
echo "mkdir -p /mnt/local_storage" >> ~/.bashrc | ||
echo "sudo chmod 0777 /mnt/local_storage" >> ~/.bashrc | ||
echo "sudo mount /dev/nvme1n1 /mnt/local_storage || true" >> ~/.bashrc | ||
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.