mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[BugFix] fix paddleocr prefix cache bug (#4625)
* fix paddleocr prefix cache bug * disable prefix-caching in ocr
This commit is contained in:
@@ -452,6 +452,8 @@ class EngineArgs:
|
||||
|
||||
if "PaddleOCR" in get_model_architecture(self.model, self.model_config_name):
|
||||
envs.FD_ENABLE_MAX_PREFILL = 1
|
||||
self.enable_prefix_caching = False
|
||||
self.max_encoder_cache = 0
|
||||
|
||||
@staticmethod
|
||||
def add_cli_args(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
|
||||
|
||||
Reference in New Issue
Block a user