Single vs. Dual GPU Training Comparison of LeNet on Fashion-MNIST
Training the LeNet model on Fashion-MNIST with a batch size of 256 and a learning rate of 0.2 on a single GPU achieves a test accuracy of approximately 0.83 at around 3.0 seconds per epoch. When the number of GPUs is increased to 2 while keeping the batch size and learning rate unchanged, the test accuracy remains roughly the same (approximately 0.84), confirming that the optimization algorithm is mathematically identical regardless of the number of devices. However, no meaningful speedup is observed because the LeNet model is too small and the dataset too limited for multi-GPU parallelism to overcome the significant Python scheduling and synchronization overhead inherent in a from-scratch implementation. More complex models and sophisticated parallelization approaches are needed to realize tangible performance benefits.
0
1
Tags
D2L
Dive into Deep Learning @ D2L