hf-transformers-bot commited on
Commit
b43cc3d
·
verified ·
1 Parent(s): 42e69fc

Update tiny models for BlipForQuestionAnswering

Browse files
config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BlipForQuestionAnswering"
4
+ ],
5
+ "dtype": "float32",
6
+ "image_text_hidden_size": 256,
7
+ "initializer_factor": 1.0,
8
+ "initializer_range": 0.02,
9
+ "label_smoothing": 0.0,
10
+ "logit_scale_init_value": 2.6592,
11
+ "model_type": "blip",
12
+ "projection_dim": 64,
13
+ "text_config": {
14
+ "attention_dropout": 0.1,
15
+ "attention_probs_dropout_prob": 0.0,
16
+ "bos_token_id": 0,
17
+ "dropout": 0.1,
18
+ "encoder_hidden_size": 32,
19
+ "eos_token_id": 2,
20
+ "hidden_act": "gelu",
21
+ "hidden_dropout_prob": 0.0,
22
+ "hidden_size": 32,
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 37,
25
+ "is_decoder": true,
26
+ "label_smoothing": 0.0,
27
+ "layer_norm_eps": 1e-12,
28
+ "max_position_embeddings": 512,
29
+ "model_type": "blip_text_model",
30
+ "num_attention_heads": 4,
31
+ "num_hidden_layers": 2,
32
+ "pad_token_id": 0,
33
+ "projection_dim": 32,
34
+ "sep_token_id": 102,
35
+ "tie_word_embeddings": true,
36
+ "use_cache": true,
37
+ "vocab_size": 30522
38
+ },
39
+ "tie_word_embeddings": true,
40
+ "transformers_version": "5.16.0.dev0",
41
+ "vision_config": {
42
+ "attention_dropout": 0.1,
43
+ "dropout": 0.1,
44
+ "hidden_act": "gelu",
45
+ "hidden_size": 32,
46
+ "image_size": 30,
47
+ "initializer_range": 1e-10,
48
+ "intermediate_size": 37,
49
+ "layer_norm_eps": 1e-05,
50
+ "model_type": "blip_vision_model",
51
+ "num_attention_heads": 4,
52
+ "num_channels": 3,
53
+ "num_hidden_layers": 2,
54
+ "patch_size": 2,
55
+ "projection_dim": 32
56
+ }
57
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.16.0.dev0",
9
+ "use_cache": true
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93e05c8b95b2214999578fdb10b5e8cdf3edb800e2fbbfedda0dfe1aa1abdd3f
3
+ size 8352216
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 30,
4
+ "width": 30
5
+ },
6
+ "do_convert_rgb": true,
7
+ "do_normalize": true,
8
+ "do_rescale": true,
9
+ "do_resize": true,
10
+ "image_mean": [
11
+ 0.48145466,
12
+ 0.4578275,
13
+ 0.40821073
14
+ ],
15
+ "image_processor_type": "BlipImageProcessor",
16
+ "image_std": [
17
+ 0.26862954,
18
+ 0.26130258,
19
+ 0.27577711
20
+ ],
21
+ "resample": 3,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "size": {
24
+ "height": 30,
25
+ "width": 30
26
+ }
27
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": true,
6
+ "is_local": true,
7
+ "local_files_only": false,
8
+ "mask_token": "[MASK]",
9
+ "model_input_names": [
10
+ "input_ids",
11
+ "attention_mask"
12
+ ],
13
+ "model_max_length": 512,
14
+ "never_split": null,
15
+ "pad_token": "[PAD]",
16
+ "processor_class": "BlipProcessor",
17
+ "sep_token": "[SEP]",
18
+ "strip_accents": null,
19
+ "tokenize_chinese_chars": true,
20
+ "tokenizer_class": "BertTokenizer",
21
+ "unk_token": "[UNK]"
22
+ }