YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

🩺 Medical LLM – Fine-Tuned DialoGPT

This project fine-tunes microsoft/DialoGPT-medium on a medical Q&A dataset using Unsloth + LoRA for efficient training. The goal is to make the model better at answering health-related questions compared to the base model.

πŸš€ Project Overview

Base Model: microsoft/DialoGPT-medium

Fine-tuning Framework: Unsloth

Method: Parameter-Efficient Fine-Tuning (LoRA, 16-bit)

Dataset: Custom Medical Q&A (500 examples used for demo)

Deployment: Hugging Face Model + Space Demo

βš™οΈ Training Setup

Hardware: Tesla T4 GPU (Colab)

Max Seq Length: 2048

Batch Size (effective): 8 (2 Γ— 4 grad accumulation)

Epochs: 1 (demo)

Trainable Parameters: 1.7% of total (6.29M)

πŸ“Š Results Example 1

Question: What are the symptoms of pneumonia?

Base Model: What are the symptoms of pneumonia?

Fine-Tuned Model: Cough, fever, chills, and difficulty breathing are common symptoms of pneumonia. βœ…

Example 2

Question: How is diabetes diagnosed?

Base Model: bloodwork and a banana. ❌

Fine-Tuned Model: Diabetes is usually diagnosed with blood tests like fasting blood sugar and HbA1c. βœ…

πŸ’» Usage Load from Hugging Face from transformers import pipeline

pipe = pipeline( "text-generation", model="Monisha27/medical-llm-sft-demo" )

print(pipe("What are the symptoms of pneumonia?", max_new_tokens=50))

πŸ“‚ Repository Structure

config.json – model configuration

tokenizer.json – tokenizer

pytorch_model.bin – model weights (LoRA merged)

README.md – this documentation

🌐 Demo

Try the model live on Hugging Face Spaces: πŸ‘‰ Medical LLM Chatbot

πŸ“Œ Notes

This model is not a replacement for professional medical advice.

Outputs may contain mistakes. Always consult a doctor for real medical concerns.

✨ Developed by Monisha Bharadwaj

Downloads last month
22
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support