Downloads · 30 days
0
mnbvcxzz4869/medgemma-tb-it-lora-tb
medgemma-tb-it-lora-tb is a machine learning model from mnbvcxzz4869. 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 transformers. The card lists the license as apache-2.0.
mnbvcxzz4869/medgemma-tb-it-lora-tb is a LoRA fine-tuned vision adapter built on top of MedGemma-4B-IT, designed to improve the model’s ability to analyze chest X-ray images for Tuberculosis (TB)-related radiographic…
Downloads · 30 days
0
Access
Public
Updated Dec 20, 2025
Repo size
70 MB
Likes
0
Public
Click a slice to open those files.
.json34.5 MB · 49%
From the Hugging Face model README
mnbvcxzz4869/medgemma-tb-it-lora-tb is a LoRA fine-tuned vision adapter built on top of MedGemma-4B-IT, designed to improve the model’s ability to analyze chest X-ray images for Tuberculosis (TB)-related radiographic patterns.
The fine-tuning process is applied exclusively to the vision component of the multimodal model. The language model and its general medical knowledge remain unchanged. Multimodal reasoning (text + image) is achieved at inference time through prompt engineering, not through multimodal retraining.
This model is intended for research and clinical decision support system (CDSS) prototyping, particularly for TB screening workflows.
This model is derived from MedGemma and is subject to the Health AI Developer Foundations terms of use governing the base model.
| Metric | Value |
|---|---|
| Eval Loss | 2.2045 |
| Eval Model Preparation Time | 0.0197 |
| Eval Runtime | 94.6703 |
| Eval Samples Per Second | 8.8730 |
| Eval Steps Per Second | 1.1090 |
import torch
from transformers import AutoProcessor, AutoModelForImageTextToText
from peft import PeftModel
base_model_id = "google/medgemma-4b-it"
adapter_id = "mnbvcxzz4869/medgemma-tb-it-lora-tb"
processor = AutoProcessor.from_pretrained(base_model_id)
model = AutoModelForImageTextToText.from_pretrained(
base_model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
model = PeftModel.from_pretrained(model, adapter_id)