Downloads · 30 days
9
15% of all-time downloads
dunktra/medgemma-temporal-lora
medgemma-temporal-lora is a image-text-to-text model from dunktra. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as other.
This repository provides LoRA adapters fine-tuned on top of google/medgemma-1.5-4b-it for exploring temporal change detection in dermatoscopic image pairs. The project investigates whether lightweight parameter-effici…
Downloads · 30 days
9
15% of all-time downloads
All-time downloads
60
Public
Repo size
61.9 MB
Likes
1
Public
Click a slice to open those files.
.json34.5 MB · 55%
From the Hugging Face model README
This repository provides LoRA adapters fine-tuned on top of google/medgemma-1.5-4b-it for exploring temporal change detection in dermatoscopic image pairs. The project investigates whether lightweight parameter-efficient fine-tuning can adapt a multimodal medical foundation model to a novel temporal reasoning task.
This repository contains LoRA adapters only, not a full model checkpoint.
This model is not a medical device.
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model.
from transformers import AutoModelForVision2Seq, AutoProcessor
from peft import PeftModel
import torch
base_model = AutoModelForVision2Seq.from_pretrained(
"google/medgemma-1.5-4b-it",
torch_dtype=torch.bfloat16,
device_map="auto"
)
model = PeftModel.from_pretrained(
base_model,
"dunktra/medgemma-temporal-lora"
)
processor = AutoProcessor.from_pretrained(
"dunktra/medgemma-temporal-lora"
)
| Metric | Base MedGemma | Fine-Tuned (LoRA) | Change |
|---|---|---|---|
| F1 Score | 0.8797 | 0.8797 | +0.00% |
| Precision | 0.7852 | 0.7852 | +0.00% |
| Recall | 1.0000 | 1.0000 | +0.00% |
LoRA fine-tuning did not yield measurable improvements under the current evaluation protocol.
Note: Although LoRA fine-tuning did not improve aggregate F1 on the held-out test set, analysis revealed that both the base and fine-tuned models collapsed to a high-recall regime, predicting “change” for all examples. This indicates that the primary performance bottleneck lies in task framing and decision extraction rather than model capacity. The experiment demonstrates stable LoRA adaptation without regression and highlights the importance of evaluation design in generative medical VLMs.