Compare commits

...

47 Commits

Author SHA1 Message Date
Dhruv Nair
390d0879fe update 2024-07-15 12:57:28 +00:00
Dhruv Nair
1fb8082af9 Merge branch 'main' into shm-size 2024-07-15 12:51:14 +00:00
Dhruv Nair
54e6f2d99e Merge branch 'main' into shm-size 2024-07-04 09:12:16 +00:00
Dhruv Nair
22326b4971 update 2024-06-04 08:33:22 +00:00
Dhruv Nair
7cc0ba0070 update 2024-06-03 04:52:47 +00:00
Dhruv Nair
e4bd3f5a05 update 2024-06-03 04:51:32 +00:00
Dhruv Nair
25d0277911 change runner type 2024-05-07 07:21:49 +00:00
Dhruv Nair
14d7fe3f9e update 2024-05-06 17:21:06 +00:00
Dhruv Nair
2f4e29d179 update 2024-05-06 16:28:50 +00:00
Dhruv Nair
b28311d9e5 update 2024-05-06 16:12:36 +00:00
Dhruv Nair
8a1020c91e update 2024-05-06 16:07:35 +00:00
Dhruv Nair
2483c57c44 update 2024-05-06 15:21:02 +00:00
Dhruv Nair
f18942b3e6 update 2024-05-06 14:24:29 +00:00
Dhruv Nair
7021a35eeb update 2024-05-06 13:06:44 +00:00
Dhruv Nair
e0455537c2 update 2024-05-06 09:00:56 +00:00
Dhruv Nair
c61360099b update 2024-05-06 08:36:40 +00:00
Dhruv Nair
b585832d4e update 2024-05-06 08:19:11 +00:00
Dhruv Nair
963c73c229 update 2024-05-06 06:10:01 +00:00
Dhruv Nair
09c595f212 update 2024-05-06 06:06:27 +00:00
Dhruv Nair
b1c5030418 update 2024-05-06 06:01:03 +00:00
Dhruv Nair
17e801ccb9 Merge branch 'main' into shm-size 2024-05-06 05:59:20 +00:00
Dhruv Nair
468008f6b7 update 2024-04-30 12:45:45 +00:00
Dhruv Nair
10e7d39f58 update 2024-04-30 12:40:00 +00:00
Dhruv Nair
49c01d4a4b update 2024-04-30 12:37:45 +00:00
Dhruv Nair
f2e6c24df2 update 2024-04-30 12:35:56 +00:00
Dhruv Nair
ce659bc586 Merge branch 'main' into shm-size 2024-04-01 13:03:06 +00:00
Dhruv Nair
615c12ab68 Merge branch 'main' into shm-size 2024-03-28 05:15:41 +00:00
Dhruv Nair
e34d9f1949 update 2024-03-22 13:37:48 +00:00
Dhruv Nair
4106e3f182 update 2024-03-22 12:45:44 +00:00
Dhruv Nair
1651c9a1a1 update 2024-03-22 12:08:44 +00:00
Dhruv Nair
4bfdb34b36 update 2024-03-22 11:39:09 +00:00
Dhruv Nair
3d4f987cc9 update 2024-03-22 11:34:21 +00:00
Dhruv Nair
1feac0469b update 2024-03-22 11:25:20 +00:00
Dhruv Nair
75e5cd046b update 2024-03-22 09:32:23 +00:00
Dhruv Nair
865b6638f7 update 2024-03-22 09:26:12 +00:00
Dhruv Nair
428c952289 update 2024-03-22 08:11:16 +00:00
Dhruv Nair
d16c921346 update 2024-03-22 08:10:50 +00:00
Dhruv Nair
c46380165a update 2024-03-22 07:42:00 +00:00
Dhruv Nair
a6a89aa199 update 2024-03-22 07:26:42 +00:00
Dhruv Nair
9e9a49ca24 update 2024-03-21 08:39:27 +00:00
Dhruv Nair
b9c90f7e22 update 2024-03-21 08:24:15 +00:00
Dhruv Nair
19fc3281c5 update 2024-03-21 08:18:44 +00:00
Dhruv Nair
fe8f0c9a76 update 2024-03-21 07:08:14 +00:00
Dhruv Nair
dc0bef11bd Merge branch 'shm-size' of https://github.com/huggingface/diffusers into shm-size 2024-03-20 11:09:30 +00:00
Dhruv Nair
27ef43f043 update 2024-03-20 11:09:21 +00:00
Dhruv Nair
5d5c61bd09 Merge branch 'main' into shm-size 2024-03-20 16:36:40 +05:30
Dhruv Nair
7c38bff847 update 2024-03-20 10:36:10 +00:00
2 changed files with 100 additions and 1 deletions

