-
Notifications
You must be signed in to change notification settings - Fork 31.3k
Support having multiple sub-processors (of any kind) in the same processor #42667
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
base: main
Are you sure you want to change the base?
Conversation
| attributes = ["feature_extractor", "tokenizer"] | ||
| feature_extractor_class = "WhisperFeatureExtractor" | ||
| tokenizer_class = "Qwen2TokenizerFast" | ||
|
|
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.
Cc @eustlb , moved this to the auto files to have one source of truth, and removed attributes as they are now auto-detected
|
|
||
|
|
||
| class LasrProcessor(ProcessorMixin): | ||
| tokenizer_class = "ParakeetTokenizerFast" |
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.
Cc @eustlb Same here, although is this supposed to be Parakeet or lasr tokenizer by default?
| attributes = ["image_processor", "tokenizer"] | ||
| image_processor_class = "Pix2StructImageProcessor" | ||
| tokenizer_class = ("T5Tokenizer",) | ||
|
|
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.
Cc @itazap Just to make sure it's safe to remove, was this added back by mistake?
|
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. |
|
[For maintainers] Suggested jobs to run (before merge) run-slow: audioflamingo3, auto, lasr, phi4_multimodal, pix2struct |
What does this PR do?
Fixes #41816.
Also standardizes the few remaining processors left to standardize.