Generate - update cookie cutters to not initialize cache with training and gradient checkpointing
# What does this PR do?

Add the changes in #21733 to the cookie-cutter files.

The other modeling files are being tracked in the following "Good First Issue": #21737 
_The documentation is not available anymore as the PR was closed or merged._