Downloads · 30 days
16
0% of all-time downloads
GeorgiaTech/t5-small-finetuned
t5-small-finetuned is a machine learning model from GeorgiaTech. 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.
This model is a fine-tuned version of the t5-small model from Hugging Face, specifically tailored for the clinical summarization of FHIR Document Reference Clinical Notes.
Downloads · 30 days
16
0% of all-time downloads
All-time downloads
5.5K
Public
Repo size
727 MB
Likes
1
Public
Click a slice to open those files.
.bin242 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of the t5-small model from Hugging Face, specifically tailored for the clinical summarization of FHIR Document Reference Clinical Notes.
The model was fine-tuned using a synthetic dataset created with tools like Synthea. This dataset was used to simulate real-world clinical notes, ensuring the model understands the nuances and intricacies of medical terminology and context.
Only the last two layers of the t5-small model were fine-tuned to retain most of the pre-trained knowledge while adapting it for better clinical summarization.
Using the model is straightforward with the Hugging Face Transformers library:
from transformers import T5ForConditionalGeneration, T5Tokenizer
model = T5ForConditionalGeneration.from_pretrained("GeorgiaTech/t5-small-finetuned")
tokenizer = T5Tokenizer.from_pretrained("GeorgiaTech/t5-small-finetuned")
def summarize(text):
input_text = "summarize: " + text
input_ids = tokenizer.encode(input_text, return_tensors="pt")
summary_ids = model.generate(input_ids)
summary = tokenizer.decode(summary_ids[0])
return summary
# Example
text = "Your clinical note here..."
print(summarize(text))
# Acknowledgements
A big thanks to the creators of the original t5-small model and the Hugging Face community. Also, gratitude to tools like Synthea that enabled the creation of high-quality synthetic datasets for fine-tuning purposes.
# License
This model is licensed under the Apache-2.0 License, the same as the original T5 model.