From 04b86b3c5ccbaf464a082be79b91010546910bc9 Mon Sep 17 00:00:00 2001 From: Liangsheng Yin Date: Fri, 3 Oct 2025 18:29:27 +0800 Subject: [PATCH] [hot-fix] Fix CI break which caused by adding `thinking_mode` in eval (#11192) --- python/sglang/test/run_eval.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/python/sglang/test/run_eval.py b/python/sglang/test/run_eval.py index 276af9030..ac68e93ab 100644 --- a/python/sglang/test/run_eval.py +++ b/python/sglang/test/run_eval.py @@ -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 {}