Tiny print launch command with shlex (#16010)

This commit is contained in:
Liangsheng Yin
2025-12-29 11:26:46 +08:00
committed by GitHub
parent 2ec6fa3c54
commit a435f55d18
4 changed files with 11 additions and 7 deletions
@@ -4,6 +4,7 @@
import argparse
import os
import shlex
import subprocess
import sys
@@ -53,7 +54,7 @@ def launch_distributed(
cmd.extend(args)
logger.info("Running inference with %d GPU(s)", num_gpus)
logger.info("Launching command: %s", " ".join(cmd))
logger.info("Launching command: %s", shlex.join(cmd))
current_env["PYTHONIOENCODING"] = "utf-8"
process = subprocess.Popen(