Giter Site home page Giter Site logo

grid's Introduction

wtf

Modes

Grid currently has two modes.

--tree -- experimental

Tree is the federated learning mode. The long term goal is to have node workers store data locally, and train public models to make them better.

--compute

Compute mode lets users offer compute to train models. Data scientists can easily publish models from a jupyter notebook and train them remotely. Grid also offers easy utilities to try n number of configurations concurrently.

Running

python3.6 setup.py install

Running with PUBSUB

Running ipfs_grid_worker_daemon.py

Grid worker daemon requires an IPFS daemon to be running with pubsub support turned on.

ipfs daemon --enable-pubsub-experiment

Make sure you have installed all dependencies

python setup.py install

You also must have keras installed.

You can then run the worker daemon

python3.6 ipfs_grid_worker_daemon.py

Start Jupyter

jupyter notebook

navigate to notebooks/pubsub/ and open Keras Grid Client and Worker.ipynb and follow along in that notebook.

Troubleshooting

Connect Error

If you see this connect error ERROR: could not connect to IPFS. Is your daemon running with pubsub support at 127.0.0.1 on port 5001 make sure you run the following command:

ipfs daemon --enable-pubsub-experiment

Trouble Running Experiment

If you have any troubles running an experiment such as the other peers not learning about your jobs make sure you're connected to the peer. You can check if you're connected to the peer by running:

ipfs pubsub peers | grep <ipfs address>

And then to connect to the peer if you're not connected:

ipfs swarm connect <ipfs_address>

The swarm connect IPFS address should look something like this /p2p-circuit/ipfs/QmXbV8HZwKYkkWAAZr1aYT3nRMCUnpp68KaxP3vccirUc8. And can be found in the output of the daemon when you start it.

grid's People

Contributors

bendecoste avatar iamtrask avatar justin1121 avatar robert-wagner avatar rubenseggers avatar

Watchers

 avatar

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.