-
Notifications
You must be signed in to change notification settings - Fork 103
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
RuntimeError: CUDA out of memory. #12
Comments
set
The log tells us we need more time rather than one hour to fine-tune it.
Is it correct? |
To train one epoch, it takes one hour and the total time required depends on the number of epochs. The alpaca dataset comprises 52,000 training samples, and in one epoch, the number of batches is approximately 100, calculated by dividing 52,000 by 64*8. Based on the nvidia-smi status you provided, the time taken to run 42 batches is consistent with our expectations. |
In fact, It will be OOM when I set batch size = 64. 😭😭😭 |
I fine-tune llama-7b on 8 V100 32G. However, it occurs
CUDA out of memory
.watch -n 1 nvidia-smi
The text was updated successfully, but these errors were encountered: