7878 uses : actions/checkout@v3
7979 with :
8080 fetch-depth : 2
81+
8182 - name : NVIDIA-SMI
8283 run : |
8384 nvidia-smi
@@ -86,23 +87,28 @@ jobs:
8687 python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
8788 python -m uv pip install -e [quality,test]
8889 pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
90+ pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
91+
8992 - name : Environment
9093 run : |
9194 python utils/print_env.py
9295 - name : Extract tests
96+ id : extract_tests
9397 run : |
9498 pattern=$(python utils/extract_tests_from_mixin.py --type pipeline)
95- echo "TEST_PATTERN=$pattern" >> $GITHUB_ENV
99+ echo "TEST_PATTERN=${pattern}" >> $GITHUB_OUTPUT
100+
96101 - name : PyTorch CUDA checkpoint tests on Ubuntu
97102 env :
98103 HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
99104 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
100105 CUBLAS_WORKSPACE_CONFIG : :16:8
101106 run : |
102107 python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
103- -s -v -k "not Flax and not Onnx" \
108+ -s -v -k "not Flax and not Onnx ${{ steps.extract_tests.outputs.TEST_PATTERN }} " \
104109 --make-reports=tests_pipeline_${{ matrix.module }}_cuda \
105110 tests/pipelines/${{ matrix.module }}
111+
106112 - name : Failure short reports
107113 if : ${{ failure() }}
108114 run : |
@@ -149,9 +155,10 @@ jobs:
149155 python utils/print_env.py
150156
151157 - name : Extract tests
158+ id : extract_tests
152159 run : |
153160 pattern=$(python utils/extract_tests_from_mixin.py --type ${{ matrix.module }})
154- echo "TEST_PATTERN=$pattern" >> $GITHUB_ENV
161+ echo "TEST_PATTERN=${ pattern} " >> $GITHUB_OUTPUT
155162
156163 - name : Run PyTorch CUDA tests
157164 env :
@@ -160,7 +167,7 @@ jobs:
160167 CUBLAS_WORKSPACE_CONFIG : :16:8
161168 run : |
162169 python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
163- -s -v -k "not Flax and not Onnx and $TEST_PATTERN" \
170+ -s -v -k "not Flax and not Onnx and ${{ steps.extract_tests.outputs. TEST_PATTERN }} " \
164171 --make-reports=tests_torch_cuda_${{ matrix.module }} \
165172 tests/${{ matrix.module }}
166173
@@ -179,7 +186,7 @@ jobs:
179186
180187 run_examples_tests :
181188 name : Examples PyTorch CUDA tests on Ubuntu
182-
189+ pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
183190 runs-on :
184191 group : aws-g4dn-2xlarge
185192
0 commit comments