mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
deepspeed
This commit is contained in:
parent
4121b8907c
commit
7dc37efc3f
@ -593,6 +593,8 @@ class Trainer:
|
||||
time_beg = time.perf_counter()
|
||||
time5 = time_beg
|
||||
for batch_idx, batch in enumerate(dataloader_train):
|
||||
if batch_idx == 0 and (self.use_ddp or self.use_fsdp or self.use_deepspeed):
|
||||
dist.barrier()
|
||||
self.batch_total += 1
|
||||
self.step_in_epoch += 1
|
||||
loss_dict = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user