Code Monkey home page Code Monkey logo

srl's Introduction

Note

This repository has been moved to a new address https://github.com/openpsi-project/srl !!! This repository is no longer maintained. Please check our new updates in the new repository!

SRL (ReaLly Scalable RL): Scaling Distributed Reinforcement Learning to Over Ten Thousand Cores

SRL is an efficient, scalable and extensible distributed Reinforcement Learning system. SRL supports running several state-of-the-art RL algorithms on some common environments with one simple configuration file, and also exposes general APIs for users to develop their self-defined environments, policies and algorithms. SRL even allows users to implement new system components to support their algorithm designs, if current system architecture is not sufficient.

Currently, our scheduler with slurm is not released. We are planning to implement a ray version launcher for users to easily deploy SRL on a large scale!

Algorithms and Environments

In this repository, one algorithm (Proximal Policy Optimization) and five environments (Gym Atari, Google football, Gym MuJoCo, Hide and Seek, SMAC) are implemented as examples. In the future, more environment and algorithm supports will be added to build an RL library with SRL.

Installation

Before installation, make sure you have python>=3.8 and torch>=1.10.0, gym installed. Wandb is also supported, please install wandb package if you intend to use it for logging. You should also install environments you intend to run. For more information, check links about supported envrionment in previous section. (Note that Google football environment requires a older version of gym==0.21.0)

Contents in this repository could be installed as a python package. To install, you should clone this repository and install the package by:

git clone https://github.com/openpsi-projects/srl.git

cd srl && pip install -e .

Running an Experiment

After installing SRL and atari environment, to run a simple experiment we provide as an example:

srl-local run -e atari-mini -f test

This command line will start a run of simple PPO training on environment atari, defined by:

Documentation

For more user guides:

For more information about SRL:

Full paper

Full paper: SRL: Scaling Distributed Reinforcement Learning to Over Ten thousand cores available in arxiv! Link: https://arxiv.org/abs/2306.16688

srl's People

Contributors

openpsi-projects avatar reallyscalablerl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

inkedyogi

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.