I copied the same code in my space, but why do I get this error? Thanks

#1
by ouabout - opened

Space failed to start. Exit code: 1. Reason: Traceback (most recent call last): File "app.py", line 6, in tokenizer = T5Tokenizer.from_pretrained("ClueAI/ChatYuan-large-v2") File "/home/user/.local/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 1788, in from_pretrained raise EnvironmentError( OSError: Can't load tokenizer for 'ClueAI/ChatYuan-large-v2'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'ClueAI/ChatYuan-large-v2' is the correct path to a directory containing all relevant files for a T5Tokenizer tokenizer.

I duplicated your space, now I am getting this error, what does it mean?
Traceback (most recent call last):
q2sgq 2023-03-30T13:05:01.138Z File "app.py", line 7, in
q2sgq 2023-03-30T13:05:01.138Z model = T5ForConditionalGeneration.from_pretrained("ClueAI/ChatYuan-large-v2")
q2sgq 2023-03-30T13:05:01.138Z File "/home/user/.local/lib/python3.8/site-packages/transformers/modeling_utils.py", line 2380, in from_pretrained
q2sgq 2023-03-30T13:05:01.139Z raise EnvironmentError(
q2sgq 2023-03-30T13:05:01.139Z OSError: ClueAI/ChatYuan-large-v2 does not appear to have a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.

检查一下有没有clueai这个文件夹,有就删掉,实在不行复制上游的space

Sign up or log in to comment