-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Maximum recursion depth exceeded #37
Comments
Here is the stack trace:
RecursionError: maximum recursion depth exceeded |
You could fix this by commenting out these lines: old_state_dict = model.state_dict
model.state_dict = (
lambda self, *_, **__: get_peft_model_state_dict(self, old_state_dict())
).__get__(model, type(model)) and setting By the way, what version of |
Thank you very much ! I will try later. I installed peft from its source on github(main branch). |
It works !!!! Thank you very much again ! |
I tried to fine tune the 13B model with a 3090 (24GB Ram). The training was started and a progress bar was also shown, however, I got an error saying 'maximum recursion depth exceeded' after 100 steps of training. Has anyone had the similar error? Thanks!
The text was updated successfully, but these errors were encountered: