Scaling deep learning for science