mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
delete parallel_state.py (#3250)
This commit is contained in:
@@ -68,7 +68,11 @@ class GpuWorker(WorkerBase):
|
||||
|
||||
gc.collect()
|
||||
paddle.device.cuda.empty_cache()
|
||||
if self.parallel_config.enable_custom_all_reduce:
|
||||
if (
|
||||
self.parallel_config.enable_custom_all_reduce
|
||||
and self.parallel_config.tensor_parallel_size > 1
|
||||
and paddle.is_compiled_with_cuda()
|
||||
):
|
||||
from fastdeploy.distributed.communication import use_custom_allreduce
|
||||
|
||||
use_custom_allreduce()
|
||||
|
Reference in New Issue
Block a user