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

[Bug] large CUDA memory usage in the evaluation phase #284

Open
ChenMnZ opened this issue Jan 2, 2024 · 1 comment
Open

[Bug] large CUDA memory usage in the evaluation phase #284

ChenMnZ opened this issue Jan 2, 2024 · 1 comment

Comments

@ChenMnZ
Copy link

ChenMnZ commented Jan 2, 2024

I train llama-7b with the following batch size settings:

    --per_device_train_batch_size 4 \
    --per_device_eval_batch_size 4 \
    --gradient_accumulation_steps 4 \

When training, it consumes about 9G GPU memory. However, when evaluation (mmlu evaluation), the memory consumption increase to 27GB. It is there any bug for the evaluation process?

@tianshu-zhu
Copy link

set --eval_accumulation_steps

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

2 participants