Giter Site home page Giter Site logo

muzero's Introduction

MuZero

Hey, this repository is oriented to my implementation of the MuZero agent (MZ) and Monte Carlo tree search (MCTS). During my studies, I tried to find the fast available implementation of MZ. However, there were a few slow versions on Github. It is understandable because as you probably know, building a decision tree by the MCTS approach in each state is computationally intensive. Of course, the agent needs to collect as much data as possible, therefore he plays multi games simultaneously. For each running game is necessary to create new MCTS (in each step). My measured data are stored in proposed_mcts/raw_data.zip in which suffix "u" represents random (uniform) actions and "o" presents constant (overloaded) actions.

However, I got the idea to implement MCTS by tensors. This implementation is able to process a batch of observations on GPU. It is faster than building MCTS via CPU and processes each observation separately. Now, we have finished the paper about the implementation of the proposed MCTS, so you have to wait :). In folder "proposed_mcts" are my implementation (GPU.py) and another popular implementations. You can check my tuned version of my MCTS in 'core/mcts.py'.

Experiments in Pong environment

I tested MZ with my version of MCTS in the Atari domain - environment Pong. MZ played 20 games simultaneously in the cycle without multiprocessing (because the replay buffer took a lot of memory and my RAM was almost completely full ~ 32GB). For training, I used one NVIDIA GeForce RTX 2080 Ti. One training lasts about 1 day (I know, too long, but it is MuZero). There are two training with a different models in the plot. I tried to use as much deeper a model as possible. Maybe you would be able to train Pong with a smaller model. Just try it, good luck! :)

alt text

Next goal is to train MZ in game Breakout.

muzero's People

Contributors

marrekb 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.