Downloads · 30 days
0
sjpark960520/t5-small-custom
t5-small-custom is a machine learning model from sjpark960520. 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
0
Access
Public
Updated Sep 19, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 56%
From the Hugging Face model README
This model is a fine-tuned version of t5_small for summarization tasks.
The model was trained on the cnn-dailymail.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("t5-small")
model = AutoModelForSeq2SeqLM.from_pretrained("t5-small")
input_text = "The movie was fantastic with a gripping storyline!"
inputs = tokenizer.encode(input_text, return_tensors="pt")
outputs = model(inputs)
print(outputs.logits)
Epoch 1 Training Loss: 0.257800 Validation Loss: 0.202847 Rouge1: 29.958418 Rouge2: 12.682260 Rougel: 22.047841 Bleu1: 8.886142 Bleu2: 0.237862 Bleu4: 0.000000
The model may generate biased or inappropriate content due to the nature of the training data. It is recommended to use the model with caution and apply necessary filters.