Downloads · 30 days
0
OSCARcr/mistral-medquad-lora-r4
mistral-medquad-lora-r4 is a machine learning model from OSCARcr. 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.
Fine-tuned with LoRA (r=4) using dataset lavita/MedQuAD Base model: mistralai/Mistral-7B-Instruct-v0.3 Quantization: 4-bit NF4 GPU: A100 80GB
Downloads · 30 days
0
Access
Public
Updated Oct 28, 2025
Repo size
9.5 MB
Likes
0
Public
Click a slice to open those files.
.safetensors9.5 MB · 100%
From the Hugging Face model README
Fine-tuned with LoRA (r=4) using dataset lavita/MedQuAD
Base model: mistralai/Mistral-7B-Instruct-v0.3
Quantization: 4-bit NF4
GPU: A100 80GB
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.33 | 200 | 0.855 | 0.852 |
| 0.66 | 400 | 0.821 | 0.826 |
| 1.0 | 600 | 0.807 | 0.812 |
from peft import AutoPeftModelForCausalLM
from transformers import AutoTokenizer
model = AutoPeftModelForCausalLM.from_pretrained("REPO_ID", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
text = "[INST] What is anemia? [/INST]"
inputs = tokenizer(text, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=80)
print(tokenizer.decode(out[0], skip_special_tokens=True)