Downloads · 30 days
7
35% of all-time downloads
YummyShrimp/t5-small-custom
t5-small-custom is a machine learning model from YummyShrimp. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
7
35% of all-time downloads
All-time downloads
20
Public
Parameters
60.5M
243 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors242 MB · 99%
From the Hugging Face model README
This model is Sentiment Analysis model based on T5 model designed by Google Research.
Used the CNN/DailyMail dataset for train, validation. Train : 2871 Validation : 134
batch_size = 4, lr = 2e-5, epochs = 1, weight_decay = 0.01
simply use the tranformers library to load the model and tokenizer.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
input_text = "This is a test sentence" input = tokenizer.encode(input_text, return_tensors="pt") outputs = model(input) print(outputs.logits)
accuracy : 0.84 eval_loss : 0.21156078577041626 BLEU-1 : 38.46
Due to small dataset and small epoch, the model may not be able to generalize well to other datasets.
The model is trained on the CNN/DailyMail dataset which is a public dataset.