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

pytorch + transformers versions to run the continual learning example #103

Open
thangbui opened this issue Jun 21, 2024 · 1 comment
Open
Labels
question Further information is requested

Comments

@thangbui
Copy link

thangbui commented Jun 21, 2024

Thanks for the great library.

There seems to be an incompatibility issue with the latest torch.func and transformers as the continual learning example no longer works. The error I got was RuntimeError: vmap: inplace arithmetic(self, *extra_args) is not possible because there exists a Tensor other in extra_args that has more elements than self.

Have you seen this error and if yes, do you have a workaround, and if no, could you share the versions of pytorch and transformers used for the public example?

@SamDuffield
Copy link
Contributor

SamDuffield commented Jul 2, 2024

Hi!! Yes torch.func can be a bit brittle to updates to transformers which is annoying and out of our hands a bit 😢 😢

I'll try again and see if I can replicate your error to see which specific part of transformers is breaking

However, the continual LoRA experiment has an environment.yml file specifying all the package versions we used - hope that works!!

@SamDuffield SamDuffield added the question Further information is requested label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants