Files
vLLM/rust/src/chat/tests/grammar_replay/DeepSeek-V3.2-Exp.json
T

464 lines
20 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"model_id": "deepseek-ai/DeepSeek-V3.2-Exp",
"vocab_size": 129280,
"all_stop_token_ids": [1],
"grammars": [
{
"grammar": {
"format": {
"type": "sequence",
"elements": [
{
"type": "tag",
"begin": "",
"content": {
"type": "any_text",
"excludes": [],
"max_tokens": null,
"max_chars": null
},
"end": "</think>"
},
{
"type": "triggered_tags",
"triggers": [
"<|DSML|function_calls>"
],
"tags": [
{
"type": "tag",
"begin": "<|DSML|function_calls>\n",
"content": {
"type": "tags_with_separator",
"tags": [
{
"type": "tag",
"begin": "<|DSML|invoke name=\"get_weather\">\n",
"content": {
"type": "json_schema",
"json_schema": {
"type": "object",
"properties": {
"location": {
"type": "string"
}
},
"required": [
"location"
]
},
"style": "deepseek_xml",
"any_order": false,
"max_whitespace_cnt": null,
"excludes": []
},
"end": "</|DSML|invoke>\n"
},
{
"type": "tag",
"begin": "<|DSML|invoke name=\"add\">\n",
"content": {
"type": "json_schema",
"json_schema": {
"type": "object",
"properties": {
"y": {
"type": "number"
},
"x": {
"type": "number"
},
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"y",
"x",
"items"
]
},
"style": "deepseek_xml",
"any_order": false,
"max_whitespace_cnt": null,
"excludes": []
},
"end": "</|DSML|invoke>\n"
}
],
"separator": "",
"at_least_one": true,
"stop_after_first": false
},
"end": "</|DSML|function_calls>"
}
],
"at_least_one": false,
"stop_after_first": false,
"excludes": [
"<think>",
"</think>"
]
}
]
},
"coverage": "from_token_zero"
},
"generations": {
"auto": {
"completion": "Need call the weather and add tools.</think>I will call the tools.\n\n<|DSML|function_calls>\n<|DSML|invoke name=\"get_weather\">\n<|DSML|parameter name=\"location\" string=\"true\">Shanghai</|DSML|parameter>\n</|DSML|invoke>\n<|DSML|invoke name=\"add\">\n<|DSML|parameter name=\"y\" string=\"false\">1.0</|DSML|parameter>\n<|DSML|parameter name=\"x\" string=\"false\">2</|DSML|parameter>\n<|DSML|parameter name=\"items\" string=\"false\">[\"left\", \"right\"]</|DSML|parameter>\n</|DSML|invoke>\n</|DSML|function_calls>",
"generation_token_ids": [50249, 1926, 270, 9670, 305, 1258, 6704, 16, 128799, 43, 759, 1926, 270, 6704, 339, 30, 28217, 10525, 7398, 28217, 8701, 4941, 12548, 1018, 30, 28217, 10525, 7398, 28217, 40148, 5406, 2329, 1281, 1133, 65, 50219, 3816, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 33182, 4, 3418, 1281, 11476, 3320, 119606, 28011, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 1718, 28217, 10525, 7398, 28217, 40148, 5406, 1018, 30, 28217, 10525, 7398, 28217, 40148, 5406, 2329, 1281, 3327, 3816, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 91, 4, 3418, 1281, 19836, 3320, 19, 16, 18, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 90, 4, 3418, 1281, 19836, 3320, 20, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 17173, 4, 3418, 1281, 19836, 3320, 10931, 4589, 1760, 582, 2459, 13747, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 1718, 28217, 10525, 7398, 28217, 40148, 5406, 1018, 1718, 28217, 10525, 7398, 28217, 8701, 4941, 12548, 32, 1]
}
}
},
{
"grammar": {
"format": {
"type": "sequence",
"elements": [
{
"type": "tag",
"begin": "",
"content": {
"type": "any_text",
"excludes": [],
"max_tokens": null,
"max_chars": null
},
"end": "</think>"
},
{
"type": "sequence",
"elements": [
{
"type": "const_string",
"value": "\n\n<|DSML|function_calls>\n"
},
{
"type": "tags_with_separator",
"tags": [
{
"type": "tag",
"begin": "<|DSML|invoke name=\"get_weather\">\n",
"content": {
"type": "json_schema",
"json_schema": {
"type": "object",
"properties": {
"location": {
"type": "string"
}
},
"required": [
"location"
]
},
"style": "deepseek_xml",
"any_order": false,
"max_whitespace_cnt": null,
"excludes": []
},
"end": "</|DSML|invoke>\n"
},
{
"type": "tag",
"begin": "<|DSML|invoke name=\"add\">\n",
"content": {
"type": "json_schema",
"json_schema": {
"type": "object",
"properties": {
"y": {
"type": "number"
},
"x": {
"type": "number"
},
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"y",
"x",
"items"
]
},
"style": "deepseek_xml",
"any_order": false,
"max_whitespace_cnt": null,
"excludes": []
},
"end": "</|DSML|invoke>\n"
}
],
"separator": "",
"at_least_one": true,
"stop_after_first": false
},
{
"type": "const_string",
"value": "</|DSML|function_calls>"
}
]
}
]
},
"coverage": "from_token_zero"
},
"generations": {
"required": {
"completion": "Need call the weather and add tools.</think>\n\n<|DSML|function_calls>\n<|DSML|invoke name=\"get_weather\">\n<|DSML|parameter name=\"location\" string=\"true\">Shanghai</|DSML|parameter>\n</|DSML|invoke>\n<|DSML|invoke name=\"add\">\n<|DSML|parameter name=\"y\" string=\"false\">1.0</|DSML|parameter>\n<|DSML|parameter name=\"x\" string=\"false\">2</|DSML|parameter>\n<|DSML|parameter name=\"items\" string=\"false\">[\"left\", \"right\"]</|DSML|parameter>\n</|DSML|invoke>\n</|DSML|function_calls>",
"generation_token_ids": [50249, 1926, 270, 9670, 305, 1258, 6704, 16, 128799, 271, 30, 28217, 10525, 7398, 28217, 8701, 4941, 12548, 1018, 30, 28217, 10525, 7398, 28217, 40148, 5406, 2329, 1281, 1133, 65, 50219, 3816, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 33182, 4, 3418, 1281, 11476, 3320, 119606, 28011, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 1718, 28217, 10525, 7398, 28217, 40148, 5406, 1018, 30, 28217, 10525, 7398, 28217, 40148, 5406, 2329, 1281, 3327, 3816, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 91, 4, 3418, 1281, 19836, 3320, 19, 16, 18, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 90, 4, 3418, 1281, 19836, 3320, 20, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 17173, 4, 3418, 1281, 19836, 3320, 10931, 4589, 1760, 582, 2459, 13747, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 1718, 28217, 10525, 7398, 28217, 40148, 5406, 1018, 1718, 28217, 10525, 7398, 28217, 8701, 4941, 12548, 32, 1]
}
}
},
{
"grammar": {
"format": {
"type": "sequence",
"elements": [
{
"type": "tag",
"begin": "",
"content": {
"type": "any_text",
"excludes": [],
"max_tokens": null,
"max_chars": null
},
"end": "</think>"
},
{
"type": "sequence",
"elements": [
{
"type": "const_string",
"value": "\n\n<|DSML|function_calls>\n"
},
{
"type": "tag",
"begin": "<|DSML|invoke name=\"get_weather\">\n",
"content": {
"type": "json_schema",
"json_schema": {
"type": "object",
"properties": {
"location": {
"type": "string"
}
},
"required": [
"location"
]
},
"style": "deepseek_xml",
"any_order": false,
"max_whitespace_cnt": null,
"excludes": []
},
"end": "</|DSML|invoke>\n"
},
{
"type": "const_string",
"value": "</|DSML|function_calls>"
}
]
}
]
},
"coverage": "from_token_zero"
},
"generations": {
"named": {
"completion": "Need call the weather and add tools.</think>\n\n<|DSML|function_calls>\n<|DSML|invoke name=\"get_weather\">\n<|DSML|parameter name=\"location\" string=\"true\">Shanghai</|DSML|parameter>\n</|DSML|invoke>\n</|DSML|function_calls>",
"generation_token_ids": [50249, 1926, 270, 9670, 305, 1258, 6704, 16, 128799, 271, 30, 28217, 10525, 7398, 28217, 8701, 4941, 12548, 1018, 30, 28217, 10525, 7398, 28217, 40148, 5406, 2329, 1281, 1133, 65, 50219, 3816, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 33182, 4, 3418, 1281, 11476, 3320, 119606, 28011, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 1718, 28217, 10525, 7398, 28217, 40148, 5406, 1018, 1718, 28217, 10525, 7398, 28217, 8701, 4941, 12548, 32, 1]
}
}
},
{
"grammar": {
"format": {
"type": "sequence",
"elements": [
{
"type": "tag",
"begin": "",
"content": {
"type": "any_text",
"excludes": [],
"max_tokens": null,
"max_chars": null
},
"end": "</think>"
},
{
"type": "json_schema",
"json_schema": {
"type": "object",
"properties": {
"answer": {
"type": "string"
}
},
"required": [
"answer"
]
},
"style": "json",
"any_order": false,
"max_whitespace_cnt": null,
"excludes": []
}
]
},
"coverage": "from_token_zero"
},
"generations": {
"none_schema": {
"completion": "Need call the weather and add tools.</think>{\"answer\":\"sunny\"}",
"generation_token_ids": [50249, 1926, 270, 9670, 305, 1258, 6704, 16, 128799, 24313, 19995, 16562, 69958, 2928, 62773, 1]
}
}
},
{
"grammar": {
"format": {
"type": "sequence",
"elements": [
{
"type": "tag",
"begin": "",
"content": {
"type": "any_text",
"excludes": [],
"max_tokens": null,
"max_chars": null
},
"end": "</think>"
},
{
"type": "or",
"elements": [
{
"type": "sequence",
"elements": [
{
"type": "const_string",
"value": "\n\n<|DSML|function_calls>\n"
},
{
"type": "tags_with_separator",
"tags": [
{
"type": "tag",
"begin": "<|DSML|invoke name=\"get_weather\">\n",
"content": {
"type": "json_schema",
"json_schema": {
"type": "object",
"properties": {
"location": {
"type": "string"
}
},
"required": [
"location"
]
},
"style": "deepseek_xml",
"any_order": false,
"max_whitespace_cnt": null,
"excludes": []
},
"end": "</|DSML|invoke>\n"
},
{
"type": "tag",
"begin": "<|DSML|invoke name=\"add\">\n",
"content": {
"type": "json_schema",
"json_schema": {
"type": "object",
"properties": {
"y": {
"type": "number"
},
"x": {
"type": "number"
},
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"y",
"x",
"items"
]
},
"style": "deepseek_xml",
"any_order": false,
"max_whitespace_cnt": null,
"excludes": []
},
"end": "</|DSML|invoke>\n"
}
],
"separator": "",
"at_least_one": true,
"stop_after_first": false
},
{
"type": "const_string",
"value": "</|DSML|function_calls>"
}
]
},
{
"type": "json_schema",
"json_schema": {
"type": "object",
"properties": {
"answer": {
"type": "string"
}
},
"required": [
"answer"
]
},
"style": "json",
"any_order": false,
"max_whitespace_cnt": null,
"excludes": []
}
]
}
]
},
"coverage": "from_token_zero"
},
"generations": {
"auto_schema_content": {
"completion": "Need call the weather and add tools.</think>{\"answer\":\"sunny\"}",
"generation_token_ids": [50249, 1926, 270, 9670, 305, 1258, 6704, 16, 128799, 24313, 19995, 16562, 69958, 2928, 62773, 1]
},
"auto_schema_calls": {
"completion": "Need call the weather and add tools.</think>\n\n<|DSML|function_calls>\n<|DSML|invoke name=\"get_weather\">\n<|DSML|parameter name=\"location\" string=\"true\">Shanghai</|DSML|parameter>\n</|DSML|invoke>\n<|DSML|invoke name=\"add\">\n<|DSML|parameter name=\"y\" string=\"false\">1.0</|DSML|parameter>\n<|DSML|parameter name=\"x\" string=\"false\">2</|DSML|parameter>\n<|DSML|parameter name=\"items\" string=\"false\">[\"left\", \"right\"]</|DSML|parameter>\n</|DSML|invoke>\n</|DSML|function_calls>",
"generation_token_ids": [50249, 1926, 270, 9670, 305, 1258, 6704, 16, 128799, 271, 30, 28217, 10525, 7398, 28217, 8701, 4941, 12548, 1018, 30, 28217, 10525, 7398, 28217, 40148, 5406, 2329, 1281, 1133, 65, 50219, 3816, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 33182, 4, 3418, 1281, 11476, 3320, 119606, 28011, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 1718, 28217, 10525, 7398, 28217, 40148, 5406, 1018, 30, 28217, 10525, 7398, 28217, 40148, 5406, 2329, 1281, 3327, 3816, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 91, 4, 3418, 1281, 19836, 3320, 19, 16, 18, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 90, 4, 3418, 1281, 19836, 3320, 20, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 30, 28217, 10525, 7398, 28217, 41523, 2329, 1281, 17173, 4, 3418, 1281, 19836, 3320, 10931, 4589, 1760, 582, 2459, 13747, 1718, 28217, 10525, 7398, 28217, 41523, 1018, 1718, 28217, 10525, 7398, 28217, 40148, 5406, 1018, 1718, 28217, 10525, 7398, 28217, 8701, 4941, 12548, 32, 1]
}
}
}
]
}