Closed reuschling closed 1 year ago
In the code of ai.djl.tensorflow.engine.javacpp.LibUtils
I can see that Djl has no matching Tensorflow version under 'https://publish.djl.ai/tensorflow-*'. Thus, I see two possibilities:
TENSORFLOW_LIBRARY_PATH
environment variableFor the solution 1: Can I somewhere determine which versions are available at https://publish.djl.ai?
@reuschling DJL TensorFlow 2.7.x is compiled against CUDA 11.3, please switch to CUDA 11.3 to use TensorFlow GPU.
DJL doesn't directly depends tensorflow-core-platform
package, you don't need to add it in your pom.xml
file.
As you already looked into DJL's code, DJL will auto detect your system, if no matching CUDA found, DJL will switch to CPU.
You can also bundle a os specific dependency: https://github.com/deepjavalibrary/djl/blob/master/engines/tensorflow/tensorflow-engine/README.md#linux-gpu
@reuschling You can also find maven package that DJL published: https://search.maven.org/search?q=g:ai.djl.tensorflow
Thanks a lot, I was able to get it working with the Cuda 11.0 version
On my (Arch) Linux machine, I want to use pre-trained UniversalSentenceEncoder from the Tensorflow model hub. This works nicely on CPU.
On a different machine with GPU I try to accelerate this, but get this warning:
WARN: No matching CUDA flavor for linux found: cu118/sm_75, fallback to CPU. << i.djl.tensorflow.engine.javacpp.LibUtils
Tensorflow version used by DJL (Output of TensorFlow.version()): 2.7.1
Nvidia libs installed on the machine:
cudnn 8.5.0.96-1, cuda 11.8.0-1, cuda-tools 11.8.0-1
Djl-libs from my pom.xml:
Is there a problem with the installed cuda/cudnn version, or is the installation correct and found, but Djl/Tensorflow doesn't find a matching Gpu-Tensorflow version for 'cu118/sm_75' to download? How to solve this? Thanks a lot.