Workflow: pin numpy<2 (torch 2.2.2 ABI incompatible with numpy 2.x)
Some checks failed
WavesFM Fine-Tuning / WavesFM-Training (push) Has been cancelled
Some checks failed
WavesFM Fine-Tuning / WavesFM-Training (push) Has been cancelled
This commit is contained in:
parent
0c98d365d2
commit
b92bc91bea
|
|
@ -361,7 +361,9 @@ jobs:
|
|||
# FAST-PATH: install CPU torch from pytorch.org/whl/cpu FIRST (~200MB).
|
||||
# This makes torch==X already-satisfied so requirements.txt does not
|
||||
# pull the 755MB manylinux wheel with bundled CUDA from PyPI default.
|
||||
$PIP install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple torch==2.2.2 torchvision
|
||||
$PIP install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple "numpy<2" "torch==2.2.2" torchvision
|
||||
# Also ensure numpy<2 is pinned for the requirements.txt install below
|
||||
$PIP install --upgrade --force-reinstall "numpy<2"
|
||||
INSTALLED_SOMETHING=0
|
||||
if [[ -f requirements.txt ]]; then
|
||||
$PIP install -r requirements.txt
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user