Instructions to use pstroe/roberta-base-latin-cased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pstroe/roberta-base-latin-cased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="pstroe/roberta-base-latin-cased")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("pstroe/roberta-base-latin-cased") model = AutoModelForMaskedLM.from_pretrained("pstroe/roberta-base-latin-cased") - Notebooks
- Google Colab
- Kaggle
Error when saving tokenizer
#3
by adibm - opened
When I try to save the tokenizer using save_pretrained() method, I get the following error
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type ByteLevel is not JSON serializable
Can you suggest any solution to this problem?