Instructions to use vikp/surya_rec with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vikp/surya_rec with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("vikp/surya_rec") model = AutoModel.from_pretrained("vikp/surya_rec") - Notebooks
- Google Colab
- Kaggle
Unable to use this model while importing
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
how to solve this issue "ValueError: Tokenizer class Byt5LangTokenizer does not exist or is not currently imported"?