mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
[Fix] Update dlc runner python env (#1604)
This commit is contained in:
parent
4fde41036f
commit
f390697a5e
@ -182,7 +182,11 @@ class DLCRunner(BaseRunner):
|
||||
cfg_path=param_file,
|
||||
template=tmpl)
|
||||
cmd = get_cmd()
|
||||
|
||||
# Use specified python env instead of sys.executable
|
||||
if self.aliyun_cfg['python_env_path']:
|
||||
cmd = cmd.replace(
|
||||
sys.executable,
|
||||
f'{self.aliyun_cfg["python_env_path"]}/bin/python')
|
||||
logger = get_logger()
|
||||
logger.debug(f'Running command: {cmd}')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user