CPU support for https://huggingface.co/HKUSTAudio/xcodec2
conda create xcodec2-infer-lib python=3.12 -y
conda activate xcodec2-infer-lib
pip install -e .
pip install xcodec2-infer-lib
Replace your_model_path with the absolute path to your model.
export MODEL_PATH="your_model_path"
cd tests
pytest test_xcodec.py
You can download the model from https://huggingface.co/HKUSTAudio/xcodec2.
Check out the example at https://huggingface.co/HKUSTAudio/Llasa-3B.