1
0
Fork 0

forgot to divide checkpoint freq by iterations to get checkpoint counts

master
mrq 2023-02-19 07:05:11 +07:00
parent 485319c2bb
commit d89b7d60e0
1 changed files with 2 additions and 2 deletions

@ -465,7 +465,7 @@ def run_training(config_path, verbose=False, buffer_size=8, progress=gr.Progress
its = config['train']['niter']
checkpoint = 0
checkpoints = config['logger']['save_checkpoint_freq']
checkpoints = config['logger']['save_checkpoint_freq'] / its
buffer_size = 8
open_state = False
@ -497,7 +497,7 @@ def run_training(config_path, verbose=False, buffer_size=8, progress=gr.Progress
progress(checkpoint / float(checkpoints), f'[{checkpoint}/{checkpoints}] Saving checkpoint...')
print(f"[Training] [{datetime.now().isoformat()}] {line[:-1]}")
if verbose:
yield "".join(buffer[-buffer_size:])