add trained model
Browse files- model/config.json +152 -0
- model/flax_model.msgpack +3 -0
- model/logs/events.out.tfevents.1626406050.t1v-n-f700bfbb-w-0.233317.3.v2 +3 -0
- model/logs/events.out.tfevents.1626408834.t1v-n-f700bfbb-w-0.261335.3.v2 +3 -0
- model/logs/events.out.tfevents.1626409141.t1v-n-f700bfbb-w-0.268430.3.v2 +3 -0
- model/logs/events.out.tfevents.1626409572.t1v-n-f700bfbb-w-0.282371.3.v2 +3 -0
- train_model.sh +4 -4
model/config.json
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"MedCLIP"
|
4 |
+
],
|
5 |
+
"initializer_factor": 1.0,
|
6 |
+
"model_type": "hybrid-clip",
|
7 |
+
"projection_dim": 512,
|
8 |
+
"seed": 42,
|
9 |
+
"text_config": {
|
10 |
+
"_name_or_path": "",
|
11 |
+
"add_cross_attention": false,
|
12 |
+
"architectures": null,
|
13 |
+
"attention_probs_dropout_prob": 0.1,
|
14 |
+
"bad_words_ids": null,
|
15 |
+
"bos_token_id": null,
|
16 |
+
"chunk_size_feed_forward": 0,
|
17 |
+
"decoder_start_token_id": null,
|
18 |
+
"diversity_penalty": 0.0,
|
19 |
+
"do_sample": false,
|
20 |
+
"early_stopping": false,
|
21 |
+
"encoder_no_repeat_ngram_size": 0,
|
22 |
+
"eos_token_id": null,
|
23 |
+
"finetuning_task": null,
|
24 |
+
"forced_bos_token_id": null,
|
25 |
+
"forced_eos_token_id": null,
|
26 |
+
"gradient_checkpointing": false,
|
27 |
+
"hidden_act": "gelu",
|
28 |
+
"hidden_dropout_prob": 0.1,
|
29 |
+
"hidden_size": 768,
|
30 |
+
"id2label": {
|
31 |
+
"0": "LABEL_0",
|
32 |
+
"1": "LABEL_1"
|
33 |
+
},
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"intermediate_size": 3072,
|
36 |
+
"is_decoder": false,
|
37 |
+
"is_encoder_decoder": false,
|
38 |
+
"label2id": {
|
39 |
+
"LABEL_0": 0,
|
40 |
+
"LABEL_1": 1
|
41 |
+
},
|
42 |
+
"layer_norm_eps": 1e-12,
|
43 |
+
"length_penalty": 1.0,
|
44 |
+
"max_length": 20,
|
45 |
+
"max_position_embeddings": 512,
|
46 |
+
"min_length": 0,
|
47 |
+
"model_type": "bert",
|
48 |
+
"no_repeat_ngram_size": 0,
|
49 |
+
"num_attention_heads": 12,
|
50 |
+
"num_beam_groups": 1,
|
51 |
+
"num_beams": 1,
|
52 |
+
"num_hidden_layers": 12,
|
53 |
+
"num_return_sequences": 1,
|
54 |
+
"output_attentions": false,
|
55 |
+
"output_hidden_states": false,
|
56 |
+
"output_scores": false,
|
57 |
+
"pad_token_id": 0,
|
58 |
+
"position_embedding_type": "absolute",
|
59 |
+
"prefix": null,
|
60 |
+
"problem_type": null,
|
61 |
+
"pruned_heads": {},
|
62 |
+
"remove_invalid_values": false,
|
63 |
+
"repetition_penalty": 1.0,
|
64 |
+
"return_dict": true,
|
65 |
+
"return_dict_in_generate": false,
|
66 |
+
"sep_token_id": null,
|
67 |
+
"task_specific_params": null,
|
68 |
+
"temperature": 1.0,
|
69 |
+
"tie_encoder_decoder": false,
|
70 |
+
"tie_word_embeddings": true,
|
71 |
+
"tokenizer_class": null,
|
72 |
+
"top_k": 50,
|
73 |
+
"top_p": 1.0,
|
74 |
+
"torchscript": false,
|
75 |
+
"transformers_version": "4.8.2",
|
76 |
+
"type_vocab_size": 2,
|
77 |
+
"use_bfloat16": false,
|
78 |
+
"use_cache": true,
|
79 |
+
"vocab_size": 31090
|
80 |
+
},
|
81 |
+
"transformers_version": null,
|
82 |
+
"vision_config": {
|
83 |
+
"_name_or_path": "",
|
84 |
+
"add_cross_attention": false,
|
85 |
+
"architectures": null,
|
86 |
+
"attention_dropout": 0.0,
|
87 |
+
"bad_words_ids": null,
|
88 |
+
"bos_token_id": null,
|
89 |
+
"chunk_size_feed_forward": 0,
|
90 |
+
"decoder_start_token_id": null,
|
91 |
+
"diversity_penalty": 0.0,
|
92 |
+
"do_sample": false,
|
93 |
+
"dropout": 0.0,
|
94 |
+
"early_stopping": false,
|
95 |
+
"encoder_no_repeat_ngram_size": 0,
|
96 |
+
"eos_token_id": null,
|
97 |
+
"finetuning_task": null,
|
98 |
+
"forced_bos_token_id": null,
|
99 |
+
"forced_eos_token_id": null,
|
100 |
+
"gradient_checkpointing": false,
|
101 |
+
"hidden_act": "quick_gelu",
|
102 |
+
"hidden_size": 768,
|
103 |
+
"id2label": {
|
104 |
+
"0": "LABEL_0",
|
105 |
+
"1": "LABEL_1"
|
106 |
+
},
|
107 |
+
"image_size": 224,
|
108 |
+
"initializer_factor": 1.0,
|
109 |
+
"initializer_range": 0.02,
|
110 |
+
"intermediate_size": 3072,
|
111 |
+
"is_decoder": false,
|
112 |
+
"is_encoder_decoder": false,
|
113 |
+
"label2id": {
|
114 |
+
"LABEL_0": 0,
|
115 |
+
"LABEL_1": 1
|
116 |
+
},
|
117 |
+
"layer_norm_eps": 1e-05,
|
118 |
+
"length_penalty": 1.0,
|
119 |
+
"max_length": 20,
|
120 |
+
"min_length": 0,
|
121 |
+
"model_type": "clip_vision_model",
|
122 |
+
"no_repeat_ngram_size": 0,
|
123 |
+
"num_attention_heads": 12,
|
124 |
+
"num_beam_groups": 1,
|
125 |
+
"num_beams": 1,
|
126 |
+
"num_hidden_layers": 12,
|
127 |
+
"num_return_sequences": 1,
|
128 |
+
"output_attentions": false,
|
129 |
+
"output_hidden_states": false,
|
130 |
+
"output_scores": false,
|
131 |
+
"pad_token_id": null,
|
132 |
+
"patch_size": 32,
|
133 |
+
"prefix": null,
|
134 |
+
"problem_type": null,
|
135 |
+
"pruned_heads": {},
|
136 |
+
"remove_invalid_values": false,
|
137 |
+
"repetition_penalty": 1.0,
|
138 |
+
"return_dict": true,
|
139 |
+
"return_dict_in_generate": false,
|
140 |
+
"sep_token_id": null,
|
141 |
+
"task_specific_params": null,
|
142 |
+
"temperature": 1.0,
|
143 |
+
"tie_encoder_decoder": false,
|
144 |
+
"tie_word_embeddings": true,
|
145 |
+
"tokenizer_class": null,
|
146 |
+
"top_k": 50,
|
147 |
+
"top_p": 1.0,
|
148 |
+
"torchscript": false,
|
149 |
+
"transformers_version": "4.8.2",
|
150 |
+
"use_bfloat16": false
|
151 |
+
}
|
152 |
+
}
|
model/flax_model.msgpack
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68b52339f7fa55829d502cf70bf3e445634a1f94ce86b9770e70c6e451f4d0b4
|
3 |
+
size 792657752
|
model/logs/events.out.tfevents.1626406050.t1v-n-f700bfbb-w-0.233317.3.v2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fba1b0d22399209ed281ae9e176f5c05c7f844134c9802dd29b93e47cd315e2f
|
3 |
+
size 396714
|
model/logs/events.out.tfevents.1626408834.t1v-n-f700bfbb-w-0.261335.3.v2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a022b3284b4ace7f067a9c6e0f98431ff61cc2b425e0dfb20ac8d78bd0210e89
|
3 |
+
size 40
|
model/logs/events.out.tfevents.1626409141.t1v-n-f700bfbb-w-0.268430.3.v2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:72585e9ff1d5bc5b9b3b87079673e98172dbe1276652e75fdc1588e39bd036c0
|
3 |
+
size 39400
|
model/logs/events.out.tfevents.1626409572.t1v-n-f700bfbb-w-0.282371.3.v2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8ca278fd54e647dd9696c6eee20cf5c1fe6c8208593560c7d70937e5da88de3
|
3 |
+
size 321490
|
train_model.sh
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
python run_medclip.py \
|
2 |
-
--output_dir "
|
3 |
--overwrite_output_dir \
|
4 |
--text_model_name_or_path="allenai/scibert_scivocab_uncased" \
|
5 |
--vision_model_name_or_path="openai/clip-vit-base-patch32" \
|
@@ -10,9 +10,9 @@ python run_medclip.py \
|
|
10 |
--mimic_mode="docs" \
|
11 |
--roco_data_dir="/home/shpotes/medclip/data/roco-dataset/" \
|
12 |
--do_train --do_eval \
|
13 |
-
--num_train_epochs="
|
14 |
--preprocessing_num_workers=32 \
|
15 |
--per_device_train_batch_size=64 \
|
16 |
--per_device_eval_batch_size=64 \
|
17 |
-
--warmup_steps=
|
18 |
-
--learning_rate="3e-4"
|
|
|
1 |
python run_medclip.py \
|
2 |
+
--output_dir "model" \
|
3 |
--overwrite_output_dir \
|
4 |
--text_model_name_or_path="allenai/scibert_scivocab_uncased" \
|
5 |
--vision_model_name_or_path="openai/clip-vit-base-patch32" \
|
|
|
10 |
--mimic_mode="docs" \
|
11 |
--roco_data_dir="/home/shpotes/medclip/data/roco-dataset/" \
|
12 |
--do_train --do_eval \
|
13 |
+
--num_train_epochs="18" \
|
14 |
--preprocessing_num_workers=32 \
|
15 |
--per_device_train_batch_size=64 \
|
16 |
--per_device_eval_batch_size=64 \
|
17 |
+
--warmup_steps=5000 \
|
18 |
+
--learning_rate="3e-4"
|