Datasets:
File size: 3,918 Bytes
d362e21 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | {
"bench_id": "chat-template-toolcall-bench",
"bench_version": "1.0",
"measured_at_utc": "2026-11-16T16:46:28Z",
"measured_at_ist": "2026-11-16 22:16 IST",
"elapsed_sec": 32.2,
"transformers_version": "5.22.2",
"python_version": "3.13.5",
"n_repos_listed": 41,
"n_repos_measured": 41,
"n_load_errors": 0,
"n_unique_templates": 33,
"n_cases": 10,
"C1_dict_args_pass": 40,
"C2_string_args_pass": 3,
"C2_string_args_crash": 32,
"C2_string_args_clear": 5,
"C2_string_args_double": 1,
"C2_string_args_dropped": 0,
"C10_name_escape_pass": 0,
"C10_name_escape_raw": 40,
"C10_name_escape_error": 1,
"n_dict_pass": 40,
"of_dict_pass_string_crash": 31,
"of_dict_pass_string_clear": 5,
"of_dict_pass_string_ok": 3,
"of_dict_pass_string_double": 1,
"of_dict_pass_name_raw": 40,
"cases": [
{
"id": "C1_dict_args",
"short": "dict_args",
"title": "Dict arguments (baseline)",
"kind": "render"
},
{
"id": "C2_string_args",
"short": "string_args",
"title": "OpenAI-style string arguments",
"kind": "render"
},
{
"id": "C3_empty_args",
"short": "empty_args",
"title": "Empty dict arguments",
"kind": "render"
},
{
"id": "C4_empty_string_args",
"short": "empty_string_args",
"title": "Empty string arguments",
"kind": "render"
},
{
"id": "C5_nested_args",
"short": "nested_args",
"title": "Nested dict arguments",
"kind": "render"
},
{
"id": "C6_nested_string_args",
"short": "nested_string_args",
"title": "Nested string arguments",
"kind": "render"
},
{
"id": "C7_unicode_args",
"short": "unicode_args",
"title": "Unicode dict arguments",
"kind": "render"
},
{
"id": "C8_unicode_string_args",
"short": "unicode_string_args",
"title": "Unicode string arguments",
"kind": "render"
},
{
"id": "C9_multi_tool_calls",
"short": "multi_tool_calls",
"title": "Multiple tool calls",
"kind": "render"
},
{
"id": "C10_name_escape",
"short": "name_escape",
"title": "Tool-name escaping",
"kind": "escape"
}
],
"caveat": "A crash or a clear TemplateError on string arguments is a chat-template spec-compatibility issue, not a model-quality bug. transformers documents tool-call arguments as a mapping. This bench still scores OpenAI-style JSON strings because that is what many harnesses, traces, and datasets actually feed apply_chat_template.",
"by_case": {
"dict_args": {
"pass": 40,
"fail_crash": 1
},
"string_args": {
"fail_crash": 32,
"fail_clear": 5,
"pass": 3,
"fail_double_encoded": 1
},
"empty_args": {
"pass": 40,
"fail_crash": 1
},
"empty_string_args": {
"fail_crash": 32,
"fail_clear": 2,
"pass": 6,
"fail_double_encoded": 1
},
"nested_args": {
"pass": 40,
"fail_crash": 1
},
"nested_string_args": {
"fail_crash": 32,
"fail_clear": 5,
"pass": 3,
"fail_double_encoded": 1
},
"unicode_args": {
"pass": 40,
"fail_crash": 1
},
"unicode_string_args": {
"fail_crash": 32,
"fail_clear": 5,
"pass": 3,
"fail_double_encoded": 1
},
"multi_tool_calls": {
"pass": 40,
"fail_crash": 1
},
"name_escape": {
"fail_raw_name": 40,
"fail_crash": 1
}
},
"of_dict_pass_empty_args_pass": 40,
"of_dict_pass_nested_args_pass": 40,
"of_dict_pass_unicode_args_pass": 40,
"of_dict_pass_multi_pass": 40,
"of_dict_pass_empty_string_pass": 6,
"of_dict_pass_empty_string_crash": 31,
"of_dict_pass_empty_string_clear": 2,
"of_dict_pass_empty_string_double": 1,
"best_score": 9,
"n_with_best": 3,
"n_perfect": 0
}
|