Downloads · 30 days
21
15% of all-time downloads
nikitaredy/medictron-7B
medictron-7B is a text generation model from nikitaredy. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
A domain-adapted clinical LLM fine-tuned on synthetic Indian medical Q&A records using QLoRA (4-bit quantization) with Unsloth 2x speedup. Built to power the conversational AI layer.
Downloads · 30 days
21
15% of all-time downloads
All-time downloads
137
Public
Repo size
590 MB
Likes
11
Public
Click a slice to open those files.
.safetensors503 MB · 84%
From the Hugging Face model README
A domain-adapted clinical LLM fine-tuned on synthetic Indian medical Q&A records using QLoRA (4-bit quantization) with Unsloth 2x speedup. Built to power the conversational AI layer.
| Parameter | Value |
|---|---|
| Base Model | BioMistral/BioMistral-7B |
| Method | QLoRA (4-bit) + Unsloth 2x speedup |
| Dataset | Synthetic Indian medical Q&A records |
| Hardware | Kaggle T4 GPU (15.6 GB VRAM) |
| Training Time | ~9.5 hours |
| Steps / Epochs | 873 steps, 5 epochs |
| Parameters Trained | ~0.5% (LoRA only) |
| Adapter Size | 167.8 MB LoRA safetensors |
| Final Train Loss | 0.065 |
| Final Val Loss | 0.163 (target < 1.0 ✅) |
| Step | Train Loss | Val Loss |
|---|---|---|
| 200 | 0.129 | 0.219 |
| 400 | 0.094 | 0.188 |
| 600 | 0.076 | 0.176 |
| 800 | 0.068 | 0.163 |
| 873 | 0.065 | 0.163 |
Checkpoints saved at steps 600, 800, and 873.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("BioMistral/BioMistral-7B")
model = PeftModel.from_pretrained(base_model, "YOUR_HF_USERNAME/biomistral-7b-indian-medical")
tokenizer = AutoTokenizer.from_pretrained("BioMistral/BioMistral-7B")
prompt = "Patient reports bukhar (fever) for 2 days. Suggest treatment."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

B. Nikita Reddy