Prepare inputs for generation is called from `super()` (#43280)
* tests if it works
* more models
* attn mask in mamba models is `None`
* fix repo
* nit: kwargs duplicated
* fix repo and tests again
* oops, skip the other ModelTest
* Update tests/models/git/test_modeling_git.py
Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>
* fix GIT
* update comments
* kosmos pos ids
* Update src/transformers/models/git/modeling_git.py
Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>
* Update src/transformers/models/git/modeling_git.py
Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>
---------
Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>