chore(typing): added modeling_utils to ty (#45425)
* chore(typing): added modeling_utils to ty
* revert uneeded setattr
* refine the skill with what we have learned here
* revert change on skill
* @vasqu reviews
* added a small helper for splitting the attention impl
* remove unneeded ty check
* added a comment
* Update src/transformers/utils/generic.py
Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>
* fix trailng spaces from the Github UI edit
---------
Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>