Workflow: pin numpy<2 AFTER requirements.txt (torch 2.2.2 NumPy 1.x ABI)
Some checks failed
WavesFM Fine-Tuning / WavesFM-Training (push) Failing after 4m55s

This commit is contained in:
P Roman Pope 2026-05-28 02:54:44 -04:00
parent b92bc91bea
commit 9dd29ac589

View File

@ -380,6 +380,10 @@ jobs:
exit 1 exit 1
fi fi
$PIP install h5py scipy $PIP install h5py scipy
# After requirements.txt, force numpy back to <2 (torch 2.2.2 has
# NumPy 1.x ABI; transitive deps in requirements.txt would
# otherwise leave numpy 2.x in place and crash at runtime).
$PIP install --upgrade --force-reinstall "numpy<2"
TORCH_INDEX_URL="https://download.pytorch.org/whl/cpu" TORCH_INDEX_URL="https://download.pytorch.org/whl/cpu"
TORCH_REASON="no NVIDIA GPU detected" TORCH_REASON="no NVIDIA GPU detected"
if command -v nvidia-smi &> /dev/null; then if command -v nvidia-smi &> /dev/null; then