I cant thanks enough for the quality content you are providing please continue to upload such video!!
@miblish5168
8 ай бұрын
This video really saved my @$$. I had Whisper&CoLab running a few moinths ago, but it broke. Your video and notebooks showed me why, and taught me several new tricks! Keep it up please.
@scifithoughts3611
6 ай бұрын
@Trellis have you considered instead of fine tuning, use an LLM to correct the spelling of Whisper output? (Prompt it to fix “my strell” to “mistrell”, etc.)
@scifithoughts3611
6 ай бұрын
Or another alternative is to prompt Whisper with the context and correct spelling of its common transcript mistakes?
@gautammandewalker8935
6 ай бұрын
Great video! You are one of the best teachers I have ever heard.
@AbdennacerAyeb
8 ай бұрын
easy, simple, well organized. Thank you
@waelabou946
19 күн бұрын
You are very good explaining this thank you and please keep going.. 👍👍👍👍👍
@MaximeDde
16 күн бұрын
Superbly explained, damn ! I'm still looking for equivalents in French, but that video will help me set it up ! Would be glad to have the chance to discuss with you, as I'm learning more about fine-tuning those beautiful transcription models for specific use-cases, there's a hell lot of value to bring here !
@TrelisResearch
16 күн бұрын
Merci, maybe I’ll do a vid in French some time. I just don’t know the LLM words.
@MaximeDde
16 күн бұрын
@@TrelisResearch Willing to help once I get there, if you let me in on some knowledge of yours haha ! I need more AI aficionados in my network :D
@MaximeDde
16 күн бұрын
I’m going to rewatch your video to train my model in French, if you want we can be in touch so I can help if you want to go to French language ? It would be a pleasure 🤗
@heski6847
8 ай бұрын
great, thx! I needed it.
@seancarmody1506
4 ай бұрын
Loved the video, I'm wondering if it's possible to do something similar using a vision model. Say for example a resnet trained for a certain task. Do you think it would be possible to train an adapter to allow the llm to understand the resnet features? I watched your Llava training video but the concept seemed a little different than I expected
@TrelisResearch
4 ай бұрын
I suppose the original resnet didn't include attention, so probably that would be a disadvantage to transformers used now. But yes, in principle you could attach a resnet to the inputs of an llm - but I think it would be done something like in my llava / idefics video.
@LucasJustinoCostaAssis
7 ай бұрын
This video was very instructive, thanks! For my case, I need a model that recognize items on a list, it consists mainly of medical vocabullary, so a simple whisper model does not get them. Regarding the terms and their pronunciation I will record them in a later moment, but are they inserted in the "DatasetDict()" part of the code instead of Hugging Face's "common_voice"? Also, how is the taught model saved and used in a new project? Untill now I've only used a simple model = whisper.load_model("small") code line in my projects
@TrelisResearch
7 ай бұрын
Your training data will need to be prepared and included into the huggingface dataset (like the new dataset I created). To re-use the model, it's easiest to push it to huggingface hub as I do here, and then you can load it back down by using the same loading code I used for the base model. Technically I think it's possible to convert back to the openai format as well and then load it using a code snippet like you did. See here: github.com/openai/whisper/discussions/830#discussioncomment-4652413
@Rems766
6 ай бұрын
I've trouble fine tuning the large-v3 model. When I am evalutating, the compute_metrics function do not call properly the tokenizer method and it do not work. Any idea why?
@TrelisResearch
6 ай бұрын
hmm that's odd, I haven't trained the large myself, I assume you tried posting on the github repo? any joy there, feel free to share the link if you create an issue
@LinkSF1
7 ай бұрын
Do you know if there’s a way to downsample the frequencies? Eg if I have a 24khz sample I want to downsample to 16khz, what would be the preferred way of doing this?
@TrelisResearch
7 ай бұрын
Howdy! Actually you can check in this vid there's a part towards the middle where I show how to downsample
@boringblobking3783
18 күн бұрын
ty for the op video
@dachuandu6539
4 ай бұрын
best explanation ever
@onursarikaya1385
5 ай бұрын
Thank you! It's a great investment :)
@TrelisResearch
5 ай бұрын
you're welcome
@AbhijeetTamrakar-k4l
8 ай бұрын
Recently I faced a situation where I fine-tuned a model on a training set and it returns good results from the training set example or validation set examples but when I give an input which he has never seen then it tends to produce contextually irrelevant results. Could you suggest what one should do in such a case? One thing that we can do is to make our training dataset more extensive but other than else can we so something else?
@TrelisResearch
8 ай бұрын
create a separate validation set using data that is not from your training or validation set (could just be wikitext) and measure the validation loss on that during training. If it is rising quickly, then you are overtraining and need to train for less epochs and/or lower learning rate
@WaléSassi
4 ай бұрын
good job!! but I'm not finding the checkpoints folders
@TrelisResearch
4 ай бұрын
They'll be generated when you run through the training . Also, you need to set save_dir output_dir to somewhere you want the files to be.
@jetpro
6 ай бұрын
Do you know how to export it to ONNX and correctly use it in deployment? Helpful video!
@TrelisResearch
6 ай бұрын
I haven't dug into that angle for ONNX but here's the guide for getting back from huggingface to whisper and probably you can go from there? github.com/openai/whisper/discussions/830#discussioncomment-4652413
@RustemShaimagambetov
8 ай бұрын
Great video! How much data(rows) do we need to train to get acceptable results? Is it enough 5-6 rows ??
@TrelisResearch
8 ай бұрын
Yes, even 5-6 can be enough to add knowledge of a few new words. I only had 6 rows. Probably 12 or 18 would have been better here.
@AndrewBawitlung
7 ай бұрын
What to do when my language is not in the whisper tokenizer?
@TrelisResearch
7 ай бұрын
Probably imperfect, but maybe you could choose the closest language and then fine-tune from there.
@tariqyahia9039
6 ай бұрын
Question, does the training file have to be in vtt format? or can it be in .txt?
@TrelisResearch
6 ай бұрын
has to have time stamps, so vtt (or srt and you can convert to vtt).
@PierreDELOM
8 ай бұрын
Very instructive videos. Next one with Diarization ?
@TrelisResearch
8 ай бұрын
interesting idea, I'll add to my notes
@imranullah3097
8 ай бұрын
Kindly make a video on the following. Hifi-gan with transformer Multi model (text+image)
@TrelisResearch
8 ай бұрын
thanks, I'll add to my list. I was already planning on multi-modal some time. will take me a bit of time before getting to it
@daviddad7388
Ай бұрын
Great video thanks
@bryantgoh1888
3 ай бұрын
May i ask, why the PEFT example given is different from the one you used in the video?
@TrelisResearch
3 ай бұрын
It’s a more generic example that I then adapted/integrated for this video
@KrishnaNamasivayam
3 ай бұрын
Thanks for this amazing video. I am trying to tune whisper to understand slurred speech (e.g. cerebral palsy). Would a small data sample work for that scenario too. Thanks!
@TrelisResearch
3 ай бұрын
Yes, I think so!
@kavins8054
3 ай бұрын
Coool Video man!! but during my training the WER going up to 100 while both training and validation loss decreases. Help me
@TrelisResearch
2 ай бұрын
Hard to say without having more details but often it can be because of small errors in the formatting of the timestamps in the training data.
@ASphoton_energy
3 ай бұрын
Thanks so much, great description but I'm a little confused. At 10'58'' when discussing the breakdown of the frequencies you point to the blue graph and say: "here you can see its just an amplitude graph". I'm confused, I thought the red graph in front of 'Time' would have been the amplitude graph?
@TrelisResearch
3 ай бұрын
yeah, sorry, it's a bit unclear. Indeed in the 3D graph, the red is amplitude and blue is frequency.
@ASphoton_energy
3 ай бұрын
@@TrelisResearch Thanks for that. I noticed you uploaded a single mp3 file for training/testing. I have 8 hours of mp3 files; will the repo allow for an entire folder of many mp3s for training/testing data?
@TrelisResearch
3 ай бұрын
@@ASphoton_energy you can use chatgpt to tweak the code so that it loops through multiple mp3 files. If you have trouble, you can create a comment in the github repo after buying and I'll add that capability.
@javadasoodeh
3 ай бұрын
Thank you for your explanation. Imagine I’m gonna start training whisper on a low resource language. I don’t have the whole entire dataset at first to feed for training. If I do the same as you do, meaning correct the transcription and pair it with the voice, and finally give it to model for fine tuning. If I do these several times, the model doesn’t forget the pervious learning or wouldn’t overfit? By and large, I would like to create a pipeline to collect pair of voices with their manual transcriptions, and then fine tune the model each time. Could you guide me what do I need to do this in this way?
@TrelisResearch
3 ай бұрын
to avoid forgetting and overfitting you should blend in about 5% of original/english type voice data into your new dataset.
@simonsu-yz9vo
6 ай бұрын
is it possible to fine tuning for speech translation?
@TrelisResearch
6 ай бұрын
yes, you just need to format the Q&A for that.
@anasdavoodtk3160
8 ай бұрын
Great explanation. the drum story!. good work
@MuhammadAliAhson
29 күн бұрын
Hello Sir, I'm a student and i want to work on ASR. My problem is to make my model understand Urdu Language with great easy making not mistake. I'm so confused about the data. Even if I get the audio data, I don't have the text of that audio. Can you please help me in this matter?
@TrelisResearch
28 күн бұрын
Ooooh, yeah you'll have to fine-tune for urdu. What you need is some videos that have captions on them in Urdu, and with the video spoken in Urdu. If you can find a set of (open source/public) videos like that then you can grab that data to do training.
@sumitjana7794
7 ай бұрын
I have transcripted text in .srt format, can I train with it??
@TrelisResearch
7 ай бұрын
Yes! And for this script you can just convert srt to vtt losslessly using an online tool.
@sumitjana7794
7 ай бұрын
thanks a lot @@TrelisResearch
@mrsilver8151
3 ай бұрын
thanks for your great work, is there any way to convert the finetuned model to run with faster whisper, or there is another way to fine tune for faster whisper ?
@TrelisResearch
3 ай бұрын
yup - see here: github.com/SYSTRAN/faster-whisper/issues/248 opennmt.net/CTranslate2/python/ctranslate2.converters.TransformersConverter.html If you try it, could you let me know if that really gives a 4x speed up on a GPU?
@_loong9906
4 ай бұрын
Great video! But, in my checkpoints, there's no 'added_tokens.json' or 'config.json' and so on. what's happening to me. what did i miss?
@TrelisResearch
4 ай бұрын
You mean you are running training but not finding those files in your saved checkpoints? whereas you see them in my video when I do the same?
@AndrewBawitlung
8 ай бұрын
can u compare it with XLS-R?
@TrelisResearch
8 ай бұрын
thanks for the tip, will be a while before I get back to speech but I have noted that as a topic
@ivor1113
4 ай бұрын
Can you share the code in ADVANCED-transcription?
@TrelisResearch
4 ай бұрын
Howdy! Yes, the code is in the ADVANCED-transcription repo, which you can buy lifetime access to (incl. future updates). If you buy and something is missing, you can create an issue in the repo.
@peace2941
13 күн бұрын
I can't find the github repo anymore
@TrelisResearch
13 күн бұрын
Howdy Have a look in your email for the receipt. Respond to that and I’ll help further if needed
@user-jk9zr3sc5h
8 ай бұрын
Would a DPO method theoretically work for more effectively fine tuning whisper?
@TrelisResearch
8 ай бұрын
yeah DPO could be good for general performance improvement. for adding sounds/words, standard finetuning is probably best (SFT).
@m_tron99
6 ай бұрын
Great video. Can you do one on using WhisperX for diarisation and timestamping?
@bijoyashreedas4242
Ай бұрын
Great work! Can someone help me with any resources for using Whisper for code switching application. How do i fine tune for this purpose?
@TrelisResearch
Ай бұрын
Can you clarify (maybe with a link) as to what code switching is?
@imranullah3097
8 ай бұрын
For low resource language how to train tokenizer and add and then fine tune whisper.?
@TrelisResearch
8 ай бұрын
oooh, yeah low resource is going to be tough. Probably the approach depends on language and whether it has close languages. Ideally you want to start with a tokenizer and fine-tuned model for a close language. If you do need to train a tokenizer, you can check this vid out here: huggingface.co/learn/nlp-course/chapter6/2?fw=pt
@estherchantalamungalaba5295
2 ай бұрын
Hi. I’m fine tuning Whisper for transcription on a mac, using Hugging Face Transformers. I can’t seem to figure out how to get the model and the data either both passed to the cpu or the gpu. Loved this tutorial on fine tuning and was able to follow along well until I hit this snag. And there doesn’t seem to be wide enough support on the internet for this specific problem. Can you point me to any communities where I might be able to find help on specifically using Apple machines to fine tune models? I’d really appreciate the help.
@TrelisResearch
2 ай бұрын
Cheers for the comment! For data processing, you shouldn't need to do anything, it should work fine on a mac. In principle, I think you could fine-tune the model using transformers on a Mac but it requires some digging around how to use MPS (the mac gpu) properly and would require an M1, M2 or M3 Mac (anything other than that will be very slow). Can I suggest you just run in a free colab or kaggle notebook?
@estherchantalamungalaba5295
2 ай бұрын
@@TrelisResearch I’m running an M2 Mac so I will look into mps a little more. Thank you! Also, I hadn’t considered Kaggle notebooks. That might be a better alternative to Colab as Colab pro is not yet available in my region and the free tier resource allocation is just not good enough. Thanks again!
@TrelisResearch
2 ай бұрын
@@estherchantalamungalaba5295 Great, best of luck
@gabrielfraga2303
Ай бұрын
I can deploy this model output in Azure?
@TrelisResearch
Ай бұрын
You mean on a GPU you rent from Azure? Yes, if it’s an Nvidia GPU for example
@gabrielfraga2303
Ай бұрын
@@TrelisResearch I believe so, but I don't know which service would be more practical. I also studied Azure AI Services and Azure ML, but I couldn't find anything like uploading my model based on the codes you made available on your website to finetuned to upload to Azure to consume my credits because today I have Microsoft partnerships and I would like this model that generates after finetuning within Azure through some service.
Пікірлер: 85