do not split save_cmd ret value

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

View File

@ -320,12 +320,7 @@ class Runner:
if args.get("deepspeed", None) is not None: if args.get("deepspeed", None) is not None:
env["FORCE_TORCHRUN"] = "1" env["FORCE_TORCHRUN"] = "1"
cmd = [ self.trainer = Popen(["llamafactory-cli", "train", save_cmd(args)], env=env)
"llamafactory-cli",
"train",
*save_cmd(args).split(),
]
self.trainer = Popen(cmd, env=env)
yield from self.monitor() yield from self.monitor()
def _form_config_dict(self, data: Dict["Component", Any]) -> Dict[str, Any]: def _form_config_dict(self, data: Dict["Component", Any]) -> Dict[str, Any]: