Skip to content

Commit 1cbaba5

Browse files
Remove pinning protobuf version since 3.20.3 is old and not supported by Tensorflow
Install NVIDIA wheels for Keras GPU builds. PiperOrigin-RevId: 728362609
1 parent eaa4052 commit 1cbaba5

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

requirements.txt

+14-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,24 @@ scipy
88
# with both new and old protobuf stubs. This is needed to resolve
99
# Keras-TensorFlow circular dependency issue, when one of them gets a dependency
1010
# incompatible with another one (protobuf in this specific case).
11-
protobuf==3.20.3
11+
protobuf==4.21.6
1212
tf-nightly
1313
portpicker
1414
pyyaml
1515
Pillow
1616
numpy >= 1.26.0, < 2.1.0 # Sync with the numpy version used in TF
1717
black==22.3.0
1818
isort==5.10.1
19-
flake8==4.0.1
19+
flake8==4.0.1
20+
# NVIDIA CUDA dependencies
21+
nvidia-cublas-cu12 == 12.5.3.2
22+
nvidia-cuda-cupti-cu12 == 12.5.82
23+
nvidia-cuda-nvrtc-cu12 == 12.5.82
24+
nvidia-cuda-runtime-cu12 == 12.5.82
25+
nvidia-cudnn-cu12 == 9.3.0.75
26+
nvidia-cufft-cu12 == 11.2.3.61
27+
nvidia-curand-cu12 == 10.3.6.82
28+
nvidia-cusolver-cu12 == 11.6.3.83
29+
nvidia-cusparse-cu12 == 12.5.1.3
30+
nvidia-nccl-cu12 == 2.25.1
31+
nvidia-nvjitlink-cu12 == 12.5.82

tf_keras/kokoro/github/ubuntu/gpu/build.sh

-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ pip install -r requirements.txt
4040
# Update this once we switch to `tf_keras-nightly` in TensorFlow.
4141
pip uninstall -y keras-nightly
4242

43-
# LD Library Path needs to be same as TensorFlow Ubuntu Docker build -
44-
# https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/tf_sig_build_dockerfiles/
45-
export LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/tensorrt/lib"
4643
CUDA_TOOLKIT_PATH="/usr/local/cuda-11.8"
4744
TF_CUDA_CONFIG_REPO="@ubuntu20.04-gcc9_manylinux2014-cuda11.8-cudnn8.6-tensorrt8.4_config_cuda"
4845
TF_CUDA_COMPUTE_CAPABILITIES="sm_35,sm_50,sm_60,sm_70,sm_75,compute_80"

0 commit comments

Comments
 (0)