Downloads · 30 days
9
5% of all-time downloads
aparnavirtuonai/mistral-medqa
mistral-medqa is a text generation model from aparnavirtuonai. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of the base model:
Downloads · 30 days
9
5% of all-time downloads
All-time downloads
197
Public
Parameters
7.2B
14.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of the base model:
mistralai/Mistral-7B-v0.1
The model has been fine-tuned on a medical question-answering dataset (MedQA) to improve its ability to answer medical queries and perform domain-specific reasoning.
Note: This model is not intended for real-world medical diagnosis without professional supervision.
The model was fine-tuned on the MedQA dataset:
https://huggingface.co/datasets/openlifescienceai/medqa
Note: Update these values if they differ from your actual training configuration.
| Dataset | Accuracy |
|---|---|
| BoolQ (General QA) | 0.70 |
| PubMedQA (Medical QA) | 0.69 |
The model maintains stable general performance and shows baseline domain adaptation. Further improvements are in progress.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "aparnavirtuonai/mistral-medqa-final"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
prompt = "Question: What is diabetes?\nAnswer:"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))