Starter code for Evolution Strategies
Switch branches/tags
Nothing to show
Clone or download
Latest commit 08b9aee Mar 29, 2017
Failed to load latest commit information.
configurations Release Mar 24, 2017
es_distributed Release Mar 24, 2017
redis_config Release Mar 24, 2017
scripts Release Mar 24, 2017
LICENSE License Mar 29, 2017 Release Mar 24, 2017

Distributed evolution

This is a distributed implementation of the algorithm described in Evolution Strategies as a Scalable Alternative to Reinforcement Learning (Tim Salimans, Jonathan Ho, Xi Chen, Ilya Sutskever).

The implementation here uses a master-worker architecture: at each iteration, the master broadcasts parameters to the workers, and the workers send returns back to the master. The humanoid scaling experiment in the paper was generated with an implementation similar to this one.

The code here runs on EC2, so you need an AWS account. It's resilient to worker termination, so it's safe to run the workers on spot instances.


Build AMI

The humanoid experiment depends on Mujoco. Provide your own Mujoco license and binary in scripts/

Install Packer, and then build images by running (you can optionally configure scripts/packer.json to choose build instance or AWS regions)

cd scripts && packer build packer.json

Packer should return you a list of AMI ids, which you should place in AMI_MAP in scripts/


Use scripts/ along with an experiment JSON file. An example JSON file is provided in the configurations directory. You must fill in all command-line arguments to scripts/