Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Chatterbox_TTS_Colab_Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"source": "%%bash\nset -euo pipefail\n\ncd /content\nMICROMAMBA=\"/content/bin/micromamba\"\n\nts() { date +\"[%Y-%m-%d %H:%M:%S]\"; }\n\necho \"$(ts) Sanity check micromamba:\"\nls -lah \"$MICROMAMBA\"\n\necho \"$(ts) Upgrading pip tooling inside cb311...\"\n\"$MICROMAMBA\" run -n cb311 python -m pip install -U pip setuptools wheel --progress-bar on\n\necho \"$(ts) Installing PyTorch 2.5.1 (CUDA 12.1)... (this can take a while)\"\n\"$MICROMAMBA\" run -n cb311 pip install \\\n --progress-bar on \\\n torch==2.5.1+cu121 torchaudio==2.5.1+cu121 torchvision==0.20.1+cu121 \\\n --index-url https://download.pytorch.org/whl/cu121\n\necho \"$(ts) Installing Chatterbox package (from GitHub, no-cache, upgrade)...\"\n\"$MICROMAMBA\" run -n cb311 pip uninstall -y chatterbox-tts chatterbox || true\n\"$MICROMAMBA\" run -n cb311 pip install \\\n --no-cache-dir --upgrade \\\n --progress-bar on \\\n \"chatterbox-tts @ git+https://github.com/devnen/chatterbox-v2.git@master\"\n\necho \"$(ts) Installing s3tokenizer + onnx (--no-deps to avoid protobuf conflict)...\"\n\"$MICROMAMBA\" run -n cb311 pip install --no-deps s3tokenizer==0.3.0 onnx==1.16.0\n\necho \"$(ts) Force-upgrading protobuf for onnx compatibility...\"\n\"$MICROMAMBA\" run -n cb311 pip install --no-deps --force-reinstall \"protobuf>=4.25.0\"\n\necho \"$(ts) ✅ Installation complete!\"",
"source": "%%bash\nset -euo pipefail\n\ncd /content\nMICROMAMBA=\"/content/bin/micromamba\"\n\nts() { date +\"[%Y-%m-%d %H:%M:%S]\"; }\n\necho \"$(ts) Sanity check micromamba:\"\nls -lah \"$MICROMAMBA\"\n\necho \"$(ts) Upgrading pip tooling inside cb311...\"\n\"$MICROMAMBA\" run -n cb311 python -m pip install -U pip setuptools wheel --progress-bar on\n\necho \"$(ts) Installing PyTorch 2.5.1 (CUDA 12.1)... (this can take a while)\"\n\"$MICROMAMBA\" run -n cb311 pip install \\\n --progress-bar on \\\n torch==2.5.1+cu121 torchaudio==2.5.1+cu121 torchvision==0.20.1+cu121 \\\n --index-url https://download.pytorch.org/whl/cu121\n\necho \"$(ts) Installing Chatterbox package (from GitHub, no-cache, upgrade)...\"\n\"$MICROMAMBA\" run -n cb311 pip uninstall -y chatterbox-tts chatterbox || true\n\"$MICROMAMBA\" run -n cb311 pip install \\\n --no-cache-dir --upgrade \\\n --progress-bar on \\\n \"chatterbox-tts @ git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2\"\n\necho \"$(ts) Installing s3tokenizer + onnx (--no-deps to avoid protobuf conflict)...\"\n\"$MICROMAMBA\" run -n cb311 pip install --no-deps s3tokenizer==0.3.0 onnx==1.16.0\n\necho \"$(ts) Force-upgrading protobuf for onnx compatibility...\"\n\"$MICROMAMBA\" run -n cb311 pip install --no-deps --force-reinstall \"protobuf>=4.25.0\"\n\necho \"$(ts) ✅ Installation complete!\"",
"metadata": {
"id": "2alxTXqZuGhl"
},
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RUN pip3 install --no-cache-dir --upgrade pip && \
if [ "$RUNTIME" = "nvidia" ]; then \
pip3 install --no-cache-dir -r requirements-nvidia.txt; \
fi && \
pip3 install --no-cache-dir --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0 && \
pip3 install --no-cache-dir --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0 && \
pip3 install --no-cache-dir "protobuf>=4.25.0"
# Copy the rest of the application code
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ COPY requirements.txt ./requirements.txt
# 2. Chatterbox with --no-deps to prevent pip from pulling conflicting versions
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir -r requirements.txt && \
python3 -m pip install --no-cache-dir --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0 && \
python3 -m pip install --no-cache-dir --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0 && \
python3 -m pip install --no-cache-dir "protobuf>=4.25.0"

