From 51a94aee0103835d64574dd0580e35d9a689d860 Mon Sep 17 00:00:00 2001 From: baymax591 Date: Fri, 26 Jul 2024 11:03:55 +0800 Subject: [PATCH] [Bug] fix bug: delete & (#1365) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 白超 --- opencompass/runners/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencompass/runners/local.py b/opencompass/runners/local.py index ea336d5b..84f19450 100644 --- a/opencompass/runners/local.py +++ b/opencompass/runners/local.py @@ -25,7 +25,7 @@ def get_command_template(gpu_ids: List[int]) -> str: """Format command template given available gpu ids.""" if is_npu_available(): tmpl = 'ASCEND_RT_VISIBLE_DEVICES=' + ','.join(str(i) for i in gpu_ids) - tmpl += ' & {task_cmd}' + tmpl += ' {task_cmd}' elif sys.platform == 'win32': # Always return win32 for Windows # use command in Windows format tmpl = 'set CUDA_VISIBLE_DEVICES=' + ','.join(str(i) for i in gpu_ids)