mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[BugFix] Fix EB5 model runner compatibility check in worker process (#6673)
This commit is contained in:
@@ -563,7 +563,7 @@ class PaddleDisWorkerProc:
|
||||
|
||||
if (
|
||||
not self.parallel_config.use_ep
|
||||
and not current_platform.is_cuda()
|
||||
and hasattr(self.worker.model_runner, "not_need_stop")
|
||||
and not self.worker.model_runner.not_need_stop()
|
||||
):
|
||||
self._tp_barrier_wait() if tp_size > 1 else None
|
||||
@@ -581,7 +581,7 @@ class PaddleDisWorkerProc:
|
||||
|
||||
if (
|
||||
not self.parallel_config.use_ep
|
||||
and current_platform.is_cuda()
|
||||
and hasattr(self.worker.model_runner, "current_launch_token_num")
|
||||
and self.worker.model_runner.current_launch_token_num == 0
|
||||
):
|
||||
self._tp_barrier_wait() if tp_size > 1 else None
|
||||
|
||||
Reference in New Issue
Block a user