# Copy the rest of the application code
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.cu128
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ COPY requirements-nvidia-cu128.txt ./requirements-nvidia-cu128.txt
# 2. Chatterbox with --no-deps to prevent pip from downgrading torch
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir -r requirements-nvidia-cu128.txt && \
python3 -m pip install --no-cache-dir --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0 && \
python3 -m pip install --no-cache-dir --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0 && \
python3 -m pip install --no-cache-dir "protobuf>=4.25.0"

# Copy the rest of the application code
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.cu130
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ COPY requirements-nvidia-cu130.txt ./requirements-nvidia-cu130.txt
# 2. Chatterbox with --no-deps to prevent pip from downgrading torch
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir -r requirements-nvidia-cu130.txt && \
python3 -m pip install --no-cache-dir --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0 && \
python3 -m pip install --no-cache-dir --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0 && \
python3 -m pip install --no-cache-dir "protobuf>=4.25.0"

# Copy the rest of the application code
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.rdna4
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ COPY requirements-rdna4.txt ./requirements-rdna4.txt
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir -r requirements-rdna4-init.txt && \
python3 -m pip install --no-cache-dir -r requirements-rdna4.txt && \
python3 -m pip install --no-cache-dir --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0 && \
python3 -m pip install --no-cache-dir --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0 && \
python3 -m pip install --no-cache-dir "protobuf>=4.25.0"

# Patches for torch 2.9+ compatibility (required when using ROCm 7.2 wheels):
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.rocm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ COPY requirements-rocm.txt ./requirements-rocm.txt
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir -r requirements-rocm-init.txt && \
python3 -m pip install --no-cache-dir -r requirements-rocm.txt && \
python3 -m pip install --no-cache-dir --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0 && \
python3 -m pip install --no-cache-dir --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0 && \
python3 -m pip install --no-cache-dir "protobuf>=4.25.0"

# Copy the rest of the application code
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ This is the most straightforward option and works on any machine without a compa
# Make sure your (venv) is active
pip install --upgrade pip
pip install -r requirements.txt
pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2
```

<details>
Expand All @@ -525,7 +525,7 @@ For users with NVIDIA GPUs. This provides the best performance for RTX 20/30/40
# Make sure your (venv) is active
pip install --upgrade pip
pip install -r requirements-nvidia.txt
pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2
```

**After installation, verify that PyTorch can see your GPU:**
Expand Down Expand Up @@ -568,7 +568,7 @@ pip install --upgrade pip
pip install -r requirements-nvidia-cu128.txt

# Step 2: Install chatterbox without dependencies (prevents PyTorch downgrade)
pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2
```

⚠️ **Critical:** The `--no-deps` flag is required to prevent PyTorch from being downgraded to a version that doesn't support Blackwell GPUs.
Expand Down Expand Up @@ -628,7 +628,7 @@ pip install -r requirements-rocm-init.txt
pip install -r requirements-rocm.txt

# Step 3: Install chatterbox without dependencies (prevents ROCm torch overwrite)
pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2
```

⚠️ **Critical:** The `--no-deps` flag on chatterbox-tts is required to prevent pip from replacing the ROCm PyTorch wheels with CPU-only versions from PyPI. The `start.py` launcher handles this automatically.
Expand Down Expand Up @@ -675,7 +675,7 @@ tts_engine:
**Step 3: Install remaining dependencies**
```bash
# Install chatterbox-tts without its dependencies to avoid conflicts
pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2

# Install core server dependencies
pip install fastapi 'uvicorn[standard]' librosa safetensors soundfile pydub audiotsm praat-parselmouth python-multipart requests aiofiles PyYAML watchdog unidecode inflect tqdm
Expand Down Expand Up @@ -1036,7 +1036,7 @@ After you have updated the code using Method 2 or 3, complete these final steps.
* **For NVIDIA GPU Systems (CUDA 12.8 / Blackwell):**
```bash
pip install -r requirements-nvidia-cu128.txt
pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2
```
* **For AMD GPU Systems:**
```bash
Expand Down
4 changes: 2 additions & 2 deletions README_CUDA128.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pip install -r requirements-nvidia-cu128.txt

# IMPORTANT: Install Chatterbox separately with --no-deps
# This prevents PyTorch from being downgraded
pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2

# Start the server
python server.py
Expand Down Expand Up @@ -201,7 +201,7 @@ This error means PyTorch doesn't support your GPU's compute capability. This typ

