[BugFix] fix paddleocr prefix cache bug (#4625)

* fix paddleocr prefix cache bug

* disable prefix-caching in ocr
This commit is contained in:
ming1753
2025-10-28 21:38:12 +08:00
committed by GitHub
parent fff5fb5e39
commit 561b9f38d3
5 changed files with 346 additions and 124 deletions

View File

@@ -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: