Downloads · 30 days
16
16% of all-time downloads
kaushik2202/medical-advisor-qlora
medical-advisor-qlora is a text generation model from kaushik2202. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as llama2.
This is a QLoRA (4-bit quantized LoRA) adapter fine-tuned for medical lab result analysis conversations.
Downloads · 30 days
16
16% of all-time downloads
All-time downloads
102
Public
Repo size
1 GB
Likes
1
Public
Click a slice to open those files.
.safetensors349 MB · 49%
From the Hugging Face model README
This is a QLoRA (4-bit quantized LoRA) adapter fine-tuned for medical lab result analysis conversations.
from unsloth import FastLanguageModel
from peft import PeftModel
# Load base model
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="unsloth/Qwen3-8B-unsloth-bnb-4bit",
max_seq_length=2048,
dtype=None,
load_in_4bit=True,
)
# Load adapter
model = PeftModel.from_pretrained(model, "kaushik2202/medical-advisor-qlora")
# Enable inference mode
FastLanguageModel.for_inference(model)
# Use for medical lab analysis
prompt = """Human: I'm a 45-year-old male who just got my lab results back. I'd like to understand what they mean, especially in context of my lifestyle.
**Lab Results:** • HbA1c: 6.2% • Total Cholesterol: 180.0 mg/dL • Hdl Cholesterol: 45.0 mg/dL
**My Lifestyle:** • Vigorous exercise: 20.0 days • Sleep duration: 7.0 hours
Can you explain what these results mean for my health, considering my age and lifestyle factors?"""
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=300)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
The model provides structured medical analysis with:
Example response format:
Assistant: I'll analyze your lab results in the context of your age (45) and lifestyle factors.
## 🔬 Your Lab Results Analysis
**HbA1c: 6.2 %** (prediabetic)
• Range: 5.7-6.4%
• Health impact: Pre-diabetes - lifestyle intervention recommended
**Total Cholesterol: 180.0 mg/dL** (optimal)
• Range: <200 mg/dL
• Health impact: Low heart disease risk
[... continued analysis ...]
This model inherits the Llama 2 license. Use responsibly for educational purposes only.
⚠️ Disclaimer: Not intended for actual medical diagnosis. Always consult healthcare professionals for medical advice.
If you use this model, please cite:
@model{medical-advisor-qlora,
author = {kaushik2202},
title = {Medical Advisor QLoRA},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/kaushik2202/medical-advisor-qlora}
}