Skip to content
stsievertPublic

About

Dask parameter server

Resources

Stars

6 stars

Watchers

1 watching

Forks

Repository files navigation

dask-ps

This repository implements initial sketches for a Dask parameter server. The reasoning behind this is that Dask should manage the communication required for distributed optimization but leave computation to the favorite library (e.g., PyTorch, Keras).

The implementations in this repository were discussed more in dask/dask-ml#171.

  • Centralized-PS.ipynb: the main notebook behind this repo
  • Ring-all-reduce.ipynb: a very rough draft of an all-reduce strategy
  • initial-sketches/: initial versions of the centralized and decentralized parameter servers

There are two variants for this:

  1. a centralized parameter server (PS)
    • the PS holds the model
    • give workers the model
    • tasks workers with calculating gradients
  2. a decentralized parameter server
    • every worker holds the model
    • communicate only gradients
Centralized Decentralized

There are two different variants on the communication scheme:

  1. Synchronous
    • Centralized PS: the PS waits to receive enough gradients before applying them.
    • Decentralized PS: all workers communicate their gradients to every other worker (likely via all-reduce)
  2. Asynchronous
    • Centralized PS: the worker applies the gradient as soon as it's received
    • Dentralized PS: the workers don't communicate to every other worker

There is a separate issue of blocking writes/reads from the PS.

Implementations

Benchmarks

Algorithms

I'm more inclined to distributed the computation of gradients. These two algorithms don't do that and are decentralized.

  • Hogwild: require async centralized PS, which holds on to a global model and workers go willy-nilly (hence the name)
  • Hogwild++: a hogwild variant to HPC systems. Requires a decentralized system that does not have synchronous communication (the workers communicate in a ring structure)

Papers

About

Dask parameter server

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages