Downloads · 30 days
5
11% of all-time downloads
simonguest/echobot-t5-small-base
echobot-t5-small-base is a machine learning model from simonguest. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A T5-small model fine-tuned to echo/copy its input. This model serves as a baseline for educational fine-tuning exercises.
Downloads · 30 days
5
11% of all-time downloads
All-time downloads
46
Public
Parameters
60.5M
242 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors242 MB · 99%
From the Hugging Face model README
A T5-small model fine-tuned to echo/copy its input. This model serves as a baseline for educational fine-tuning exercises.
This model was trained to perform a simple copy task: given any input text, it outputs exactly the same text.
Intended Use: This is a base model for educational purposes, designed to be fine-tuned by students on small (~50 example) datasets to learn new behaviors like:
Trained on ~7,000 diverse examples including:
from transformers import T5ForConditionalGeneration, T5Tokenizer
model = T5ForConditionalGeneration.from_pretrained("simonguest/echobot-t5-small-base")
tokenizer = T5Tokenizer.from_pretrained("simonguest/echobot-t5-small-base")
input_text = "Hello, world!"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# Output: "Hello, world!"
Students can fine-tune this model with small datasets. Example for emoji responses:
# Create 50 training examples like:
# {"input": "Happy", "target": ":-)"}
# {"input": "Sad", "target": ":-("}
# ... then fine-tune using standard T5 fine-tuning procedures
Apache 2.0