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

overwrite training_step for CustomDPOTrainer to clear cuda cache every train step #5019

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zzc0430
Copy link

@zzc0430 zzc0430 commented Jul 30, 2024

according to the issue: huggingface/trl#1377, call torch.cuda.empty_cache() after each step to clear the cuda cache

What does this PR do?

reduce memory usage when using dpo trainer, according to huggingface/trl#1377

Before submitting

according to the issue for trl: huggingface/trl#1377, call torch.cuda.empty_cache() after each step to clear the cuda cache
@hiyouga hiyouga added the pending This problem is yet to be addressed label Aug 19, 2024
@enzoliao
Copy link

enzoliao commented Sep 9, 2024

Hi all, could you tell me why this PR is in pending?

请问下,为什么这个PR处于 pending状态呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending This problem is yet to be addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants