GithubHelp home page GithubHelp logo

gaocegege / darts_asha Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liamcli/darts_asha

0.0 2.0 0.0 19 KB

Code release to reproduce ASHA experiments from "Random Search and Reproducibility for NAS."

Python 100.00%

darts_asha's Introduction

This repo contains the code to run the experiments with ASHA on the two neural architecture search benchmarks presented in "Random Search and Reproducibility for NAS." ASHA is short for the Asynchronous Successive Halving algorithm, which was presented in this paper.

ASHA

Please follow directions in this repo to make sure you have the forked DARTS repo with the correct python packages and also have the data downloaded into the right directories.

You will need the python package mpi4py in order to run ASHA on multiple GPUs.

Make sure the path for darts and the data are correct in the benchmark files:
darts_asha/benchmarks/nas_search/cnn/darts/darts_wrapper.py
darts_asha/benchmarks/nas_search/cnn/darts/darts_trainer.py
darts_asha/benchmarks/nas_search/ptb/darts/darts_wrapper.py
darts_asha/benchmarks/nas_search/ptb/darts/darts_trainer.py
Also, make sure darts_asha is in your PYTHONPATH.

To run ASHA using multiple GPUs on the same machine, issue the following command from darts_asha/searchers:
mpirun -np [# GPUs + 1] -output-filename [mpi filename root] python mpi_hyperband.py -a asha -m [darts_cnn/dart_ptb] -d [cifar10/ptb] -o [output dir] -s [seed] -r 1 -R 300 -t [# hours]

You can also run this on a cluster of GPUs by submitting a job through qsub.

The random seeds used for ASHA in the paper are available in this spreadsheet. Note that this repo contains the fix for non-deterministic CNN training, while our experiments were conducted prior to this fix using the original random seeding in DARTS.

darts_asha's People

Contributors

liamcli avatar

Watchers

Ce Gao avatar  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.