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

ERROR: Unknown arg use_final_layernorm #53

Open
yaofeng opened this issue May 24, 2023 · 2 comments
Open

ERROR: Unknown arg use_final_layernorm #53

yaofeng opened this issue May 24, 2023 · 2 comments

Comments

@yaofeng
Copy link

yaofeng commented May 24, 2023

This is my code:

from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("THUDM/visualglm-6b", trust_remote_code=True)
model = AutoModel.from_pretrained("THUDM/visualglm-6b", trust_remote_code=True).half().cuda()

It runs failed, and returned "ValueError: Unknown arg use_final_layernorm."

What's the problem?

@Sleepychord
Copy link
Contributor

could you check the version of SwissArmyTransformer? upgrade it to >=0.3.6

@wyw0907
Copy link

wyw0907 commented Jun 7, 2023

I am using virtualglm on the ARM platform. When I tried to install SwissArmyTransformer version 0.3.6 or later using 'pip install SwissArmyTransformer>=0.3.6', it actually installed version 0.3.2. I resolved the issue by using the command 'pip install SwissArmyTransformer==0.3.6' to install the precise version of the package.

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

3 participants