e-mon commited on
Commit
31a7917
·
1 Parent(s): 10095f3
Files changed (2) hide show
  1. src/display/utils.py +3 -1
  2. src/submission/submit.py +6 -3
src/display/utils.py CHANGED
@@ -62,7 +62,9 @@ auto_eval_column_dict.append(
62
  )
63
  auto_eval_column_dict.append(["vllm_version", ColumnContent, ColumnContent("vllm version", "str", False)])
64
  auto_eval_column_dict.append(["enable_thinking", ColumnContent, ColumnContent("Enable Thinking", "bool", False)])
65
- auto_eval_column_dict.append(["apply_chat_template", ColumnContent, ColumnContent("Apply Chat Template", "bool", False)])
 
 
66
  auto_eval_column_dict.append(["dummy", ColumnContent, ColumnContent("model_name_for_query", "str", False, dummy=True)])
67
  auto_eval_column_dict.append(["row_id", ColumnContent, ColumnContent("ID", "number", False, dummy=True)])
68
 
 
62
  )
63
  auto_eval_column_dict.append(["vllm_version", ColumnContent, ColumnContent("vllm version", "str", False)])
64
  auto_eval_column_dict.append(["enable_thinking", ColumnContent, ColumnContent("Enable Thinking", "bool", False)])
65
+ auto_eval_column_dict.append(
66
+ ["apply_chat_template", ColumnContent, ColumnContent("Apply Chat Template", "bool", False)]
67
+ )
68
  auto_eval_column_dict.append(["dummy", ColumnContent, ColumnContent("model_name_for_query", "str", False, dummy=True)])
69
  auto_eval_column_dict.append(["row_id", ColumnContent, ColumnContent("ID", "number", False, dummy=True)])
70
 
src/submission/submit.py CHANGED
@@ -58,9 +58,12 @@ def add_new_eval( # noqa: C901
58
  enable_thinking_bool = enable_thinking == "True"
59
 
60
  # Validate configuration dependencies
61
- if enable_thinking_bool and not apply_chat_template_bool:
62
- return styled_error("Enable Thinking requires Apply Chat Template to be True.")
63
- if reasoning_parser and reasoning_parser.strip() and not enable_thinking_bool:
 
 
 
64
  return styled_error("Reasoning Parser requires Enable Thinking to be True.")
65
 
66
  # Is the model on the hub?
 
58
  enable_thinking_bool = enable_thinking == "True"
59
 
60
  # Validate configuration dependencies
61
+ if enable_thinking_bool:
62
+ if not apply_chat_template_bool:
63
+ return styled_error("Enable Thinking requires Apply Chat Template to be True.")
64
+ if not reasoning_parser or not reasoning_parser.strip():
65
+ return styled_error("Enable Thinking requires a Reasoning Parser to be selected.")
66
+ elif reasoning_parser and reasoning_parser.strip():
67
  return styled_error("Reasoning Parser requires Enable Thinking to be True.")
68
 
69
  # Is the model on the hub?