Downloads · 30 days
19
15% of all-time downloads
Douxgen/OpenVetQA-gemma3-4b-v1
OpenVetQA-gemma3-4b-v1 is a text generation model from Douxgen. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as cc-by-nc-4.0.
Downloads · 30 days
19
15% of all-time downloads
All-time downloads
124
Public
Repo size
103 MB
Likes
1
Public
Click a slice to open those files.
.safetensors65.7 MB · 65%
From the Hugging Face model README

QLoRA adapter (r=16) for unsloth/gemma-3-4b-it, trained on OpenVetQA-sft-v1. This is a demonstration artifact: the point is that the dataset improves the model, not that the model is clinically reliable.
Dataset · Qwen version · Trust report
| Eval tier | Base | Tuned | Δ |
|---|---|---|---|
| dev2 (157 items) | 64.97% | 75.80% | +10.83 |
| VetQA-Silver (146 items) | 69.18% | 77.40% | +8.22 |

VetQA-Silver items come from documents carved out by sha256(source_doc_uid) % 20 == 0 before any generation or training ran. The gain on that tier is generalization, not memorization.

import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers import BitsAndBytesConfig
base = "unsloth/gemma-3-4b-it"
bnb = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16)
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, quantization_config=bnb,
dtype=torch.bfloat16,
device_map={"": 0})
model = PeftModel.from_pretrained(model, "Douxgen/OpenVetQA-gemma3-4b-v1")
prompt = ("Q: A 7-year-old Labrador presents with acute vomiting and melena. "
"Which diagnostic step is most appropriate first?\n"
"A. Endoscopy\nB. Abdominal ultrasound\n"
"C. Coagulation profile\nD. Plasma transfusion\n\nA:")
ids = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**ids, max_new_tokens=8, do_sample=False,
pad_token_id=tok.eos_token_id)
print(tok.decode(out[0][ids["input_ids"].shape[1]:],
skip_special_tokens=True))
Adapter: CC BY-NC 4.0. Base model: subject to Gemma's own terms. Data sources: CC-BY PMC open-access, per-item license embedded.
@model{openvetqa_gemma3_4b_v1,
title = {OpenVetQA-gemma3-4b-it-v1: veterinary QLoRA adapter},
year = {2026},
url = {https://huggingface.co/Douxgen/OpenVetQA-gemma3-4b-v1}
}