Edit model card

Zerpal-rubert-tiny2

How to use

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)
Downloads last month
2
Safetensors
Model size
32.6M params
Tensor type
F32
·
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Collection including udmurtNLP/zerpal-rubert-tiny2