Downloads · 30 days
7
21% of all-time downloads
udmurtNLP/zerpal-rubert-tiny2
zerpal-rubert-tiny2 is a fill-mask model from udmurtNLP. Use it when you need the model to fill a missing word. It is set up for transformers.
You can use this model directly with a pipeline for masked language modeling:
Downloads · 30 days
7
21% of all-time downloads
All-time downloads
34
Public
Parameters
32.6M
131 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors131 MB · 100%
From the Hugging Face model README
You can use this model directly with a pipeline for masked language modeling:
from transformers import pipeline
unmasker = pipeline('fill-mask', model='udmurtNLP/zerpal-rubert-tiny2', tokenizer='udmurtNLP/zerpal-rubert-tiny2-tokenizer')
unmasker("Ӟечбур! Мынам нимы [MASK].")
Here is how to use this model to get the features of a given text in PyTorch:
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained('udmurtNLP/zerpal-rubert-tiny2-tokenizer')
model = AutoModelForMaskedLM.from_pretrained("udmurtNLP/zerpal-rubert-tiny2")
text = "Яратон, яратон, мар меда сыӵе тон?"
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)