Generate: force cache with `inputs_embeds` forwarding
# What does this PR do?

Fixes the issue raised in [this comment](https://github.com/huggingface/transformers/issues/23042#issuecomment-1618513599).

The issue and the solution is described in the comment added alongside the change :)
_The documentation is not available anymore as the PR was closed or merged._