-
Notifications
You must be signed in to change notification settings - Fork 326
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot load saved AdapterFusion from directory with model.load_adapter_fusion() #54
Comments
Hi @om304, Thanks for reporting. Your issue might already be fixed with a recent update to the library. Please try to update to the most recent version of the master branch:
|
Many thanks for the quick reply, I updated the library as recommended and repeated the above steps and now got this error message after running
|
This error looks like no adapter was found for one of the fusion tasks you provide, i.e. the model does not include an adapter for either "qqp" or "snli". Did you make sure to load both trained adapter modules using |
That was it, I wasn't loading the individual task adapters with |
Cannot load either |
馃悰 Bug
Information
Model I am using (Bert, XLNet ...): Bert-base
Language I am using the model on (English, Chinese ...): English
Adapter setup I am using (if any): AdapterFusion
The problem arises when using:
The tasks I am working on is:
To reproduce
Steps to reproduce the behavior:
model.load_adapter_fusion("qqp,snli")
I get the following error message:Expected behavior
I would expect to be able to load the trained adapter-fusion from the directory to which it was saved.
Environment info
transformers
version: 2.11.0The text was updated successfully, but these errors were encountered: