Downloads · 30 days
7
2% of all-time downloads
knguyennguyen/VietmedSumT5
VietmedSumT5 is a machine learning model from knguyennguyen. 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 summarizes medical dialogues in Vietnamese. It can work in tandem with an ASR system to provide real-time dialogue summary.
Downloads · 30 days
7
2% of all-time downloads
All-time downloads
371
Public
Parameters
226M
905 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors904 MB · 100%
From the Hugging Face model README
This model summarizes medical dialogues in Vietnamese. It can work in tandem with an ASR system to provide real-time dialogue summary.
Install the pre-requisite packages in Python.
pip install transformers
Use the code below to get started with the model.
from transformers import pipeline
# Initialize the pipeline with the ViT5 model, specify the device to use CUDA for GPU acceleration
pipe = pipeline("text2text-generation", model="monishsystem/medisum_vit5", device='cuda')
# Example text in Vietnamese describing a traditional medicine product
example = "Loại thuốc này chứa các thành phần đông y đặc biệt tốt cho sức khoẻ, giúp tăng cường sinh lý và bổ thận tráng dương, đặc biệt tốt cho người cao tuổi và người có bệnh lý nền"
# Generate a summary for the input text with a maximum length of 50 tokens
summary = pipe(example, max_new_tokens=50)
# Print the generated summary
print(summary)