mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 08:21:53 +08:00
[Engine] [Feature] Refactor async_llm:cross-process with EngineService,based on zmq communication (#4868)
* Refactor async_llm:cross-process with EngineService * fix: async_llm output process * fix: return prompt_token_ids and prompt_tokens in first res * optimize common_engine start func
This commit is contained in:
@@ -58,7 +58,7 @@ class BaseDataProcessor(ABC):
|
||||
def set_value(req, key, value):
|
||||
value = getattr(self.generation_config, key, value)
|
||||
if isinstance(req, dict):
|
||||
if key not in req:
|
||||
if key not in req or req[key] is None:
|
||||
req[key] = value
|
||||
else:
|
||||
if req.get(key) is None:
|
||||
|
||||
Reference in New Issue
Block a user