mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-23 22:32:54 +08:00
enable tqdm in webui
Former-commit-id: 5e6f808e3cd4f9a143562f2facb4f369d985eb26
This commit is contained in:
parent
59965c2dca
commit
65abcf1a94
@ -142,7 +142,6 @@ class Runner:
|
|||||||
bf16=(get("train.compute_type") == "bf16"),
|
bf16=(get("train.compute_type") == "bf16"),
|
||||||
pure_bf16=(get("train.compute_type") == "pure_bf16"),
|
pure_bf16=(get("train.compute_type") == "pure_bf16"),
|
||||||
)
|
)
|
||||||
args["disable_tqdm"] = True
|
|
||||||
|
|
||||||
if args["finetuning_type"] == "freeze":
|
if args["finetuning_type"] == "freeze":
|
||||||
args["num_layer_trainable"] = get("train.num_layer_trainable")
|
args["num_layer_trainable"] = get("train.num_layer_trainable")
|
||||||
@ -233,7 +232,6 @@ class Runner:
|
|||||||
temperature=get("eval.temperature"),
|
temperature=get("eval.temperature"),
|
||||||
output_dir=get_save_dir(get("top.model_name"), get("top.finetuning_type"), get("eval.output_dir")),
|
output_dir=get_save_dir(get("top.model_name"), get("top.finetuning_type"), get("eval.output_dir")),
|
||||||
)
|
)
|
||||||
args["disable_tqdm"] = True
|
|
||||||
|
|
||||||
if get("eval.predict"):
|
if get("eval.predict"):
|
||||||
args["do_predict"] = True
|
args["do_predict"] = True
|
||||||
|
@ -42,7 +42,6 @@ def clean_cmd(args: Dict[str, Any]) -> Dict[str, Any]:
|
|||||||
|
|
||||||
|
|
||||||
def gen_cmd(args: Dict[str, Any]) -> str:
|
def gen_cmd(args: Dict[str, Any]) -> str:
|
||||||
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={} llamafactory-cli train ".format(current_devices)]
|
cmd_lines = ["CUDA_VISIBLE_DEVICES={} llamafactory-cli train ".format(current_devices)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user