hf-transformers-bot HF Staff commited on
Commit
456e254
·
verified ·
1 Parent(s): 56b9a50

Update tiny models for XCLIPModel

Browse files
config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "XCLIPModel"
4
+ ],
5
+ "dtype": "float32",
6
+ "initializer_factor": 1.0,
7
+ "logit_scale_init_value": 2.6592,
8
+ "model_type": "xclip",
9
+ "projection_dim": 64,
10
+ "prompt_alpha": 0.1,
11
+ "prompt_attention_dropout": 0.0,
12
+ "prompt_hidden_act": "quick_gelu",
13
+ "prompt_layers": 2,
14
+ "prompt_num_attention_heads": 4,
15
+ "prompt_projection_dropout": 0.0,
16
+ "text_config": {
17
+ "attention_dropout": 0.1,
18
+ "bos_token_id": 49406,
19
+ "dropout": 0.1,
20
+ "eos_token_id": 49407,
21
+ "hidden_act": "quick_gelu",
22
+ "hidden_size": 32,
23
+ "initializer_factor": 1.0,
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 37,
26
+ "layer_norm_eps": 1e-05,
27
+ "max_position_embeddings": 512,
28
+ "model_type": "xclip_text_model",
29
+ "num_attention_heads": 4,
30
+ "num_hidden_layers": 2,
31
+ "pad_token_id": 49407,
32
+ "vocab_size": 49408
33
+ },
34
+ "transformers_version": "5.16.0.dev0",
35
+ "vision_config": {
36
+ "attention_dropout": 0.1,
37
+ "drop_path_rate": 0.0,
38
+ "dropout": 0.1,
39
+ "hidden_act": "quick_gelu",
40
+ "hidden_size": 32,
41
+ "image_size": 30,
42
+ "initializer_factor": 1.0,
43
+ "initializer_range": 0.02,
44
+ "intermediate_size": 37,
45
+ "layer_norm_eps": 1e-05,
46
+ "mit_hidden_size": 64,
47
+ "mit_intermediate_size": 2048,
48
+ "mit_num_attention_heads": 8,
49
+ "mit_num_hidden_layers": 1,
50
+ "model_type": "xclip_vision_model",
51
+ "num_attention_heads": 4,
52
+ "num_channels": 3,
53
+ "num_frames": 8,
54
+ "num_hidden_layers": 2,
55
+ "patch_size": 2
56
+ }
57
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b853383a41e65d01126e16049affea79e5567e288e8c73762256bc9a125a0f25
3
+ size 8139844
preprocessor_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "longest_edge": 30,
4
+ "shortest_edge": 30
5
+ },
6
+ "do_center_crop": true,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 0.48145466,
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
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "longest_edge": 30,
26
+ "shortest_edge": 30
27
+ }
28
+ }
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
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|startoftext|>",
5
+ "do_lower_case": true,
6
+ "eos_token": "<|endoftext|>",
7
+ "errors": "replace",
8
+ "is_local": true,
9
+ "local_files_only": false,
10
+ "model_max_length": 77,
11
+ "pad_token": "<|endoftext|>",
12
+ "processor_class": "CLIPProcessor",
13
+ "tokenizer_class": "CLIPTokenizer",
14
+ "unk_token": "<|endoftext|>"
15
+ }