All Projects → afritzler → Docker Tensorflow Keras Gpu

afritzler / Docker Tensorflow Keras Gpu

Run Tensorflow and Keras with GPU support on Kubernetes

Projects that are alternatives of or similar to Docker Tensorflow Keras Gpu

Fancontrol.releases
This is the release repository for Fan Control, a highly customizable fan controlling software for Windows.
Stars: ✭ 768 (+5385.71%)
Mutual labels:  gpu
Turbotransformers
a fast and user-friendly runtime for transformer inference (Bert, Albert, GPT2, Decoders, etc) on CPU and GPU.
Stars: ✭ 826 (+5800%)
Mutual labels:  gpu
Acid
A high speed C++17 Vulkan game engine
Stars: ✭ 838 (+5885.71%)
Mutual labels:  gpu
Pyopencl
OpenCL integration for Python, plus shiny features
Stars: ✭ 790 (+5542.86%)
Mutual labels:  gpu
Scikit Cuda
Python interface to GPU-powered libraries
Stars: ✭ 803 (+5635.71%)
Mutual labels:  gpu
Jetsonjs
Embed a JavaScript/WebGL application on a Nvidia Jetson TX2 and stream the results through websockets. It does not rely on CUDA/Jetpack. HDMI touchscreen, virtual keyboard, GPIO control, wifi config are included.
Stars: ✭ 18 (+28.57%)
Mutual labels:  gpu
Toypathtracer
Toy path tracer for my own learning purposes (CPU/GPU, C++/C#, Win/Mac/Wasm, DX11/Metal, also Unity)
Stars: ✭ 753 (+5278.57%)
Mutual labels:  gpu
Ksim
The little simulator that could.
Stars: ✭ 11 (-21.43%)
Mutual labels:  gpu
Tensorflow.jl
A Julia wrapper for TensorFlow
Stars: ✭ 822 (+5771.43%)
Mutual labels:  gpu
Daskmaskrcnn
Running Mask-RCNN on Dask with PyTorch
Stars: ✭ 25 (+78.57%)
Mutual labels:  gpu
Makie.jl
High level plotting on the GPU.
Stars: ✭ 791 (+5550%)
Mutual labels:  gpu
Unity3d Cg Programming
Various shaders.
Stars: ✭ 800 (+5614.29%)
Mutual labels:  gpu
Fieldplay
A vector field explorer
Stars: ✭ 922 (+6485.71%)
Mutual labels:  gpu
Marian
Fast Neural Machine Translation in C++
Stars: ✭ 777 (+5450%)
Mutual labels:  gpu
Gpusorting
Implementation of a few sorting algorithms in OpenCL
Stars: ✭ 9 (-35.71%)
Mutual labels:  gpu
Tf Coriander
OpenCL 1.2 implementation for Tensorflow
Stars: ✭ 775 (+5435.71%)
Mutual labels:  gpu
Wheels
Performance-optimized wheels for TensorFlow (SSE, AVX, FMA, XLA, MPI)
Stars: ✭ 891 (+6264.29%)
Mutual labels:  gpu
Graphvite
GraphVite: A General and High-performance Graph Embedding System
Stars: ✭ 865 (+6078.57%)
Mutual labels:  gpu
Pytorch Forecasting
Time series forecasting with PyTorch
Stars: ✭ 849 (+5964.29%)
Mutual labels:  gpu
Neanderthal
Fast Clojure Matrix Library
Stars: ✭ 927 (+6521.43%)
Mutual labels:  gpu

docker-tensorflow-keras-gpu

Base image with Tensorflow and Keras with GPU support. The purpose of this project is to run a single Pod on Kubernetes on a GPU backed node.

Run it on Kubernetes

First, we need to label the gpu instance (if not already done). If you choose to use a different labeling, you need to adjust the nodeSelector part in the example-pod.yaml file.

kubectl label node <NODE_NAME> gpu="true"

Tricky part ahead:

In order to use the GPU inside your docker container, you need to pass the location of the NVidia driver on the host into your container. Since the GPU kernel driver on the host has to match the nvidia-driver inside the contianer, we want to decouple that. Adjust the path in the example-pod.yaml file in case your nvidia-driver location is different.

volumes:
  - name: nvidia-driver
    hostPath:
      path: /var/lib/nvidia-docker/volumes/nvidia_driver/latest

Now run a simple deployment

kubectl create -f example-pod.yaml

Attach to the running container

kubectl exec -it tensorflow-keras-gpu -- /bin/bash

Lets do some training

Inside the docker container I placed the Keras examples from github. To run a simple training example on the IMDB dataset

cd /keras/example
python imdb_cnn.py

If your configuration and driver mapping was done correctly, you should see something like that before the training starts.

Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:09:00.0)

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].