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

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