Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How to install and deploy a local demo environment for SpeechGPT 2.0-preview?

2025-09-10 1.8 K

The following key steps need to be completed to install SpeechGPT 2.0-preview:

  1. Clone Code Repository::
    git clone https://github.com/OpenMOSS/SpeechGPT-2.0-preview.git
    cd SpeechGPT-2.0-preview
  2. 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
  3. Configuring the Python Environment::
    pip3 install -r requirements.txt
    pip3 install flash-attn==2.7.3 --no-build-isolation
  4. 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.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top