From 1b4522ae4628e48125f3495fb9a969c1f7a92415 Mon Sep 17 00:00:00 2001 From: Hope Woods Date: Wed, 15 Jul 2026 00:04:28 +0000 Subject: [PATCH] Pin numpy<2 in CI to fix NumPy/torch ABI mismatch torch==1.12.1 is built against NumPy 1.x, but the CI install pinned no NumPy version and resolved to NumPy 2.x, causing every torch tensor .numpy() call to fail with 'Numpy is not available' during Diffuser initialization. Constrain the resolution back to NumPy 1.x. --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b2dd2e3d..703fc498 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,6 +54,7 @@ jobs: uv python install 3.9 uv venv uv pip install --no-cache-dir -q \ + 'numpy<2' \ dgl==1.0.2+cu116 -f https://data.dgl.ai/wheels/cu116/repo.html \ torch==1.12.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116 \ e3nn==0.3.3 \