You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("imxly/t5-pegasus")
model = AutoModelForSeq2SeqLM.from_pretrained("imxly/t5-pegasus")
Can't load tokenizer for '/workspace/wzt/LLM/model/t5-pegasus-small'. 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 '/workspace/wzt/LLM/model/t5-pegasus-small' is the correct path to a directory containing all relevant files for a T5TokenizerFast tokenizer.
The text was updated successfully, but these errors were encountered:
Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("imxly/t5-pegasus")
model = AutoModelForSeq2SeqLM.from_pretrained("imxly/t5-pegasus")
Can't load tokenizer for '/workspace/wzt/LLM/model/t5-pegasus-small'. 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 '/workspace/wzt/LLM/model/t5-pegasus-small' is the correct path to a directory containing all relevant files for a T5TokenizerFast tokenizer.
The text was updated successfully, but these errors were encountered: