Fix ONNX exports for Optimum compatible models (#31311)
* fixed models
* format with bumped ruff version on my local
* fix copies
* add tracing checks
* format
* Update src/transformers/utils/generic.py
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* format
* style fix
* Update modeling_mobilevit.py
* add docstring and change name
* Update __init__.py
* Update __init__.py
---------
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>