From 5b14905658f2c22d0480be3b6041136ad99eb449 Mon Sep 17 00:00:00 2001 From: Dhruv Nair Date: Thu, 27 Feb 2025 04:46:20 +0100 Subject: [PATCH 1/4] update --- .github/workflows/pr_tests_gpu.yml | 17 ++++++++++++----- src/diffusers/pipelines/pipeline_utils.py | 1 + 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr_tests_gpu.yml b/.github/workflows/pr_tests_gpu.yml index a06689b5fad7..c37f2cf84a72 100644 --- a/.github/workflows/pr_tests_gpu.yml +++ b/.github/workflows/pr_tests_gpu.yml @@ -104,11 +104,18 @@ jobs: # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms CUBLAS_WORKSPACE_CONFIG: :16:8 run: | - pattern=$(cat ${{ steps.extract_tests.outputs.pattern_file }}) - python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \ - -s -v -k "not Flax and not Onnx and $pattern" \ - --make-reports=tests_pipeline_${{ matrix.module }}_cuda \ - tests/pipelines/${{ matrix.module }} + if [[ "${{ matrix.module }}" == "ip_adapters" ]]; then + python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \ + -s -v -k "not Flax and not Onnx" \ + --make-reports=tests_pipeline_${{ matrix.module }}_cuda \ + tests/pipelines/${{ matrix.module }} + else + pattern=$(cat ${{ steps.extract_tests.outputs.pattern_file }}) + python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \ + -s -v -k "not Flax and not Onnx and $pattern" \ + --make-reports=tests_pipeline_${{ matrix.module }}_cuda \ + tests/pipelines/${{ matrix.module }} + fi - name: Failure short reports if: ${{ failure() }} diff --git a/src/diffusers/pipelines/pipeline_utils.py b/src/diffusers/pipelines/pipeline_utils.py index 1b306b1805d8..69f2c1812cce 100644 --- a/src/diffusers/pipelines/pipeline_utils.py +++ b/src/diffusers/pipelines/pipeline_utils.py @@ -107,6 +107,7 @@ SUPPORTED_DEVICE_MAP = ["balanced"] logger = logging.get_logger(__name__) +logger.warning("test") @dataclass From 3283681e20f25010715c98fe8f9e560fd6deaa94 Mon Sep 17 00:00:00 2001 From: Dhruv Nair Date: Thu, 27 Feb 2025 08:09:11 +0100 Subject: [PATCH 2/4] update --- .github/workflows/pr_tests_gpu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_tests_gpu.yml b/.github/workflows/pr_tests_gpu.yml index c37f2cf84a72..5f2dee80aaf7 100644 --- a/.github/workflows/pr_tests_gpu.yml +++ b/.github/workflows/pr_tests_gpu.yml @@ -104,7 +104,7 @@ jobs: # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms CUBLAS_WORKSPACE_CONFIG: :16:8 run: | - if [[ "${{ matrix.module }}" == "ip_adapters" ]]; then + if [ "${{ matrix.module }}" == "ip_adapters" ]; then python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \ -s -v -k "not Flax and not Onnx" \ --make-reports=tests_pipeline_${{ matrix.module }}_cuda \ From d4ee64cc868f9b3649e57ff77066fb2e1cbe2277 Mon Sep 17 00:00:00 2001 From: Dhruv Nair Date: Thu, 27 Feb 2025 08:24:59 +0100 Subject: [PATCH 3/4] update --- .github/workflows/pr_tests_gpu.yml | 2 +- src/diffusers/pipelines/pipeline_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_tests_gpu.yml b/.github/workflows/pr_tests_gpu.yml index 5f2dee80aaf7..8eccee9699c1 100644 --- a/.github/workflows/pr_tests_gpu.yml +++ b/.github/workflows/pr_tests_gpu.yml @@ -104,7 +104,7 @@ jobs: # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms CUBLAS_WORKSPACE_CONFIG: :16:8 run: | - if [ "${{ matrix.module }}" == "ip_adapters" ]; then + if [ "${{ matrix.module }}" = "ip_adapters" ]; then python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \ -s -v -k "not Flax and not Onnx" \ --make-reports=tests_pipeline_${{ matrix.module }}_cuda \ diff --git a/src/diffusers/pipelines/pipeline_utils.py b/src/diffusers/pipelines/pipeline_utils.py index 69f2c1812cce..25347f73e29d 100644 --- a/src/diffusers/pipelines/pipeline_utils.py +++ b/src/diffusers/pipelines/pipeline_utils.py @@ -107,7 +107,7 @@ SUPPORTED_DEVICE_MAP = ["balanced"] logger = logging.get_logger(__name__) -logger.warning("test") +logger.debug("test") @dataclass From 284e2dbfb7067289eec07d728f128190234b0c93 Mon Sep 17 00:00:00 2001 From: Dhruv Nair Date: Thu, 27 Feb 2025 08:41:06 +0100 Subject: [PATCH 4/4] update --- src/diffusers/pipelines/pipeline_utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/diffusers/pipelines/pipeline_utils.py b/src/diffusers/pipelines/pipeline_utils.py index 25347f73e29d..1b306b1805d8 100644 --- a/src/diffusers/pipelines/pipeline_utils.py +++ b/src/diffusers/pipelines/pipeline_utils.py @@ -107,7 +107,6 @@ SUPPORTED_DEVICE_MAP = ["balanced"] logger = logging.get_logger(__name__) -logger.debug("test") @dataclass