michalk8 yaswanthgali commited on
Commit
e623fe7
·
verified ·
1 Parent(s): c2cd59a

Add HF compatible checkpoints (#6)

Browse files

- Update model (b115745955868fa9e30caa4fd8e841ea938fc8a1)


Co-authored-by: Yaswanth <yaswanthgali@users.noreply.huggingface.co>

config.json CHANGED
@@ -1,169 +1,57 @@
1
  {
2
  "architectures": [
3
- "AIMv2Model"
4
  ],
5
  "auto_map": {
6
  "AutoConfig": "configuration_aimv2.AIMv2Config",
7
  "AutoModel": "modeling_aimv2.AIMv2Model"
8
  },
9
  "init_temperature": 0.07,
 
10
  "max_logit_scale": 100.0,
11
  "model_type": "aimv2",
12
  "projection_dim": 768,
13
  "text_config": {
14
- "_attn_implementation_autoset": true,
15
- "_name_or_path": "",
16
- "add_cross_attention": false,
17
- "architectures": null,
18
  "attention_dropout": 0.0,
19
- "bad_words_ids": null,
20
- "begin_suppress_tokens": null,
21
- "bos_token_id": null,
22
- "chunk_size_feed_forward": 0,
23
- "cross_attention_hidden_size": null,
24
- "decoder_start_token_id": null,
25
- "diversity_penalty": 0.0,
26
- "do_sample": false,
27
- "early_stopping": false,
28
- "encoder_no_repeat_ngram_size": 0,
29
- "eos_token_id": 49407,
30
- "exponential_decay_length_penalty": null,
31
- "finetuning_task": null,
32
- "forced_bos_token_id": null,
33
- "forced_eos_token_id": null,
34
  "hidden_size": 768,
35
- "id2label": {
36
- "0": "LABEL_0",
37
- "1": "LABEL_1"
38
- },
39
  "intermediate_size": 2048,
40
  "is_causal": true,
41
- "is_decoder": false,
42
- "is_encoder_decoder": false,
43
- "label2id": {
44
- "LABEL_0": 0,
45
- "LABEL_1": 1
46
- },
47
- "length_penalty": 1.0,
48
  "max_context_length": 77,
49
- "max_length": 20,
50
- "min_length": 0,
51
- "model_type": "aimv2",
52
- "no_repeat_ngram_size": 0,
53
  "num_attention_heads": 6,
54
- "num_beam_groups": 1,
55
- "num_beams": 1,
56
  "num_hidden_layers": 12,
57
- "num_return_sequences": 1,
58
- "output_attentions": false,
59
- "output_hidden_states": false,
60
- "output_scores": false,
61
- "pad_token_id": null,
62
- "prefix": null,
63
- "problem_type": null,
64
  "projection_dropout": 0.0,
65
- "pruned_heads": {},
66
  "qkv_bias": false,
67
- "remove_invalid_values": false,
68
- "repetition_penalty": 1.0,
69
- "return_dict": true,
70
- "return_dict_in_generate": false,
71
  "rms_norm_eps": 1e-05,
72
- "sep_token_id": null,
73
- "suppress_tokens": null,
74
- "task_specific_params": null,
75
- "temperature": 1.0,
76
- "tf_legacy_loss": false,
77
- "tie_encoder_decoder": false,
78
- "tie_word_embeddings": true,
79
- "tokenizer_class": null,
80
- "top_k": 50,
81
- "top_p": 1.0,
82
- "torch_dtype": null,
83
- "torchscript": false,
84
- "typical_p": 1.0,
85
- "use_bfloat16": false,
86
  "use_bias": false,
87
  "vocab_size": 49408
88
  },
89
  "torch_dtype": "float32",
90
- "transformers_version": "4.46.3",
91
  "vision_config": {
92
- "_attn_implementation_autoset": true,
93
- "_name_or_path": "",
94
- "add_cross_attention": false,
95
- "architectures": null,
96
  "attention_dropout": 0.0,
97
- "bad_words_ids": null,
98
- "begin_suppress_tokens": null,
99
- "bos_token_id": null,
100
- "chunk_size_feed_forward": 0,
101
- "cross_attention_hidden_size": null,
102
- "decoder_start_token_id": null,
103
- "diversity_penalty": 0.0,
104
- "do_sample": false,
105
- "early_stopping": false,
106
- "encoder_no_repeat_ngram_size": 0,
107
- "eos_token_id": null,
108
- "exponential_decay_length_penalty": null,
109
- "finetuning_task": null,
110
- "forced_bos_token_id": null,
111
- "forced_eos_token_id": null,
112
  "hidden_size": 1024,
113
- "id2label": {
114
- "0": "LABEL_0",
115
- "1": "LABEL_1"
116
- },
117
  "image_size": 224,
 
118
  "intermediate_size": 2816,
119
  "is_causal": false,
120
- "is_decoder": false,
121
- "is_encoder_decoder": false,
122
- "label2id": {
123
- "LABEL_0": 0,
124
- "LABEL_1": 1
125
- },
126
- "length_penalty": 1.0,
127
- "max_length": 20,
128
- "min_length": 0,
129
- "model_type": "aimv2",
130
- "no_repeat_ngram_size": 0,
131
  "num_attention_heads": 8,
132
- "num_beam_groups": 1,
133
- "num_beams": 1,
134
  "num_channels": 3,
135
  "num_hidden_layers": 24,
136
  "num_queries": 1,
137
- "num_return_sequences": 1,
138
- "output_attentions": false,
139
- "output_hidden_states": false,
140
- "output_scores": false,
141
- "pad_token_id": null,
142
  "patch_size": 14,
143
- "prefix": null,
144
- "problem_type": null,
145
  "projection_dropout": 0.0,
146
- "pruned_heads": {},
147
  "qkv_bias": false,
148
- "remove_invalid_values": false,
149
- "repetition_penalty": 1.0,
150
- "return_dict": true,
151
- "return_dict_in_generate": false,
152
  "rms_norm_eps": 1e-05,
153
- "sep_token_id": null,
154
- "suppress_tokens": null,
155
- "task_specific_params": null,
156
- "temperature": 1.0,
157
- "tf_legacy_loss": false,
158
- "tie_encoder_decoder": false,
159
- "tie_word_embeddings": true,
160
- "tokenizer_class": null,
161
- "top_k": 50,
162
- "top_p": 1.0,
163
- "torch_dtype": null,
164
- "torchscript": false,
165
- "typical_p": 1.0,
166
- "use_bfloat16": false,
167
- "use_bias": false
168
  }
169
  }
 
1
  {
2
  "architectures": [
3
+ "Aimv2Model"
4
  ],
5
  "auto_map": {
6
  "AutoConfig": "configuration_aimv2.AIMv2Config",
7
  "AutoModel": "modeling_aimv2.AIMv2Model"
8
  },
9
  "init_temperature": 0.07,
10
+ "logit_scale_init_value": 2.6592,
11
  "max_logit_scale": 100.0,
12
  "model_type": "aimv2",
13
  "projection_dim": 768,
14
  "text_config": {
 
 
 
 
15
  "attention_dropout": 0.0,
16
+ "hidden_act": "silu",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  "hidden_size": 768,
18
+ "initializer_range": 0.02,
 
 
 
19
  "intermediate_size": 2048,
20
  "is_causal": true,
 
 
 
 
 
 
 
21
  "max_context_length": 77,
22
+ "max_position_embeddings": 77,
23
+ "mlp_bias": false,
24
+ "model_type": "aimv2_text_model",
 
25
  "num_attention_heads": 6,
 
 
26
  "num_hidden_layers": 12,
 
 
 
 
 
 
 
27
  "projection_dropout": 0.0,
 
28
  "qkv_bias": false,
 
 
 
 
29
  "rms_norm_eps": 1e-05,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  "use_bias": false,
31
  "vocab_size": 49408
32
  },
33
  "torch_dtype": "float32",
34
+ "transformers_version": "4.54.0.dev0",
35
  "vision_config": {
 
 
 
 
36
  "attention_dropout": 0.0,
37
+ "hidden_act": "silu",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  "hidden_size": 1024,
 
 
 
 
39
  "image_size": 224,
40
+ "initializer_range": 0.02,
41
  "intermediate_size": 2816,
42
  "is_causal": false,
43
+ "is_native": false,
44
+ "mlp_bias": false,
45
+ "model_type": "aimv2_vision_model",
 
 
 
 
 
 
 
 
46
  "num_attention_heads": 8,
 
 
47
  "num_channels": 3,
48
  "num_hidden_layers": 24,
49
  "num_queries": 1,
 
 
 
 
 
50
  "patch_size": 14,
 
 
51
  "projection_dropout": 0.0,
 
52
  "qkv_bias": false,
 
 
 
 
53
  "rms_norm_eps": 1e-05,
54
+ "use_bias": false,
55
+ "use_head": true
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  }
57
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:72c8b9fe2376ac8a5b7d15ea3175325447e819763c2372cf88596260bbcd9583
3
- size 1746752340
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4af6459935fb16d0bcaec436e7efdf69d3a235e89fe4b7206bbd22d284df4528
3
+ size 1746763140
preprocessor_config.json CHANGED
@@ -3,6 +3,10 @@
3
  "height": 224,
4
  "width": 224
5
  },
 
 
 
 
6
  "do_center_crop": true,
7
  "do_convert_rgb": true,
8
  "do_normalize": true,
@@ -13,15 +17,17 @@
13
  0.4578275,
14
  0.40821073
15
  ],
