Building and deploying machine-learning models isn’t computationally cheap. Here’s how to save, according to cloud and AI experts.