Giter VIP home page Giter VIP logo

il-scaling-in-games's Introduction

Scaling Laws for Imitation Learning in NetHack

Official code repo for the paper "Scaling Laws for Imitation Learning in NetHack". While we unfortunately cannot release the full code, we do release the model weights of our forecasted model below along with a sample script to run it.

NetHack Forecasted Model Weights

Please download the model weights for our forecasted NetHack experiment from the following links:

Make sure to place these files in a folder named nethack_files in the root directory of this repo.

NOTE: You can use gdown to download these using the command line. Simply install gdown using pip install gdown and then run the following commands:

  • gdown 'https://drive.google.com/uc?id=1tWxA92qkat7Uee8SKMNsj-BV1K9ENExl' for the model weights
  • gdown 'https://drive.google.com/uc?id=1yyvbhq-yBF6q3lWCtfrIiyB1NdhTr5l2' for the model flags

Installation

Clone the repository and run the following command in the root directory:

pip install -e .

Then run install from requirements.txt:

pip install -r requirements.txt

Running the sample script

Once everything is installed, you can simply run

python3 -m il_scale.nethack.rollout --parameter_file conf/rollout_example.parameters

The hyperparameters in conf/rollout_example.parameters are set to reproduce the numbers in the paper. You can also change the hyperparameters to run your own experiments.

NOTE: the num_actors flag is currently set to 1. If you want to run multiple actors in parallel to speed things up (recommended), you can simply increase this number.

il-scaling-in-games's People

Contributors

jens321 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

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.