Skip to content

liabifano/hogwild-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Lia
Feb 11, 2019
d74dee3 · Feb 11, 2019

History

64 Commits
May 20, 2018
May 28, 2018
May 28, 2018
Apr 16, 2018
May 28, 2018
Apr 16, 2018
May 10, 2018
May 28, 2018
May 3, 2018
Apr 16, 2018
Apr 6, 2018
Feb 11, 2019
May 28, 2018
May 28, 2018
May 23, 2018

Repository files navigation

Hogwild Python Implementation

HOGWILD!

Configurations and setup

To build the python environment and activate it run:

bash bootstrap-python-env.sh
source activate hogwild-python

All definitions about the coordinator address, nodes addresses and parameters related with SGD execution are in the file settings.py. We assume that at least two workers will be started.

To generate the proto classes (definition of message between nodes and coordinator), run the following command inside the hogwild folder:

source activate hogwild-python
cd src/hogwild & python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. hogwild.proto

If you made any change in the file .proto, you must generate the classes again

Run tests

source activate hogwild-python 
py.test --color=yes -v

Run

The flag -n represents the number of nodes, -r the running mode (synchronous or asynchronous) and -w where it is gonna run (local or cluster)

To run local:
bash run.sh -w synchronous -w local

and it will spin 4 workers in our local machine.

To run in the cluster:
bash run.sh -n 3 -r synchronous -w cluster

and it will spin 3 workers in Kubernetes cluster. Don't forget the change the variables KUBER_LOGIN and docker hub user / password inside the script before to run.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published