GithubHelp home page GithubHelp logo

oranger239 / scout Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cyliustack/scout

0.0 0.0 0.0 22.37 MB

Multi-scale and Cross-framework Benchmarking for Neural Network Processing Engines

License: Apache License 2.0

Python 92.06% Shell 6.72% HTML 1.22%

scout's Introduction

Introduction

SCOUT: A Multi-scale and Cross-framework Benchmarking for Neural Network Processing Engines.
This benchmark suite will include t-bench, dt-bench, and p-bench.

  • t-bench is a modified TensorFlow official performance benchmark (https://github.com/tensorflow/benchmarks)
  • dt-bench is a distributed CNN models training benchmark. Currently it is extension of t-bench.
  • p-bench is developed based on PyTorch examples.
  • s-bench is a TensorFlow.Keras distributed traing benchmarks, which utilize tensorflow.distribute.strategy.

Authors: All contributors.

Prerequisite

  1. tensorflow >= 1.14.0
  2. If you want to use profiling tool SOFA, please download it from https://github.com/cyliustack/sofa.git
  3. If you wnat to use benchmark with real data,
  4. Real data installation is described below (ramdisk mounting is optional to you):
    mkdir /tmp/ramdisk
    chmod 777 /tmp/ramdisk
    mount -t tmpfs -o size=2G tmpfs /tmp/ramdisk/   
    mkdir -p /tmp/ramdisk/dataset
    tar xvf imagenet_smallset.tar.gz
    mv imagenet_smallset /tmp/ramdisk/dataset/imagenet
    

Install

./tools/prepare.sh

Usages: Basic Benchmarking

sudo sysctl -w vm.drop_caches=3 
./t-bench --model=resnet50  
./t-bench --model=resnet50 --num_gpus=2 --strategy="parameter_server" 
./t-bench.py --model=resnet50 --data_dir /tmp/ramdisk/dataset/imagenet 
./s-bench --model=resnet50 --strategy="parameter_server"
./tools/get_latency.py resnet50
./dt-bench parameter_server:resnet50
./dt-bench distributed_replicated:resnet50 --hierarchical_copy
./dt-bench distributed_all_reduce:resnet50 --all_reduce_spec=pscpu#2
cd dt-bench && ./run_strategy.sh mi ; cd - 

Usage: Advanced Platform Profiling

./tools/p2p-trace.py record --max_num_gpus=8
./tools/p2p-trace.py report

scout's People

Contributors

cyliustack avatar sjeemb avatar oranger239 avatar liujames 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.