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

How should I use multiple GPUs? #15

Open
Chting opened this issue Mar 13, 2023 · 8 comments
Open

How should I use multiple GPUs? #15

Chting opened this issue Mar 13, 2023 · 8 comments

Comments

@Chting
Copy link

Chting commented Mar 13, 2023

I'm testing 65B. One A100 is too slow. I want to use two or four

@randaller
Copy link
Owner

randaller commented Mar 13, 2023

The original Meta's repo works with A100s as well.

@Chting
Copy link
Author

Chting commented Mar 13, 2023

The original Meta's repo works with A100s as well.

It stipulates that 65B must use 8GPU

@felipemeres
Copy link

I'm also trying to figure out how to run with 2 gpus

@wgimperial
Copy link

The original Meta's repo works with A100s as well.

how to run example-chat.py with 8A100?

@Chting
Copy link
Author

Chting commented Mar 14, 2023

I'm also trying to figure out how to run with 2 gpus

If you succeed, please tell me

@bitRAKE
Copy link

bitRAKE commented Mar 15, 2023

Reshard the model for the number of GPUs you have:
https://gist.github.com/benob/4850a0210b01672175942203aa36d300

Resharding the larger models to one file can improve load times in general.

@randaller
Copy link
Owner

@Chting @wgimperial @fmeres now you may try to run HF version on a more than one GPU's.

@Chting
Copy link
Author

Chting commented Mar 20, 2023

@Chting @wgimperial @fmeres now you may try to run HF version on a more than one GPU's.

Thank you very much

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

No branches or pull requests

5 participants