| 1 | { |
| 2 | "model_id": "Qwen/Qwen3.5-4B", |
| 3 | "vocab_size": 248320, |
| 4 | "all_stop_token_ids": [248044, 248046], |
| 5 | "cases": { |
| 6 | "auto": { |
| 7 | "grammar": { |
| 8 | "format": { |
| 9 | "type": "sequence", |
| 10 | "elements": [ |
| 11 | { |
| 12 | "type": "sequence", |
| 13 | "elements": [ |
| 14 | { |
| 15 | "type": "tag", |
| 16 | "begin": "", |
| 17 | "content": { |
| 18 | "type": "any_text", |
| 19 | "excludes": [], |
| 20 | "max_tokens": null, |
| 21 | "max_chars": null |
| 22 | }, |
| 23 | "end": "</think>" |
| 24 | }, |
| 25 | { |
| 26 | "type": "const_string", |
| 27 | "value": "\n\n" |
| 28 | } |
| 29 | ] |
| 30 | }, |
| 31 | { |
| 32 | "type": "triggered_tags", |
| 33 | "triggers": [ |
| 34 | "<tool_call>\n<function=" |
| 35 | ], |
| 36 | "tags": [ |
| 37 | { |
| 38 | "type": "tag", |
| 39 | "begin": "<tool_call>\n<function=get_weather>\n", |
| 40 | "content": { |
| 41 | "type": "json_schema", |
| 42 | "json_schema": { |
| 43 | "type": "object", |
| 44 | "properties": { |
| 45 | "location": { |
| 46 | "type": "string" |
| 47 | } |
| 48 | }, |
| 49 | "required": [ |
| 50 | "location" |
| 51 | ] |
| 52 | }, |
| 53 | "style": "qwen_xml", |
| 54 | "any_order": false, |
| 55 | "max_whitespace_cnt": null, |
| 56 | "excludes": [] |
| 57 | }, |
| 58 | "end": "\n</function>\n</tool_call>" |
| 59 | }, |
| 60 | { |
| 61 | "type": "tag", |
| 62 | "begin": "<tool_call>\n<function=add>\n", |
| 63 | "content": { |
| 64 | "type": "json_schema", |
| 65 | "json_schema": { |
| 66 | "type": "object", |
| 67 | "properties": { |
| 68 | "y": { |
| 69 | "type": "number" |
| 70 | }, |
| 71 | "x": { |
| 72 | "type": "number" |
| 73 | }, |
| 74 | "items": { |
| 75 | "type": "array", |
| 76 | "items": { |
| 77 | "type": "string" |
| 78 | } |
| 79 | } |
| 80 | }, |
| 81 | "required": [ |
| 82 | "y", |
| 83 | "x", |
| 84 | "items" |
| 85 | ] |
| 86 | }, |
| 87 | "style": "qwen_xml", |
| 88 | "any_order": false, |
| 89 | "max_whitespace_cnt": null, |
| 90 | "excludes": [] |
| 91 | }, |
| 92 | "end": "\n</function>\n</tool_call>" |
| 93 | } |
| 94 | ], |
| 95 | "at_least_one": false, |
| 96 | "stop_after_first": false, |
| 97 | "excludes": [ |
| 98 | "<think>", |
| 99 | "</think>" |
| 100 | ] |
| 101 | } |
| 102 | ] |
| 103 | }, |
| 104 | "coverage": "from_token_zero" |
| 105 | }, |
| 106 | "completion": "Need call the weather and add tools.\n</think>\n\nI will call the tools.\n\n<tool_call>\n<function=get_weather>\n<parameter=location>\nShanghai\n</parameter>\n</function>\n</tool_call>\n<tool_call>\n<function=add>\n<parameter=y>\n1.0\n</parameter>\n<parameter=x>\n2\n</parameter>\n<parameter=items>\n[\"left\", \"right\"]\n</parameter>\n</function>\n</tool_call>", |
| 107 | "generation_token_ids": [22916, 1562, 279, 8831, 321, 884, 7141, 13, 198, 248069, 271, 40, 668, 1562, 279, 7141, 13, 271, 248058, 198, 27, 1628, 27362, 67017, 29, 198, 27, 15704, 28, 2447, 29, 198, 1948, 29086, 198, 510, 15704, 29, 198, 510, 1628, 29, 198, 248059, 198, 248058, 198, 27, 1628, 89587, 29, 198, 27, 15704, 28408, 29, 198, 16, 13, 15, 198, 510, 15704, 29, 198, 27, 15704, 24582, 29, 198, 17, 198, 510, 15704, 29, 198, 27, 15704, 28, 3494, 29, 198, 1143, 2282, 487, 328, 1246, 1293, 198, 510, 15704, 29, 198, 510, 1628, 29, 198, 248059, 248046] |
| 108 | }, |
| 109 | "required": { |
| 110 | "grammar": { |
| 111 | "format": { |
| 112 | "type": "sequence", |
| 113 | "elements": [ |
| 114 | { |
| 115 | "type": "sequence", |
| 116 | "elements": [ |
| 117 | { |
| 118 | "type": "tag", |
| 119 | "begin": "", |
| 120 | "content": { |
| 121 | "type": "any_text", |
| 122 | "excludes": [], |
| 123 | "max_tokens": null, |
| 124 | "max_chars": null |
| 125 | }, |
| 126 | "end": "</think>" |
| 127 | }, |
| 128 | { |
| 129 | "type": "const_string", |
| 130 | "value": "\n\n" |
| 131 | } |
| 132 | ] |
| 133 | }, |
| 134 | { |
| 135 | "type": "triggered_tags", |
| 136 | "triggers": [ |
| 137 | "<tool_call>\n<function=" |
| 138 | ], |
| 139 | "tags": [ |
| 140 | { |
| 141 | "type": "tag", |
| 142 | "begin": "<tool_call>\n<function=get_weather>\n", |
| 143 | "content": { |
| 144 | "type": "json_schema", |
| 145 | "json_schema": { |
| 146 | "type": "object", |
| 147 | "properties": { |
| 148 | "location": { |
| 149 | "type": "string" |
| 150 | } |
| 151 | }, |
| 152 | "required": [ |
| 153 | "location" |
| 154 | ] |
| 155 | }, |
| 156 | "style": "qwen_xml", |
| 157 | "any_order": false, |
| 158 | "max_whitespace_cnt": null, |
| 159 | "excludes": [] |
| 160 | }, |
| 161 | "end": "\n</function>\n</tool_call>" |
| 162 | }, |
| 163 | { |
| 164 | "type": "tag", |
| 165 | "begin": "<tool_call>\n<function=add>\n", |
| 166 | "content": { |
| 167 | "type": "json_schema", |
| 168 | "json_schema": { |
| 169 | "type": "object", |
| 170 | "properties": { |
| 171 | "y": { |
| 172 | "type": "number" |
| 173 | }, |
| 174 | "x": { |
| 175 | "type": "number" |
| 176 | }, |
| 177 | "items": { |
| 178 | "type": "array", |
| 179 | "items": { |
| 180 | "type": "string" |
| 181 | } |
| 182 | } |
| 183 | }, |
| 184 | "required": [ |
| 185 | "y", |
| 186 | "x", |
| 187 | "items" |
| 188 | ] |
| 189 | }, |
| 190 | "style": "qwen_xml", |
| 191 | "any_order": false, |
| 192 | "max_whitespace_cnt": null, |
| 193 | "excludes": [] |
| 194 | }, |
| 195 | "end": "\n</function>\n</tool_call>" |
| 196 | } |
| 197 | ], |
| 198 | "at_least_one": true, |
| 199 | "stop_after_first": false, |
| 200 | "excludes": [ |
| 201 | "<think>", |
| 202 | "</think>" |
| 203 | ] |
| 204 | } |
| 205 | ] |
| 206 | }, |
| 207 | "coverage": "from_token_zero" |
| 208 | }, |
| 209 | "completion": "Need call the weather and add tools.\n</think>\n\n<tool_call>\n<function=get_weather>\n<parameter=location>\nShanghai\n</parameter>\n</function>\n</tool_call>\n<tool_call>\n<function=add>\n<parameter=y>\n1.0\n</parameter>\n<parameter=x>\n2\n</parameter>\n<parameter=items>\n[\"left\", \"right\"]\n</parameter>\n</function>\n</tool_call>", |
| 210 | "generation_token_ids": [22916, 1562, 279, 8831, 321, 884, 7141, 13, 198, 248069, 271, 248058, 198, 27, 1628, 27362, 67017, 29, 198, 27, 15704, 28, 2447, 29, 198, 1948, 29086, 198, 510, 15704, 29, 198, 510, 1628, 29, 198, 248059, 198, 248058, 198, 27, 1628, 89587, 29, 198, 27, 15704, 28408, 29, 198, 16, 13, 15, 198, 510, 15704, 29, 198, 27, 15704, 24582, 29, 198, 17, 198, 510, 15704, 29, 198, 27, 15704, 28, 3494, 29, 198, 1143, 2282, 487, 328, 1246, 1293, 198, 510, 15704, 29, 198, 510, 1628, 29, 198, 248059, 248046] |
| 211 | }, |
| 212 | "named": { |
| 213 | "grammar": { |
| 214 | "format": { |
| 215 | "type": "sequence", |
| 216 | "elements": [ |
| 217 | { |
| 218 | "type": "sequence", |
| 219 | "elements": [ |
| 220 | { |
| 221 | "type": "tag", |
| 222 | "begin": "", |
| 223 | "content": { |
| 224 | "type": "any_text", |
| 225 | "excludes": [], |
| 226 | "max_tokens": null, |
| 227 | "max_chars": null |
| 228 | }, |
| 229 | "end": "</think>" |
| 230 | }, |
| 231 | { |
| 232 | "type": "const_string", |
| 233 | "value": "\n\n" |
| 234 | } |
| 235 | ] |
| 236 | }, |
| 237 | { |
| 238 | "type": "tag", |
| 239 | "begin": "<tool_call>\n<function=get_weather>\n", |
| 240 | "content": { |
| 241 | "type": "json_schema", |
| 242 | "json_schema": { |
| 243 | "type": "object", |
| 244 | "properties": { |
| 245 | "location": { |
| 246 | "type": "string" |
| 247 | } |
| 248 | }, |
| 249 | "required": [ |
| 250 | "location" |
| 251 | ] |
| 252 | }, |
| 253 | "style": "qwen_xml", |
| 254 | "any_order": false, |
| 255 | "max_whitespace_cnt": null, |
| 256 | "excludes": [] |
| 257 | }, |
| 258 | "end": "\n</function>\n</tool_call>" |
| 259 | } |
| 260 | ] |
| 261 | }, |
| 262 | "coverage": "from_token_zero" |
| 263 | }, |
| 264 | "completion": "Need call the weather and add tools.\n</think>\n\n<tool_call>\n<function=get_weather>\n<parameter=location>\nShanghai\n</parameter>\n</function>\n</tool_call>", |
| 265 | "generation_token_ids": [22916, 1562, 279, 8831, 321, 884, 7141, 13, 198, 248069, 271, 248058, 198, 27, 1628, 27362, 67017, 29, 198, 27, 15704, 28, 2447, 29, 198, 1948, 29086, 198, 510, 15704, 29, 198, 510, 1628, 29, 198, 248059, 248046] |
| 266 | } |
| 267 | } |
| 268 | } |