does not appear to have a file named config.json

#18
by naylen - opened

when i use ipv6 in my machine, i got this error

from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-base")
tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-base")

inputs = tokenizer("A step by step recipe to make bolognese pasta:", return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
OSError: google/flan-t5-base does not appear to have a file named config.json. Checkout 'https://huggingface.co/google/flan-t5-base/None' for available files.

I don't know what to happen, it works well when i change in flan-t5-small or flan-t5-large

Google org

Very strange, I can't reproduce it at all. Which versions of transformers and hugging face hub are you using?

Very strange, I can't reproduce it at all. Which versions of transformers and hugging face hub are you using?

huggingface-hub           0.16.0.dev0
transformers              4.31.0.dev0

I don't know why it doesn't work.
I don't know if the cause of this is related to my ipv6 network

Sign up or log in to comment