Skip to content

Commit

Permalink
Ping numpy to 1.24.3 (#908)
Browse files Browse the repository at this point in the history
Jax-Core container fails to build with Recently released numpy 2. Pin
numpy to 1.26.2 until TF adds support for numpy 2.
  • Loading branch information
DwarKapex authored Jun 19, 2024
1 parent 1ef8eb6 commit 9ce1aa7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/container/Dockerfile.jax
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN --mount=type=ssh \
--mount=type=secret,id=SSH_KNOWN_HOSTS,target=/root/.ssh/known_hosts \
<<"EOF" bash -ex
git-clone.sh ${URLREF_JAX} ${SRC_PATH_JAX}
sed 's/^numpy.*/numpy<2.0.0/' ${SRC_PATH_JAX}/build/requirements.in
git-clone.sh ${URLREF_XLA} ${SRC_PATH_XLA}
EOF

Expand Down Expand Up @@ -90,6 +91,7 @@ RUN mkdir -p /opt/pip-tools.d
RUN <<"EOF" bash -ex
echo "-e file://${BUILD_PATH_JAXLIB}" > /opt/pip-tools.d/requirements-jax.in
echo "-e file://${SRC_PATH_JAX}" >> /opt/pip-tools.d/requirements-jax.in
echo "numpy<2.0.0" >> /opt/pip-tools.d/requirements-jax.in
EOF

## Flax
Expand Down

0 comments on commit 9ce1aa7

Please sign in to comment.