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

add distributed examples #2672

Merged
merged 13 commits into from
Apr 25, 2024
Merged

Conversation

SunMarc
Copy link
Member

@SunMarc SunMarc commented Apr 15, 2024

What does this PR do ?

This PR adds a more complete example on how to perform distributed inference in the case we load the entire model on each gpu. I've also added these scripts in our test suite.

@SunMarc SunMarc requested a review from muellerzr April 15, 2024 15:07
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Collaborator

@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this! A great start! Left some suggestions, let's make sure to document the examples as much as possible like we do the other examples/! :)

examples/inference/distributed/phi2.py Show resolved Hide resolved
examples/inference/distributed/phi2.py Outdated Show resolved Hide resolved
examples/inference/distributed/phi2.py Outdated Show resolved Hide resolved
examples/inference/distributed/phi2.py Outdated Show resolved Hide resolved
examples/inference/distributed/phi2.py Outdated Show resolved Hide resolved
examples/inference/distributed/phi2.py Outdated Show resolved Hide resolved
examples/inference/distributed/phi2.py Show resolved Hide resolved
examples/inference/distributed/phi2.py Show resolved Hide resolved
examples/inference/distributed/phi2.py Outdated Show resolved Hide resolved
examples/inference/distributed/stable_diffusion.py Outdated Show resolved Hide resolved
@SunMarc SunMarc requested a review from muellerzr April 18, 2024 14:33
@SunMarc
Copy link
Member Author

SunMarc commented Apr 25, 2024

Merging as discussed with @muellerzr

@SunMarc SunMarc merged commit 83317b3 into huggingface:main Apr 25, 2024
23 checks passed
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.

3 participants