-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Doc][Example] Fine-tune vicuna-13b-v1.3
with LightningTrainer + DeepSpeed
#37016
[Doc][Example] Fine-tune vicuna-13b-v1.3
with LightningTrainer + DeepSpeed
#37016
Conversation
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
…eed_lightning_example
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
…eed_lightning_example
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really great! Mostly minor grammar nits.
doc/source/ray-air/examples/vicuna_13b_lightning_deepspeed_finetune.ipynb
Outdated
Show resolved
Hide resolved
doc/source/ray-air/examples/vicuna_13b_lightning_deepspeed_finetune.ipynb
Outdated
Show resolved
Hide resolved
doc/source/ray-air/examples/vicuna_13b_lightning_deepspeed_finetune.ipynb
Outdated
Show resolved
Hide resolved
doc/source/ray-air/examples/vicuna_13b_lightning_deepspeed_finetune.ipynb
Outdated
Show resolved
Hide resolved
doc/source/ray-air/examples/vicuna_13b_lightning_deepspeed_finetune.ipynb
Outdated
Show resolved
Hide resolved
@@ -0,0 +1 @@ | |||
../../../doc/source/ray-air/examples/vicuna_13b_lightning_deepspeed_finetune.ipynb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why this is red?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a sym link file. I think GH renders this in a different color.
release/air_examples/vicuna_13b_lightning_deepspeed_finetuning/vicuna_13b_deepspeed_env.yaml
Outdated
Show resolved
Hide resolved
release/air_examples/vicuna_13b_lightning_deepspeed_finetuning/vicuna_13b_deepspeed_env.yaml
Outdated
Show resolved
Hide resolved
doc/source/ray-air/examples/vicuna_13b_lightning_deepspeed_finetune.ipynb
Outdated
Show resolved
Hide resolved
Co-authored-by: matthewdeng <matthew.j.deng@gmail.com> Signed-off-by: Yunxuan Xiao <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
…eed_lightning_example
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
@@ -141,6 +141,8 @@ parts: | |||
title: "Torch Data Prefetching Benchmark" | |||
- file: train/examples/pytorch/pytorch_resnet_finetune | |||
title: "PyTorch Finetuning ResNet Example" | |||
- file: train/examples/lightning/vicuna_13b_lightning_deepspeed_finetune |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this to the Example Gallery as well?
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: matthewdeng <matthew.j.deng@gmail.com>
…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: NripeshN <nn2012@hw.ac.uk>
…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>
…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: Victor <vctr.y.m@example.com>
Why are these changes needed?
This PR addes a new end-to-end LLM fine-tuning example for LightningTrainer DeepSpeed Integration. We fine-tuned a
vicuna-13b-v1.3
model on a code generation dataset with LightningTrainer on 16 A10G GPUs. The major contents includes:Rendered Doc: https://anyscale-ray--37016.com.readthedocs.build/en/37016/ray-air/examples/vicuna_13b_lightning_deepspeed_finetune.html
Finished release test: https://buildkite.com/ray-project/release-tests-pr/builds/46242#01898512-1c77-4bcf-b7c4-c2437ae7e1bc
Related issue number
Resources:
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.