Loading adapters error FileNotFoundError
Hi all,I am trying to load a language adapter from adapterhub.ml using their hugging face fork.adapter-transformers. Here is the code below:config = AutoConfig.from_pretrained(
    "bert-base-multilingual-cased",
)
model = BertModelWithHeads.from_pretrained(
   "bert_multilingual_cased",
   config=config
)
lang_adapter_config = AdapterConfig.load("pfeiffer", non_linearity="gelu", reduction_factor=2)
model.load_adapter("en/wiki@ukp", confg=lang_adapter_config, source="ah")When the code is run it creates a cache directory and populates it with the link to the url location adapters weights and the loaders loads the weights from this location.The issues is i get:FileNotFoundError: [Errno 2] No such file or directory: '[~/.cache\\torch\\adapters\\2ba2f6186e1c6e64838b951b4c57f2aa06d0726abd7762b22eb33c7980ad1a8a-1c1294e03c3217211df8215ee7f0d5ced06c19abf57647b48349dd947f101f24-extracted\\adapter_config.json]In the generated directory there is no file ‘adapter_config,json’; the file should have been generated in this directory but it wasn’t.Anyone know how to tackle this?
2023-03-14T08:41:50Z
I have Managed to address this issue, I needed to change the model import location, and move the Jupiter notebook into the root vocode folder.-- root
------- folder
------------ not in here
-- codefile.ipynbI was using the location as bellow:model = BertModelWithHeads.from_pretrained(
   "bert_multilingual_cased",
   config=config
)Needed to use this instead:model = AutoAdapterModel.from_pretrained(
   "bert_multilingual_cased",
   config=config
)