[Feature][Frontend]: Deprecate --enable-reasoning (#17452)
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
@@ -365,8 +365,9 @@ class EngineArgs:
|
||||
calculate_kv_scales: bool = CacheConfig.calculate_kv_scales
|
||||
|
||||
additional_config: Optional[Dict[str, Any]] = None
|
||||
enable_reasoning: Optional[bool] = None
|
||||
reasoning_parser: Optional[str] = DecodingConfig.reasoning_backend
|
||||
enable_reasoning: Optional[bool] = None # DEPRECATED
|
||||
reasoning_parser: str = DecodingConfig.reasoning_backend
|
||||
|
||||
use_tqdm_on_load: bool = LoadConfig.use_tqdm_on_load
|
||||
|
||||
def __post_init__(self):
|
||||
@@ -798,8 +799,15 @@ class EngineArgs:
|
||||
"--enable-reasoning",
|
||||
action="store_true",
|
||||
default=False,
|
||||
help="Whether to enable reasoning_content for the model. "
|
||||
"If enabled, the model will be able to generate reasoning content."
|
||||
help=
|
||||
"[DEPRECATED] " \
|
||||
"The --enable-reasoning flag is deprecated as of v0.8.6. "
|
||||
"Use --reasoning-parser to specify " \
|
||||
"the reasoning parser backend instead. "
|
||||
"This flag (--enable-reasoning) will be " \
|
||||
"removed in v0.10.0. "
|
||||
"When --reasoning-parser is specified, " \
|
||||
"reasoning mode is automatically enabled."
|
||||
)
|
||||
|
||||
return parser
|
||||
@@ -1088,7 +1096,6 @@ class EngineArgs:
|
||||
disable_additional_properties=\
|
||||
self.guided_decoding_disable_additional_properties,
|
||||
reasoning_backend=self.reasoning_parser
|
||||
if self.enable_reasoning else None,
|
||||
)
|
||||
|
||||
observability_config = ObservabilityConfig(
|
||||
|
||||
Reference in New Issue
Block a user