Unable to use this model while importing

#1
by FiendHunter - opened

It throws an error that model doesn't exist

ValueError Traceback (most recent call last)
in <cell line: 4>()
2 from transformers import AutoTokenizer, AutoModel
3
----> 4 tokenizer = AutoTokenizer.from_pretrained("vikp/surya_rec")
5 model = AutoModel.from_pretrained("vikp/surya_rec")

/usr/local/lib/python3.10/dist-packages/transformers/models/auto/tokenization_auto.py in from_pretrained(cls, pretrained_model_name_or_path, *inputs, **kwargs)
820 tokenizer_class = tokenizer_class_from_name(tokenizer_class_candidate)
821 if tokenizer_class is None:
--> 822 raise ValueError(
823 f"Tokenizer class {tokenizer_class_candidate} does not exist or is not currently imported."
824 )

ValueError: Tokenizer class Byt5LangTokenizer does not exist or is not currently imported.
This is the error it throws

FiendHunter changed discussion status to closed
FiendHunter changed discussion status to open

Sign up or log in to comment