hf-transformers-bot commited on
Commit
8a4ed83
·
verified ·
1 Parent(s): f692adf

Update tiny models for InstructBlipVideoModel

Browse files
config.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "InstructBlipVideoModel"
4
+ ],
5
+ "dtype": "float32",
6
+ "initializer_factor": 1.0,
7
+ "initializer_range": 0.02,
8
+ "model_type": "instructblipvideo",
9
+ "num_query_tokens": 10,
10
+ "qformer_config": {
11
+ "attention_dropout": 0.1,
12
+ "attention_probs_dropout_prob": 0.1,
13
+ "bos_token_id": 0,
14
+ "cross_attention_frequency": 2,
15
+ "dropout": 0.1,
16
+ "encoder_hidden_size": 32,
17
+ "hidden_act": "gelu",
18
+ "hidden_dropout_prob": 0.1,
19
+ "hidden_size": 32,
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 37,
22
+ "layer_norm_eps": 1e-12,
23
+ "max_position_embeddings": 512,
24
+ "model_type": "instructblipvideo_qformer",
25
+ "num_attention_heads": 4,
26
+ "num_hidden_layers": 2,
27
+ "pad_token_id": 0,
28
+ "projection_dim": 32,
29
+ "vocab_size": 99
30
+ },
31
+ "text_config": {
32
+ "_remove_final_layer_norm": false,
33
+ "activation_function": "relu",
34
+ "attention_dropout": 0.1,
35
+ "bos_token_id": 0,
36
+ "do_layer_norm_before": true,
37
+ "dropout": 0.1,
38
+ "embed_dim": 16,
39
+ "enable_bias": true,
40
+ "eos_token_id": 1,
41
+ "ffn_dim": 4,
42
+ "hidden_size": 16,
43
+ "init_std": 0.02,
44
+ "layer_norm_elementwise_affine": true,
45
+ "layerdrop": 0.0,
46
+ "max_position_embeddings": 200,
47
+ "model_type": "opt",
48
+ "num_attention_heads": 4,
49
+ "num_hidden_layers": 2,
50
+ "pad_token_id": 0,
51
+ "tie_word_embeddings": true,
52
+ "use_cache": true,
53
+ "vocab_size": 32102,
54
+ "word_embed_proj_dim": 16
55
+ },
56
+ "transformers_version": "5.16.0.dev0",
57
+ "use_decoder_only_language_model": true,
58
+ "video_token_index": 4,
59
+ "vision_config": {
60
+ "attention_dropout": 0.1,
61
+ "dropout": 0.1,
62
+ "hidden_act": "gelu",
63
+ "hidden_size": 32,
64
+ "image_size": 30,
65
+ "initializer_range": 1e-10,
66
+ "intermediate_size": 37,
67
+ "layer_norm_eps": 1e-06,
68
+ "model_type": "instructblipvideo_vision_model",
69
+ "num_attention_heads": 4,
70
+ "num_channels": 3,
71
+ "num_hidden_layers": 2,
72
+ "patch_size": 2,
73
+ "projection_dim": 32,
74
+ "qkv_bias": true
75
+ }
76
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0392b0be4eb96bb82f40dd33355f398cdd637744114288b1999e6aa65202850
3
+ size 2351296
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,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "clean_up_tokenization_spaces": true,
4
+ "eos_token": "</s>",
5
+ "extra_ids": 100,
6
+ "is_local": true,
7
+ "local_files_only": false,
8
+ "model_max_length": 512,
9
+ "pad_token": "<pad>",
10
+ "processor_class": "InstructBlipProcessor",
11
+ "sp_model_kwargs": {},
12
+ "tokenizer_class": "TokenizersBackend",
13
+ "truncation_side": "left",
14
+ "unk_token": "<unk>"
15
+ }
video_preprocessor_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "do_sample_frames": false,
11
+ "image_mean": [
12
+ 0.48145466,
13
+ 0.4578275,
14
+ 0.40821073
15
+ ],
16
+ "image_std": [
17
+ 0.26862954,
18
+ 0.26130258,
19
+ 0.27577711
20
+ ],
21
+ "resample": 3,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "return_metadata": false,
24
+ "size": {
25
+ "height": 30,
26
+ "width": 30
27
+ },
28
+ "video_processor_type": "InstructBlipVideoVideoProcessor"
29
+ }