shantam00 commited on
Commit
f8beb05
·
verified ·
1 Parent(s): 7248748

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,3 +1,33 @@
1
  ---
2
- license: cc-by-4.0
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: peft
3
+ base_model: microsoft/llava-rad
4
+ pipeline_tag: image-text-to-text
5
+ tags:
6
+ - radiology
7
+ - chest-x-ray
8
+ - llava
9
+ - lora
10
+ - contrastive-decoding
11
  ---
12
+
13
+ # CWCD adapters
14
+
15
+ This model repository contains the eight category-specific rank-1 LoRA adapters for **CWCD: Category-Wise Contrastive Decoding for Structured Medical Report Generation**.
16
+
17
+ Inference code and usage instructions are maintained at [`shantamsrivastava/CWCD`](https://github.com/shantamsrivastava/CWCD).
18
+
19
+ ```text
20
+ adapters/
21
+ ├── abdominal/
22
+ ├── cardiovascular/
23
+ ├── hila/
24
+ ├── lungs/
25
+ ├── other/
26
+ ├── pleura/
27
+ ├── tubes/
28
+ └── wall/
29
+ ```
30
+
31
+ Each directory contains `adapter_config.json` and `adapter_model.bin`. The GitHub inference script downloads these files through `huggingface_hub.snapshot_download()` and combines the eight category-wise findings into a structured findings report.
32
+
33
+ > Research use only. CWCD is not a medical device and is not a substitute for review by a qualified clinician.
adapters/abdominal/adapter_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "lmsys/vicuna-7b-v1.5",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 8,
12
+ "lora_dropout": 0.0,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 1,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "q_proj",
20
+ "v_proj"
21
+ ],
22
+ "task_type": "CAUSAL_LM"
23
+ }
adapters/abdominal/adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:839a57dc999a72ac5ecbf101e1f75e044c3fbb1b3b7a272e418f513ea7ddaa89
3
+ size 2143779
adapters/cardiovascular/adapter_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "lmsys/vicuna-7b-v1.5",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 8,
12
+ "lora_dropout": 0.0,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 1,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "q_proj",
20
+ "v_proj"
21
+ ],
22
+ "task_type": "CAUSAL_LM"
23
+ }
adapters/cardiovascular/adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b00634eec65cc8528b16e5c9948c0f033d80a08fc51fc72fb820f1bfd7c02ec8
3
+ size 2143779
adapters/hila/adapter_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "lmsys/vicuna-7b-v1.5",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 8,
12
+ "lora_dropout": 0.0,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 1,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "q_proj",
20
+ "v_proj"
21
+ ],
22
+ "task_type": "CAUSAL_LM"
23
+ }
adapters/hila/adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da9236d19e1998b3bff953f510695b1a21011eb56f4e8aada209432faa7c5065
3
+ size 2143779
adapters/lungs/adapter_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "lmsys/vicuna-7b-v1.5",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 8,
12
+ "lora_dropout": 0.0,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 1,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "v_proj",
20
+ "q_proj"
21
+ ],
22
+ "task_type": "CAUSAL_LM"
23
+ }
adapters/lungs/adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4fa6b2a735cd4046b377a60706aa825beee8c2a80e63de64432e5a9e58af2ea
3
+ size 2143779
adapters/other/adapter_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "lmsys/vicuna-7b-v1.5",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 8,
12
+ "lora_dropout": 0.0,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 1,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "q_proj",
20
+ "v_proj"
21
+ ],
22
+ "task_type": "CAUSAL_LM"
23
+ }
adapters/other/adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d70221d3e1b8bd1d26b71aec89073c7333d5f383dd637064c94d9f8131377e5
3
+ size 2143779
adapters/pleura/adapter_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "lmsys/vicuna-7b-v1.5",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 8,
12
+ "lora_dropout": 0.0,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 1,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "v_proj",
20
+ "q_proj"
21
+ ],
22
+ "task_type": "CAUSAL_LM"
23
+ }
adapters/pleura/adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:883479942bcea3c29e63a12072e2000ad1a510a725c10e86cda4428121cfa7b2
3
+ size 2143779
adapters/tubes/adapter_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "lmsys/vicuna-7b-v1.5",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 8,
12
+ "lora_dropout": 0.0,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 1,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "q_proj",
20
+ "v_proj"
21
+ ],
22
+ "task_type": "CAUSAL_LM"
23
+ }
adapters/tubes/adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cfbb528397537a78f91abc2be0e0f855c515bc6539fffcf69742f7d99b51871
3
+ size 2143779
adapters/wall/adapter_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "lmsys/vicuna-7b-v1.5",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 8,
12
+ "lora_dropout": 0.0,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 1,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "v_proj",
20
+ "q_proj"
21
+ ],
22
+ "task_type": "CAUSAL_LM"
23
+ }
adapters/wall/adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f870813efa0a1be7964181662d36ce2e784506d838f8b648aff6ecd2344861c
3
+ size 2143779