dmusingu commited on
Commit
7fbf753
·
verified ·
1 Parent(s): 2b31ab1

Add model card

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - medical
5
+ - chest-xray
6
+ - visual-question-answering
7
+ - difference-vqa
8
+ - mimic-cxr
9
+ library_name: pytorch
10
+ ---
11
+
12
+ # Diff-VQA — Qwen3-0.6B visual-prefix decoder (multiobjective-regsteps encoder)
13
+
14
+ Online-trained **Difference Visual Question Answering** head for chest X-rays
15
+ (MIMIC-CXR / Medical-Diff-VQA). A frozen ViT-L/14 vision encoder produces patch
16
+ tokens for a current + reference image pair; a **Qwen3-0.6B** decoder,
17
+ conditioned on those tokens as a visual prefix, generates the answer describing
18
+ what changed.
19
+
20
+ This is a **slimmed inference checkpoint**: decoder weights + the frozen vision
21
+ encoder weights + architecture metadata (optimizer/scheduler state stripped).
22
+
23
+ ## Contents (`*_best.pt`, `torch.load(..., weights_only=False)`)
24
+
25
+ | key | description |
26
+ |-----|-------------|
27
+ | `state_dict` | `DiffVQAQwen3Head` weights (Qwen3-0.6B LLM + `vis_proj` + `frame_emb`) |
28
+ | `encoder_state` | frozen ViT-L/14 vision encoder (`objective: multiobjective_caption+regioncontrastive`) |
29
+ | `decoder` | `Qwen/Qwen3-0.6B` |
30
+ | `tokenizer_name` | `Qwen/Qwen3-0.6B` |
31
+ | `vis_dim` | 1024 |
32
+ | `encoder_name` | `pretrain-multiobjective-regsteps` |
33
+ | `epoch` / `step` / `best_val` | training position + best validation loss |
34
+
35
+ ## Training
36
+
37
+ - Data: Medical-Diff-VQA `difference` questions over MIMIC-CXR image pairs
38
+ (~100k train / ~16k val / ~16k test).
39
+ - Objective: next-token cross-entropy over the answer span (question tokens masked).
40
+ - Vision encoder is **frozen**; only the decoder (LLM + visual adapter) is trained.
41
+
42
+ ## Notes
43
+
44
+ The bundled `encoder_state` is the exact frozen encoder this decoder was trained
45
+ against — load both together so the visual features match the space `vis_proj`
46
+ expects (a mismatched encoder produces degenerate output).