Safetensors
custom_code
Jayden Park commited on
Commit
1780d21
·
verified ·
1 Parent(s): ae2d5ce

Upload model

Browse files
Files changed (3) hide show
  1. README.md +199 -0
  2. config.json +353 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,353 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "align_transformer_config": {
3
+ "_name_or_path": "",
4
+ "add_cross_attention": false,
5
+ "apply_layernorm": true,
6
+ "architectures": [
7
+ "AlignTransformer"
8
+ ],
9
+ "attention_probs_dropout_prob": 0.0,
10
+ "bad_words_ids": null,
11
+ "begin_suppress_tokens": null,
12
+ "bos_token_id": null,
13
+ "chunk_size_feed_forward": 0,
14
+ "cross_attention_hidden_size": null,
15
+ "decoder_start_token_id": null,
16
+ "diversity_penalty": 0.0,
17
+ "do_sample": false,
18
+ "drop_path_rate": 0.0,
19
+ "early_stopping": false,
20
+ "encoder_no_repeat_ngram_size": 0,
21
+ "eos_token_id": null,
22
+ "exponential_decay_length_penalty": null,
23
+ "finetuning_task": null,
24
+ "forced_bos_token_id": null,
25
+ "forced_eos_token_id": null,
26
+ "hidden_act": "gelu",
27
+ "hidden_dropout_prob": 0.0,
28
+ "hidden_size": 768,
29
+ "id2label": {
30
+ "0": "LABEL_0",
31
+ "1": "LABEL_1"
32
+ },
33
+ "image_size": 224,
34
+ "initializer_range": 0.02,
35
+ "is_decoder": false,
36
+ "is_encoder_decoder": false,
37
+ "label2id": {
38
+ "LABEL_0": 0,
39
+ "LABEL_1": 1
40
+ },
41
+ "layer_norm_eps": 1e-06,
42
+ "layerscale_value": 1.0,
43
+ "length_penalty": 1.0,
44
+ "max_length": 20,
45
+ "min_length": 0,
46
+ "mlp_ratio": 4,
47
+ "model_type": "",
48
+ "no_repeat_ngram_size": 0,
49
+ "num_attention_heads": 12,
50
+ "num_beam_groups": 1,
51
+ "num_beams": 1,
52
+ "num_channels": 3,
53
+ "num_hidden_layers": 2,
54
+ "num_return_sequences": 1,
55
+ "out_features": [
56
+ "stage2"
57
+ ],
58
+ "out_indices": [
59
+ 2
60
+ ],
61
+ "output_attentions": false,
62
+ "output_hidden_states": false,
63
+ "output_scores": false,
64
+ "pad_token_id": null,
65
+ "patch_size": 16,
66
+ "prefix": null,
67
+ "problem_type": null,
68
+ "projector_config": null,
69
+ "pruned_heads": {},
70
+ "qkv_bias": true,
71
+ "remove_invalid_values": false,
72
+ "repetition_penalty": 1.0,
73
+ "reshape_hidden_states": true,
74
+ "return_dict": true,
75
+ "return_dict_in_generate": false,
76
+ "sep_token_id": null,
77
+ "stage_names": [
78
+ "stem",
79
+ "stage1",
80
+ "stage2"
81
+ ],
82
+ "suppress_tokens": null,
83
+ "task_specific_params": null,
84
+ "temperature": 1.0,
85
+ "tf_legacy_loss": false,
86
+ "tie_encoder_decoder": false,
87
+ "tie_word_embeddings": true,
88
+ "tokenizer_class": null,
89
+ "top_k": 50,
90
+ "top_p": 1.0,
91
+ "torch_dtype": "float32",
92
+ "torchscript": false,
93
+ "typical_p": 1.0,
94
+ "use_bfloat16": false,
95
+ "use_layer_norm": false,
96
+ "use_swiglu_ffn": false
97
+ },
98
+ "architectures": [
99
+ "CxrAlignModel"
100
+ ],
101
+ "compute_logits_type": "key_phrase_alignment",
102
+ "kwargs": {
103
+ "compute_logits_type": "key_phrase_alignment",
104
+ "loss": {
105
+ "KeyPhraseAlignmentLoss": {
106
+ "attn_temperature": null,
107
+ "compute_i2t_loss": false,
108
+ "hidden_dim": 768,
109
+ "loss_temperature": 0.07,
110
+ "mpnce_col_sum": false,
111
+ "mpnce_row_sum": false,
112
+ "sim_op": "cos",
113
+ "text_features_l2_norm": false,
114
+ "use_attn_layers": false
115
+ },
116
+ "MPClipLoss": null,
117
+ "NegKeyPhraseAlignmentLoss": {
118
+ "compute_i2t_loss": false,
119
+ "hidden_dim": 768
120
+ },
121
+ "OpenClipLoss": {
122
+ "local_loss": false
123
+ },
124
+ "OpenSigLipLoss": {
125
+ "dist_impl": "gather"
126
+ },
127
+ "apply": [
128
+ "KeyPhraseAlignmentLoss"
129
+ ],
130
+ "ratio": [
131
+ 1.0
132
+ ]
133
+ },
134
+ "module_to_update": [
135
+ "align_transformer",
136
+ "text_model",
137
+ "loss_fns"
138
+ ],
139
+ "pretrained_dir": "/data/advanced_tech/pretrained"
140
+ },
141
+ "loss": {
142
+ "KeyPhraseAlignmentLoss": {
143
+ "attn_temperature": null,
144
+ "compute_i2t_loss": false,
145
+ "hidden_dim": 768,
146
+ "loss_temperature": 0.07,
147
+ "mpnce_col_sum": false,
148
+ "mpnce_row_sum": false,
149
+ "sim_op": "cos",
150
+ "text_features_l2_norm": false,
151
+ "use_attn_layers": false
152
+ },
153
+ "MPClipLoss": null,
154
+ "NegKeyPhraseAlignmentLoss": {
155
+ "compute_i2t_loss": false,
156
+ "hidden_dim": 768
157
+ },
158
+ "OpenClipLoss": {
159
+ "local_loss": false
160
+ },
161
+ "OpenSigLipLoss": {
162
+ "dist_impl": "gather"
163
+ },
164
+ "apply": [
165
+ "KeyPhraseAlignmentLoss"
166
+ ],
167
+ "ratio": [
168
+ 1.0
169
+ ]
170
+ },
171
+ "module_to_update": [
172
+ "align_transformer",
173
+ "text_model",
174
+ "loss_fns"
175
+ ],
176
+ "pretrained_dir": "/data/advanced_tech/pretrained",
177
+ "text_config": {
178
+ "_name_or_path": "",
179
+ "add_cross_attention": false,
180
+ "architectures": null,
181
+ "bad_words_ids": null,
182
+ "begin_suppress_tokens": null,
183
+ "bos_token_id": null,
184
+ "chunk_size_feed_forward": 0,
185
+ "cross_attention_hidden_size": null,
186
+ "decoder_start_token_id": null,
187
+ "diversity_penalty": 0.0,
188
+ "do_sample": false,
189
+ "early_stopping": false,
190
+ "encoder_no_repeat_ngram_size": 0,
191
+ "eos_token_id": null,
192
+ "exponential_decay_length_penalty": null,
193
+ "finetuning_task": null,
194
+ "forced_bos_token_id": null,
195
+ "forced_eos_token_id": null,
196
+ "id2label": {
197
+ "0": "LABEL_0",
198
+ "1": "LABEL_1"
199
+ },
200
+ "is_decoder": false,
201
+ "is_encoder_decoder": false,
202
+ "label2id": {
203
+ "LABEL_0": 0,
204
+ "LABEL_1": 1
205
+ },
206
+ "length_penalty": 1.0,
207
+ "max_length": 20,
208
+ "min_length": 0,
209
+ "model_type": "",
210
+ "no_repeat_ngram_size": 0,
211
+ "num_beam_groups": 1,
212
+ "num_beams": 1,
213
+ "num_return_sequences": 1,
214
+ "output_attentions": false,
215
+ "output_hidden_states": false,
216
+ "output_scores": false,
217
+ "pad_token_id": null,
218
+ "prefix": null,
219
+ "pretrained_name_or_path": "sentence-transformers/all-mpnet-base-v2",
220
+ "pretrained_tokenizer_name_or_path": "sentence-transformers/all-mpnet-base-v2",
221
+ "problem_type": null,
222
+ "pruned_heads": {},
223
+ "remove_invalid_values": false,
224
+ "repetition_penalty": 1.0,
225
+ "return_dict": true,
226
+ "return_dict_in_generate": false,
227
+ "sep_token_id": null,
228
+ "suppress_tokens": null,
229
+ "task_specific_params": null,
230
+ "temperature": 1.0,
231
+ "tf_legacy_loss": false,
232
+ "tie_encoder_decoder": false,
233
+ "tie_word_embeddings": true,
234
+ "tokenizer_class": null,
235
+ "top_k": 50,
236
+ "top_p": 1.0,
237
+ "torch_dtype": null,
238
+ "torchscript": false,
239
+ "typical_p": 1.0,
240
+ "use_bfloat16": false,
241
+ "use_cls_token": false,
242
+ "use_text_projection": false
243
+ },
244
+ "torch_dtype": "float32",
245
+ "transformers_version": "4.39.3",
246
+ "vision_config": {
247
+ "_name_or_path": "StanfordAIMI/dinov2-base-xray-224",
248
+ "add_cross_attention": false,
249
+ "apply_layernorm": true,
250
+ "architectures": [
251
+ "Dinov2Model"
252
+ ],
253
+ "attention_probs_dropout_prob": 0.0,
254
+ "bad_words_ids": null,
255
+ "begin_suppress_tokens": null,
256
+ "bos_token_id": null,
257
+ "chunk_size_feed_forward": 0,
258
+ "cross_attention_hidden_size": null,
259
+ "decoder_start_token_id": null,
260
+ "diversity_penalty": 0.0,
261
+ "do_sample": false,
262
+ "drop_path_rate": 0.0,
263
+ "early_stopping": false,
264
+ "encoder_no_repeat_ngram_size": 0,
265
+ "eos_token_id": null,
266
+ "exponential_decay_length_penalty": null,
267
+ "finetuning_task": null,
268
+ "forced_bos_token_id": null,
269
+ "forced_eos_token_id": null,
270
+ "hidden_act": "gelu",
271
+ "hidden_dropout_prob": 0.0,
272
+ "hidden_size": 768,
273
+ "id2label": {
274
+ "0": "LABEL_0",
275
+ "1": "LABEL_1"
276
+ },
277
+ "image_size": 224,
278
+ "img_size": 518,
279
+ "initializer_range": 0.02,
280
+ "is_decoder": false,
281
+ "is_encoder_decoder": false,
282
+ "label2id": {
283
+ "LABEL_0": 0,
284
+ "LABEL_1": 1
285
+ },
286
+ "layer_norm_eps": 1e-06,
287
+ "layerscale_value": 1.0,
288
+ "length_penalty": 1.0,
289
+ "max_length": 20,
290
+ "min_length": 0,
291
+ "mlp_ratio": 4,
292
+ "model_type": "",
293
+ "no_repeat_ngram_size": 0,
294
+ "num_attention_heads": 12,
295
+ "num_beam_groups": 1,
296
+ "num_beams": 1,
297
+ "num_channels": 3,
298
+ "num_hidden_layers": 12,
299
+ "num_return_sequences": 1,
300
+ "out_features": [
301
+ "stage12"
302
+ ],
303
+ "out_indices": [
304
+ 12
305
+ ],
306
+ "output_attentions": false,
307
+ "output_hidden_states": false,
308
+ "output_scores": false,
309
+ "pad_token_id": null,
310
+ "patch_size": 14,
311
+ "prefix": null,
312
+ "pretrained_dir": "/data/advanced_tech/pretrained",
313
+ "pretrained_name_or_path": "StanfordAIMI/dinov2-base-xray-224",
314
+ "problem_type": null,
315
+ "pruned_heads": {},
316
+ "qkv_bias": true,
317
+ "remove_invalid_values": false,
318
+ "repetition_penalty": 1.0,
319
+ "reshape_hidden_states": true,
320
+ "return_dict": true,
321
+ "return_dict_in_generate": false,
322
+ "sep_token_id": null,
323
+ "stage_names": [
324
+ "stem",
325
+ "stage1",
326
+ "stage2",
327
+ "stage3",
328
+ "stage4",
329
+ "stage5",
330
+ "stage6",
331
+ "stage7",
332
+ "stage8",
333
+ "stage9",
334
+ "stage10",
335
+ "stage11",
336
+ "stage12"
337
+ ],
338
+ "suppress_tokens": null,
339
+ "task_specific_params": null,
340
+ "temperature": 1.0,
341
+ "tf_legacy_loss": false,
342
+ "tie_encoder_decoder": false,
343
+ "tie_word_embeddings": true,
344
+ "tokenizer_class": null,
345
+ "top_k": 50,
346
+ "top_p": 1.0,
347
+ "torch_dtype": "float32",
348
+ "torchscript": false,
349
+ "typical_p": 1.0,
350
+ "use_bfloat16": false,
351
+ "use_swiglu_ffn": false
352
+ }
353
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f8edcce8dbc42db753b0b110ab7eb7d5814825733b796f930973c46ee95c622
3
+ size 837626300