Skip to content
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

Multi-GPU switch from TorchRun to Accelerate #91

Closed

Conversation

fabianlim
Copy link
Collaborator

@fabianlim fabianlim commented Mar 13, 2024

Description of the change

The current codebase recommends torchrun for multi-gpu training. While torchrun is the de-facto way to launch distributed jobs, if used wrongly, it may be incompatible with huggingface trainers and models. The huggingface recommended approach is to use accelerate (a layer built on top of torchrun) to launch multi-gpu jpbs.

Related issue number

Addresses #87 . Also in part addresses #80.

How to verify the PR

Test the run instructions given in the updated README.md

Was the PR tested

Had @VassilisVassiliadis and @fabianlim tested the scripts.

@Ssukriti
Copy link
Collaborator

reviewed this and added any content from here that was missing in duplicate PR #92 . Have requested Mehant to co-commit so you both get credit. Thank you!

@Ssukriti
Copy link
Collaborator

merged as part of other PR

@Ssukriti Ssukriti closed this Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants