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:
@@ -814,6 +814,8 @@ def initialize_fd_config(args, ranks: int = 1, local_rank: int = 0) -> FDConfig:
|
||||
architecture = fd_config.model_config.architectures[0]
|
||||
if "PaddleOCR" in architecture:
|
||||
envs.FD_ENABLE_MAX_PREFILL = 1
|
||||
fd_config.cache_config.enable_prefix_caching = False
|
||||
fd_config.cache_config.max_encoder_cache = 0
|
||||
return fd_config
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user