Downloads · 30 days
16
1% of all-time downloads
PavanNeerudu/t5-base-finetuned-rte
t5-base-finetuned-rte is a machine learning model from PavanNeerudu. 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 apache-2.0.
This model is T5 fine-tuned on GLUE RTE dataset. It acheives the following results on the validation set - Accuracy: 0.7690
Downloads · 30 days
16
1% of all-time downloads
All-time downloads
2.3K
Public
Repo size
1.8 GB
Likes
1
Public
Click a slice to open those files.
.bin892 MB · 100%
From the Hugging Face model README
This model is T5 fine-tuned on GLUE RTE dataset. It acheives the following results on the validation set
T5 is an encoder-decoder model pre-trained on a multi-task mixture of unsupervised and supervised tasks and for which each task is converted into a text-to-text format.
Since, T5 is a text-to-text model, the labels of the dataset are converted as follows: For each example, a sentence as been formed as "rte sentence1: " + rte_sent1 + "sentence 2: " + rte_sent2 and fed to the tokenizer to get the input_ids and attention_mask. For each label, target is choosen as "entailment" if label is 0, else label is "not_entailment" and tokenized to get input_ids and attention_mask . During training, these inputs_ids having pad token are replaced with -100 so that loss is not calculated for them. Then these input ids are given as labels, and above attention_mask of labels is given as decoder attention mask.
The following hyperparameters were used during training:
| Epoch | Training Loss | Validation Accuracy |
|---|---|---|
| 1 | 0.1099 | 0.7617 |
| 2 | 0.0573 | 0.7617 |
| 3 | 0.0276 | 0.7690 |