fix(strixhalo): upgrade pandas for numpy 2.x compatibility
Some checks failed
Build and Push Images / build-strixhalo (push) Has been cancelled
Build and Push Images / build-nvidia (push) Has been cancelled
Build and Push Images / build-intel (push) Has been cancelled
Build and Push Images / Release (push) Has been cancelled
Build and Push Images / Notify (push) Has been cancelled
Build and Push Images / build-rdna2 (push) Has been cancelled
Some checks failed
Build and Push Images / build-strixhalo (push) Has been cancelled
Build and Push Images / build-nvidia (push) Has been cancelled
Build and Push Images / build-intel (push) Has been cancelled
Build and Push Images / Release (push) Has been cancelled
Build and Push Images / Notify (push) Has been cancelled
Build and Push Images / build-rdna2 (push) Has been cancelled
Ray base image has pandas 1.5.3 compiled against numpy 1.x, but TheRock PyTorch ROCm wheels require numpy 2.x. This causes: ValueError: numpy.dtype size changed, may indicate binary incompatibility Fix by installing pandas 2.x which is compatible with numpy 2.x.
This commit is contained in:
@@ -75,9 +75,13 @@ RUN --mount=type=cache,target=/home/ray/.cache/uv,uid=1000,gid=1000 \
|
||||
'accelerate>=0.25.0,<1.0' \
|
||||
'sentence-transformers>=2.3.0,<3.0' \
|
||||
'httpx>=0.27.0,<1.0' \
|
||||
'numpy>=1.26.0,<2.0' \
|
||||
'scipy>=1.11.0,<2.0'
|
||||
|
||||
# FIX: Ray base image has pandas 1.5.3 which is incompatible with numpy 2.x
|
||||
# The TheRock PyTorch wheels require numpy 2.x, so upgrade pandas to match
|
||||
RUN --mount=type=cache,target=/home/ray/.cache/uv,uid=1000,gid=1000 \
|
||||
uv pip install --system 'pandas>=2.0.0,<3.0'
|
||||
|
||||
# Pre-download common models for faster cold starts (optional, increases image size)
|
||||
# RUN python3 -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('BAAI/bge-large-en-v1.5')"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user