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

Out of Memory (OOM) During Training a LLaMA 7B Reward Model (8 A800 40GB GPUs) #444

Open
qingyiaaaaa opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@qingyiaaaaa
Copy link

Description
I am training a LLaMA 7B reward model using 8 A800 GPUs (each with 40GB of memory). Normally, this hardware configuration allows for full fine-tuning of the llama 7b model.While the setup can barely manage one training iteration, the training process consistently runs out of memory (OOM) during validation.

Environment Details
Model: LLaMA 7B Reward Model
GPUs: 8 × A800 (40GB each)
Framework: NeMo
Parallelism Setup: tensor model parallel size = 4, pipeline model parallel size = 2
Precision: 16
Configuration
Here is my script settings:
Image

Problem Analysis
Training can proceed for one iteration but consistently fails with OOM during the validation phase.

Request for Suggestions
Could you provide recommendations or adjustments to settings that might help address this issue?

@qingyiaaaaa qingyiaaaaa added the bug Something isn't working label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant