Update unwrap from accelerate (#29933)
* Use unwrap with the one in accelerate
* oups
* update unwrap
* fix
* wording
* raise error instead
* comment
* doc
* Update src/transformers/modeling_utils.py
Co-authored-by: Zach Mueller <muellerzr@gmail.com>
* style
* put else
---------
Co-authored-by: Zach Mueller <muellerzr@gmail.com>