-
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
DocumentQuestionAnsweringPipeline
only for fast ⚡ tokenizers
#22745
Conversation
The documentation is not available anymore as the PR was closed or merged. |
return True | ||
|
||
return False | ||
|
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.
See the change in tests/test_pipeline_mixin.py
return False | ||
return super().is_pipeline_test_to_skip( | ||
pipeline_test_casse_name, config_class, model_architecture, tokenizer_name, processor_name | ||
) |
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.
need to call super()
): | ||
# This pipeline uses `sequence_ids()` which is only available for fast tokenizers. | ||
return True | ||
|
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.
A place where the logic doesn't rely on the model classes
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
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, thanks a lot!
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
…ngface#22745) * fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
What does this PR do?
So let's make this more clear and explicit.