-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
Minor error condition bug fix #33781
Conversation
Hi @htahboub, I don't think the proposed change is correct. The current logic condition is XOR i.e. it will fail if both or neither are specified, which is what we want to check for. If you think the error message can be improved or clarified feel free to propose an update! |
Hey! 🤗 Thanks for your contribution to the Before merging this pull request, slow tests CI should be triggered. To enable this:
(For maintainers) The documentation for slow tests CI on PRs is here. |
Hey @amyeroberts. Sure, I thought that may be the case, in which case the error message is a little unclear. I have made changes to make that more explicit. |
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 for the update!
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 for updating!
Could you roll out this change to all the other places in the library where the original message was used? I think it's in a few of our VLM models
Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com>
Thanks @amyeroberts, just made the change to the rest of the repo! |
Hi @htahboub, there are some tests failing, can you please run |
Thanks @qubvel, just ran the command and pushed the changes. |
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 🤗
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
* Error condition bug fix * Update error message * Update src/transformers/models/qwen2_vl/modeling_qwen2_vl.py Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com> * Making change in the rest of the repo * Formatting * Formatting with ruff --------- Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com>
This error condition appears to be incorrect. Based on the error message, this should be triggered if both
input_ids
andinputs_embeds
are provided. However, it is currently triggered if neither is provided.@simonJJJ, @amyeroberts, @qubvel