7171 run : nvidia-smi
7272 - name : Install dependencies
7373 run : |
74- python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
75- python -m uv pip install -e [quality,test]
76- pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
77- python -m uv pip install pytest-reportlog
74+ uv pip install -e [quality]
75+ uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
76+ uv pip install pytest-reportlog
7877 - name : Environment
7978 run : |
8079 python utils/print_env.py
8483 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
8584 CUBLAS_WORKSPACE_CONFIG : :16:8
8685 run : |
87- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
86+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
8887 -s -v -k "not Flax and not Onnx" \
8988 --make-reports=tests_pipeline_${{ matrix.module }}_cuda \
9089 --report-log=tests_pipeline_${{ matrix.module }}_cuda.log \
@@ -124,11 +123,11 @@ jobs:
124123
125124 - name : Install dependencies
126125 run : |
127- python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
128- python -m uv pip install -e [quality,test ]
129- python -m uv pip install peft@git+https://github.com/huggingface/peft.git
130- pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
131- python -m uv pip install pytest-reportlog
126+ venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
127+ uv pip install -e [quality]
128+ uv pip install peft@git+https://github.com/huggingface/peft.git
129+ uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
130+ uv pip install pytest-reportlog
132131 - name : Environment
133132 run : python utils/print_env.py
134133
@@ -139,7 +138,7 @@ jobs:
139138 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
140139 CUBLAS_WORKSPACE_CONFIG : :16:8
141140 run : |
142- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
141+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
143142 -s -v -k "not Flax and not Onnx" \
144143 --make-reports=tests_torch_${{ matrix.module }}_cuda \
145144 --report-log=tests_torch_${{ matrix.module }}_cuda.log \
@@ -152,7 +151,7 @@ jobs:
152151 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
153152 CUBLAS_WORKSPACE_CONFIG : :16:8
154153 run : |
155- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
154+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
156155 -s -v --make-reports=examples_torch_cuda \
157156 --report-log=examples_torch_cuda.log \
158157 examples/
@@ -191,8 +190,8 @@ jobs:
191190 nvidia-smi
192191 - name : Install dependencies
193192 run : |
194- python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
195- python -m uv pip install -e [quality,test ,training]
193+ venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
194+ uv pip install -e [quality,training]
196195 - name : Environment
197196 run : |
198197 python utils/print_env.py
@@ -201,7 +200,7 @@ jobs:
201200 HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
202201 RUN_COMPILE : yes
203202 run : |
204- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "compile" --make-reports=tests_torch_compile_cuda tests/
203+ pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "compile" --make-reports=tests_torch_compile_cuda tests/
205204 - name : Failure short reports
206205 if : ${{ failure() }}
207206 run : cat reports/tests_torch_compile_cuda_failures_short.txt
@@ -232,11 +231,10 @@ jobs:
232231 run : nvidia-smi
233232 - name : Install dependencies
234233 run : |
235- python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
236- python -m uv pip install -e [quality,test]
237- python -m uv pip install peft@git+https://github.com/huggingface/peft.git
238- pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
239- python -m uv pip install pytest-reportlog
234+ uv pip install -e [quality]
235+ uv pip install peft@git+https://github.com/huggingface/peft.git
236+ uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
237+ uv pip install pytest-reportlog
240238 - name : Environment
241239 run : |
242240 python utils/print_env.py
@@ -247,7 +245,7 @@ jobs:
247245 CUBLAS_WORKSPACE_CONFIG : :16:8
248246 BIG_GPU_MEMORY : 40
249247 run : |
250- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
248+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
251249 -m "big_accelerator" \
252250 --make-reports=tests_big_gpu_torch_cuda \
253251 --report-log=tests_big_gpu_torch_cuda.log \
@@ -282,10 +280,9 @@ jobs:
282280
283281 - name : Install dependencies
284282 run : |
285- python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
286- python -m uv pip install -e [quality,test]
287- python -m uv pip install peft@git+https://github.com/huggingface/peft.git
288- pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
283+ uv pip install -e [quality]
284+ uv pip install peft@git+https://github.com/huggingface/peft.git
285+ uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
289286
290287 - name : Environment
291288 run : |
@@ -297,7 +294,7 @@ jobs:
297294 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
298295 CUBLAS_WORKSPACE_CONFIG : :16:8
299296 run : |
300- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
297+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
301298 -s -v -k "not Flax and not Onnx" \
302299 --make-reports=tests_torch_minimum_version_cuda \
303300 tests/models/test_modeling_common.py \
@@ -357,13 +354,12 @@ jobs:
357354 run : nvidia-smi
358355 - name : Install dependencies
359356 run : |
360- python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
361- python -m uv pip install -e [quality,test]
362- python -m uv pip install -U ${{ matrix.config.backend }}
357+ uv pip install -e [quality]
358+ uv pip install -U ${{ matrix.config.backend }}
363359 if [ "${{ join(matrix.config.additional_deps, ' ') }}" != "" ]; then
364- python -m uv pip install ${{ join(matrix.config.additional_deps, ' ') }}
360+ uv pip install ${{ join(matrix.config.additional_deps, ' ') }}
365361 fi
366- python -m uv pip install pytest-reportlog
362+ uv pip install pytest-reportlog
367363 - name : Environment
368364 run : |
369365 python utils/print_env.py
@@ -374,7 +370,7 @@ jobs:
374370 CUBLAS_WORKSPACE_CONFIG : :16:8
375371 BIG_GPU_MEMORY : 40
376372 run : |
377- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
373+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
378374 --make-reports=tests_${{ matrix.config.backend }}_torch_cuda \
379375 --report-log=tests_${{ matrix.config.backend }}_torch_cuda.log \
380376 tests/quantization/${{ matrix.config.test_location }}
@@ -409,10 +405,9 @@ jobs:
409405 run : nvidia-smi
410406 - name : Install dependencies
411407 run : |
412- python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
413- python -m uv pip install -e [quality,test]
414- python -m uv pip install -U bitsandbytes optimum_quanto
415- python -m uv pip install pytest-reportlog
408+ uv pip install -e [quality]
409+ uv pip install -U bitsandbytes optimum_quanto
410+ uv pip install pytest-reportlog
416411 - name : Environment
417412 run : |
418413 python utils/print_env.py
@@ -423,7 +418,7 @@ jobs:
423418 CUBLAS_WORKSPACE_CONFIG : :16:8
424419 BIG_GPU_MEMORY : 40
425420 run : |
426- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
421+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
427422 --make-reports=tests_pipeline_level_quant_torch_cuda \
428423 --report-log=tests_pipeline_level_quant_torch_cuda.log \
429424 tests/quantization/test_pipeline_level_quantization.py
@@ -523,11 +518,11 @@ jobs:
523518# - name: Install dependencies
524519# shell: arch -arch arm64 bash {0}
525520# run: |
526- # ${CONDA_RUN} python -m pip install --upgrade pip uv
527- # ${CONDA_RUN} python -m uv pip install -e [quality,test ]
528- # ${CONDA_RUN} python -m uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
529- # ${CONDA_RUN} python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate
530- # ${CONDA_RUN} python -m uv pip install pytest-reportlog
521+ # ${CONDA_RUN} pip install --upgrade pip uv
522+ # ${CONDA_RUN} uv pip install -e [quality]
523+ # ${CONDA_RUN} uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
524+ # ${CONDA_RUN} uv pip install accelerate@git+https://github.com/huggingface/accelerate
525+ # ${CONDA_RUN} uv pip install pytest-reportlog
531526# - name: Environment
532527# shell: arch -arch arm64 bash {0}
533528# run: |
@@ -538,7 +533,7 @@ jobs:
538533# HF_HOME: /System/Volumes/Data/mnt/cache
539534# HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
540535# run: |
541- # ${CONDA_RUN} python -m pytest -n 1 -s -v --make-reports=tests_torch_mps \
536+ # ${CONDA_RUN} pytest -n 1 -s -v --make-reports=tests_torch_mps \
542537# --report-log=tests_torch_mps.log \
543538# tests/
544539# - name: Failure short reports
@@ -579,11 +574,11 @@ jobs:
579574# - name: Install dependencies
580575# shell: arch -arch arm64 bash {0}
581576# run: |
582- # ${CONDA_RUN} python -m pip install --upgrade pip uv
583- # ${CONDA_RUN} python -m uv pip install -e [quality,test ]
584- # ${CONDA_RUN} python -m uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
585- # ${CONDA_RUN} python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate
586- # ${CONDA_RUN} python -m uv pip install pytest-reportlog
577+ # ${CONDA_RUN} pip install --upgrade pip uv
578+ # ${CONDA_RUN} uv pip install -e [quality]
579+ # ${CONDA_RUN} uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
580+ # ${CONDA_RUN} uv pip install accelerate@git+https://github.com/huggingface/accelerate
581+ # ${CONDA_RUN} uv pip install pytest-reportlog
587582# - name: Environment
588583# shell: arch -arch arm64 bash {0}
589584# run: |
@@ -594,7 +589,7 @@ jobs:
594589# HF_HOME: /System/Volumes/Data/mnt/cache
595590# HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
596591# run: |
597- # ${CONDA_RUN} python -m pytest -n 1 -s -v --make-reports=tests_torch_mps \
592+ # ${CONDA_RUN} pytest -n 1 -s -v --make-reports=tests_torch_mps \
598593# --report-log=tests_torch_mps.log \
599594# tests/
600595# - name: Failure short reports
0 commit comments