do not split save_cmd ret value

Former-commit-id: d20b97e7e9514e68c33d0428512fd21b548c1131
This commit is contained in:
hoshi-hiyouga 2024-11-21 22:30:23 +08:00 committed by GitHub
parent e272f87849
commit 1eaaa85980

View File

@ -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]: