Views
No views yet
facebook/bart-base to summarize doctor-patient dialogues into section-wise clinical notes (EHR-style), trained on the MTS-Dialog dataset (MEDIQA-Chat 2023).mdlam/clinical-note-model upload with an expanded model card.| Base model | facebook/bart-base (~140M params) |
| Method | LoRA via PEFT |
| r / alpha / dropout | 8 / 64 / 0.01 |
| Target modules | q_proj, v_proj |
| Training data | MTS-Dialog training split (~1,700 dialogues) |
| Decode | beam=4, temperature=0.9, top_p=0.95, no_repeat_ngram_size=4 |
| Source | ROUGE-1 | ROUGE-2 | ROUGE-L | ROUGE-Lsum |
|---|---|---|---|---|
| Reported at project completion (May 2025) | — | — | 0.43 | — |
| Re-evaluation Aug 2026 (100-example sample, seed=42) | 0.290 | 0.114 | 0.252 | 0.259 |
compute_metrics.py in the project repo.1from peft import PeftModel
2from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
3
4base = AutoModelForSeq2SeqLM.from_pretrained("facebook/bart-base")
5model = PeftModel.from_pretrained(base, "jonleed/clinical-note-bart-lora").merge_and_unload()
6tokenizer = AutoTokenizer.from_pretrained("facebook/bart-base")
7
8prompt = ("Summarize the following doctor-patient dialogue into a detailed "
9 "History of Present Illness clinical note: <dialogue text>")
10inputs = tokenizer(prompt, max_length=128, truncation=True, return_tensors="pt")
11out = model.generate(**inputs, max_length=256, num_beams=4)
12print(tokenizer.decode(out[0], skip_special_tokens=True))