[modeling_utils] torch_dtype/auto floating dtype fixes (#17614)
* [modeling_utils] torch_dtype/auto fixes
* add test
* apply suggestions
* add missing fallback
* Renaming things
* Use for else
Co-authored-by: Sylvain Gugger <Sylvain.gugger@gmail.com>