do not split save_cmd ret value

This commit is contained in:
hoshi-hiyouga
2024-11-21 22:30:23 +08:00
committed by GitHub
parent aa6a174d68
commit d20b97e7e9

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