[bnb] Small improvements on utils (#18646)
* Small replacement
- replace `modules_to_not_convert` by `module_to_not_convert`
* refactor a bit
- changed variables name
- now output a list
- change error message
* make style
* add list
* make style
* change args name
Co-authored-by: stas00 <stas00@users.noreply.github.com>
* fix comment
* fix typo
Co-authored-by: stas00 <stas00@users.noreply.github.com>
* Update src/transformers/modeling_utils.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Co-authored-by: stas00 <stas00@users.noreply.github.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>