Skip to content

Commit 1ba50ed

Browse files
PareesaMSmrwyattii
andauthored
Resolving epochs being hard-coded (deepspeedai#759)
Co-authored-by: Michael Wyatt <mrwyattii@gmail.com>
1 parent 0855679 commit 1ba50ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

training/cifar/cifar10_deepspeed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def create_moe_param_groups(model):
343343
# We simply have to loop over our data iterator, and feed the inputs to the
344344
# network and optimize.
345345

346-
for epoch in range(2): # loop over the dataset multiple times
346+
for epoch in range(args.epochs): # loop over the dataset multiple times
347347

348348
running_loss = 0.0
349349
for i, data in enumerate(trainloader):

0 commit comments

Comments
 (0)