16
- "image_processor_type": "CLIPImageProcessor",
17
  "image_std": [
18
  0.26862954,
19
  0.26130258,
20
  0.27577711
21
  ],
 
22
  "processor_class": "CLIPProcessor",
23
  "resample": 3,
24
  "rescale_factor": 0.00392156862745098,
 
25
  "size": {
26
  "shortest_edge": 224
27
  }
 
3
  "height": 224,
4
  "width": 224
5
  },
6
+ "data_format": "channels_first",
7
+ "default_to_square": false,
8
+ "device": null,
9
+ "disable_grouping": null,
10
  "do_center_crop": true,
11
  "do_convert_rgb": true,
12
  "do_normalize": true,
 
17
  0.4578275,
18
  0.40821073
19
  ],
20
+ "image_processor_type": "CLIPImageProcessorFast",
21
  "image_std": [
22
  0.26862954,
23
  0.26130258,
24
  0.27577711
25
  ],
26
+ "input_data_format": null,
27
  "processor_class": "CLIPProcessor",
28
  "resample": 3,
29
  "rescale_factor": 0.00392156862745098,
30
+ "return_tensors": null,
31
  "size": {
32
  "shortest_edge": 224
33
  }
special_tokens_map.json CHANGED
@@ -13,7 +13,13 @@
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
- "pad_token": "<end_of_text>",
 
 
 
 
 
 
17
  "unk_token": {
18
  "content": "<end_of_text>",
19
  "lstrip": false,
 
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
+ "pad_token": {
17
+ "content": "<end_of_text>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
  "unk_token": {
24
  "content": "<end_of_text>",
25
  "lstrip": false,
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -21,9 +21,11 @@
21
  "clean_up_tokenization_spaces": false,
22
  "eos_token": "<end_of_text>",
23
  "errors": "replace",
 
24
  "model_max_length": 77,
25
  "pad_token": "<end_of_text>",
26
  "processor_class": "CLIPProcessor",
27
  "tokenizer_class": "CLIPTokenizer",
28
- "unk_token": "<end_of_text>"
 
29
  }
 
21
  "clean_up_tokenization_spaces": false,
22
  "eos_token": "<end_of_text>",
23
  "errors": "replace",
24
+ "extra_special_tokens": {},
25
  "model_max_length": 77,
26
  "pad_token": "<end_of_text>",
27
  "processor_class": "CLIPProcessor",
28
  "tokenizer_class": "CLIPTokenizer",
29
+ "unk_token": "<end_of_text>",
30
+ "use_fast": true
31
  }
vocab.json CHANGED
The diff for this file is too large to render. See raw diff