Add Whisper offline loading for air-gapped servers.

Pre-download via HF mirror scripts so inner-network deploys avoid Hub Network is unreachable errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-12 16:11:57 +08:00
parent 39e29fe6a9
commit 0f5277c22e
6 changed files with 310 additions and 164 deletions
+13 -2
View File
@@ -361,9 +361,20 @@ cd /opt/Trading_Studio
pip install -r requirements.txt
```
### 6.1 Faster-Whisper
### 6.1 Faster-Whisper(必须预下载)
`requirements.txt` 安装。首次运行会自动下载 `small` 模型(约 500MB)至 HuggingFace 缓存。
`requirements.txt` 安装。**内网服务器无法访问 HuggingFace 时会报 `Network is unreachable`。**
部署后执行(推荐与 ChatTTS 一起):
```bash
cd /opt/Trading_Studio
bash scripts/download_all_models.sh
# 或仅 Whisper: bash scripts/download_whisper_models.sh small
pm2 restart trading_studio
```
模型目录:`/opt/Trading_Studio/models/whisper/small/`(含 `model.bin`)。
### 6.2 ChatTTS(必须预下载,勿依赖 GitHub)