The following key steps need to be completed to install SpeechGPT 2.0-preview:
- Clone Code Repository::
git clone https://github.com/OpenMOSS/SpeechGPT-2.0-preview.git
cd SpeechGPT-2.0-preview - Download model weights(git-lfs needs to be pre-installed):
git lfs install
git clone https://huggingface.co/fnlp/SpeechGPT-2.0-preview-Codec
git clone https://huggingface.co/fnlp/SpeechGPT-2.0-preview-7B - Configuring the Python Environment::
pip3 install -r requirements.txt
pip3 install flash-attn==2.7.3 --no-build-isolation - Launching the Gradio demo::
python3 demo_gradio.py --codec_ckpt_path SpeechGPT-2.0-preview-Codec/sg2_codec_ckpt.pkl --model_path SpeechGPT-2.0-preview-7B/
The entire process requires a Python 3.8+ environment, an NVIDIA graphics card (≥24GB of video memory recommended), and a stable internet connection. The first run will automatically download dependencies, which may take a long time.
This answer comes from the articleSpeechGPT 2.0-preview: an end-to-end anthropomorphic speech dialog grand model for real-time interactionThe































