-
Notifications
You must be signed in to change notification settings - Fork 529
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
[Example] PyTorch distributed training with minGPT #4464
base: master
Are you sure you want to change the base?
Conversation
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.
Awesome, thanks @Michaelvll! Left some minor nit comments
|
||
The following command spawn 2 nodes with 2 L4 GPU each. | ||
|
||
`sky launch -c train.yaml` |
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.
Missing cluster name? Also might be nice to put in a code block
`sky launch -c train.yaml` | |
\``` | |
sky launch -c train train.yaml | |
\``` |
|
||
For example, the following command will spawn 4 nodes with 4 L4 GPUs each. | ||
|
||
`sky launch -c train.yaml --num-nodes 2 --gpus L4:2 --cpus 8+` |
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.
change to num nodes 4 and L4:4
`sky launch -c train.yaml --num-nodes 2 --gpus L4:2 --cpus 8+` | |
\``` | |
sky launch -c train.yaml --num-nodes 4 --gpus L4:4 --cpus 8+ | |
\``` |
Co-authored-by: Romil Bhardwaj <[email protected]>
Co-authored-by: Romil Bhardwaj <[email protected]>
Co-authored-by: Romil Bhardwaj <[email protected]>
Co-authored-by: Romil Bhardwaj <[email protected]>
Co-authored-by: Romil Bhardwaj <[email protected]>
Co-authored-by: Romil Bhardwaj <[email protected]>
Co-authored-by: Romil Bhardwaj <[email protected]>
…ot into distributed-training
Thanks @romilbhardwaj for the review! Updated README |
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.
Thanks @Michaelvll!
This PR adds a more modern distributed training example.
TODOs:
Tested (run the relevant ones):
bash format.sh
pytest tests/test_smoke.py
pytest tests/test_smoke.py::test_fill_in_the_name
conda deactivate; bash -i tests/backward_compatibility_tests.sh