Engineering AI Model Training: From Theory to Application