Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

ci: give each xdist worker a single compute thread

Alexander Eichhorn78cb781b9841
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml
index 6fbaf82680..30dcf56b81 100644
--- a/.github/workflows/python-tests.yml
+++ b/.github/workflows/python-tests.yml
@@ -61,6 +61,11 @@ jobs:
timeout-minutes: 30 # expected run time: 8-14 min, depending on platform and uv cache state
env:
PIP_USE_PEP517: '1'
+ # One compute thread per worker. Torch otherwise sizes its thread pools to the whole
+ # machine, so `-n logical` puts vCPUs^2 threads on a runner: they fight for the same cores
+ # and, on the Windows CPU build, the fp8 tests take a native worker down with them.
+ OMP_NUM_THREADS: '1'
+ MKL_NUM_THREADS: '1'
steps:
- name: checkout