Giter Site home page Giter Site logo

rl_streaming_engine's Introduction

Streaming Engine Scheduler

DOI

Gym environment for Streaming Engine and PPO code to generate assignment for a given compute graph on a streaming engine topology.

Dependencies

First, install PyGraphViz on your system: https://pygraphviz.github.io/documentation/stable/install.html

Install require Python packages

pip install -r requirements.txt

Experiments

Run training:

python train.py

See experiements results using:

tensorboard --logdir runs/ --bind_all

Usage

usage: train.py [-h] [--device-topology DEVICE_TOPOLOGY [DEVICE_TOPOLOGY ...]] [--pipeline-depth PIPELINE_DEPTH]
                [--epochs EPOCHS] [--nodes NODES] [--debug] [--input INPUT] [--pass-timing] [--no-tm-constr]
                [--no-sf-constr] [--no-device-cross-connections] [--graph_feat_size GRAPH_FEAT_SIZE]
                [--emb_size EMB_SIZE] [--update_timestep UPDATE_TIMESTEP] [--K_epochs K_EPOCHS]
                [--eps_clip EPS_CLIP] [--gamma GAMMA] [--lr LR] [--betas BETAS] [--loss_entropy_c LOSS_ENTROPY_C]
                [--loss_value_c LOSS_VALUE_C] [--model MODEL] [--log_interval LOG_INTERVAL]

Streaming Engine RL Mapper

optional arguments:
  -h, --help            show this help message and exit
  --device-topology DEVICE_TOPOLOGY [DEVICE_TOPOLOGY ...]
                        Device topology of Streaming Engine
  --pipeline-depth PIPELINE_DEPTH
                        processing pipeline depth
  --epochs EPOCHS       number of epochs
  --nodes NODES         number of nodes
  --debug               enable debug mode
  --input INPUT         load input json from file
  --pass-timing         enable pass through timing
  --no-tm-constr        disable tile memory constraint
  --no-sf-constr        disable sync flow constraint
  --no-device-cross-connections
                        disable sync flow constraint
  --graph_feat_size GRAPH_FEAT_SIZE
                        graph_feat_size
  --emb_size EMB_SIZE   embedding size
  --update_timestep UPDATE_TIMESTEP
                        update policy every n episodes
  --K_epochs K_EPOCHS   update policy for K epochs
  --eps_clip EPS_CLIP   clip parameter for PPO
  --gamma GAMMA         discount factor
  --lr LR               parameters for Adam optimizer
  --betas BETAS
  --loss_entropy_c LOSS_ENTROPY_C
                        coefficient for entropy term in loss
  --loss_value_c LOSS_VALUE_C
                        coefficient for value term in loss
  --model MODEL         load saved model from file
  --log_interval LOG_INTERVAL
                        interval for logging data

rl_streaming_engine's People

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.