Files
AdaGuard-4B/tokenizer_config.json
ModelHub XC ae295a7acd 初始化项目,由ModelHub XC社区提供模型
Model: Yunhao-Feng/AdaGuard-4B
Source: Original Platform
2026-11-17 07:34:17 +08:00

31 lines
1.1 KiB
JSON

{
"add_prefix_space": false,
"backend": "tokenizers",
"bos_token": null,
"chat_template": "{%- for message in messages -%}\n{%- if message['role'] not in ['system', 'user', 'assistant'] -%}\n{{- raise_exception('Unsupported role in AdAGuard chat: ' + message['role']) -}}\n{%- endif -%}\n{{- '<|im_start|>' + message['role'] + '\\n' + message['content'] + '<|im_end|>\\n' -}}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n{{- '<|im_start|>assistant\\n' -}}\n{%- endif -%}",
"clean_up_tokenization_spaces": false,
"eos_token": "<|im_end|>",
"errors": "replace",
"extra_special_tokens": [
"<|im_start|>",
"<|im_end|>",
"<|object_ref_start|>",
"<|object_ref_end|>",
"<|box_start|>",
"<|box_end|>",
"<|quad_start|>",
"<|quad_end|>",
"<|vision_start|>",
"<|vision_end|>",
"<|vision_pad|>",
"<|image_pad|>",
"<|video_pad|>"
],
"model_max_length": 32768,
"pad_token": "<|endoftext|>",
"padding_side": "right",
"split_special_tokens": false,
"tokenizer_class": "Qwen2Tokenizer",
"unk_token": null
}