Larger batches will reduce the effective learning rate.
I’m glad you have found the bug. I was going to point out that your pytorch version wasn’t generalising anywhere near as well as the keras version.