Skip to content

Conversation

@yonigozlan
Copy link
Member

What does this PR do?

Fixes #41816.

Also standardizes the few remaining processors left to standardize.

Comment on lines -77 to -80
attributes = ["feature_extractor", "tokenizer"]
feature_extractor_class = "WhisperFeatureExtractor"
tokenizer_class = "Qwen2TokenizerFast"

Copy link
Member Author

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"
Copy link
Member Author

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?

Comment on lines -64 to -67
attributes = ["image_processor", "tokenizer"]
image_processor_class = "Pix2StructImageProcessor"
tokenizer_class = ("T5Tokenizer",)

Copy link
Member Author

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?

@HuggingFaceDocBuilderDev

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.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2025

[For maintainers] Suggested jobs to run (before merge)

run-slow: audioflamingo3, auto, lasr, phi4_multimodal, pix2struct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Processor saving does not work when multiple tokenizers

2 participants