-
Notifications
You must be signed in to change notification settings - Fork 10
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
ValueError: Unrecognized model identifier in allenai/longformer-base-4096. Should contains one of 'bert', 'openai-gpt', 'gpt2', 'transfo-xl', 'xlnet', 'xlm', 'roberta', 'ctrl' #3
Comments
Have you installed the transformers package? |
Thank you for your help. Yes, I updated my transformers yesterday, and the problem solved.A new problem comes. I can't download the model. When I run the code, the error comes:
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like allenai/longformer-base-4096 is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
Maybe I need Network ramming?
…------------------ 原始邮件 ------------------
发件人: "Zekun ***@***.***>;
发送时间: 2023年10月12日(星期四) 凌晨4:58
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [Leezekun/ViTST] ValueError: Unrecognized model identifier in allenai/longformer-base-4096. Should contains one of 'bert', 'openai-gpt', 'gpt2', 'transfo-xl', 'xlnet', 'xlm', 'roberta', 'ctrl' (Issue #3)
Have you installed the transformers package?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
The tokenizer is just for analyzing the length of static features. It is not necessary. You can remove the code related to the tokenizer if you have trouble loading it. |
OK I'll try. Thank you again my hero!!!!!!!!!!!
…------------------ 原始邮件 ------------------
发件人: "Zekun ***@***.***>;
发送时间: 2023年10月12日(星期四) 上午8:40
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [Leezekun/ViTST] ValueError: Unrecognized model identifier in allenai/longformer-base-4096. Should contains one of 'bert', 'openai-gpt', 'gpt2', 'transfo-xl', 'xlnet', 'xlm', 'roberta', 'ctrl' (Issue #3)
The tokenizer is just for analyzing the length of static features. It is not necessary. You can remove the code related to the tokenizer if you have trouble loading it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I'm soory to bother you again. What need I do on the datasets? put it in Classification folder? Create a folder |
When I follow the steps of 'ReadMe'. When I run ConstructImage.py. The error comes.
it comes from row 209:
tokenizer = AutoTokenizer.from_pretrained("allenai/longformer-base-4096")
how to solve this?
Thank you.
The text was updated successfully, but these errors were encountered: