hf-transformers-bot commited on
Commit
3f436d4
·
verified ·
1 Parent(s): ad15c00

Update tiny models for CLIPForImageClassification

Browse files
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "CLIPForImageClassification"
4
+ ],
5
+ "dtype": "float32",
6
+ "initializer_factor": 1.0,
7
+ "logit_scale_init_value": 2.6592,
8
+ "model_type": "clip",
9
+ "projection_dim": 64,
10
+ "text_config": {
11
+ "attention_dropout": 0.1,
12
+ "bos_token_id": 49406,
13
+ "dropout": 0.1,
14
+ "eos_token_id": 49407,
15
+ "hidden_act": "quick_gelu",
16
+ "hidden_size": 32,
17
+ "initializer_factor": 1.0,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 37,
20
+ "layer_norm_eps": 1e-05,
21
+ "max_position_embeddings": 512,
22
+ "model_type": "clip_text_model",
23
+ "num_attention_heads": 4,
24
+ "num_hidden_layers": 2,
25
+ "pad_token_id": 49407,
26
+ "projection_dim": 32,
27
+ "vocab_size": 49408
28
+ },
29
+ "transformers_version": "5.16.0.dev0",
30
+ "vision_config": {
31
+ "attention_dropout": 0.1,
32
+ "dropout": 0.1,
33
+ "hidden_act": "quick_gelu",
34
+ "hidden_size": 32,
35
+ "image_size": 30,
36
+ "initializer_factor": 1.0,
37
+ "initializer_range": 0.02,
38
+ "intermediate_size": 37,
39
+ "layer_norm_eps": 1e-05,
40
+ "model_type": "clip_vision_model",
41
+ "num_attention_heads": 4,
42
+ "num_channels": 3,
43
+ "num_hidden_layers": 2,
44
+ "patch_size": 2,
45
+ "projection_dim": 32
46
+ }
47
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b566ec4a0a3ece4d4737e67d09640980ffc780af1c2123dc34969080dc529b03
3
+ size 90104
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,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "tokenizer_class": "CLIPTokenizer",
13
+ "unk_token": "<|endoftext|>"
14
+ }