diff --git a/src/llamafactory/webui/runner.py b/src/llamafactory/webui/runner.py index ec549cc4..e32035a3 100644 --- a/src/llamafactory/webui/runner.py +++ b/src/llamafactory/webui/runner.py @@ -320,12 +320,7 @@ class Runner: if args.get("deepspeed", None) is not None: env["FORCE_TORCHRUN"] = "1" - cmd = [ - "llamafactory-cli", - "train", - *save_cmd(args).split(), - ] - self.trainer = Popen(cmd, env=env) + self.trainer = Popen(["llamafactory-cli", "train", save_cmd(args)], env=env) yield from self.monitor() def _form_config_dict(self, data: Dict["Component", Any]) -> Dict[str, Any]: