Very slow loading of the Convnet pretrained model on lesson 1

The default num_workers set in dataset.py is 8, and that’s what the 3rd and 4th fit() were using (the lengthier ones). I anyway ran all with num_workers set to 4:

learn.fit() Before After After num_worker=4
learn.fit(0.01, 1) 2.83 s 1.97 s 1.94 s
learn.fit(1e-2, 1) 2.68 s 2.02 s 2.04 s
learn.fit(1e-2, 3, cycle_len=1) 1min 58s 2min 12s 2min 26s
learn.fit(lr, 3, cycle_len=1, cycle_mult=2) 11min 42s 12min 2s 12min 3s
learn.fit(1e-2, 1) 2.59 s 1.95 s 2.02 s

1 Like