- Update response schema (7c7816477f0892c3ae92f73c0c59e5b9dda1689e) Co-authored-by: Matthew Carrigan <Rocketknight1@users.noreply.huggingface.co>
75 lines
2.0 KiB
JSON
75 lines
2.0 KiB
JSON
{
|
|
"audio_token": "<|audio|>",
|
|
"backend": "tokenizers",
|
|
"boa_token": "<|audio>",
|
|
"boi_token": "<|image>",
|
|
"bos_token": "<bos>",
|
|
"eoa_token": "<audio|>",
|
|
"eoc_token": "<channel|>",
|
|
"eoi_token": "<image|>",
|
|
"eos_token": "<eos>",
|
|
"eot_token": "<turn|>",
|
|
"escape_token": "<|\"|>",
|
|
"etc_token": "<tool_call|>",
|
|
"etd_token": "<tool|>",
|
|
"etr_token": "<tool_response|>",
|
|
"extra_special_tokens": [
|
|
"<|video|>"
|
|
],
|
|
"image_token": "<|image|>",
|
|
"mask_token": "<mask>",
|
|
"model_max_length": 1000000000000000019884624838656,
|
|
"pad_token": "<pad>",
|
|
"padding_side": "left",
|
|
"processor_class": "Gemma4Processor",
|
|
"response_schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"role": {
|
|
"const": "assistant"
|
|
},
|
|
"thinking": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"tool_calls": {
|
|
"x-regex-iterator": "<\\|tool_call>(.*?)<tool_call\\|>",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"const": "function"
|
|
},
|
|
"function": {
|
|
"type": "object",
|
|
"x-regex": "call\\:(?P<name>\\w+)(?P<arguments>\\{.*\\})",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"arguments": {
|
|
"type": "object",
|
|
"x-parser": "gemma4-tool-call",
|
|
"additionalProperties": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?P<content>(?:(?!\\<turn\\|\\>)(?!\\<\\|tool_response\\>).)+)?(?:\\<turn\\|\\>|\\<\\|tool_response\\>)?"
|
|
},
|
|
"soc_token": "<|channel>",
|
|
"sot_token": "<|turn>",
|
|
"stc_token": "<|tool_call>",
|
|
"std_token": "<|tool>",
|
|
"str_token": "<|tool_response>",
|
|
"think_token": "<|think|>",
|
|
"tokenizer_class": "GemmaTokenizer",
|
|
"unk_token": "<unk>"
|
|
}
|