Skip to content

Commit b5ea01e

Browse files
committed
add xformers install step, fix Dockerfile
1 parent b09905a commit b5ea01e

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.github/workflows/test-pip-install.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
if: matrix.platform == 'macos-14'
3939
run: |
4040
python -m pip install https://github.com/rsxdalv/xformers/releases/download/v0.0.27/xformers-0.0.27+184b280.d20241026-cp310-cp310-macosx_11_0_universal2.whl
41+
- name: Install xformers non-macos
42+
if: matrix.platform != 'macos-14'
43+
run: |
44+
python -m pip install xformers==0.0.27+cu118 --index-url https://download.pytorch.org/whl/cu118
4145
- name: Install dependencies
4246
# python -m pip install --upgrade pip==23.3.2
4347
# python -m pip install -r requirements.txt
@@ -51,6 +55,7 @@ jobs:
5155
# python -m pip install hydra-core==1.3.2
5256
# python -m pip install nvidia-ml-py
5357
run: |
58+
python -m pip install
5459
python -m pip install -r requirements.txt -r requirements_bark_hubert_quantizer.txt -r requirements_rvc.txt -r requirements_audiocraft.txt -r requirements_styletts2.txt -r requirements_vall_e.txt -r requirements_maha_tts.txt -r requirements_stable_audio.txt hydra-core==1.3.2 nvidia-ml-py
5560
5661
# - name: Lint with ruff

Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN npm --version
2424
ENV TORCH_VERSION=2.3.1
2525

2626
ENV PATH="/root/.cargo/bin:$PATH"
27-
RUN pip install --no-cache-dir --system setuptools torch==$TORCH_VERSION torchvision torchaudio
27+
RUN pip install --no-cache-dir setuptools torch==$TORCH_VERSION torchvision torchaudio
2828

2929
# Set working directory
3030
WORKDIR /app
@@ -39,16 +39,16 @@ RUN pip3 install --no-cache-dir --upgrade pip==23.3.2 setuptools
3939

4040
# Install all requirements
4141
RUN pip3 install --no-cache-dir torch==$TORCH_VERSION -r requirements.txt
42-
# RUN pip install --no-cache-dir --system --verbose torch==$TORCH_VERSION -r requirements.txt
43-
RUN pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_bark_hubert_quantizer.txt
44-
RUN pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_rvc.txt
45-
RUN pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_audiocraft.txt
46-
RUN pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_styletts2.txt
47-
RUN pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_vall_e.txt
48-
RUN pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_maha_tts.txt
49-
RUN pip install --no-cache-dir --system torch==$TORCH_VERSION -r requirements_stable_audio.txt
50-
# RUN pip install --no-cache-dir --system torch==$TORCH_VERSION hydra-core==1.3.2
51-
RUN pip install --no-cache-dir --system torch==$TORCH_VERSION nvidia-ml-py
42+
# RUN pip install --no-cache-dir --verbose torch==$TORCH_VERSION -r requirements.txt
43+
RUN pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_bark_hubert_quantizer.txt
44+
RUN pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_rvc.txt
45+
RUN pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_audiocraft.txt
46+
RUN pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_styletts2.txt
47+
RUN pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_vall_e.txt
48+
RUN pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_maha_tts.txt
49+
RUN pip install --no-cache-dir torch==$TORCH_VERSION -r requirements_stable_audio.txt
50+
# RUN pip install --no-cache-dir torch==$TORCH_VERSION hydra-core==1.3.2
51+
RUN pip install --no-cache-dir torch==$TORCH_VERSION nvidia-ml-py
5252

5353

5454
# add postgres & run setup

0 commit comments

Comments
 (0)