/tensorflow-demo

Local AI demo and distributed AI demo using TensorFlow

Primary LanguageJupyter Notebook

TensorFlow Examples

This repository includes TensorFlow example codes for both distributed and non-distributed version. Contributions are very welcome.

Local examples

To run the local examples on Jupyter Notebooks, you can either use caicloud.io directly or run it in docker with caicloud TensorFlow image.

Use caicloud.io machine learning SaaS

  • Step 1. Login into caicloud.io. Registry here if you don't have a caicloud account. After login, you may see something like this alt text

  • Step 2. Click on "机器学习" and then click on "单机实验”. You may see something like the picture below if you haven't created one. If you have already created one, you can skip Step 3. alt text

  • Step 3. Creat an experiment environment by click “创建单机实验” and fill the required fields. alt text alt text

  • Step 4. Open Jupyter Notebook alt text

Use caicloud TensorFlow docker image

  • Step 1. Install Docker

  • Step 2. Pull image

    docker pull index.caicloud.io/tensorflow:0.8.0
    

    Note you need to have a caicloud account to pull the image.

  • Step 3. Start the image

    docker run --net=host index.caicloud.io/tensorflow:0.8.0
    
  • Step 4. Access the Jupyter Notebook at localhost:8888

Distributed examples

Distributed TensorFlow examples could only be run on caicloud.io.

  • Step 1. Create distributed TensorFlow cluster. This may take a few minutes. Note you'll need to create a kubernetes cluster before deploying a TensorFlow cluster. This doc describes how to create a kubernetes cluster on caicloud.io. alt text

  • Step 2. Open Jupyter Notebook.

  • Step 3. Create a terminal. alt text alt text

  • Step 4. Go into the distrubted examples directory:

    cd /distributed
    ls
    
  • Step 5. Run examples follow instructions here