Upload folder using huggingface_hub
Browse files- config.json +20 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- onnx/text_model.onnx +3 -0
- onnx/text_model_quantized.onnx +3 -0
- onnx/vision_model.onnx +3 -0
- onnx/vision_model_quantized.onnx +3 -0
- preprocessor_config.json +23 -0
- quantize_config.json +98 -0
- special_tokens_map.json +23 -0
- spiece.model +3 -0
- tokenizer_config.json +34 -0
config.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "nielsr/siglip-base-patch16-224",
|
3 |
+
"architectures": [
|
4 |
+
"SiglipModel"
|
5 |
+
],
|
6 |
+
"initializer_factor": 1.0,
|
7 |
+
"model_type": "siglip",
|
8 |
+
"text_config": {
|
9 |
+
"hidden_size": 768,
|
10 |
+
"intermediate_size": 3072,
|
11 |
+
"model_type": "siglip_text_model",
|
12 |
+
"num_attention_heads": 12,
|
13 |
+
"vocab_size": 32000
|
14 |
+
},
|
15 |
+
"transformers_version": "4.37.0.dev0",
|
16 |
+
"vision_config": {
|
17 |
+
"model_type": "siglip_vision_model",
|
18 |
+
"patch_size": 16
|
19 |
+
}
|
20 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:19fb269e5df4a379a5486cb7682b9f348818fe7a81a6de1f9b2595ca75847dff
|
3 |
+
size 813162230
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1be8ca418e1a0792c4182a9f1a8a294de559cba61d258a55a3793bdb9ffa1904
|
3 |
+
size 210988144
|
onnx/text_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8895e6e28ca2149f3df07fa17f8d7ea64c78ebab5351f3253c19754028ef858c
|
3 |
+
size 441332117
|
onnx/text_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a77ba5694eaab21305f5c40ff86b71c646a14fb663b2574608b9c7257f40495e
|
3 |
+
size 111475205
|
onnx/vision_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f89d41bac7f4d4b87e010a467d93f98689d708916ed22f5a07f96fdfa26f475f
|
3 |
+
size 371819850
|
onnx/vision_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ef14a954f3d57e1806666432bd9785004c1dc27100aa260eee0cb0f10a5de058
|
3 |
+
size 99499129
|
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_processor_type": "SiglipImageProcessor",
|
6 |
+
"mean": [
|
7 |
+
0.5,
|
8 |
+
0.5,
|
9 |
+
0.5
|
10 |
+
],
|
11 |
+
"processor_class": "SiglipProcessor",
|
12 |
+
"resample": 3,
|
13 |
+
"rescale_factor": 0.00392156862745098,
|
14 |
+
"size": {
|
15 |
+
"height": 224,
|
16 |
+
"width": 224
|
17 |
+
},
|
18 |
+
"std": [
|
19 |
+
0.5,
|
20 |
+
0.5,
|
21 |
+
0.5
|
22 |
+
]
|
23 |
+
}
|
quantize_config.json
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Exp",
|
8 |
+
"Cast",
|
9 |
+
"Pow",
|
10 |
+
"MatMul",
|
11 |
+
"Conv",
|
12 |
+
"Div",
|
13 |
+
"Transpose",
|
14 |
+
"Mul",
|
15 |
+
"Constant",
|
16 |
+
"Abs",
|
17 |
+
"Unsqueeze",
|
18 |
+
"Shape",
|
19 |
+
"Concat",
|
20 |
+
"Where",
|
21 |
+
"Add",
|
22 |
+
"Sqrt",
|
23 |
+
"Sub",
|
24 |
+
"Tanh",
|
25 |
+
"Tile",
|
26 |
+
"Gather",
|
27 |
+
"Equal",
|
28 |
+
"Slice",
|
29 |
+
"ReduceSum",
|
30 |
+
"ReduceMean",
|
31 |
+
"Gemm",
|
32 |
+
"Squeeze",
|
33 |
+
"Expand",
|
34 |
+
"Softmax",
|
35 |
+
"ConstantOfShape",
|
36 |
+
"Reshape",
|
37 |
+
"Mod"
|
38 |
+
],
|
39 |
+
"weight_type": "QUInt8"
|
40 |
+
},
|
41 |
+
"text_model": {
|
42 |
+
"op_types": [
|
43 |
+
"Sub",
|
44 |
+
"Div",
|
45 |
+
"Gemm",
|
46 |
+
"Add",
|
47 |
+
"Constant",
|
48 |
+
"Transpose",
|
49 |
+
"Gather",
|
50 |
+
"Tanh",
|
51 |
+
"Mul",
|
52 |
+
"MatMul",
|
53 |
+
"Reshape",
|
54 |
+
"Unsqueeze",
|
55 |
+
"Softmax",
|
56 |
+
"Shape",
|
57 |
+
"Slice",
|
58 |
+
"Concat",
|
59 |
+
"Sqrt",
|
60 |
+
"ReduceMean",
|
61 |
+
"Cast",
|
62 |
+
"Pow"
|
63 |
+
],
|
64 |
+
"weight_type": "QInt8"
|
65 |
+
},
|
66 |
+
"vision_model": {
|
67 |
+
"op_types": [
|
68 |
+
"Sub",
|
69 |
+
"ConstantOfShape",
|
70 |
+
"Div",
|
71 |
+
"Gemm",
|
72 |
+
"Gather",
|
73 |
+
"Add",
|
74 |
+
"Transpose",
|
75 |
+
"Constant",
|
76 |
+
"Squeeze",
|
77 |
+
"Tanh",
|
78 |
+
"Mul",
|
79 |
+
"Tile",
|
80 |
+
"Conv",
|
81 |
+
"MatMul",
|
82 |
+
"Reshape",
|
83 |
+
"Unsqueeze",
|
84 |
+
"Expand",
|
85 |
+
"Mod",
|
86 |
+
"Softmax",
|
87 |
+
"Slice",
|
88 |
+
"Shape",
|
89 |
+
"Concat",
|
90 |
+
"Sqrt",
|
91 |
+
"ReduceMean",
|
92 |
+
"Cast",
|
93 |
+
"Pow"
|
94 |
+
],
|
95 |
+
"weight_type": "QUInt8"
|
96 |
+
}
|
97 |
+
}
|
98 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"eos_token": {
|
3 |
+
"content": "</s>",
|
4 |
+
"lstrip": true,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": true,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"pad_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": true,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": true,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"unk_token": {
|
17 |
+
"content": "<unk>",
|
18 |
+
"lstrip": true,
|
19 |
+
"normalized": true,
|
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,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"1": {
|
4 |
+
"content": "</s>",
|
5 |
+
"lstrip": true,
|
6 |
+
"normalized": true,
|
7 |
+
"rstrip": true,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"2": {
|
12 |
+
"content": "<unk>",
|
13 |
+
"lstrip": true,
|
14 |
+
"normalized": true,
|
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 |
+
"trust_remote_code": false,
|
33 |
+
"unk_token": "<unk>"
|
34 |
+
}
|