hf-transformers-bot
commited on
Commit
•
b770180
1
Parent(s):
38b5c01
Upload tiny models for SiglipForImageClassification
Browse files- config.json +36 -0
- model.safetensors +3 -0
- preprocessor_config.json +20 -0
- special_tokens_map.json +23 -0
- spiece.model +3 -0
- tokenizer_config.json +33 -0
config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"SiglipForImageClassification"
|
4 |
+
],
|
5 |
+
"bos_token_id": 49406,
|
6 |
+
"eos_token_id": 1,
|
7 |
+
"initializer_factor": 1.0,
|
8 |
+
"model_type": "siglip",
|
9 |
+
"pad_token_id": 1,
|
10 |
+
"text_config": {
|
11 |
+
"attention_dropout": 0.1,
|
12 |
+
"dropout": 0.1,
|
13 |
+
"eos_token_id": 1,
|
14 |
+
"hidden_size": 32,
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 37,
|
17 |
+
"max_position_embeddings": 512,
|
18 |
+
"model_type": "siglip_text_model",
|
19 |
+
"num_attention_heads": 4,
|
20 |
+
"num_hidden_layers": 2
|
21 |
+
},
|
22 |
+
"torch_dtype": "float32",
|
23 |
+
"transformers_version": "4.38.0.dev0",
|
24 |
+
"vision_config": {
|
25 |
+
"attention_dropout": 0.1,
|
26 |
+
"dropout": 0.1,
|
27 |
+
"hidden_size": 32,
|
28 |
+
"image_size": 30,
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"intermediate_size": 37,
|
31 |
+
"model_type": "siglip_vision_model",
|
32 |
+
"num_attention_heads": 4,
|
33 |
+
"num_hidden_layers": 2,
|
34 |
+
"patch_size": 2
|
35 |
+
}
|
36 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:656d9170acbf690e2ae4ebccb6e3e2d16799f12620bfd6e08d482d4e38f93176
|
3 |
+
size 117652
|
preprocessor_config.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": 30,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.5,
|
8 |
+
0.5,
|
9 |
+
0.5
|
10 |
+
],
|
11 |
+
"image_processor_type": "SiglipImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.5,
|
14 |
+
0.5,
|
15 |
+
0.5
|
16 |
+
],
|
17 |
+
"resample": 3,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": 30
|
20 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"eos_token": {
|
3 |
+
"content": "</s>",
|
4 |
+
"lstrip": true,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": true,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"pad_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": true,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": true,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"unk_token": {
|
17 |
+
"content": "<unk>",
|
18 |
+
"lstrip": true,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": true,
|
21 |
+
"single_word": false
|
22 |
+
}
|
23 |
+
}
|
spiece.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1e5036bed065526c3c212dfbe288752391797c4bb1a284aa18c9a0b23fcaf8ec
|
3 |
+
size 798330
|
tokenizer_config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"1": {
|
4 |
+
"content": "</s>",
|
5 |
+
"lstrip": true,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": true,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"2": {
|
12 |
+
"content": "<unk>",
|
13 |
+
"lstrip": true,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": true,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
}
|
19 |
+
},
|
20 |
+
"additional_special_tokens": [],
|
21 |
+
"clean_up_tokenization_spaces": true,
|
22 |
+
"do_lower_case": true,
|
23 |
+
"eos_token": "</s>",
|
24 |
+
"model_input_names": [
|
25 |
+
"input_ids"
|
26 |
+
],
|
27 |
+
"model_max_length": 64,
|
28 |
+
"pad_token": "</s>",
|
29 |
+
"processor_class": "SiglipProcessor",
|
30 |
+
"sp_model_kwargs": {},
|
31 |
+
"tokenizer_class": "SiglipTokenizer",
|
32 |
+
"unk_token": "<unk>"
|
33 |
+
}
|