mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
修复剩余的"is not support"语法错误
Co-authored-by: Jiang-Jia-Jun <163579578+Jiang-Jia-Jun@users.noreply.github.com>
This commit is contained in:
@@ -438,12 +438,12 @@ class EngineClient:
|
||||
raise ParameterError("prompt_logprobs", err_msg)
|
||||
|
||||
if not envs.FD_USE_GET_SAVE_OUTPUT_V1:
|
||||
err_msg = "prompt_logprobs is not support when FD_USE_GET_SAVE_OUTPUT_V1 is disabled."
|
||||
err_msg = "prompt_logprobs is not supported when FD_USE_GET_SAVE_OUTPUT_V1 is disabled."
|
||||
api_server_logger.error(err_msg)
|
||||
raise ParameterError("prompt_logprobs", err_msg)
|
||||
|
||||
if self.enable_prefix_caching:
|
||||
err_msg = "prompt_logprobs is not support when prefix caching is enabled."
|
||||
err_msg = "prompt_logprobs is not supported when prefix caching is enabled."
|
||||
api_server_logger.error(err_msg)
|
||||
raise ParameterError("prompt_logprobs", err_msg)
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ class SiluAndMul(nn.Layer):
|
||||
bfloat16 as default dtype, but received {self._dtype}"
|
||||
)
|
||||
|
||||
# fp8 is not support smooth quantization
|
||||
# fp8 does not support smooth quantization
|
||||
if fd_config.quant_config and "fp8" in fd_config.quant_config.name():
|
||||
self.dequant_scales = None
|
||||
self.shift = None
|
||||
|
||||
@@ -19,7 +19,7 @@ from fastdeploy.platforms import current_platform
|
||||
from .base import Proposer
|
||||
from .mtp import MTPProposer
|
||||
|
||||
# XPU is not support ngram proposer now
|
||||
# XPU does not support ngram proposer now
|
||||
if not current_platform.is_xpu():
|
||||
from .ngram import NgramProposer
|
||||
__all__ = ["Proposer", "MTPProposer", "NgramProposer"]
|
||||
|
||||
Reference in New Issue
Block a user