mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 04:32:50 +08:00
disable tqdm in webui mode
Former-commit-id: 0d63584c036a65cc81e5db504274bdf9808d1849
This commit is contained in:
parent
f3fa47fa7d
commit
e5e740b54d
@ -118,6 +118,7 @@ class Runner:
|
||||
output_dir=output_dir
|
||||
)
|
||||
args[get("train.compute_type")] = True
|
||||
args["disable_tqdm"] = True
|
||||
|
||||
if TRAINING_STAGES[get("train.training_stage")] in ["rm", "ppo", "dpo"]:
|
||||
args["resume_lora_training"] = (args["quantization_bit"] is not None)
|
||||
|
@ -72,8 +72,8 @@ def can_quantize(finetuning_type: str) -> Dict[str, Any]:
|
||||
|
||||
|
||||
def gen_cmd(args: Dict[str, Any]) -> str:
|
||||
if args.get("do_train", None):
|
||||
args["plot_loss"] = True
|
||||
args.pop("disable_tqdm", None)
|
||||
args["plot_loss"] = args.get("do_train", None)
|
||||
cmd_lines = ["CUDA_VISIBLE_DEVICES=0 python src/train_bash.py "]
|
||||
for k, v in args.items():
|
||||
if v is not None and v != "":
|
||||
|
Loading…
x
Reference in New Issue
Block a user