Code Monkey home page Code Monkey logo

distributed_rl's Introduction

Distributed Reinforcment Learning.

Description

This Repo is for implementation of Distributed RL Algorithm,

using by Pytorch, Ray and Redis.

Here is list of Algorithm I implemented (or will implement)

Algorithms

  1. IMPALA

  2. APE_X_DQN

  3. R2D2


Google Cloud Platform

In APE-X DQN paper, the computer resources for experiment is below:

1. nCpus: 360+
2. RAM:256GB
3. GPU: V100
4. High Performance CPU for constructing data pipeline

Probably, Most pepole can't satsify above conditions.

Instead of buying it, I use Virtual Machine in GCP.

GCP supports not only for enough resoruces but also for redis-server.


Install

Recommend you create the new development conda env for this repo.

conda create -n <env_name> python=3.7

git clone https://github.com/seungju-mmc/Distributed_RL.git

git submodule init

#  pull submodule from git 'baseline'
#  If you read Readme.md from baseline, understand what it is.

git submodule update

pip install -r requirements.txt

[Important] you must check ./cfg/.json. you can control the code by .json.

[Important] In configuration.py, set the path !!

Run

#  you need independent two terminals. Each one is for learner and actor.

sudo apt-get install tmux

tmux

python run_learner.py

# Crtl + b, then d

tmux

python run_actor.py --num-worker <n>

BottleNecks

1. More Cache memory, Better performance

    I observed that lower cache memory of intel i7 9700k (12Mb) can be bottleneck for constructing data pipeline in learer side.

    In GCP, using Redis server supported by GCP, there is no bottlenect. 

    I recommend you use more than 30MB L3 cache memory or use GCP.
    You can check cache memory specification using following line in terminal.


sudo lshw -C memory

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.