[hot-fix] Fix CI break which caused by adding thinking_mode in eval (#11192)

This commit is contained in:
Liangsheng Yin
2025-10-03 18:29:27 +08:00
committed by GitHub
parent d6777a706d
commit 04b86b3c5c

View File

@@ -17,13 +17,14 @@ from sglang.test.simple_eval_common import (
def get_thinking_kwargs(args):
if args.thinking_mode in THINKING_MODE_CHOICES:
thinking_param = (
"thinking" if args.thinking_mode == "deepseek-v3" else "enable_thinking"
)
thinking_mode = getattr(args, "thinking_mode", None)
if thinking_mode in THINKING_MODE_CHOICES:
if thinking_mode == "deepseek-v3":
thinking_param = "thinking"
else:
thinking_param = "enable_thinking"
return {
"chat_template_kwargs": {thinking_param: True},
"separate_reasoning": True,
}
return {}