[from_pretrained] imporve the error message when `_no_split_modules` is not defined (#23861)
* Better warning * Update src/transformers/modeling_utils.py Co-authored-by:Sylvain Gugger <35901082+sgugger@users.noreply.github.com> * format line --------- Co-authored-by:
Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Showing
Please register or sign in to comment