Giter Site home page Giter Site logo

BFTrainer

This repository officially hosts the implementation of BFTrainer: Low-Cost Training of Neural Networks on UnfillableSupercomputer Nodes https://arxiv.org/abs/2106.12091.

The BFTrainer's philosophy of design is zero-cost to jobs in the main scheduler of the supercomputer. It does mean that BFTrainer is the lowest priority to use resource but it does NOT mean that jobs run by BFTrainer will be slow because BFTrainer relaxes resource requirement and optimizes the way to utilize any fragmented resource. Depending on relative demand, BFTrainer may run slower or faster than main queue.

Main Scheduler

In theory BFTrainer works with any batch scheduler that has either one of the follow features:

  • Grand SSH access to idle nodes for particular users, e.g., BFTrainer admin/user, the scheduler can revoke (i.e., pre-empt) at any time.
  • shrink-to-fit, i.e., the scheduler allows submitting a request with a range of nodes and later stretch the allocation when needed (i.e., pre-empt) until all nodes are preempted or request timeout.

We tested our implementation with OpenPBS.

User's Code decoration

We try to minimize code changes, user need to:

  • Implement their DNN training using Elastic Horovod, it's oretty straightforward, instructions available here.
  • User only need to add a line of code in ther iterative training loop to report the progress (e.g., samples processed) that they have made from the iteration.

MILP solver for optimal resource allocation

We provided two implementations of the MILP model:

  • PYTHON-MIP with open source (free) CBC solver.
  • gurobipy, the Gurobi Python Interface, with Gurobi solver. Licensed required, one can use free trial or academia license for evaluation purpose.

Based on our preliminary benchmark, Gurobi is much faster than CBC when problem size is big (e.g., dozens of jobs on hundreds of nodes). Otherwise, the time to solve is very similar between Gurobi and CBC when problem size is small.

The PYTHON-MIP also supports using Gurobi as solver (license required as well) but slower than gurobipy in most cases especially when problem size is large. Thus, one can use the free CBC when problem size is small, especailly for relatively small supercomputers. Otherwise, Gurobi with the gurobipy based implementation is recommended.

bftrainer's Projects

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.