Downloads · 30 days
12
71% of all-time downloads
MatrixCoder03/gemma-3-270m-med-lora
gemma-3-270m-med-lora is a machine learning model from MatrixCoder03. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
This repository contains a LoRA (Low-Rank Adaptation) adapter fine-tuned on structured medical reminder dialogues. The adapter extends google/gemma-3-270m to generate concise, structured responses for medication remin…
Downloads · 30 days
12
71% of all-time downloads
All-time downloads
17
Public
Repo size
4.5 MB
Likes
0
Public
Click a slice to open those files.
.safetensors1.5 MB · 100%
From the Hugging Face model README
This repository contains a LoRA (Low-Rank Adaptation) adapter fine-tuned on structured medical reminder dialogues.
The adapter extends google/gemma-3-270m to generate concise, structured responses for medication reminders and scheduling tasks.
This adapter is intended for:
Not intended for real clinical decision-making.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = "google/gemma-3-270m"
adapter = "MatrixCoder03/gemma-3-270m-med-lora"
model = AutoModelForCausalLM.from_pretrained(base_model)
model = PeftModel.from_pretrained(model, adapter)
tokenizer = AutoTokenizer.from_pretrained(base_model)
inputs = tokenizer(
"Remind the patient to take 200mg paracetamol at 5pm.",
return_tensors="pt"
)
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))