disable tqdm in webui mode

This commit is contained in:
hiyouga 2023-10-15 16:18:25 +08:00
parent ea82f8a82a
commit 0d63584c03
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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 != "":