Skip to content

Conversation

@eustlb
Copy link
Contributor

@eustlb eustlb commented Oct 7, 2025

What does this PR do?

🚨 Config not found for parakeet. You can manually add it to HARDCODED_CONFIG_FOR_MODELS in utils/auto_docstring.py
  • and fixes auto tokenizer mapping that was not updated when moving from ParakeetCTCTokenizer to ParakeetTokenizerFast

What triggers the unexpected warning:

@auto_doctring on a class (not on a method) (here ParakeetPreTrainedModel, ParakeetEncoder, ParakeetForCTC) triggers auto_method_docstring call with parent_class kwargs setted, that will trigger looking for a config class with the model name parakeet (extracted from modeling_parakeet.py). Yet we don't have a config class for parakeet alone, we have ParakeetEncoderConfig and ParakeetCTCConfig.

To solve, let's add "parakeet": "ParakeetCTCConfig" to HARDCODED_CONFIG_FOR_MODELS.

Note

When other Parakeet variants will be integrated ParakeetForTDT and ParakeetForRNTT, then we might want to add a global ParakeetConfig that encapsulate them all

@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.

@eustlb eustlb changed the title [Parakeet] unnecessary warning [Parakeet] unnecessary warning & auto mapping Oct 9, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2025

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

run-slow: auto

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eustlb eustlb merged commit 5aca530 into huggingface:main Oct 10, 2025
25 checks passed
AhnJoonSung pushed a commit to AhnJoonSung/transformers that referenced this pull request Oct 12, 2025
* add parakeet to CONFIG_MAPPING_NAMES

* TOKENIZER_MAPPING_NAMES update

* fix auto tokenizer

* update

* fix
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.

Parakeet and PerceptionLM are not registered correctly for auto

3 participants