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 to use this for multiple GPU fine-tuning? #2

Open
Dorys221 opened this issue Nov 22, 2023 · 0 comments
Open

How to use this for multiple GPU fine-tuning? #2

Dorys221 opened this issue Nov 22, 2023 · 0 comments

Comments

@Dorys221
Copy link

Hi, thank you for your great work. I was able to fine-tune the 7b version on a single A100 with some great results. However, I'd like to extend the context length to 4096, which requires more GPUs. However, when I run your script, it utilizes only GPU 0 and the rest GPU 1 and 2 are not used at all. What happens then is that I get Cuda OutOfMemory error because of course it uses only one GPU when it should use all 3. I tried both DistributedDataParallel and DataParallel with no success.

Any idea how to distribute this across all 3 GPUs effectively? Thank you again! :)

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

1 participant