hf-transformers-bot commited on
Commit
5f0a6ff
·
verified ·
1 Parent(s): 935e4e3

Update tiny models for VisionTextDualEncoderModel-vit-bert

Browse files
config.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "VisionTextDualEncoderModel"
4
+ ],
5
+ "dtype": "float32",
6
+ "logit_scale_init_value": 2.6592,
7
+ "model_type": "vision-text-dual-encoder",
8
+ "projection_dim": 512,
9
+ "text_config": {
10
+ "_name_or_path": "/tmp/tmplo0207hs/decoder/BertModel",
11
+ "add_cross_attention": false,
12
+ "architectures": [
13
+ "BertModel"
14
+ ],
15
+ "attention_probs_dropout_prob": 0.1,
16
+ "bos_token_id": null,
17
+ "chunk_size_feed_forward": 0,
18
+ "classifier_dropout": null,
19
+ "dtype": "float32",
20
+ "eos_token_id": null,
21
+ "hidden_act": "gelu",
22
+ "hidden_dropout_prob": 0.1,
23
+ "hidden_size": 32,
24
+ "id2label": {
25
+ "0": "LABEL_0",
26
+ "1": "LABEL_1"
27
+ },
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 37,
30
+ "is_decoder": false,
31
+ "is_encoder_decoder": false,
32
+ "label2id": {
33
+ "LABEL_0": 0,
34
+ "LABEL_1": 1
35
+ },
36
+ "layer_norm_eps": 1e-12,
37
+ "max_position_embeddings": 512,
38
+ "model_type": "bert",
39
+ "num_attention_heads": 4,
40
+ "num_hidden_layers": 2,
41
+ "output_attentions": false,
42
+ "output_hidden_states": false,
43
+ "pad_token_id": 0,
44
+ "problem_type": null,
45
+ "return_dict": true,
46
+ "tie_word_embeddings": true,
47
+ "type_vocab_size": 16,
48
+ "use_cache": true,
49
+ "vocab_size": 30522
50
+ },
51
+ "transformers_version": "5.16.0.dev0",
52
+ "vision_config": {
53
+ "_name_or_path": "/tmp/tmplo0207hs/encoder/ViTModel",
54
+ "architectures": [
55
+ "ViTModel"
56
+ ],
57
+ "attention_probs_dropout_prob": 0.1,
58
+ "chunk_size_feed_forward": 0,
59
+ "dtype": "float32",
60
+ "encoder_stride": 2,
61
+ "hidden_act": "gelu",
62
+ "hidden_dropout_prob": 0.1,
63
+ "hidden_size": 32,
64
+ "id2label": {
65
+ "0": "LABEL_0",
66
+ "1": "LABEL_1"
67
+ },
68
+ "image_size": 30,
69
+ "initializer_range": 0.02,
70
+ "intermediate_size": 37,
71
+ "is_decoder": false,
72
+ "is_encoder_decoder": false,
73
+ "label2id": {
74
+ "LABEL_0": 0,
75
+ "LABEL_1": 1
76
+ },
77
+ "layer_norm_eps": 1e-12,
78
+ "model_type": "vit",
79
+ "num_attention_heads": 4,
80
+ "num_channels": 3,
81
+ "num_hidden_layers": 2,
82
+ "output_attentions": false,
83
+ "output_hidden_states": false,
84
+ "patch_size": 2,
85
+ "pooler_act": "tanh",
86
+ "pooler_output_size": 32,
87
+ "problem_type": null,
88
+ "qkv_bias": true,
89
+ "return_dict": true
90
+ }
91
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f351e91ae0f6940edef0e01bc15937bbbb600053ed0cddedacb216bbe3e474d
3
+ size 4263268
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 30,
4
+ "width": 30
5
+ },
6
+ "do_normalize": true,
7
+ "do_rescale": true,
8
+ "do_resize": true,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_processor_type": "ViTImageProcessor",
15
+ "image_std": [
16
+ 0.5,
17
+ 0.5,
18
+ 0.5
19
+ ],
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "height": 30,
24
+ "width": 30
25
+ }
26
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "is_local": true,
6
+ "local_files_only": false,
7
+ "mask_token": "[MASK]",
8
+ "model_max_length": 512,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "strip_accents": null,
12
+ "tokenize_chinese_chars": true,
13
+ "tokenizer_class": "BertTokenizer",
14
+ "unk_token": "[UNK]"
15
+ }