fix(generation): Enforce the auto-compile cache check for encoder-decoder models (#48364)
* fix: Enforce the auto-compile cache check for encoder-decoder models
* change: Update generation/utils.py
Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>
* fix: Changes
---------
Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>