Downloads · 30 days
7
9% of all-time downloads
Sugandha-Chauhan/T5-Medical-Summarizer
T5-Medical-Summarizer is a machine learning model from Sugandha-Chauhan. 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.
This is a fine-tuned version of t5-small for medical text generation tasks.
Downloads · 30 days
7
9% of all-time downloads
All-time downloads
80
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
This is a fine-tuned version of t5-small for medical text generation tasks.
Base Model: t5-small (60M parameters)
Fine-tuning Task: Text-to-text generation on medical domain data
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
# Load model and tokenizer
model_name = "USERNAME/t5-small-genmedx"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
# Prepare input
input_text = "Your input text here"
inputs = tokenizer(input_text, return_tensors="pt", max_length=256, truncation=True)
# Generate output
outputs = model.generate(
inputs.input_ids,
max_length=160,
num_beams=4,
early_stopping=True
)
# Decode output
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_text)
This model is intended for:
This model is provided as-is for research and educational purposes.