tokenizer_config.json
3.0 KB · 121 lines · json Raw
1 {
2 "audio_token": "<|audio|>",
3 "backend": "tokenizers",
4 "boa_token": "<|audio>",
5 "boi_token": "<|image>",
6 "bos_token": "<bos>",
7 "eoa_token": "<audio|>",
8 "eoc_token": "<channel|>",
9 "eoi_token": "<image|>",
10 "eos_token": "<eos>",
11 "eot_token": "<turn|>",
12 "escape_token": "<|\"|>",
13 "etc_token": "<tool_call|>",
14 "etd_token": "<tool|>",
15 "etr_token": "<tool_response|>",
16 "extra_special_tokens": [
17 "<|video|>"
18 ],
19 "image_token": "<|image|>",
20 "mask_token": "<mask>",
21 "model_max_length": 1000000000000000019884624838656,
22 "pad_token": "<pad>",
23 "padding_side": "left",
24 "processor_class": "Gemma4UnifiedProcessor",
25 "response_schema": {
26 "properties": {
27 "content": {
28 "type": "string"
29 },
30 "role": {
31 "const": "assistant"
32 },
33 "thinking": {
34 "type": "string"
35 },
36 "tool_calls": {
37 "items": {
38 "properties": {
39 "function": {
40 "properties": {
41 "arguments": {
42 "additionalProperties": {},
43 "type": "object",
44 "x-parser": "gemma4-tool-call"
45 },
46 "name": {
47 "type": "string"
48 }
49 },
50 "type": "object",
51 "x-regex": "call\\:(?P<name>\\w+)(?P<arguments>\\{.*\\})"
52 },
53 "type": {
54 "const": "function"
55 }
56 },
57 "type": "object"
58 },
59 "type": "array",
60 "x-regex-iterator": "<\\|tool_call>(.*?)<tool_call\\|>"
61 }
62 },
63 "type": "object",
64 "x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?P<content>(?:(?!\\<turn\\|\\>)(?!\\<\\|tool_response\\>).)+)?(?:\\<turn\\|\\>|\\<\\|tool_response\\>)?"
65 },
66 "response_template": {
67 "defaults": {
68 "role": "assistant"
69 },
70 "fields": {
71 "content": {
72 "close": [
73 "<turn|>",
74 "<|tool_response>",
75 "<eos>"
76 ],
77 "content": "text"
78 },
79 "thinking": {
80 "close": "<channel|>",
81 "content": "text",
82 "open": "<|channel>thought\n"
83 },
84 "tool_calls": {
85 "close": "<tool_call|>",
86 "content": "json",
87 "content_args": {
88 "string_delims": [
89 [
90 "<|\"|>",
91 "<|\"|>"
92 ]
93 ],
94 "unquoted_keys": true
95 },
96 "open_pattern": "<\\|tool_call>call:(?P<name>\\w+)",
97 "repeats": true,
98 "transform": {
99 "function": {
100 "arguments": "{content}",
101 "name": "{name}"
102 },
103 "type": "function"
104 }
105 }
106 },
107 "start_anchor": [
108 "<|turn>model\n",
109 "<tool_response|>"
110 ]
111 },
112 "soc_token": "<|channel>",
113 "sot_token": "<|turn>",
114 "stc_token": "<|tool_call>",
115 "std_token": "<|tool>",
116 "str_token": "<|tool_response>",
117 "think_token": "<|think|>",
118 "tokenizer_class": "GemmaTokenizer",
119 "unk_token": "<unk>"
120 }
121