Instructions to use nakamura196/roberta-small-hi-char-mlm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nakamura196/roberta-small-hi-char-mlm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="nakamura196/roberta-small-hi-char-mlm")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("nakamura196/roberta-small-hi-char-mlm") model = AutoModelForMaskedLM.from_pretrained("nakamura196/roberta-small-hi-char-mlm") - Notebooks
- Google Colab
- Kaggle
roberta-small-hi-char-mlm
Model Description
This is a RoBERTa model pre-trained on HI texts with character tokenizer.
This uses is_decoder=False option.
How to Use
from transformers import AutoTokenizer,AutoModelForMaskedLM
tokenizer=AutoTokenizer.from_pretrained("nakamura196/roberta-small-hi-char-mlm")
model=AutoModelForMaskedLM.from_pretrained("nakamura196/roberta-small-hi-char-mlm")
- Downloads last month
- 3