Skip to content

Commit

Permalink
[Fix] Update dlc runner python env (open-compass#1604)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaiziXiao authored Oct 14, 2024
1 parent 4fde410 commit f390697
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion opencompass/runners/dlc.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ def _launch(self, cfg: ConfigDict, random_sleep: Optional[bool] = None):
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}')

Expand Down

0 comments on commit f390697

Please sign in to comment.