Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] Convert BIN to ggml? #2612

Open
0wwafa opened this issue Dec 6, 2024 · 1 comment
Open

[question] Convert BIN to ggml? #2612

0wwafa opened this issue Dec 6, 2024 · 1 comment

Comments

@0wwafa
Copy link

0wwafa commented Dec 6, 2024

By mistake I downloaded:
https://huggingface.co/ALM/whisper-it-small/blob/main/pytorch_model.bin

How do I convert it to ggml?

@bayyy7
Copy link

bayyy7 commented Dec 19, 2024

hey @0wwafa , you can use huggingface pipeline to download the entire repo and specify the directory like below:

from huggingface_hub import snapshot_download

snapshot_download(repo_id='ALM/whisper-it-small', local_dir="/model/whisper")

Also, dont forget to clone original openai/whisper https://github.com/openai/whisper. After that run the convert-h5-to-ggml.py. below is the example syntax:

python3 ./whisper.cpp/models/convert-h5-to-ggml.py [path to huggingface] [path to openai/whisper] [target directory]

Hope it can help 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants