зеркало из https://github.com/microsoft/DeepSpeed.git
Sanitize inputs to eval() (#6745)
This commit is contained in:
Родитель
877aa0dba6
Коммит
9a2c209cee
|
@ -160,8 +160,11 @@ run_cmd="deepspeed.pt \
|
|||
--master_port ${master_port}
|
||||
${BingBertSquad_script} ${other_args} ${squad_args}"
|
||||
|
||||
echo ${run_cmd}
|
||||
eval ${run_cmd}
|
||||
# Sanitize input before running eval()
|
||||
safe_cmd=$(printf '%q' "$run_cmd")
|
||||
|
||||
echo ${safe_cmd}
|
||||
eval ${safe_cmd}
|
||||
|
||||
set +x
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче