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

Fix main build errors #132

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ python3 bark/convert.py \
--vocab-path ./ggml_weights/ \
--out-dir ./ggml_weights/

# convert the encodec model to ggml format
python ./encodec.cpp/convert.py \
--dir-model ./models/ \
--out-dir ./ggml_weights/ \
--use-f16

# run the inference
./bark/build/examples/main/main -m ./ggml_weights/ -p "this is an audio"
```
Expand Down
2 changes: 1 addition & 1 deletion bark/bark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,7 @@ bool bark_generate_audio(
const std::string encodec_model_path = bctx->encodec_model_path;

struct encodec_context * ectx = encodec_load_model(
encodec_model_path, n_gpu_layers, encodec_verbosity_level::LOW);
encodec_model_path, n_gpu_layers);
if (!ectx) {
printf("%s: error during loading encodec model\n", __func__);
return false;
Expand Down
2 changes: 1 addition & 1 deletion encodec.cpp
Loading