Skip to content

Commit 9ca384a

Browse files
Remove pinning protobuf version in requirements.txt.
Install NVIDIA wheels for Keras GPU builds instead of setting LD_LIBRARY_PATH. PiperOrigin-RevId: 728402252
1 parent eaa4052 commit 9ca384a

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

requirements.txt

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,23 @@
33
pandas
44
pydot
55
scipy
6-
# Remove once both TensorFlow and TF-Keras nightly builds pass.
7-
# Temporarily enforce 3.20.3 version, as the only version which is compatible
8-
# with both new and old protobuf stubs. This is needed to resolve
9-
# Keras-TensorFlow circular dependency issue, when one of them gets a dependency
10-
# incompatible with another one (protobuf in this specific case).
11-
protobuf==3.20.3
126
tf-nightly
137
portpicker
148
pyyaml
159
Pillow
1610
numpy >= 1.26.0, < 2.1.0 # Sync with the numpy version used in TF
1711
black==22.3.0
1812
isort==5.10.1
19-
flake8==4.0.1
13+
flake8==4.0.1
14+
# NVIDIA CUDA dependencies
15+
nvidia-cublas-cu12 == 12.5.3.2
16+
nvidia-cuda-cupti-cu12 == 12.5.82
17+
nvidia-cuda-nvrtc-cu12 == 12.5.82
18+
nvidia-cuda-runtime-cu12 == 12.5.82
19+
nvidia-cudnn-cu12 == 9.3.0.75
20+
nvidia-cufft-cu12 == 11.2.3.61
21+
nvidia-curand-cu12 == 10.3.6.82
22+
nvidia-cusolver-cu12 == 11.6.3.83
23+
nvidia-cusparse-cu12 == 12.5.1.3
24+
nvidia-nccl-cu12 == 2.25.1
25+
nvidia-nvjitlink-cu12 == 12.5.82

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

Lines changed: 0 additions & 3 deletions
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)