You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And see that it works by looking for: whisper_init_state: loading Core ML model from 'models/ggml-small.en-encoder.mlmodelc'
But I can't seem to get it to work for small.en-tdrz:
> ls models/ggml-small.en-tdrz.bin-rw-r--r-- 1 robert staff 487614184 Jun 19 2023 models/ggml-small.en-tdrz.bin
> ./models/generate-coreml-model.sh small.en-tdrzTorch version 2.5.1 has not been tested with coremltools. You may run into unexpected errors. Torch 2.4.0 is the most recent version that has been tested.Traceback (most recent call last): File "/Users/robert/Repositories/whisper.cpp/models/convert-whisper-to-coreml.py", line 295, in <module> whisper = load_model(args.model).cpu() File "/Users/robert/.asdf/installs/python/3.10.15/lib/python3.10/site-packages/whisper/__init__.py", line 143, in load_model raise RuntimeError(RuntimeError: Model small.en-tdrz not found; available models = ['tiny.en', 'tiny', 'base.en', 'base', 'small.en', 'small', 'medium.en', 'medium', 'large-v1', 'large-v2', 'large-v3', 'large', 'large-v3-turbo', 'turbo']coremlc: error: Model does not exist at models/coreml-encoder-small.en-tdrz.mlpackage -- file:///Users/robert/Repositories/whisper.cpp/mv: rename models/coreml-encoder-small.en-tdrz.mlmodelc to models/ggml-small.en-tdrz-encoder.mlmodelc: No such file or directory
Does this part of the toolchain not work for the tdrz model?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The README shows that I can download and convert a model to be used with CoreML:
And then I'm able to run whisper.cpp CoreML enabled:
And see that it works by looking for:
whisper_init_state: loading Core ML model from 'models/ggml-small.en-encoder.mlmodelc'
But I can't seem to get it to work for small.en-tdrz:
Does this part of the toolchain not work for the tdrz model?
Beta Was this translation helpful? Give feedback.
All reactions