Open monircsueb opened 4 months ago
Hi monircsueb. You can use the convert script to create the ggml
Hello @monircsueb !
The instructions have been updated. Could you try again?
@PABannier I still don't see the script to download weights.
Okay, in case someone is not able to find it, you'll have to manually download encoded weights from torch hub:
import torch
url = 'https://dl.fbaipublicfiles.com/encodec/v0/encodec_24khz-d7cc33bc.th'
state = torch.hub.load_state_dict_from_url(url, map_location='cpu', check_hash=True)
Once this is done, you can use the convert script provided to convert the weights to ggml
python convert.py \
--dir-model ~/.cache/torch/hub/checkpoints/ \
--out-dir ./ggml_weights/ \
--use-f16
Thanks for your message, I'll update the instructions in the README file and add a download_weights.py script.
Sir, I am trying to compress audio with the examples provided in the short video. I don't find the ggml_model.bin. I would appreciate if you could guide me to correct direction. Thank you