-
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|Train] Add Pytorch ResNet finetuning starter example #32936
[Doc|Train] Add Pytorch ResNet finetuning starter example #32936
Conversation
Signed-off-by: Yunxuan Xiao <yunxuanx@Yunxuans-MacBook-Pro.local>
Signed-off-by: Yunxuan Xiao <yunxuanx@Yunxuans-MacBook-Pro.local>
Signed-off-by: Yunxuan Xiao <yunxuanx@Yunxuans-MBP.local.meter>
…ne_starter_example
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
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.
any reason we need to use ray data here?
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
I've replaced ray data with prepare_dataloader(). |
should this be in train examples or air examples? |
I created a bookmark under the "Ray Train - Examples" section in the document. Regarding the .ipynb file, I placed it under Update: |
I think we should put it in train examples for now. |
Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com> Signed-off-by: Yunxuan Xiao <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
1954168
to
d0392b0
Compare
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
d0392b0
to
ef3a5ad
Compare
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
ee8cb67
to
a2a3c4e
Compare
Signed-off-by: Yunxuan Xiao <xiaoyunxuan1998@gmail.com>
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.
I think it's pretty much ready - have some minor suggestions:
One question - should we showcase TorchTrainer(resume_from_checkpoint)
as the way to take in the AIR checkpoint in this example?
doc/source/train/examples/pytorch/pytorch_resnet_finetune.ipynb
Outdated
Show resolved
Hide resolved
doc/source/train/examples/pytorch/pytorch_resnet_finetune.ipynb
Outdated
Show resolved
Hide resolved
doc/source/train/examples/pytorch/pytorch_resnet_finetune.ipynb
Outdated
Show resolved
Hide resolved
doc/source/train/examples/pytorch/pytorch_resnet_finetune.ipynb
Outdated
Show resolved
Hide resolved
doc/source/train/examples/pytorch/pytorch_resnet_finetune.ipynb
Outdated
Show resolved
Hide resolved
doc/source/train/examples/pytorch/pytorch_resnet_finetune.ipynb
Outdated
Show resolved
Hide resolved
doc/source/train/examples/pytorch/pytorch_resnet_finetune.ipynb
Outdated
Show resolved
Hide resolved
Co-authored-by: Justin Yu <justinvyu@anyscale.com> Signed-off-by: Yunxuan Xiao <xiaoyunxuan1998@gmail.com>
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
…ne_starter_example
Signed-off-by: woshiyyya <xiaoyunxuan1998@gmail.com>
…ne_starter_example
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.
clean and concise!
…ne_starter_example
…t#32936) Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com> Co-authored-by: Justin Yu <justinvyu@anyscale.com> Co-authored-by: Yunxuan Xiao <yunxuanx@Yunxuans-MacBook-Pro.local> Co-authored-by: Yunxuan Xiao <yunxuanx@Yunxuans-MBP.local.meter> Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
…t#32936) Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com> Co-authored-by: Justin Yu <justinvyu@anyscale.com> Co-authored-by: Yunxuan Xiao <yunxuanx@Yunxuans-MacBook-Pro.local> Co-authored-by: Yunxuan Xiao <yunxuanx@Yunxuans-MBP.local.meter>
…t#32936) Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com> Co-authored-by: Justin Yu <justinvyu@anyscale.com> Co-authored-by: Yunxuan Xiao <yunxuanx@Yunxuans-MacBook-Pro.local> Co-authored-by: Yunxuan Xiao <yunxuanx@Yunxuans-MBP.local.meter> Signed-off-by: chaowang <chaowang@anyscale.com>
…t#32936) Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com> Co-authored-by: Justin Yu <justinvyu@anyscale.com> Co-authored-by: Yunxuan Xiao <yunxuanx@Yunxuans-MacBook-Pro.local> Co-authored-by: Yunxuan Xiao <yunxuanx@Yunxuans-MBP.local.meter> Signed-off-by: elliottower <elliot@elliottower.com>
…t#32936) Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com> Co-authored-by: Justin Yu <justinvyu@anyscale.com> Co-authored-by: Yunxuan Xiao <yunxuanx@Yunxuans-MacBook-Pro.local> Co-authored-by: Yunxuan Xiao <yunxuanx@Yunxuans-MBP.local.meter> Signed-off-by: Jack He <jackhe2345@gmail.com>
Why are these changes needed?
This example aims to provide an example of how to do finetuning on GPUs with TorchTrainer.
Task: Image Classification
Model: Pretrained Pytorch ResNet-50
Dataset: hymenoptera_data (2-class, ants and bees)
The workflow is:
Trainer.fit()
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.