+
Skip to content

segfaults using coreml #116

Open
Open
@nilleb

Description

@nilleb

the version I install using
WHISPER_COREML=1 pip install git+https://github.com/absadiki/pywhispercpp
seems to segfault

whisper_backend_init: using BLAS backend
whisper_init_state: kv self size  =    6.29 MB
whisper_init_state: kv cross size =   18.87 MB
whisper_init_state: kv pad  size  =    3.15 MB
whisper_init_state: loading Core ML model from '/Users/nilleb/Library/Application Support/pywhispercpp/models/ggml-base.en-encoder.mlmodelc'
whisper_init_state: first run on a device may take a while ...
whisper_init_state: failed to load Core ML model from '/Users/nilleb/Library/Application Support/pywhispercpp/models/ggml-base.en-encoder.mlmodelc'
ggml_metal_free: deallocating
zsh: segmentation fault  python sample.py

the sample.py is almost identical to the one in the README

from pywhispercpp.model import Model

model = Model('base.en')
segments = model.transcribe('sample16k.wav')
for segment in segments:
    print(segment.text)

I also tried to replace the 1.7.4 version with the one on ggml-org/whisper.cpp @ HEAD, and the result is quite the same

the whisper.cpp version I built independently from this project works fine
./build/bin/whisper-server --model models/ggml-$model.en.bin

(where model can assume the values base and medium at least)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载