-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HF: switch conditional checks to self.backend
from AUTO_MODEL_CLASS
#2353
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a bunch for working on this!!
Broadly this is the right approach, but I had a different thought on how we should handle things while maintaining user back-compatibility--described in my PR comments. That should also ensure that we still respect novel subclass-overridden self.AUTO_MODEL_CLASS
values.
@haileyschoelkopf ready to review again! Still need to test, but wanted to make sure if I understood you correctly. |
# Conflicts: # tests/models/test_huggingface.py
We discussed offline and resolved comments! |
…S` (EleutherAI#2353) * switch conditional checks to `self.backend` * nit * nit * commit feedback * fix test; update precommit hooks * add escape hatch for custom self.AUTO_MODEL_CLASS * add escape hatch for custom self.AUTO_MODEL_CLASS * fix * move assertion * add logging messages * update AUTO_MODEL_CLASS behavior in _get_backend --------- Co-authored-by: haileyschoelkopf <hailey@eleuther.ai>
The conditions in HFLM now check for either
causal
orseq2seq
rather than checking for theAUTO_MODEL_CLASS