Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
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)
- Whisper.net x LLamaSharp example
- Error loading model HOT 7
- Illegal Instruction - 1 HOT 1
- If this parameter is supported--condition_on_previous_text False
- How to build runtime dll
- Why is the performance so low
- The lib hangs if processing concurrently HOT 2
- Failed to load native whisper library. Error: Unknown error
- unity load file is error
- my gpu not work HOT 1
- System.TypeLoadException: Failure has occurred while loading a type. HOT 1
- Updating to Whisper.cpp v1.6.2+ HOT 10
- Severe hallucinations
- How to use the model ggml model gpt-2-345M. bin HOT 2
- How can i Run it to Vb.NET & Net.Framework 4.8? HOT 4
- Can Vad function be added
- using the VAD call processAsync by samples incorrect
- The CPU is running too slowly in large v3
- Base Arch + DB
- Why does the recognized text lack punctuation marks?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whisper.net.