AI Model Training vs Inference: Understanding the Two Phases of Machine Learning