-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Un-deprecate timeout arg in pipelines #34382
Conversation
cc @LysandreJik @Wauplin for review! |
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. |
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 @Rocketknight1! Looks good. Let's wait for another review though
@@ -916,6 +916,8 @@ def parse_args_from_docstring_by_indentation(docstring): | |||
|
|||
|
|||
def compare_pipeline_args_to_hub_spec(pipeline_class, hub_spec): | |||
ALLOWED_TRANSFORMERS_ONLY_ARGS = ["timeout"] |
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.
Maybe over-engineering things here but I would make this list pipeline-specific
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.
(feel free to ignore though, we can also do it next time a "transformers"-only arg is added)
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.
Yeah, it shouldn't be too painful to make that change when we need to!
(x-linking #34290 (comment) where this PR was discussed) |
b685a2d
to
9cc9c6a
Compare
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.
Yes! Thanks @Rocketknight1
9cc9c6a
to
81d367c
Compare
* Un-deprecate timeout * Put "timeout" on the allowed list * make fixup
* Un-deprecate timeout * Put "timeout" on the allowed list * make fixup
* Un-deprecate timeout * Put "timeout" on the allowed list * make fixup
As part of the pipeline sync project, this PR allows some arguments in
transformers
that don't have to be in the Hub spec. This is limited to arguments that do not actually affect the core pipeline, liketimeout
, which controls the timeout for downloading images passed as path arguments.