Downloads · 30 days
10
18% of all-time downloads
DnaRnaProteins/qwen2.5-vl-7b-microscopy-vqa-lora
qwen2.5-vl-7b-microscopy-vqa-lora is a image-text-to-text model from DnaRnaProteins. 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 apache-2.0.
Try it: interactive annotator Space (private, ZeroGPU).
Downloads · 30 days
10
18% of all-time downloads
All-time downloads
55
Public
Repo size
202 MB
Likes
0
Public
Click a slice to open those files.
.safetensors190 MB · 94%
From the Hugging Face model README
Try it: interactive annotator Space (private, ZeroGPU).
A LoRA adapter for Qwen/Qwen2.5-VL-7B-Instruct, fine-tuned for multiple-choice visual question answering on cell-microscopy images: subcellular-structure identification (CHAMMI WTC-11) and cell-line identification (LIVECell). Trained on an AMD Radeon AI PRO R9700 (RDNA4 / gfx1201, ROCm), bf16, as part of a cross-vendor training study.
In-domain held-out accuracy:
| task | base | fine-tuned |
|---|---|---|
| LIVECell cell-line (8-way) | 0.140 | 0.350 |
| CHAMMI organelle (4-way) | 0.310 | 0.490 |
Choice-order robustness (k=4 option orders) and POPE-style hallucination probe:
| metric | base | fine-tuned |
|---|---|---|
| robustness consistency | 0.173 | 0.580 |
| robust accuracy | 0.242 | 0.452 |
| POPE F1 | 0.123 | 0.314 |
| POPE hallucination rate | 0.068 | 0.075 |
Generalization to the held-out MicroVQA expert-reasoning benchmark (NOT trained on): overall 0.507 (base) vs 0.512 (fine-tuned) -- the narrow classification fine-tune sharpens the in-domain tasks and improves robustness/grounding, without transferring to (or harming) broad microscopy reasoning.
from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
from peft import PeftModel
base = Qwen2_5_VLForConditionalGeneration.from_pretrained(
"Qwen/Qwen2.5-VL-7B-Instruct", torch_dtype="bfloat16", device_map="auto")
model = PeftModel.from_pretrained(base, "DnaRnaProteins/qwen2.5-vl-7b-microscopy-vqa-lora")
processor = AutoProcessor.from_pretrained("DnaRnaProteins/qwen2.5-vl-7b-microscopy-vqa-lora")
LoRA (r=16, alpha=32) on the LLM projections (q/k/v/o, gate/up/down); vision tower frozen. bf16, gradient checkpointing, batch 1 + grad-accum 8, 4000 steps, images capped at 384x384. ~7.3k MCQ examples (4k CHAMMI class-balanced + 3.3k LIVECell). MicroVQA kept fully held out.
Specialized to these two microscopy datasets and the MCQ format; not a general microscopy assistant. Cell-line identification from phase-contrast is inherently hard. Evaluate before any research use; not for clinical/diagnostic use.