mirror of
https://github.com/jingyaogong/minimind.git
synced 2026-04-25 08:48:16 +08:00
test
This commit is contained in:
parent
d37bfa9d75
commit
cfa8247f20
@ -50,6 +50,7 @@ def train_epoch(epoch, loader, iters, start_step=0, wandb=None):
|
||||
|
||||
optimizer.zero_grad(set_to_none=True)
|
||||
|
||||
|
||||
if step % args.log_interval == 0 or step == iters:
|
||||
spend_time = time.time() - start_time
|
||||
current_loss = loss.item() * args.accumulation_steps
|
||||
|
||||
Loading…
Reference in New Issue
Block a user