Any way to port fine-tuned model from huggingface to this whisper package #968
-
I have successfully fine-tuned the whisper model on a cantonese dataset on huggingface, which can be loaded with the I then wanted to make use of this whisper package to perform inference in production, in order to take advantage of the However, it seems that the model on huggingface and on the whisper package of this repo is not directly compatible (I cannot load the huggingface model with |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@tpmmthomas you can have a look at this utility I have developed https://github.com/luigisaetta/whisper-app/blob/main/match_layers.ipynb |
Beta Was this translation helpful? Give feedback.
-
Or try this conversion script: https://github.com/bayartsogt-ya/whisper-multiple-hf-datasets |
Beta Was this translation helpful? Give feedback.
-
any easier way to convert WhisperForConditionalGeneration to WhisperModel? |
Beta Was this translation helpful? Give feedback.
@tpmmthomas you can have a look at this utility I have developed https://github.com/luigisaetta/whisper-app/blob/main/match_layers.ipynb