-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Pin revision for LayoutLMForQuestionAnswering and TFLayoutLMForQuestionAnswering tests #18854
Conversation
The documentation is not available anymore as the PR was closed or merged. |
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 lot, @ankrgyl !
@@ -1285,7 +1285,9 @@ def forward( | |||
>>> import torch | |||
|
|||
>>> tokenizer = AutoTokenizer.from_pretrained("impira/layoutlm-document-qa", add_prefix_space=True) | |||
>>> model = LayoutLMForQuestionAnswering.from_pretrained("impira/layoutlm-document-qa") | |||
>>> model = LayoutLMForQuestionAnswering.from_pretrained( | |||
... "impira/layoutlm-document-qa", revision="1e3ebacae311132a7c4a8df2d350d7e4ffd6ff0a" |
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.
Note that you only need to put the first 7 characters for the commit hash, might be less intimidating (and fit in one line) this way.
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.
Good point. Just updated.
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.
Perfect, thanks!
…onAnswering tests (huggingface#18854) * Pin revision for tests * Fixup * Update revision in models * Shorten revisions Co-authored-by: Ankur Goyal <ankur@impira.com>
What does this PR do?
The newly introduced tests for
LayoutLMForQuestionAnswering
andTFLayoutLMForQuestionAnswering
broke due to a change to the weights in https://huggingface.co/impira/layoutlm-document-qa. To make sure a weights change does not break tests, I've pinned the revisions in these tests. I'll separately investigate the weights and debug if something is broken with them.Before submitting
Pull Request section?
to it if that's the case.
It was raised here: #18407.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
@NielsRogge @ydshieh