Instructions to use Thanu10/Arogya_fine_tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Studio
How to use Thanu10/Arogya_fine_tuned with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Thanu10/Arogya_fine_tuned to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Thanu10/Arogya_fine_tuned to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Thanu10/Arogya_fine_tuned to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Thanu10/Arogya_fine_tuned", max_seq_length=2048, )
Arogya Fine-Tuned (Gemma 3 - Medical Chatbot)
π Overview
Arogya is a fine-tuned version of Gemma 3 (4B) designed to act as a medical question-answering assistant.
It is trained on healthcare-related conversational data to provide general medical guidance.
π§ Model Details
- Base Model: unsloth/gemma-3-4b-it-unsloth-bnb-4bit
- Fine-tuning Method: LoRA (Parameter-Efficient Fine-Tuning)
- Framework: Unsloth + TRL
- Quantization: 4-bit (for memory efficiency)
π Training Data
- Dataset:
lavita/ChatDoctor-HealthCareMagic-100k - Format: Instruction + Input β Response
- Converted into chat-style format for Gemma 3
βοΈ Training Configuration
- Max Steps: 30 (initial prototype)
- Learning Rate: 2e-4
- Batch Size: 2 (with gradient accumulation)
- Response-only training enabled
π‘ Intended Use
- Educational purposes
- Demonstration of medical chatbot fine-tuning
- Research experiments in healthcare AI
β οΈ Limitations & Safety Notice
- This model is not a licensed medical professional
- Outputs may contain:
- inaccurate or outdated medical advice
- overconfident statements
- Do NOT use for real medical decision-making
- Always consult a qualified healthcare provider
π Usage Example
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
"your-username/Arogya_fine_tuned",
load_in_4bit=True,
)
messages = [
{"role": "user", "content": "I have a headache and fever. What should I do?"}
]
π¨βπ» Author
- Name: Thanujaya Tennekoon
- Affiliation: University of Ruhuna
π Future Improvements
- Increase training steps for better accuracy
- Add safety-aligned medical instructions
- Incorporate Sinhala language support
- Filter dataset for higher-quality responses
Model tree for Thanu10/Arogya_fine_tuned
Base model
google/gemma-3-4b-pt Finetuned
google/gemma-3-4b-it Quantized
unsloth/gemma-3-4b-it-unsloth-bnb-4bit