# Or manually
pip install torch==2.9.0 torchvision==0.24.0 torchaudio==2.9.0 --index-url https://download.pytorch.org/whl/cu128
pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2
```

3. **Check supported architectures**:
Expand Down
2 changes: 1 addition & 1 deletion README_Colab.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ echo "$(ts) Installing Chatterbox package (from GitHub, no-cache, upgrade)..."
"$MICROMAMBA" run -n cb311 pip install \
--no-cache-dir --upgrade \
--progress-bar on \
"chatterbox-tts @ git+https://github.com/devnen/chatterbox-v2.git@master"
"chatterbox-tts @ git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2"

echo "$(ts) ✅ Installation complete!"
```
Expand Down
2 changes: 1 addition & 1 deletion requirements-nvidia-cu128.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# For manual installation, run these commands in order:
# pip install -r requirements-nvidia-cu128.txt
# pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0
# pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0
# ============================================================================

# --- PyTorch CUDA 12.8 Package Index ---
Expand Down
2 changes: 1 addition & 1 deletion requirements-nvidia-cu130.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# For manual installation, run these commands in order:
# pip install -r requirements-nvidia-cu130.txt
# pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0
# pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0
# ============================================================================

# --- PyTorch CUDA 13.0 Package Index ---
Expand Down
2 changes: 1 addition & 1 deletion requirements-nvidia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ torchaudio==2.5.1+cu121
#
# For manual installation, run these commands in order:
# pip install -r requirements-nvidia.txt
# pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0
# pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0

# Chatterbox Dependencies (explicit, since --no-deps skips them)
# NOTE: s3tokenizer and onnx are installed with --no-deps alongside chatterbox
Expand Down
2 changes: 1 addition & 1 deletion requirements-rdna4-init.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Manual install:
# pip install -r requirements-rdna4-init.txt
# pip install -r requirements-rdna4.txt
# pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0
# pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0

https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2.3/triton-3.5.1%2Brocm7.2.3.gita272dfa8-cp310-cp310-linux_x86_64.whl
https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2.3/torch-2.9.1%2Brocm7.2.3.lw.gitebc02d69-cp310-cp310-linux_x86_64.whl
Expand Down
2 changes: 1 addition & 1 deletion requirements-rdna4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Manual installation order:
# pip install -r requirements-rdna4-init.txt
# pip install -r requirements-rdna4.txt
# pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0
# pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0
#
# The --no-deps flag on chatterbox-tts is critical: without it, pip will
# replace the ROCm torch wheels with CPU-only versions from PyPI.
Expand Down
2 changes: 1 addition & 1 deletion requirements-rocm-init.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# For manual installation:
# pip install -r requirements-rocm-init.txt
# pip install -r requirements-rocm.txt
# pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master
# pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2

-i https://download.pytorch.org/whl/rocm6.1
torch==2.5.1
Expand Down
2 changes: 1 addition & 1 deletion requirements-rocm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# For manual installation, run these commands in order:
# pip install -r requirements-rocm-init.txt
# pip install -r requirements-rocm.txt
# pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0
# pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0
#
# The --no-deps flag on chatterbox-tts is critical: without it, pip will
# replace the ROCm torch wheels with CPU-only versions from PyPI.
Expand Down
4 changes: 2 additions & 2 deletions requirements-strixhalo.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# requirements.txt

# Chatterbox TTS engine - Install from chatterbox-v2 fork
chatterbox-tts @ git+https://github.com/devnen/chatterbox-v2.git@master
# Chatterbox TTS engine
chatterbox-tts @ git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2

# Core Web Framework
fastapi
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ torchaudio==2.5.1
#
# For manual installation, run these commands in order:
# pip install -r requirements.txt
# pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0
# pip install --no-deps git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2 s3tokenizer==0.3.0 onnx==1.16.0

# --- Chatterbox Dependencies (explicit, since --no-deps skips them) ---
# NOTE: s3tokenizer and onnx are installed with --no-deps alongside chatterbox
Expand Down
2 changes: 1 addition & 1 deletion start.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
}

# Chatterbox fork URL (used for CUDA 12.8 installation)
CHATTERBOX_REPO = "git+https://github.com/devnen/chatterbox-v2.git@master"
CHATTERBOX_REPO = "git+https://github.com/resemble-ai/chatterbox.git@5de7a54aa4e5e2baadb0182dde554908b48b85c2"

# Timeout settings (seconds)
# First run downloads large model files (~2GB). Subsequent starts are much faster.
Expand Down