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,10 @@ 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+ uv pip install -e ".[quality]"
127+ uv pip install peft@git+https://github.com/huggingface/peft.git
128+ uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
129+ uv pip install pytest-reportlog
132130 - name : Environment
133131 run : python utils/print_env.py
134132
@@ -139,7 +137,7 @@ jobs:
139137 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
140138 CUBLAS_WORKSPACE_CONFIG : :16:8
141139 run : |
142- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
140+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
143141 -s -v -k "not Flax and not Onnx" \
144142 --make-reports=tests_torch_${{ matrix.module }}_cuda \
145143 --report-log=tests_torch_${{ matrix.module }}_cuda.log \
@@ -152,7 +150,7 @@ jobs:
152150 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
153151 CUBLAS_WORKSPACE_CONFIG : :16:8
154152 run : |
155- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
153+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
156154 -s -v --make-reports=examples_torch_cuda \
157155 --report-log=examples_torch_cuda.log \
158156 examples/
@@ -191,8 +189,7 @@ jobs:
191189 nvidia-smi
192190 - name : Install dependencies
193191 run : |
194- python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
195- python -m uv pip install -e [quality,test,training]
192+ uv pip install -e ".[quality,training]"
196193 - name : Environment
197194 run : |
198195 python utils/print_env.py
@@ -201,7 +198,7 @@ jobs:
201198 HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
202199 RUN_COMPILE : yes
203200 run : |
204- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "compile" --make-reports=tests_torch_compile_cuda tests/
201+ pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "compile" --make-reports=tests_torch_compile_cuda tests/
205202 - name : Failure short reports
206203 if : ${{ failure() }}
207204 run : cat reports/tests_torch_compile_cuda_failures_short.txt
@@ -232,11 +229,10 @@ jobs:
232229 run : nvidia-smi
233230 - name : Install dependencies
234231 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
232+ uv pip install -e ".[quality]"
233+ uv pip install peft@git+https://github.com/huggingface/peft.git
234+ uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
235+ uv pip install pytest-reportlog
240236 - name : Environment
241237 run : |
242238 python utils/print_env.py
@@ -247,7 +243,7 @@ jobs:
247243 CUBLAS_WORKSPACE_CONFIG : :16:8
248244 BIG_GPU_MEMORY : 40
249245 run : |
250- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
246+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
251247 -m "big_accelerator" \
252248 --make-reports=tests_big_gpu_torch_cuda \
253249 --report-log=tests_big_gpu_torch_cuda.log \
@@ -282,10 +278,9 @@ jobs:
282278
283279 - name : Install dependencies
284280 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
281+ uv pip install -e ".[quality]"
282+ uv pip install peft@git+https://github.com/huggingface/peft.git
283+ uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
289284
290285 - name : Environment
291286 run : |
@@ -297,7 +292,7 @@ jobs:
297292 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
298293 CUBLAS_WORKSPACE_CONFIG : :16:8
299294 run : |
300- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
295+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
301296 -s -v -k "not Flax and not Onnx" \
302297 --make-reports=tests_torch_minimum_version_cuda \
303298 tests/models/test_modeling_common.py \
@@ -340,6 +335,9 @@ jobs:
340335 - backend : " optimum_quanto"
341336 test_location : " quanto"
342337 additional_deps : []
338+ - backend : " nvidia_modelopt"
339+ test_location : " modelopt"
340+ additional_deps : []
343341 runs-on :
344342 group : aws-g6e-xlarge-plus
345343 container :
@@ -354,13 +352,12 @@ jobs:
354352 run : nvidia-smi
355353 - name : Install dependencies
356354 run : |
357- python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
358- python -m uv pip install -e [quality,test]
359- python -m uv pip install -U ${{ matrix.config.backend }}
355+ uv pip install -e ".[quality]"
356+ uv pip install -U ${{ matrix.config.backend }}
360357 if [ "${{ join(matrix.config.additional_deps, ' ') }}" != "" ]; then
361- python -m uv pip install ${{ join(matrix.config.additional_deps, ' ') }}
358+ uv pip install ${{ join(matrix.config.additional_deps, ' ') }}
362359 fi
363- python -m uv pip install pytest-reportlog
360+ uv pip install pytest-reportlog
364361 - name : Environment
365362 run : |
366363 python utils/print_env.py
@@ -371,7 +368,7 @@ jobs:
371368 CUBLAS_WORKSPACE_CONFIG : :16:8
372369 BIG_GPU_MEMORY : 40
373370 run : |
374- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
371+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
375372 --make-reports=tests_${{ matrix.config.backend }}_torch_cuda \
376373 --report-log=tests_${{ matrix.config.backend }}_torch_cuda.log \
377374 tests/quantization/${{ matrix.config.test_location }}
@@ -406,10 +403,9 @@ jobs:
406403 run : nvidia-smi
407404 - name : Install dependencies
408405 run : |
409- python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
410- python -m uv pip install -e [quality,test]
411- python -m uv pip install -U bitsandbytes optimum_quanto
412- python -m uv pip install pytest-reportlog
406+ uv pip install -e ".[quality]"
407+ uv pip install -U bitsandbytes optimum_quanto
408+ uv pip install pytest-reportlog
413409 - name : Environment
414410 run : |
415411 python utils/print_env.py
@@ -420,7 +416,7 @@ jobs:
420416 CUBLAS_WORKSPACE_CONFIG : :16:8
421417 BIG_GPU_MEMORY : 40
422418 run : |
423- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
419+ pytest -n 1 --max-worker-restart=0 --dist=loadfile \
424420 --make-reports=tests_pipeline_level_quant_torch_cuda \
425421 --report-log=tests_pipeline_level_quant_torch_cuda.log \
426422 tests/quantization/test_pipeline_level_quantization.py
@@ -520,11 +516,11 @@ jobs:
520516# - name: Install dependencies
521517# shell: arch -arch arm64 bash {0}
522518# run: |
523- # ${CONDA_RUN} python -m pip install --upgrade pip uv
524- # ${CONDA_RUN} python -m uv pip install -e [quality,test]
525- # ${CONDA_RUN} python -m uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
526- # ${CONDA_RUN} python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate
527- # ${CONDA_RUN} python -m uv pip install pytest-reportlog
519+ # ${CONDA_RUN} pip install --upgrade pip uv
520+ # ${CONDA_RUN} uv pip install -e ". [quality]"
521+ # ${CONDA_RUN} uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
522+ # ${CONDA_RUN} uv pip install accelerate@git+https://github.com/huggingface/accelerate
523+ # ${CONDA_RUN} uv pip install pytest-reportlog
528524# - name: Environment
529525# shell: arch -arch arm64 bash {0}
530526# run: |
@@ -535,7 +531,7 @@ jobs:
535531# HF_HOME: /System/Volumes/Data/mnt/cache
536532# HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
537533# run: |
538- # ${CONDA_RUN} python -m pytest -n 1 -s -v --make-reports=tests_torch_mps \
534+ # ${CONDA_RUN} pytest -n 1 -s -v --make-reports=tests_torch_mps \
539535# --report-log=tests_torch_mps.log \
540536# tests/
541537# - name: Failure short reports
@@ -576,11 +572,11 @@ jobs:
576572# - name: Install dependencies
577573# shell: arch -arch arm64 bash {0}
578574# run: |
579- # ${CONDA_RUN} python -m pip install --upgrade pip uv
580- # ${CONDA_RUN} python -m uv pip install -e [quality,test]
581- # ${CONDA_RUN} python -m uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
582- # ${CONDA_RUN} python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate
583- # ${CONDA_RUN} python -m uv pip install pytest-reportlog
575+ # ${CONDA_RUN} pip install --upgrade pip uv
576+ # ${CONDA_RUN} uv pip install -e ". [quality]"
577+ # ${CONDA_RUN} uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
578+ # ${CONDA_RUN} uv pip install accelerate@git+https://github.com/huggingface/accelerate
579+ # ${CONDA_RUN} uv pip install pytest-reportlog
584580# - name: Environment
585581# shell: arch -arch arm64 bash {0}
586582# run: |
@@ -591,7 +587,7 @@ jobs:
591587# HF_HOME: /System/Volumes/Data/mnt/cache
592588# HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
593589# run: |
594- # ${CONDA_RUN} python -m pytest -n 1 -s -v --make-reports=tests_torch_mps \
590+ # ${CONDA_RUN} pytest -n 1 -s -v --make-reports=tests_torch_mps \
595591# --report-log=tests_torch_mps.log \
596592# tests/
597593# - name: Failure short reports
0 commit comments