From 28b134e6277a168381eadfb522c946f09cf3beff Mon Sep 17 00:00:00 2001 From: Anton Lozhkov Date: Tue, 25 Oct 2022 15:28:08 +0200 Subject: [PATCH] [Tests] Fix `mps` reproducibility issue when running with pytest-xdist (#976) * [WIP] Debugging mps DDIM tests * revert num_steps * check warmup with a generator * more warmup! * remove xdist * just use a single process --- .github/workflows/pr_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_tests.yml b/.github/workflows/pr_tests.yml index 493ff51484..cf21edf991 100644 --- a/.github/workflows/pr_tests.yml +++ b/.github/workflows/pr_tests.yml @@ -89,7 +89,7 @@ jobs: - name: Run all fast tests on MPS shell: arch -arch arm64 bash {0} run: | - ${CONDA_RUN} python -m pytest -n 4 --max-worker-restart=0 --dist=loadfile -s -v --make-reports=tests_torch_mps tests/ + ${CONDA_RUN} python -m pytest -n 1 -s -v --make-reports=tests_torch_mps tests/ - name: Failure short reports if: ${{ failure() }}