[M2M100, XGLM] fix create_position_ids_from_inputs_embeds
# What does this PR do?

The `create_position_ids_from_inputs_embeds` method does not use the `past_key_values_length` when creating `input_ids` , which creates issues in generation when `use_cache=True`. This PR fixes the `create_position_ids_from_inputs_embeds` method.

Fixes #15736
_The documentation is not available anymore as the PR was closed or merged._