Open zodiac1214 opened 2 months ago
Hello @zodiac1214 !
You are right; there is a mistake in the implementation, which makes it impossible for now to run Bark.cpp on Metal. I'll fix it in the next few days.
FWIW, tried to wire the -ngl params here and hit a wall with:
ggml_metal_graph_compute_block_invoke: error: node 5, op = SET not implemented
(a ggml sync might help?)
git remote add ochafik https://github.com/ochafik/bark.cpp
git fetch ochafik
rm -fR build && \
cmake -B build . -DGGML_METAL=1 -DCMAKE_BUILD_TYPE=Release && \
cmake --build build && \
cp build/bin/ggml-metal.metal build/encodec.cpp/ggml/src
./build/examples/main/main -m ./models/bark/ggml_weights.bin -p "Test" -t 4 -o out2.wav
@ochafik Thanks for trying it!
Yes, we'll need to sync with the latest version of ggml. However, we'll have to implement additional operations to ggml and to write Metal kernels (e.g. sigmoid
, pad_reflec_1
).
I tried to
but it is still only using CPU instead of Mac GPU