With https://github.com/keras-team/keras-nlp/pull/804, we are moving generative compilation into the task model. We should add a base class for all generative tasks models that can pull out some of the common compilation code for tasks with a `generate` method.