Tensorflow upgrade on Databricks Runtime ML for GPU enabled clusters

Shahrzad Amoozegar 0 Reputation points
2024-02-20T16:52:42.8+00:00

Is it possible to upgrade Tensorflow version from 2.8 (which is preinstalled on Databricks Runtime 10.4 M for GPU clusters) to 2.13 without changing the Databricks Runtime. In other words, can we have Tensorflow 2.13 running on Databricks Runtime 10.4 for ML? If so, how can I adjust the version of Cuda within Databricks Runtime 10.4 for ML?

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2024-02-21T06:32:16.41+00:00

    @Shahrzad Amoozegar - Thanks for the question and using MS Q&A platform.

    Based on the documentation, Databricks Runtime 10.4 for ML comes with pre-installed TensorFlow 2.8. However, it is possible to upgrade TensorFlow to version 2.13 without changing the Databricks Runtime. You can install TensorFlow 2.13 using pip install command.

    Here is an example command to install TensorFlow 2.13 on Databricks Runtime 10.4 for ML:

    %sh 
    pip install tensorflow-gpu==2.13
    

    Regarding the version of CUDA within Databricks Runtime 10.4 for ML, it is not possible to adjust the version of CUDA within the runtime. The version of CUDA is pre-installed and cannot be changed.

    For additonal details, you may checkout the answer provided on your thread on Databricks community: https://community.databricks.com/t5/machine-learning/upgrading-cudnn-on-databricks-notebook/td-p/61167

    Hope this helps.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.