Downloads · 30 days
5
7% of all-time downloads
samandar1105/medgemma-medical-qa-lora
medgemma-medical-qa-lora is a question answering model from samandar1105. Use it when the input is a question plus a passage. It is set up for peft. The card lists the license as other.
Fine-tuned with QLoRA on the MedQuAD dataset for generative medical question answering. Intended to be used as the generator in a RAG pipeline — pair with a retriever (e.g. embeddings over epfl-llm/guidelines) for gro…
Downloads · 30 days
5
7% of all-time downloads
All-time downloads
68
Public
Repo size
296 MB
Likes
0
Public
Click a slice to open those files.
.safetensors131 MB · 80%
From the Hugging Face model README
Fine-tuned with QLoRA on the MedQuAD dataset for generative medical question answering.
Intended to be used as the generator in a RAG pipeline — pair with a retriever
(e.g. embeddings over epfl-llm/guidelines) for grounded, up-to-date answers.
This model is a research/portfolio project. It is not a certified medical device and must not be used for real clinical decision-making without human medical professional oversight.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("google/medgemma-4b-it", device_map="auto")
model = PeftModel.from_pretrained(base, "samandar1105/medgemma-medical-qa-lora")
tokenizer = AutoTokenizer.from_pretrained("samandar1105/medgemma-medical-qa-lora")