huseinzol05
commited on
Commit
•
7fef0fc
1
Parent(s):
fc2d559
Upload processor
Browse files- preprocessor_config.json +21 -12
- special_tokens_map.json +7 -19
- tokenizer_config.json +18 -67
preprocessor_config.json
CHANGED
@@ -1,14 +1,23 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
"
|
4 |
-
"
|
5 |
-
"
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
"
|
11 |
-
"
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
|
|
1 |
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_processor_type": "SiglipImageProcessor",
|
11 |
+
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"processor_class": "SiglipProcessor",
|
17 |
+
"resample": 3,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 384,
|
21 |
+
"width": 384
|
22 |
+
}
|
23 |
}
|
special_tokens_map.json
CHANGED
@@ -1,35 +1,23 @@
|
|
1 |
{
|
2 |
-
"additional_special_tokens": [
|
3 |
-
"<unk>",
|
4 |
-
"<s>",
|
5 |
-
"</s>"
|
6 |
-
],
|
7 |
-
"bos_token": {
|
8 |
-
"content": "<s>",
|
9 |
-
"lstrip": false,
|
10 |
-
"normalized": false,
|
11 |
-
"rstrip": false,
|
12 |
-
"single_word": false
|
13 |
-
},
|
14 |
"eos_token": {
|
15 |
"content": "</s>",
|
16 |
-
"lstrip":
|
17 |
"normalized": false,
|
18 |
-
"rstrip":
|
19 |
"single_word": false
|
20 |
},
|
21 |
"pad_token": {
|
22 |
-
"content": "
|
23 |
-
"lstrip":
|
24 |
"normalized": false,
|
25 |
-
"rstrip":
|
26 |
"single_word": false
|
27 |
},
|
28 |
"unk_token": {
|
29 |
"content": "<unk>",
|
30 |
-
"lstrip":
|
31 |
"normalized": false,
|
32 |
-
"rstrip":
|
33 |
"single_word": false
|
34 |
}
|
35 |
}
|
|
|
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 |
}
|
tokenizer_config.json
CHANGED
@@ -1,83 +1,34 @@
|
|
1 |
{
|
2 |
-
"add_bos_token": false,
|
3 |
-
"add_eos_token": false,
|
4 |
"added_tokens_decoder": {
|
5 |
-
"0": {
|
6 |
-
"content": "<unk>",
|
7 |
-
"lstrip": false,
|
8 |
-
"normalized": false,
|
9 |
-
"rstrip": false,
|
10 |
-
"single_word": false,
|
11 |
-
"special": true
|
12 |
-
},
|
13 |
"1": {
|
14 |
-
"content": "
|
15 |
-
"lstrip":
|
16 |
"normalized": false,
|
17 |
-
"rstrip":
|
18 |
"single_word": false,
|
19 |
"special": true
|
20 |
},
|
21 |
"2": {
|
22 |
-
"content": "
|
23 |
-
"lstrip":
|
24 |
"normalized": false,
|
25 |
-
"rstrip":
|
26 |
"single_word": false,
|
27 |
"special": true
|
28 |
-
},
|
29 |
-
"32000": {
|
30 |
-
"content": "<image>",
|
31 |
-
"lstrip": false,
|
32 |
-
"normalized": true,
|
33 |
-
"rstrip": false,
|
34 |
-
"single_word": false,
|
35 |
-
"special": false
|
36 |
-
},
|
37 |
-
"32001": {
|
38 |
-
"content": "</image>",
|
39 |
-
"lstrip": false,
|
40 |
-
"normalized": true,
|
41 |
-
"rstrip": false,
|
42 |
-
"single_word": false,
|
43 |
-
"special": false
|
44 |
-
},
|
45 |
-
"32002": {
|
46 |
-
"content": "<audio>",
|
47 |
-
"lstrip": false,
|
48 |
-
"normalized": true,
|
49 |
-
"rstrip": false,
|
50 |
-
"single_word": false,
|
51 |
-
"special": false
|
52 |
-
},
|
53 |
-
"32003": {
|
54 |
-
"content": "</audio>",
|
55 |
-
"lstrip": false,
|
56 |
-
"normalized": true,
|
57 |
-
"rstrip": false,
|
58 |
-
"single_word": false,
|
59 |
-
"special": false
|
60 |
}
|
61 |
},
|
62 |
-
"additional_special_tokens": [
|
63 |
-
|
64 |
-
|
65 |
-
"</s>"
|
66 |
-
],
|
67 |
-
"bos_token": "<s>",
|
68 |
-
"chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
|
69 |
-
"clean_up_tokenization_spaces": false,
|
70 |
"eos_token": "</s>",
|
71 |
-
"
|
72 |
-
|
73 |
-
|
74 |
-
"
|
|
|
|
|
75 |
"sp_model_kwargs": {},
|
76 |
-
"
|
77 |
-
"
|
78 |
-
"
|
79 |
-
"truncation_side": "right",
|
80 |
-
"truncation_strategy": "longest_first",
|
81 |
-
"unk_token": "<unk>",
|
82 |
-
"use_default_system_prompt": true
|
83 |
}
|
|
|
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 |
+
"trust_remote_code": false,
|
33 |
+
"unk_token": "<unk>"
|
|
|
|
|
|
|
|
|
34 |
}
|