-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
CLI: Don't check the model head when there is no model head #18733
Conversation
cc @ChrisFugl (related to #18678 ) |
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.
LGTM! 👍
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
OK, so it was empty dict, and we can't take max of the values, right? LGTM, thank you @gante |
nit: I would probably check if the dict is empty or not, instead of check For example, |
@ydshieh that is a great point! Going to change it |
@ydshieh added your suggestion (plus a check -- a model specified head should have outputs beyond |
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.
Great! Thanks again.
What does this PR do?
As the title says -- when there is no model head, don't check it :)
When
architectures
is not defined, it is implied that there is no model head in the weights.