Skip to content

ashitani/DistributedTensorFlowSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Distributed TensorFlow Sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published