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

AutoModelWithHeads module not found #1

Open
PaulaDelgado-Santos opened this issue Jan 17, 2024 · 1 comment
Open

AutoModelWithHeads module not found #1

PaulaDelgado-Santos opened this issue Jan 17, 2024 · 1 comment

Comments

@PaulaDelgado-Santos
Copy link

PaulaDelgado-Santos commented Jan 17, 2024

Good morning,
I'm trying to run the code but the AutoModelWithHeads module is not found (and I didn't find it in the Transformers folder). Although I did find AutoModelWithLMHead inside that folder, can it be replaced? I guess this code was made with the implementation of the Hugging Face adapter,, but since Transformers is re-install with the folder in this project, that module is not found.

@caidongqi
Copy link
Collaborator

Did you install the right transformer version? The concrete transformer we used is "adapter-transformers 2.3.0", that is not an official transformer implemented by huggingface. It is implemented by adapterhub.

Please run pip install adapter-transformers 2.3.0 to re-install it.

Btw, we recommend you use the docker image to avoid any environment issues.

I hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants