Compare commits

..

3 Commits

Author SHA1 Message Date
Dhruv Nair 16fe810b3e test 2023-11-07 05:35:25 +00:00
Dhruv Nair 79e7fb3a16 test 2023-11-07 05:33:25 +00:00
Dhruv Nair c15d9936c1 test 2023-11-07 05:27:34 +00:00
5 changed files with 2 additions and 101 deletions
@@ -25,7 +25,6 @@ jobs:
matrix:
image-name:
- diffusers-pytorch-cpu
- diffusers-pytorch-dependency-cpu
- diffusers-pytorch-cuda
- diffusers-pytorch-compile-cuda
- diffusers-pytorch-xformers-cuda
+2 -1
View File
@@ -28,5 +28,6 @@ jobs:
pip install pytest
- name: Check for soft dependencies
run: |
python utils/print_env.py
python -c "from diffusers import UNet2DConditionModel; print(type(UNet2DConditionModel))"
pytest tests/others/test_dependencies.py
@@ -1,35 +0,0 @@
name: Run Flax dependency tests
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check_flax_dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install "jax[cpu]>=0.2.16,!=0.3.2"
pip install --upgrade clu
git clone https://github.com/google/flax.git
pip install --user -e flax
pip install pytest
- name: Check for soft dependencies
run: |
pytest tests/others/test_dependencies.py
@@ -1,32 +0,0 @@
name: Run Torch dependency tests
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check_torch_dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install torch torchvision torchaudio
pip install pytest
- name: Check for soft dependencies
run: |
pytest tests/others/test_dependencies.py
@@ -1,32 +0,0 @@
FROM ubuntu:20.04
LABEL maintainer="Hugging Face"
LABEL repository="diffusers"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y bash \
build-essential \
git \
git-lfs \
curl \
ca-certificates \
libsndfile1-dev \
python3.8 \
python3-pip \
libgl1 \
python3.8-venv && \
rm -rf /var/lib/apt/lists
# make sure to use venv
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir \
torch \
torchvision \
torchaudio
CMD ["/bin/bash"]