100
.github/workflows/push_check.yml vendored Normal file
View File

@@ -0,0 +1,100 @@
name: Slow Test Memory Checks
on:
push:
branches: [ shm-size ]
env:
DIFFUSERS_IS_CI: yes
HF_HUB_ENABLE_HF_TRANSFER: 1
OMP_NUM_THREADS: 8
MKL_NUM_THREADS: 8
PYTEST_TIMEOUT: 600
RUN_SLOW: yes
PIPELINE_USAGE_CUTOFF: 50000
jobs:
setup_torch_cuda_pipeline_matrix:
name: Setup Torch Pipelines CUDA Slow Tests Matrix
runs-on: [ self-hosted, intel-cpu, 8-cpu, ci ]
container:
image: diffusers/diffusers-pytorch-cpu
outputs:
pipeline_test_matrix: ${{ steps.fetch_pipeline_matrix.outputs.pipeline_test_matrix }}
steps:
- name: Checkout diffusers
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install dependencies
run: |
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
python -m uv pip install -e [quality,test]
- name: Environment
run: |
python utils/print_env.py
- name: Fetch Pipeline Matrix
id: fetch_pipeline_matrix
run: |
matrix=$(python utils/fetch_torch_cuda_pipeline_test_matrix.py)
echo $matrix
echo "pipeline_test_matrix=$matrix" >> $GITHUB_OUTPUT
- name: Pipeline Tests Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-pipelines.json
path: reports
torch_pipelines_cuda_tests:
name: Torch Pipelines CUDA Slow Tests
needs: setup_torch_cuda_pipeline_matrix
strategy:
max-parallel: 4
fail-fast: false
matrix:
module: ${{ fromJson(needs.setup_torch_cuda_pipeline_matrix.outputs.pipeline_test_matrix) }}
runs-on: [single-gpu, nvidia-gpu, t4, ci]
container:
image: diffusers/diffusers-pytorch-cuda
options: --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface/diffusers:/mnt/cache/ --gpus 0
steps:
- name: Checkout diffusers
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: NVIDIA-SMI
run: |
nvidia-smi
- name: Install dependencies
run: |
apt-get update && apt-get install libsndfile1-dev libgl1 -y
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
python -m uv pip install -e [quality,test]
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
python -m uv pip install hf_transfer
- name: Environment
run: |
python utils/print_env.py
- name: Slow PyTorch CUDA checkpoint tests on Ubuntu
env:
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
CUBLAS_WORKSPACE_CONFIG: :16:8
run: |
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 }}
- name: Failure short reports
if: ${{ failure() }}
run: |
cat reports/tests_pipeline_${{ matrix.module }}_cuda_stats.txt
cat reports/tests_pipeline_${{ matrix.module }}_cuda_failures_short.txt
- name: Test suite reports artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: pipeline_${{ matrix.module }}_test_reports
path: reports

View File

@@ -76,7 +76,6 @@ def fetch_pipeline_modules_to_test():
test_modules = []
for pipeline_name in pipeline_objects:
module = getattr(diffusers, pipeline_name)
test_module = module.__module__.split(".")[-2].strip()
test_modules.append(test_module)