mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 00:33:03 +08:00
[BugFix] Forbiden FD_DISABLED_RECOVER while ENABLE_V1_KVCACHE_SCHEDULER (#4142)
Co-authored-by: Jiang-Jia-Jun <jiangjiajun@baidu.com>
This commit is contained in:
@@ -1350,6 +1350,11 @@ class FDConfig:
|
|||||||
if self.scheduler_config is not None:
|
if self.scheduler_config is not None:
|
||||||
self.scheduler_config.check()
|
self.scheduler_config.check()
|
||||||
|
|
||||||
|
if int(envs.ENABLE_V1_KVCACHE_SCHEDULER) == 1:
|
||||||
|
assert (
|
||||||
|
int(envs.FD_DISABLED_RECOVER) == 0
|
||||||
|
), "FD_DISABLED_RECOVER is not supported while ENABLE_V1_KVCACHE_SCHEDULER is turned on."
|
||||||
|
|
||||||
def print(self):
|
def print(self):
|
||||||
"""
|
"""
|
||||||
print all config
|
print all config
|
||||||
|
Reference in New Issue
Block a user