Skip to content

Commit 7ce87d1

Browse files
committed
Revert part of "[CI] Upgrade CI (apache#17425)"
change the versions of jax, tensorflow, tflite back to what we've been using before
1 parent 00335ba commit 7ce87d1

4 files changed

Lines changed: 32 additions & 34 deletions

File tree

docker/install/ubuntu_install_jax.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,16 @@ set -e
2020
set -u
2121
set -o pipefail
2222

23-
JAX_VERSION=0.4.30
24-
25-
# Install jaxlib
23+
# Install jax and jaxlib
2624
if [ "$1" == "cuda" ]; then
27-
pip install -U \
28-
"jax[cuda12]~=${JAX_VERSION}" \
29-
jaxlib~=${JAX_VERSION}
25+
pip3 install --upgrade \
26+
jaxlib~=0.4.9 \
27+
"jax[cuda11_pip]~=0.4.9" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
3028
else
31-
pip3 install -U \
32-
jax~=${JAX_VERSION} \
33-
jaxlib~=${JAX_VERSION}
29+
pip3 install --upgrade \
30+
jaxlib~=0.4.9 \
31+
"jax[cpu]~=0.4.9"
3432
fi
3533

3634
# Install flax
37-
pip3 install flax~=0.8.5
35+
pip3 install flax~=0.6.9

docker/install/ubuntu_install_tensorflow.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ set -u
2121
set -o pipefail
2222

2323
pip3 install \
24-
keras==3.5 \
25-
tensorflow==2.17.0
24+
keras==2.9 \
25+
tensorflow==2.9.1

docker/install/ubuntu_install_tensorflow_aarch64.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ apt-install-and-clear -y --no-install-recommends libhdf5-dev
2525
# h5py wheel tries to use the wrong .so file
2626
pip3 install \
2727
numpy==1.23.5 \
28-
keras==3.5 \
29-
tensorflow-aarch64~=2.16.1
28+
keras==2.9 \
29+
tensorflow-aarch64~=2.9.3

docker/install/ubuntu_install_tflite.sh

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ set -o pipefail
2626
TENSORFLOW_VERSION=$(python3 -c "import tensorflow; print(tensorflow.__version__)" 2> /dev/null)
2727

2828
# Download, build and install flatbuffers
29-
git clone --branch=v24.3.25 --depth=1 --recursive https://github.com/google/flatbuffers.git
30-
pushd flatbuffers
31-
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Wno-class-memaccess"
32-
ninja install -j8
33-
popd
29+
git clone --branch=v1.12.0 --depth=1 --recursive https://github.com/google/flatbuffers.git
30+
cd flatbuffers
31+
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Wno-class-memaccess"
32+
make install -j8
33+
cd ..
3434

3535
# Install flatbuffers python packages.
3636
pip3 install flatbuffers
@@ -41,22 +41,22 @@ pip3 install flatbuffers
4141
git clone https://github.com/tensorflow/tensorflow --branch=v${TENSORFLOW_VERSION} --depth 1
4242

4343
mkdir -p /opt/tflite
44-
pushd /opt/tflite
45-
cmake -G Ninja \
46-
-DTFLITE_ENABLE_XNNPACK=OFF \
47-
/tensorflow/tensorflow/lite
44+
cd /opt/tflite
45+
cmake \
46+
-DTFLITE_ENABLE_XNNPACK=OFF \
47+
/tensorflow/tensorflow/lite
48+
49+
cmake --build .
50+
cd -
4851

49-
cmake --build .
50-
popd
5152

5253
# Setup tflite from schema
5354
mkdir tflite
54-
find / -name "schema.fbs"
55-
cp /tensorflow/tensorflow/lite/stablehlo/schema/schema.fbs tflite
56-
pushd tflite
57-
flatc --python schema.fbs
55+
cp tensorflow/tensorflow/lite/schema/schema.fbs tflite
56+
cd tflite
57+
flatc --python schema.fbs
5858

59-
cat <<EOM >setup.py
59+
cat <<EOM >setup.py
6060
import setuptools
6161
6262
setuptools.setup(
@@ -77,12 +77,12 @@ setuptools.setup(
7777
)
7878
EOM
7979

80-
cat <<EOM >__init__.py
80+
cat <<EOM >__init__.py
8181
name = "tflite"
8282
EOM
8383

84-
# Install tflite over python3
85-
python3 setup.py install
84+
# Install tflite over python3
85+
python3 setup.py install
8686

87-
popd
87+
cd ..
8888
rm -rf tflite

0 commit comments

Comments
 (0)