Sign inSign up

uvarc/tensorflow

By uvarc

•Updated about 3 years ago

TensorFlow (GPU) with common additional packages

Image
0

2.3K

uvarc/tensorflow repository overview

⁠TensorFlow

https://tensorflow.org/⁠

⁠Preinstalled Python Packages

Bold: contained in all tags

Package\Tensorflow2.10.02.8.02.7.02.4.0/12.3.02.2.01.5.1
Python3.9.143.9.103.9.93.7.3/123.7.33.6.92.7.16
NumPy1.22.31.23.01.21.41.19.41.18.51.18.41.16.6
SciPy1.9.11.8.01.7.31.5.41.4.11.4.11.2.3
Keras2.10.02.8.02.7.02.4.32.4.32.3.12.2.5
Keras-vis0.4.10.4.10.4.10.4.10.4.10.4.1
Matplotlib3.6.03.5.13.5.03.3.33.3.13.2.1
Seaborn0.12.00.11.20.11.20.11.00.10.10.10.1
Pandas1.5.01.4.11.3.41.1.51.1.11.0.4
Scikit-learn1.1.21.0.21.0.10.23.20.23.20.23.10.20.4
Scikit-image0.19.30.19.10.18.30.17.20.17.20.17.2
OpenCV4.6.0.664.5.5.624.5.4.604.4.0.464.4.0.424.2.0.324.2.0.32
OpenSlide1.2.01.1.21.1.2

To install more packages:

./<sif> -m pip install --user <package>

⁠Special note for 2.3.0 & 2.4.0 - "Distroless"

We experimented with the distroless base image in versions 2.3.0 and 2.4.0, which requires singularity 3.6+. Go through the next section to decide which tag (x.y.z, x.y.z-cpu, x.y.z-distroless) to pull.

We recommend x.y.z for use on Rivanna.

Since there is no shell in Distroless images, you will not be able to execute, say, ! in a Jupyter notebook.

⁠Which tag should I use?

Move right if "no"; down if "yes"

  • Do you intend to use this on a GPU? --(no)--> x.y.z-cpu
  • Do you need preinstalled Python packages? --(no)--> x.y.z-distroless
  • x.y.z
⁠Details
  • x.y.z-cpu
    • can only run on CPU
    • all tags without cpu can run on GPU
    • usage on Rivanna:
      module load singularity
      singularity pull docker://uvarc/tensorflow:x.y.z-cpu
      ./tensorflow_x.y.z-cpu.sif your_script.py
      
  • x.y.z-distroless
    • contains necessary CUDA libraries
    • usage on Rivanna:
      module load singularity
      singularity pull docker://uvarc/tensorflow:x.y.z-distroless
      singularity run --nv tensorflow_x.y.z-distroless.sif your_script.py
      
  • x.y.z
    • extends x.y.z-distroless with preinstalled Python packages (see below)
    • usage on Rivanna:
      module load singularity
      singularity pull docker://uvarc/tensorflow:x.y.z
      singularity run --nv tensorflow_x.y.z.sif your_script.py
      

Tag summary

Content type

Image

Digest

sha256:46e36364f…

Size

7.1 GB

Last updated

about 3 years ago

docker pull uvarc/tensorflow:2.13.0