hf-transformers-bot commited on
Commit
bfc62df
·
verified ·
1 Parent(s): 49d78ed

Update tiny models for GroupViTModel

Browse files
config.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "GroupViTModel"
4
+ ],
5
+ "dtype": "float32",
6
+ "initializer_factor": 1.0,
7
+ "initializer_range": 0.02,
8
+ "logit_scale_init_value": 2.6592,
9
+ "model_type": "groupvit",
10
+ "output_segmentation": false,
11
+ "projection_dim": 64,
12
+ "projection_intermediate_dim": 4096,
13
+ "text_config": {
14
+ "attention_dropout": 0.1,
15
+ "bos_token_id": 49406,
16
+ "dropout": 0.1,
17
+ "eos_token_id": 49407,
18
+ "hidden_act": "quick_gelu",
19
+ "hidden_size": 32,
20
+ "initializer_factor": 1.0,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 37,
23
+ "layer_norm_eps": 1e-05,
24
+ "max_position_embeddings": 512,
25
+ "model_type": "groupvit_text_model",
26
+ "num_attention_heads": 4,
27
+ "num_hidden_layers": 2,
28
+ "pad_token_id": 49407,
29
+ "vocab_size": 49408
30
+ },
31
+ "transformers_version": "5.16.0.dev0",
32
+ "vision_config": {
33
+ "assign_eps": 1.0,
34
+ "assign_mlp_ratio": [
35
+ 0.5,
36
+ 4
37
+ ],
38
+ "attention_dropout": 0.1,
39
+ "depths": [
40
+ 6,
41
+ 3,
42
+ 3
43
+ ],
44
+ "dropout": 0.1,
45
+ "hidden_act": "gelu",
46
+ "hidden_size": 32,
47
+ "image_size": 30,
48
+ "initializer_factor": 1.0,
49
+ "initializer_range": 0.02,
50
+ "intermediate_size": 37,
51
+ "layer_norm_eps": 1e-05,
52
+ "model_type": "groupvit_vision_model",
53
+ "num_attention_heads": 4,
54
+ "num_channels": 3,
55
+ "num_group_tokens": [
56
+ 64,
57
+ 8,
58
+ 0
59
+ ],
60
+ "num_hidden_layers": 12,
61
+ "num_output_groups": [
62
+ 64,
63
+ 8,
64
+ 8
65
+ ],
66
+ "patch_size": 2
67
+ }
68
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41c3e4254f4231e979d9fe83de1957fc4f4d7634bc52580a7724b217a517aaab
3
+ size 10333812
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,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": null,
11
+ "model_max_length": 77,
12
+ "pad_to_multiple_of": null,
13
+ "pad_token": "<|endoftext|>",
14
+ "pad_token_type_id": 0,
15
+ "padding_side": "right",
16
+ "processor_class": "CLIPProcessor",
17
+ "tokenizer_class": "CLIPTokenizer",
18
+ "unk_token": "<|endoftext|>"
19
+ }