Convert to HF Vision Model format
Browse files- config.json +75 -153
- pytorch_model.bin +2 -2
config.json
CHANGED
@@ -1,157 +1,79 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
|
4 |
-
|
5 |
-
"
|
6 |
-
"
|
7 |
-
"
|
8 |
-
"
|
9 |
-
"
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
"
|
46 |
-
"
|
47 |
-
"model_type": "clip_text_model",
|
48 |
-
"no_repeat_ngram_size": 0,
|
49 |
-
"num_attention_heads": 8,
|
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": 1,
|
58 |
-
"prefix": null,
|
59 |
-
"problem_type": null,
|
60 |
-
"projection_dim" : 512,
|
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 |
-
"torch_dtype": null,
|
75 |
-
"torchscript": false,
|
76 |
-
"transformers_version": "4.12.0.dev0",
|
77 |
-
"use_bfloat16": false,
|
78 |
-
"vocab_size": 49408
|
79 |
},
|
80 |
-
"
|
81 |
-
|
82 |
-
|
83 |
-
"vision_config": {
|
84 |
-
"_name_or_path": "",
|
85 |
-
"add_cross_attention": false,
|
86 |
-
"architectures": null,
|
87 |
-
"attention_dropout": 0.0,
|
88 |
-
"bad_words_ids": null,
|
89 |
-
"bos_token_id": null,
|
90 |
-
"chunk_size_feed_forward": 0,
|
91 |
-
"decoder_start_token_id": null,
|
92 |
-
"diversity_penalty": 0.0,
|
93 |
-
"do_sample": false,
|
94 |
-
"dropout": 0.0,
|
95 |
-
"early_stopping": false,
|
96 |
-
"encoder_no_repeat_ngram_size": 0,
|
97 |
-
"eos_token_id": null,
|
98 |
-
"finetuning_task": null,
|
99 |
-
"forced_bos_token_id": null,
|
100 |
-
"forced_eos_token_id": null,
|
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": 16,
|
133 |
-
"prefix": null,
|
134 |
-
"problem_type": null,
|
135 |
-
"projection_dim" : 512,
|
136 |
-
"pruned_heads": {},
|
137 |
-
"remove_invalid_values": false,
|
138 |
-
"repetition_penalty": 1.0,
|
139 |
-
"return_dict": true,
|
140 |
-
"return_dict_in_generate": false,
|
141 |
-
"sep_token_id": null,
|
142 |
-
"task_specific_params": null,
|
143 |
-
"temperature": 1.0,
|
144 |
-
"tie_encoder_decoder": false,
|
145 |
-
"tie_word_embeddings": true,
|
146 |
-
"tokenizer_class": null,
|
147 |
-
"top_k": 50,
|
148 |
-
"top_p": 1.0,
|
149 |
-
"torch_dtype": null,
|
150 |
-
"torchscript": false,
|
151 |
-
"transformers_version": "4.12.0.dev0",
|
152 |
-
"use_bfloat16": false
|
153 |
},
|
154 |
-
"
|
155 |
-
|
156 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
}
|
|
|
1 |
{
|
2 |
+
"return_dict": true,
|
3 |
+
"output_hidden_states": false,
|
4 |
+
"output_attentions": false,
|
5 |
+
"torchscript": false,
|
6 |
+
"torch_dtype": null,
|
7 |
+
"use_bfloat16": false,
|
8 |
+
"tf_legacy_loss": false,
|
9 |
+
"pruned_heads": {},
|
10 |
+
"tie_word_embeddings": true,
|
11 |
+
"chunk_size_feed_forward": 0,
|
12 |
+
"is_encoder_decoder": false,
|
13 |
+
"is_decoder": false,
|
14 |
+
"cross_attention_hidden_size": null,
|
15 |
+
"add_cross_attention": false,
|
16 |
+
"tie_encoder_decoder": false,
|
17 |
+
"max_length": 20,
|
18 |
+
"min_length": 0,
|
19 |
+
"do_sample": false,
|
20 |
+
"early_stopping": false,
|
21 |
+
"num_beams": 1,
|
22 |
+
"num_beam_groups": 1,
|
23 |
+
"diversity_penalty": 0.0,
|
24 |
+
"temperature": 1.0,
|
25 |
+
"top_k": 50,
|
26 |
+
"top_p": 1.0,
|
27 |
+
"typical_p": 1.0,
|
28 |
+
"repetition_penalty": 1.0,
|
29 |
+
"length_penalty": 1.0,
|
30 |
+
"no_repeat_ngram_size": 0,
|
31 |
+
"encoder_no_repeat_ngram_size": 0,
|
32 |
+
"bad_words_ids": null,
|
33 |
+
"num_return_sequences": 1,
|
34 |
+
"output_scores": false,
|
35 |
+
"return_dict_in_generate": false,
|
36 |
+
"forced_bos_token_id": null,
|
37 |
+
"forced_eos_token_id": null,
|
38 |
+
"remove_invalid_values": false,
|
39 |
+
"exponential_decay_length_penalty": null,
|
40 |
+
"suppress_tokens": null,
|
41 |
+
"begin_suppress_tokens": null,
|
42 |
+
"architectures": null,
|
43 |
+
"finetuning_task": null,
|
44 |
+
"id2label": {
|
45 |
+
"0": "LABEL_0",
|
46 |
+
"1": "LABEL_1"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
},
|
48 |
+
"label2id": {
|
49 |
+
"LABEL_0": 0,
|
50 |
+
"LABEL_1": 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
},
|
52 |
+
"tokenizer_class": null,
|
53 |
+
"prefix": null,
|
54 |
+
"bos_token_id": null,
|
55 |
+
"pad_token_id": null,
|
56 |
+
"eos_token_id": null,
|
57 |
+
"sep_token_id": null,
|
58 |
+
"decoder_start_token_id": null,
|
59 |
+
"task_specific_params": null,
|
60 |
+
"problem_type": null,
|
61 |
+
"_name_or_path": "",
|
62 |
+
"_attn_implementation_autoset": false,
|
63 |
+
"transformers_version": "4.46.3",
|
64 |
+
"dropout": 0.0,
|
65 |
+
"hidden_size": 768,
|
66 |
+
"intermediate_size": 3072,
|
67 |
+
"projection_dim": 512,
|
68 |
+
"num_hidden_layers": 12,
|
69 |
+
"num_attention_heads": 12,
|
70 |
+
"num_channels": 3,
|
71 |
+
"patch_size": 16,
|
72 |
+
"image_size": 224,
|
73 |
+
"initializer_range": 0.02,
|
74 |
+
"initializer_factor": 1.0,
|
75 |
+
"attention_dropout": 0.0,
|
76 |
+
"layer_norm_eps": 1e-05,
|
77 |
+
"hidden_act": "quick_gelu",
|
78 |
+
"model_type": "clip_vision_model"
|
79 |
}
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae5fcc554e02f5f52b7c0e0af7e6662a67b2562d9cd2832ac2d6f55035aaa989
|
3 |
+
size 343253926
|