-
Notifications
You must be signed in to change notification settings - Fork 121
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
Problem training with FSDP #18
Comments
I have encountered the same problem, however, it seem more like a problem with FSDP a peft wrapped model. When i run run_fsdp work fine for me, but when i try to add a lora config, which lead to the same error. @pacman100 could you please look at this problem? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I am trying to train a model with FSDP, I am getting following error.
*** TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union
It is happening on this specific line
trainer.model = trainer.model_wrapped = FSDP(trainer.model, **kwargs)
and after a bit of debugging it feels like it has something to do with auto_wrap_policy. I am not really sure how to solve this. Do you have any suggestions. It was working fine until few days ago.
The text was updated successfully, but these errors were encountered: