DaMedSum
Collection
Danish Medical Text Summarisation models. All trained on the LUMI HPC. GitHub repository can be found at: https://github.com/emilschleder/DaMedSum โข 4 items โข Updated
Run RyeAI/DaMedSum-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/RyeAI/DaMedSum-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/RyeAI/DaMedSum-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use RyeAI/DaMedSum-base with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("RyeAI/DaMedSum-base")
model = AutoModelForSeq2SeqLM.from_pretrained("RyeAI/DaMedSum-base", device_map="auto") _____ ______ __ __ ______ _____ ______ __ __ __ __
/\ __-. /\ __ \ /\ "-./ \ /\ ___\ /\ __-. /\ ___\ /\ \/\ \ /\ "-./ \
\ \ \/\ \\ \ __ \\ \ \-./\ \\ \ __\ \ \ \/\ \\ \___ \\ \ \_\ \\ \ \-./\ \
\ \____- \ \_\ \_\\ \_\ \ \_\\ \_____\\ \____- \/\_____\\ \_____\\ \_\ \ \_\
\/____/ \/_/\/_/ \/_/ \/_/ \/_____/ \/____/ \/_____/ \/_____/ \/_/ \/_/
This repository contains a model for Danish abstractive summarisation of medicaltext.
This model is a fine-tuned version of DanSumT5-base trained on a danish medical text dataset.
The model was trained on LUMI using 1 AMD MI250X GPU.
Nicolaj Larsen
Mikkel Kildeberg
Emil Schledermann