Giter VIP home page Giter VIP logo

flexparalleldnn's Introduction

AutoSplit

Description

Will be linked to the EGRL AutoML service for optimization of the parallelization strategies. Currently, the framework supports any data parallel configuration but only model parallelism in This library extends basic PyTorch capabilities by adding support for per-layer parallel strategies, similar to FlexFlow. Usability is guaranteed by adding minimal code to an existing distributed configuration (such as DDP or FSDP by fairscale). A simple wrapper is applied to an existing PyTorch module in order to it with a parallelization strategy that could either be auto-generated or chosen by the user.

Installation

build directly from source:

pip install .

To install FairScale, please see the following instructions. You should be able to install a pip package or

Getting Started

initializing model and data parallelism:

setting up a distributed data sampler:

gathering targets in order to feed to the loss:

finding optimal strategy:

wrapping model with optimal strategy:

once again gathering targets before each call to loss:

adding a call to notify the optimizer that gradients should be synced right after backwards call:

Examples

Here are a few sample snippets from a subset of FairScale offerings:

At a high level, we want ML researchers to:

  • go parallel more easily (i.e. no need to manually split layers when implementing the Network)
  • potentially higher GPU efficiency (fewer steps, less networking overhead, etc.)

flexparalleldnn's People

Contributors

davidpeleg6 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.