Skip to content

goktug97/nes-torch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal PyTorch Library for Natural Evolution Strategies

Requirements

numpy
torch

Optional

gym # For gym examples
mpi4py # For parallelization

To install mpi4py you need MPI installed in the system. Check: https://mpi4py.readthedocs.io/en/stable/install.html

A Dockerfile is provided for convenience.

Installation

pip install nes-torch --user

Documentation

https://nestorch.readthedocs.io/

Usage

See https://github.com/goktug97/nes-torch/blob/master/examples

Check documentation or https://github.com/goktug97/nes-torch/blob/master/nes/config.py for parameters.

You can run the example with

PYTHONPATH="$(pwd):$PYTHONPATH" python examples/example.py

or in parallel for faster training.

PYTHONPATH="$(pwd):$PYTHONPATH" mpirun --np 2 python examples/example.py