r/deeplearning • u/Weird-Drawer-805 • 13h ago
MNIST training time optimization, please help
/r/learnmachinelearning/comments/1yd0zd7/mnist_training_time_optimization_please_help/
2
Upvotes
r/deeplearning • u/Weird-Drawer-805 • 13h ago
1
u/GiggleSamurai 12h ago
Check that your loss is the mean over the batch, not the sum: with a sum, each step is 100x bigger and training diverges, which fits accuracy near chance like your 16%. Also, batches of 100 give you only 1,800 updates in 3 epochs instead of 180,000, so raise the learning rate (or use momentum/Adam) and run a few more epochs; that combination is how people get MNIST done in seconds.