Downloads · 30 days
0
kavya-17b/medical-chatdoctor-mistral7b
medical-chatdoctor-mistral7b is a machine learning model from kavya-17b. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A Mistral-7B model fine-tuned on the ChatDoctor-HealthCareMagic-100k dataset using QLoRA (4-bit quantization) and Unsloth for 2x faster training.
Downloads · 30 days
0
Access
Public
Updated Jun 19, 2026
Repo size
168 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 98%
From the Hugging Face model README
A Mistral-7B model fine-tuned on the ChatDoctor-HealthCareMagic-100k dataset using QLoRA (4-bit quantization) and Unsloth for 2x faster training.
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "kavya-17b/medical-chatdoctor-mistral7b",
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
prompt = """### Instruction:
You are a helpful and accurate medical assistant.
### Patient:
I have had a persistent cough for 3 weeks with mild fever. What could this be?
### Doctor:
"""
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.7, do_sample=True)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model is for educational purposes only. Not a substitute for professional medical advice.