mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[FDConfig]Remove reasoning_parser/guided_decoding_backend/disable_any_whitespace/device_ids in FDConfig (#4362)
* remove devices id * fix unittest * fix ce --------- Co-authored-by: root <root@yqlcc01-sys-rpm12rzmwjd.yqlcc01.baidu.com>
This commit is contained in:
@@ -41,7 +41,7 @@ def get_guided_backend(
|
||||
Raises:
|
||||
ValueError: If the specified backend is not supported
|
||||
"""
|
||||
if fd_config.parallel_config.guided_decoding_backend.lower() == "xgrammar":
|
||||
if fd_config.structured_outputs_config.guided_decoding_backend.lower() == "xgrammar":
|
||||
from fastdeploy.model_executor.guided_decoding.xgrammar_backend import (
|
||||
XGrammarBackend,
|
||||
)
|
||||
@@ -52,7 +52,7 @@ def get_guided_backend(
|
||||
)
|
||||
else:
|
||||
raise ValueError(
|
||||
f"Get unsupported backend {fd_config.parallel_config.guided_decoding_backend},"
|
||||
f"Get unsupported backend {fd_config.structured_outputs_config.guided_decoding_backend},"
|
||||
f" please check your configuration."
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user