forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Doc][Example] Fine-tune
vicuna-13b-v1.3
with LightningTrainer + De…
…epSpeed (ray-project#37016) Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com> Signed-off-by: Yunxuan Xiao <xiaoyunxuan1998@gmail.com> Signed-off-by: matthewdeng <matthew.j.deng@gmail.com> Co-authored-by: matthewdeng <matthew.j.deng@gmail.com> Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
- Loading branch information
1 parent
b20e982
commit 7a9f3e0
Showing
10 changed files
with
1,515 additions
and
1 deletion.
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
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
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
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
1,424 changes: 1,424 additions & 0 deletions
1,424
doc/source/train/examples/lightning/vicuna_13b_lightning_deepspeed_finetune.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
release/air_examples/vicuna_13b_lightning_deepspeed_finetuning/test_myst_doc.py
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 @@ | ||
../../../doc/test_myst_doc.py |
20 changes: 20 additions & 0 deletions
20
..._examples/vicuna_13b_lightning_deepspeed_finetuning/vicuna_13b_deepspeed_compute_aws.yaml
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,20 @@ | ||
cloud_id: {{env["ANYSCALE_CLOUD_ID"]}} | ||
region: us-west-2 | ||
|
||
head_node_type: | ||
name: head_node | ||
instance_type: g5.16xlarge | ||
|
||
worker_node_types: | ||
- name: worker_node | ||
instance_type: g5.4xlarge | ||
min_workers: 15 | ||
max_workers: 15 | ||
use_spot: false | ||
|
||
aws: | ||
TagSpecifications: | ||
- ResourceType: "instance" | ||
Tags: | ||
- Key: ttl-hours | ||
Value: '24' |
27 changes: 27 additions & 0 deletions
27
release/air_examples/vicuna_13b_lightning_deepspeed_finetuning/vicuna_13b_deepspeed_env.yaml
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,27 @@ | ||
base_image: {{ env["RAY_IMAGE_ML_NIGHTLY_GPU"] | default("anyscale/ray:nightly-py38-cu118") }} | ||
env_vars: {} | ||
debian_packages: | ||
- curl | ||
|
||
python: | ||
pip_packages: | ||
- datasets==2.13.1 | ||
- evaluate==0.4.0 | ||
- scikit-learn==1.3.0 | ||
- boto3==1.28.5 | ||
- myst-parser==0.15.2 | ||
- myst-nb==0.13.1 | ||
- jupytext==1.13.6 | ||
- typing-extensions<4.6.0 | ||
conda_packages: [] | ||
|
||
post_build_cmds: | ||
- pip uninstall -y ray || true && pip3 install -U {{ env["RAY_WHEELS"] | default("ray") }} | ||
- {{ env["RAY_WHEELS_SANITY_CHECK"] | default("echo No Ray wheels sanity check") }} | ||
- 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 | ||
- pip3 install "pytorch_lightning==2.0.3" "transformers==4.30.2" "accelerate==0.20.3" "deepspeed==0.9.4" |
1 change: 1 addition & 0 deletions
1
...s/vicuna_13b_lightning_deepspeed_finetuning/vicuna_13b_lightning_deepspeed_finetune.ipynb
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 @@ | ||
../../../doc/source/train/examples/lightning/vicuna_13b_lightning_deepspeed_finetune.ipynb |
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