Whisper model fine tuning
There is an excellent blog on fine-tuning whisper model on hindi (Devanagari) dataset by@sanchit-gandhi.I need to fine-tune whisper model on the hinglish dataset (mix of english and hindi). The supervised data contains hinglish annotations (not Devanagari).Is there a way to fine-tune whisper model on this dataset? Can I replace the model tokenizer with my custom tokenizer to proceed with fine-tuning process?Please suggest a way to proceed on the task.
2022-11-14T13:48:03Z
Hey@Ankit-Kumar-Saini!To clarify, does your dataset contain Hindi charactersandRoman ones (i.e. the letters a-z)? Just Hindi ones? Or just Roman ones (a-z)?Likelihood is we won’t need a new tokenizer - the Whisper tokenizer has the Hindi alphabet and Roman alphabet among others. It’s just how we initialise the tokenizer that changes.FYI this is the update blog post:Fine-Tune Whisper For Multilingual ASR with 🤗 Transformers
2022-11-14T15:13:44Z
Dataset contains only roman ones (i.e. the letters a-z).For example: “aapka age kitna hai”.How should I tokenize this text?
2022-11-14T17:34:19Z
Okay! I probably wound’t build a new tokeniser - I would first try using the existing Whisper one as it contains the entire Roman alphabet and more words in word-piece form.You need to change this part of the script:huggingface.coFine-Tune Whisper For Multilingual ASR with 🤗 TransformersWe’re on a journey to advance and democratize artificial intelligence through open source and open science.I would first try omitting the language and task code:processor = WhisperProcessor.from_pretrained("openai/whisper-small")If you train for long enough, the model should learn the correct output alphabet.
2022-12-17T06:51:41Z
Hi@sanchit-gandhi, Thanks for your blog post, it was excellent but i am facing issue in fine tuning the whisper model on my data and need your support. I have audio files and corresponding meta-data csv file with two columns, one is  wav_filename which contains the path of audios and corresponding text in second column as transcript and i am getting below issue while running the code: FileNotFoundError: [Errno 2] No such file or directory: ‘wav_filename’. It will be great help. Thanks.
2022-12-19T16:01:40Z
Hey@Deveshp! Welcome to the HF forum and thanks for asking a great question!Would you mind opening a new forum post for your question and we can shift the discussion there?The reason being that it makes searching for issues much easier if we keep each forum post related to one question. This way, if someone has the same issue as you later down the line they can sift through all the previous issues and hopefully find our discussion! Thanks!
2024-02-23T21:50:29Z
Hey Ankit, I know I am replying to a two-year-old post but this is exactly what I needed and Google gave me this link. Have you found the solution, what was the WER and how long did you train? Most research and ChatGPT suggest it’s better to train on Devnagri but the base model of even Whisper 3 for multi-lingual is so bad that I am not optimistic anymore. Preparing the data going to consume so much time that I need to be sure whether it will be worth it LOL.
2024-06-08T04:58:35Z
Do I also need to remove language, and task attribute for tokenizer , like you said to remove from the processor?