Former-commit-id: cdc0d6f5a2e5040e145c82c4801f37bd76529047
This commit is contained in:
hiyouga
2024-06-07 19:16:06 +08:00
parent ba648fd003
commit f45e81e186
2 changed files with 5 additions and 6 deletions

View File

@@ -278,6 +278,9 @@ class Runner:
args = self._parse_train_args(data) if do_train else self._parse_eval_args(data)
env = deepcopy(os.environ)
env["LLAMABOARD_ENABLED"] = "1"
if args.get("deepspeed", None) is not None:
env["FORCE_TORCHRUN"] = "1"
self.trainer = Popen("llamafactory-cli train {}".format(save_cmd(args)), env=env, shell=True)
yield from self.monitor()