Spaces:
Running
Running
The "chat_template" attribute in the table is now a sign of its presence
Browse files- content.py +1 -1
- server.py +2 -2
content.py
CHANGED
@@ -36,7 +36,7 @@ LEADERBOARD_TAB_BELLOW_TABLE_MARKDOWN = """
|
|
36 |
| Abbr. | Description |
|
37 |
| ----- | ----------- |
|
38 |
| ML | max input length |
|
39 |
-
| CHAT | chat template |
|
40 |
| FAM | fewshot as multiturn |
|
41 |
"""
|
42 |
|
|
|
36 |
| Abbr. | Description |
|
37 |
| ----- | ----------- |
|
38 |
| ML | max input length |
|
39 |
+
| CHAT | presence of chat template |
|
40 |
| FAM | fewshot as multiturn |
|
41 |
"""
|
42 |
|
server.py
CHANGED
@@ -845,9 +845,9 @@ class LeaderboardServer:
|
|
845 |
|
846 |
for attr in ["n-shot", "fewshot_as_multiturn", "max_length", "chat_template"]:
|
847 |
attr_val = data["metadata"].get(attr, metadata_default_value)
|
|
|
|
|
848 |
attr_val = attr_val if attr_val != None else "none"
|
849 |
-
if attr == "chat_template" and isinstance(attr_val, str) and not to_csv:
|
850 |
-
attr_val = attr_val[:20]
|
851 |
local_results[attr] = attr_val
|
852 |
|
853 |
release = data["submission_metadata"].get("submission_timestamp")
|
|
|
845 |
|
846 |
for attr in ["n-shot", "fewshot_as_multiturn", "max_length", "chat_template"]:
|
847 |
attr_val = data["metadata"].get(attr, metadata_default_value)
|
848 |
+
if attr == "chat_template":
|
849 |
+
attr_val = isinstance(attr_val, str)
|
850 |
attr_val = attr_val if attr_val != None else "none"
|
|
|
|
|
851 |
local_results[attr] = attr_val
|
852 |
|
853 |
release = data["submission_metadata"].get("submission_timestamp")
|