Code Monkey home page Code Monkey logo

distributedtensorflowsample's Introduction

DistributedTensorFlowSample

Distributed TensorFlow のサンプルです。

シングルPC上での実験

grpc_tensorflow_serverがビルドされており、パスも通っている環境で動作します。

に説明を書いています。

cd standalone

シングルPC上でシングルプロセスです。

python ./single_cpu.py

シングルPC上でモデル並列です。shでサーバを立てて、python からアクセスします。

./model_parallel_server.sh
python ./model_parallel.py

シングルPC上でデータ並列です。shでサーバを立てて、python からアクセスします。

./data_parallel_server.sh
python ./single_cpu.py

GPC上での実験

こちらを参照してください。

vCPU8個のGCPクラスタが立ち上がってる前提で、

export PROJECT_ZONE=YOUR_ZONE
export PROJECT_ID=YOUR_PROJECT
python ./create_tf_servers.py

hostsの設定をしたのちに

$ kubectl exec -it if /bin/bash
# apt-get install git
# cd home
# git clone https://github.com/ashitani/DistributedTensorFlowSample
# cd DistributedTensorFlowSample/gcp/mnist
# python mnist_distributed.py master

distributedtensorflowsample's People

Contributors

ashitani avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

distributedtensorflowsample's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.