mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[Iluvatar] Fix FD launch error when specifing CUDA_VISBLE_DEVICE (#5735)
This commit is contained in:
@@ -577,6 +577,10 @@ class LLMEngine:
|
||||
if self.cfg.structured_outputs_config.logits_processors is not None:
|
||||
arguments += f" --logits-processors {' '.join(self.cfg.structured_outputs_config.logits_processors)}"
|
||||
|
||||
# TODO (iluvatar): remove aftet paddle fix launch error
|
||||
if current_platform.is_iluvatar() and "CUDA_VISIBLE_DEVICES" in os.environ:
|
||||
arguments = arguments.replace(f"--devices {self.cfg.parallel_config.device_ids}", "")
|
||||
|
||||
worker_store_true_flag = {
|
||||
"enable_expert_parallel": self.cfg.parallel_config.enable_expert_parallel,
|
||||
"enable_chunked_moe": self.cfg.parallel_config.enable_chunked_moe,
|
||||
|
||||
Reference in New Issue
Block a user