Downloads · 30 days
14
1% of all-time downloads
ApoTro/slovak-t5-small
slovak-t5-small is a machine learning model from ApoTro. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This model was trained on slightly adapted code from runt5mlmflax.py. If you want to know about training details or evaluation results, see SlovakT5report.pdf. For evaluation, you can also run SlovakT5eval.ipynb.
Downloads · 30 days
14
1% of all-time downloads
All-time downloads
2.1K
Public
Repo size
726 MB
Likes
0
Public
Click a slice to open those files.
.bin242 MB · 50%
From the Hugging Face model README
This model was trained on slightly adapted code from run_t5_mlm_flax.py. If you want to know about training details or evaluation results, see SlovakT5_report.pdf. For evaluation, you can also run SlovakT5_eval.ipynb.
SlovakT5-small can be fine-tuned for a lot of different downstream tasks. For example, NER:
from transformers import AutoTokenizer, T5ForConditionalGeneration
tokenizer = AutoTokenizer.from_pretrained("ApoTro/slovak-t5-small")
model = T5ForConditionalGeneration.from_pretrained("ApoTro/slovak-t5-small")
input_ids = tokenizer("ner veta: Do druhého kola postúpili Robert Fico a Andrej Kiska s rozdielom 4,0%.", return_tensors="pt").input_ids
labels = tokenizer("per: Robert Fico | per: Andrej Kiska", return_tensors="pt").input_ids
# the forward function automatically creates the correct decoder_input_ids
loss = model(input_ids=input_ids, labels=labels).loss
loss.item()