GithubHelp home page GithubHelp logo

shunsunsun / docker-workflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lambdalabsml/docker-workflow

0.0 0.0 0.0 100 KB

Shell 1.14% Python 96.66% Jupyter Notebook 0.45% Dockerfile 1.75%

docker-workflow's Introduction

docker-workflow

Usage

Test build

export DOCKER_BUILDKIT=1 && \
./${BUILD_SCRIPT}/build.sh

# e.g.
export DOCKER_BUILDKIT=1 && \
./horovod/examples/build.sh

export DOCKER_BUILDKIT=1 && \
./ngc/tf/runai/build.sh

export DOCKER_BUILDKIT=1 && \
./ngc/pytorch/runai/build.sh

Build and release

export DOCKER_BUILDKIT=1 && \
./release <BUILD_SCRIPT> <USERNAME>

# e.g. 
export DOCKER_BUILDKIT=1 && \
./release.sh horovod/examples chuanli11

export DOCKER_BUILDKIT=1 && \
./release.sh ngc/tf/runai chuanli11

export DOCKER_BUILDKIT=1 && \
./release.sh ngc/pytorch/runai chuanli11

Usage

Horovod PyTorch example

docker run --gpus all --rm --shm-size=128g -it \
chuanli11/horovod-examples:latest

cd /examples/pytorch && \
horovodrun -np 2 python pytorch_synthetic_benchmark.py |& tee $(date +"%m-%d-%y-%H-%M").txt

NGC TensorFlow example

docker run --gpus all --rm --shm-size=128g -it \
chuanli11/ngc-tf-runai:latest

cd benchmarks && \
NCCL_DEBUG=INFO \
python scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py \
--model=resnet50 --num_batches=100 --data_name imagenet \
--batch_size=256 --num_gpus=2 |& tee $(date +"%m-%d-%y-%H-%M").txt

cd benchmarks && \
NCCL_DEBUG=INFO NCCL_ALGO=Ring NCCL_NET_GDR_LEVEL=4 horovodrun -np 2 \
python scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py \
--model=resnet50 --num_batches=100 --data_name cifar10 \
--batch_size=256 --variable_update=horovod |& tee $(date +"%m-%d-%y-%H-%M").txt

docker-workflow's People

Contributors

chuanli11 avatar andrew-lambda 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.