Closed zly-idleness closed 1 month ago
cc @amyeroberts and @muellerz as you have been working on a PR for that
Hi @zly-idleness, thanks for raising!
We merged in #32656 which should address this. It's currently just on main
and will be part of the next release. If you want to try the development branch with this feature, you can install from source: pip install git+https://github.com/huggingface/transformers
Hi @zly-idleness, thanks for raising!
We merged in #32656 which should address this. It's currently just on
main
and will be part of the next release. If you want to try the development branch with this feature, you can install from source:pip install git+https://github.com/huggingface/transformers
I have reviewed the recent commit, but it failed to solve the issue I'm facing. There have been prior commits addressing this bug, and my current version of the code already includes mechanisms to detect such behavior. However, the expected warning messages from the logger are not being outputted. To address this, I've submitted a pull request that enhances the _load_pretrained_model() function with additional warnings and informational messages. With these changes, the warning messages are now correctly displayed.
Ah, OK, I see - thanks for explaining and opening up a PR to address!
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
System Info
transformers
version: 4.44.2Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Just like #29554 previous commit just info at load_state and no warning message if you load model just in
there will be no warning message at all !!
Expected behavior