-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Reward modelling example throws RuntimeError: Expected to mark a variable ready only once.
when gradient_checkpointing=True
#831
Comments
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. |
It is now fixed on transformers + peft + trl main, you just need to pass |
Hi, where do we pass this argument? I am facing this issue when using SFTTrainer. |
Hi @wei-ann-Github |
what's the transformers version? when transformers == 4.32.0, i encoutered dataclasses.FrozenInstanceError: cannot assign to field gradient_checkpointing_kwargs |
Running the
reward_model.py
example on multiple GPUs with gradient checkpointing is throwing the following error:To reproduce run:
The text was updated successfully, but these errors were encountered: