Giter Site home page Giter Site logo

Comments (9)

sandrohanea avatar sandrohanea commented on July 28, 2024

No, there is no way to do it in C# nor a plan to implement it in the future. Do you see any reason why someone would need to do it in C#?

However, Whisper.net have a downloader, which is using huggingface in order to be easy to get a GGML model (either quantized or not): https://github.com/sandrohanea/whisper.net/blob/main/Whisper.net/Ggml/WhisperGgmlDownloader.cs

Of course, one can just create a whisper GGML model using the instructions here: https://github.com/ggerganov/whisper.cpp/blob/master/models/README.md

But even those, are using python, and are not implemented in C++.

from whisper.net.

yakovw avatar yakovw commented on July 28, 2024

You're right
But I'm trying to convert existing models and can't, and there are new models that are more than there are in the above path
I wanted to convert these models
https://huggingface.co/Shiry/whisper-large-v2-he/tree/main
The script failed
Because he don't know how to convert Transformers models

from whisper.net.

sandrohanea avatar sandrohanea commented on July 28, 2024

I tried that fine-tuned model using https://github.com/ggerganov/whisper.cpp/blob/master/models/README.md#fine-tuned-models and it was successfully generated:

Check this command:

git clone https://github.com/openai/whisper
git clone https://github.com/ggerganov/whisper.cpp
git clone git clone https://huggingface.co/Shiry/whisper-large-v2-he

python3 ./whisper.cpp/models/convert-h5-to-ggml.py ./whisper-large-v2-he/ ./whisper .

Please, ensure you have installed and enabled git-lfs in order to clone that huggingface repo.
Also, make sure you have python3 with torchvision and transformers.

from whisper.net.

yakovw avatar yakovw commented on July 28, 2024

Wait, if you managed to convert it, then it's best for me to take what you managed, is there a way to get to it?

from whisper.net.

sandrohanea avatar sandrohanea commented on July 28, 2024

It's a pretty big file (~3gb) so cannot upload it here, maybe I'll add multiple fine-tuned versions to https://huggingface.co/sandrohanea/whisper.net/tree/main but for now, it's probably faster for you to execute the commands above.

If I'll add them to huggingface (+ add some readme on each one with the attribution for each owner), I can modify the downloader in whisper.net to help download these finetunes as well.

from whisper.net.

yakovw avatar yakovw commented on July 28, 2024

Well I'll try, if I don't succeed I'll wait for you to upload it...
Thanks for bothering to try at all.
Let's hope for the best

from whisper.net.

yakovw avatar yakovw commented on July 28, 2024

It's a pretty big file (~3gb) so cannot upload it here, maybe I'll add multiple fine-tuned versions to https://huggingface.co/sandrohanea/whisper.net/tree/main but for now, it's probably faster for you to execute the commands above.

If I'll add them to huggingface (+ add some readme on each one with the attribution for each owner), I can modify the downloader in whisper.net to help download these finetunes as well.

I've been trying for a long time, all I manage to produce is the next line
Usage: convert-h5-to-ggml.py dir_model path-to-whisper-repo dir-output [use-f32]
He is in no way willing to convert the model for me

from whisper.net.

sandrohanea avatar sandrohanea commented on July 28, 2024

I thought about it and won't put finetunes to the downloader and hugging face: there are too many and we cannot be sure that everything is working as designed). Ofc, if someone wants, they can build them. I think you missed some of the directories in the arguments of convert-h5-to-ggml.py.
However, I uploaded this temporary to my one drive: https://1drv.ms/u/s!AnblcWiFT8S5gas2R15cv_PIZxEk6w?e=qd8Dbg.

Please, react to this message so that I can remove it afterwards. (Otherwise, it will be deleted on 2023-06-25)

from whisper.net.

yakovw avatar yakovw commented on July 28, 2024

Thank you very much, that is very nice of you.
I downloaded it, you can delete.
I am now checking if it actually works well

I thought about it and won't put finetunes to the downloader and hugging face: there are too many and we cannot be sure that everything is working as designed). Ofc, if someone wants, they can build them. I think you missed some of the directories in the arguments of convert-h5-to-ggml.py. However, I uploaded this temporary to my one drive: https://1drv.ms/u/s!AnblcWiFT8S5gas2R15cv_PIZxEk6w?e=qd8Dbg.

Please, react to this message so that I can remove it afterwards. (Otherwise, it will be deleted on 2023-06-25)

from whisper.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.