SpeechGPT 2.0-previewをインストールするには、以下の主要な手順を完了する必要があります:
- クローン・コード・リポジトリ::
git clone https://github.com/OpenMOSS/SpeechGPT-2.0-preview.git
cd SpeechGPT-2.0-preview - モデルウェイトのダウンロード(git-lfsはプリインストールされている必要があります):
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 - Python環境の設定::
pip3 install -r requirements.txt
pip3 install flash-attn==2.7.3 --no-build-isolation - グラディオ・デモの起動::
python3 demo_gradio.py --codec_ckpt_path SpeechGPT-2.0-preview-Codec/sg2_codec_ckpt.pkl --model_path SpeechGPT-2.0-preview-7B/
全プロセスには、Python 3.8+環境、NVIDIAグラフィックカード(24GB以上のRAM推奨)、安定したインターネット接続が必要です。最初の実行では依存関係が自動的にダウンロードされ、時間がかかることがあります。
この答えは記事から得たものである。SpeechGPT 2.0-プレビュー:リアルタイム対話のためのエンドツーエンドの擬人化音声対話マクロモデルについて































