Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

SEED RL: Scalable and Efficient Deep-RL with Accelerated Central Inference. Implements IMPALA and R2D2 algorithms in TF2 with SEED's architecture.

License

NotificationsYou must be signed in to change notification settings

google-research/seed_rl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains an implementation of distributed reinforcement learningagent where both training and inference are performed on the learner.

The project is a research project and has now been archived. There will be no further updates.

Architecture

Four agents are implemented:

The code is already interfaced with the following environments:

However, any reinforcement learning environment using thegymAPI can be used.

For a detailed description of the architecture please readour paper.Please cite the paper if you use the code from this repository in your work.

Bibtex

@article{espeholt2019seed,    title={SEED RL: Scalable and Efficient Deep-RL with Accelerated Central Inference},    author={Lasse Espeholt and Rapha{\"e}l Marinier and Piotr Stanczyk and Ke Wang and Marcin Michalski},    year={2019},    eprint={1910.06591},    archivePrefix={arXiv},    primaryClass={cs.LG}}

Pull Requests

At this time, we do not accept pull requests. We are happy to link to forksthat add interesting functionality.

Prerequisites

There are a few steps you need to take before playing with SEED. Instructionsbelow assume you run the Ubuntu distribution.

apt-get install git
  • Clone SEED git repository:
git clone https://github.com/google-research/seed_rl.gitcd seed_rl

Local Machine Training on a Single Level

To easily start with SEED we provide a way of running it on a localmachine. You just need to run one of the following commands (adjustingnumber of actors andnumber of envs. per actor/env. batch sizeto your machine):

./run_local.sh [Game] [Agent] [number of actors] [number of envs. per actor]./run_local.sh atari r2d2 4 4./run_local.sh football vtrace 4 1./run_local.sh dmlab vtrace 4 4./run_local.sh mujoco ppo 4 32 --gin_config=/seed_rl/mujoco/gin/ppo.gin

It will build a Docker image using SEED source code and start the traininginside the Docker image. Note that hyper parameters are not tuned in the runsabove. Tensorboard is started as part of the training. It can be viewed underhttp://localhost:6006 by default.

We also provide a sample script for running training with tuned parameters forHalfCheetah-v2. This setup runs training with 8x32=256 parallel environments tomake training faster. The sample complexity can be improved at the costof slower training by running fewer environments and increasing theunroll_length parameter.

./mujoco/local_baseline_HalfCheetah-v2.sh

Distributed Training using AI Platform

Note that training with AI Platform results in charges for using compute resources.

The first step is to configure GCP and a Cloud project you will use for training:

gcloud auth logingcloud configset project [YOUR_PROJECT]

Then you just need to execute one of the provided scenarios:

gcp/train_[scenario_name].sh

This will build the Docker image, push it to the repository which AI Platformcan access and start the training process on the Cloud. Follow output of the commandfor progress. You can also view the running training jobs athttps://console.cloud.google.com/ml/jobs

DeepMind Lab Level Cache

By default majority of DeepMind Lab's CPU usage is generated by creating newscenarios. This cost can be eliminated by enabling level cache. To enable it,set thelevel_cache_dir flag in thedmlab/config.py.As there are many unique episodes it is a good idea to share the same cacheacross multiple experiments.For AI Platform you can add--level_cache_dir=gs://${BUCKET_NAME}/dmlab_cacheto the list of parameters passed ingcp/submit.sh to the experiment.

Baseline data on ATARI-57

We provide baseline training data for SEED's R2D2 trained on ATARI games in theform of training curves (checkpoints and Tensorboard event files coming soon).We provide data for 4 independent seeds run up to 40e9 environment frames.

The hyperparameters and evaluation procedure are the same as in section A.3.1 inthepaper.

Training curves

Training curves are available onthispage.

Checkpoints and Tensorboard event files

Checkpoints and tensorboard event files can be downloaded individuallyhereor asa single (70GBs) zipfile.

Additional links

SEED was used as a core infrastructure piece for theWhat Matters In On-Policy Reinforcement Learning? A Large-Scale Empirical Study paper.A colab that reproduces plots from the paper can be foundhere.

About

SEED RL: Scalable and Efficient Deep-RL with Accelerated Central Inference. Implements IMPALA and R2D2 algorithms in TF2 with SEED's architecture.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp