mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-05 18:32:14 +08:00
fix gen_args
Former-commit-id: c3e2f4f07b7fb3b1d7d2b44451660f082a467aed
This commit is contained in:
parent
5fd6199ef8
commit
a340785c6a
@ -45,7 +45,7 @@ def gen_cmd(args: Dict[str, Any]) -> str:
|
|||||||
args.pop("disable_tqdm", None)
|
args.pop("disable_tqdm", None)
|
||||||
args["plot_loss"] = args.get("do_train", None)
|
args["plot_loss"] = args.get("do_train", None)
|
||||||
current_devices = os.environ.get("CUDA_VISIBLE_DEVICES", "0")
|
current_devices = os.environ.get("CUDA_VISIBLE_DEVICES", "0")
|
||||||
cmd_lines = ["CUDA_VISIBLE_DEVICES={} python src/train_bash.py ".format(current_devices)]
|
cmd_lines = ["CUDA_VISIBLE_DEVICES={} llamafactory-cli train ".format(current_devices)]
|
||||||
for k, v in clean_cmd(args).items():
|
for k, v in clean_cmd(args).items():
|
||||||
cmd_lines.append(" --{} {} ".format(k, str(v)))
|
cmd_lines.append(" --{} {} ".format(k, str(v)))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user