Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion models/generate-coreml-model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ if [ "$mname" = "-h5" ]; then
echo "$mpath"
python3 models/convert-h5-to-coreml.py --model-name "$mname" --model-path "$mpath" --encoder-only True
else
python3 models/convert-whisper-to-coreml.py --model "$mname" --encoder-only True --optimize-ane True
# Note: --optimize-ane is disabled as it produces models that crash during inference.
# The ANE optimization code needs maintenance to work with newer model architectures
# and coremltools versions. See convert-whisper-to-coreml.py for details.
python3 models/convert-whisper-to-coreml.py --model "$mname" --encoder-only True
fi

xcrun coremlc compile models/coreml-encoder-"${mname}".mlpackage models/
Expand Down