Image-Text-to-Text
PEFT
Safetensors
medical
chest-x-ray
medgemma
lora
structured-output
conversational
Instructions to use maximehpe/chest-vlm-run12 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use maximehpe/chest-vlm-run12 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/medgemma-1.5-4b-it") model = PeftModel.from_pretrained(base_model, "maximehpe/chest-vlm-run12") - Notebooks
- Google Colab
- Kaggle
Chest-VLM Run 12 โ Study auxiliary loss (safety)
LoRA adapter fine-tuned on MedGemma 1.5 4B IT for dual-view chest X-ray structured ontology output (<Ontology v=2>).
Training objective: weighted token loss + study auxiliary loss (abnormal/indeterminate class weights ร2).
Recommended when: minimising missed pathologies (highest Normal precision, fewest false normals).
| Metric | Value |
|---|---|
| Study accuracy | 0.749 |
| Study F1 | 0.677 |
| Precision (Normal) | 0.724 |
| Finding macro F1 | 0.228 |
Usage
from peft import PeftModel
# Load base google/medgemma-1.5-4b-it, then:
model = PeftModel.from_pretrained(model, "maximehpe/chest-vlm-run12")
Or download via the project:
python script/download_model.py --run_name 12_medgemma_ontology_study_loss
Not for clinical use. Research prototype only.
- Downloads last month
- 14
Model tree for maximehpe/chest-vlm-run12
Base model
google/medgemma-1.5-4b-it