Skip to content

Fix how Whisper tokenizer is loaded and saved #25037

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

Merged

Conversation

kunal-vaishnavi
Copy link
Contributor

Description

This PR changes the class from which the Whisper tokenizer is loaded.

Motivation and Context

By using AutoTokenizer instead of WhisperTokenizer, the save_pretrained method will also save the tokenizer.json file. This file is used in ONNX Runtime GenAI's tokenizers.

@kunal-vaishnavi kunal-vaishnavi merged commit 2ea4ea4 into microsoft:main Jun 12, 2025
85 of 88 checks passed
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.

2 participants