Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SILICON_ONEDIFF_LICENSE_KEY #519

Merged
merged 3 commits into from
Jan 15, 2024
Merged
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
7 changes: 6 additions & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ jobs:
repository: comfyanonymous/ComfyUI
path: ${{ env.COMFYUI_SRC_DIR }}

- run: docker image prune -f
- run: |
docker rm -f ${{ env.CONTAINER_NAME }} || true
docker pull ${{ env.ACR_ORG }}/${{ matrix.image }}
- if: matrix.test-suite == 'comfy'
run: |
docker rm -f ${{ env.SELENIUM_CONTAINER_NAME }} || true
docker pull ${{ env.ACR_ORG }}/${{ env.SELENIUM_IMAGE }}

- run: docker image prune -f
- name: Setup docker for ComfyUI Test
if: matrix.test-suite == 'comfy'
run: |
Expand All @@ -80,6 +81,7 @@ jobs:
UNET_INT8: ${{ env.UNET_INT8 }}
SELENIUM_IMAGE: ${{ env.SELENIUM_IMAGE }}
SELENIUM_CONTAINER_NAME: ${{ env.SELENIUM_CONTAINER_NAME }}
SILICON_ONEDIFF_LICENSE_KEY: ${ secrets.SILICON_ONEDIFF_LICENSE_KEY }

- name: Setup docker for diffusers examples
if: matrix.test-suite == 'diffusers_examples'
Expand All @@ -91,6 +93,7 @@ jobs:
MATRIX_IMAGE: ${{ matrix.image }}
SDXL_BASE: ${{ env.SDXL_BASE }}
UNET_INT8: ${{ env.UNET_INT8 }}
SILICON_ONEDIFF_LICENSE_KEY: ${ secrets.SILICON_ONEDIFF_LICENSE_KEY }

- run: nvidia-smi
- run: nvidia-smi -L
Expand Down Expand Up @@ -139,6 +142,7 @@ jobs:
UNET_INT8: ${{ env.UNET_INT8 }}
SELENIUM_IMAGE: ${{ env.SELENIUM_IMAGE }}
SELENIUM_CONTAINER_NAME: ${{ env.SELENIUM_CONTAINER_NAME }}
SILICON_ONEDIFF_LICENSE_KEY: ${ secrets.SILICON_ONEDIFF_LICENSE_KEY }

- name: Shutdown docker for diffusers examples
if: matrix.test-suite == 'diffusers_examples'
Expand All @@ -150,3 +154,4 @@ jobs:
MATRIX_IMAGE: ${{ matrix.image }}
SDXL_BASE: ${{ env.SDXL_BASE }}
UNET_INT8: ${{ env.UNET_INT8 }}
SILICON_ONEDIFF_LICENSE_KEY: ${ secrets.SILICON_ONEDIFF_LICENSE_KEY }
9 changes: 5 additions & 4 deletions tests/comfy-docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.8'
version: "3.8"

services:
selenium:
Expand All @@ -8,7 +8,7 @@ services:
shm_size: 2g
command: sleep 5400
entrypoint: /opt/bin/entry_point.sh
restart: 'no'
restart: "no"

onediff-test:
container_name: ${CONTAINER_NAME}
Expand All @@ -23,7 +23,8 @@ services:
security_opt:
- seccomp=unconfined
environment:
HF_HUB_OFFLINE: '1'
HF_HUB_OFFLINE: "1"
SILICON_ONEDIFF_LICENSE_KEY: ${SILICON_ONEDIFF_LICENSE_KEY}
volumes:
- $HOME/test-container-cache-${CONTAINER_NAME}/dot-local:/root/.local
- $HOME/test-container-cache-${CONTAINER_NAME}/dot-cache:/root/.cache
Expand All @@ -36,6 +37,6 @@ services:
- $PWD/tests/comfyui/workflows/input/control:/app/ComfyUI/input/control:ro
- $PWD:/src/onediff
working_dir: /src/onediff
restart: 'no'
restart: "no"
depends_on:
- selenium
7 changes: 4 additions & 3 deletions tests/diffusers-docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.8'
version: "3.8"

services:
onediff-test:
Expand All @@ -14,7 +14,8 @@ services:
security_opt:
- seccomp=unconfined
environment:
HF_HUB_OFFLINE: '1'
HF_HUB_OFFLINE: "1"
SILICON_ONEDIFF_LICENSE_KEY: ${SILICON_ONEDIFF_LICENSE_KEY}
volumes:
- $HOME/test-container-cache-${CONTAINER_NAME}/dot-local:/root/.local
- $HOME/test-container-cache-${CONTAINER_NAME}/dot-cache:/root/.cache
Expand All @@ -23,4 +24,4 @@ services:
- ${UNET_INT8}:/app/ComfyUI/models/unet_int8/unet_int8:ro
- $PWD:/src/onediff
working_dir: /src/onediff
restart: 'no'
restart: "no"
Loading