generative ai models are typically trained using