Giter VIP home page Giter VIP logo

yacgo's Introduction

yacgo

This is the codebase for the YacGo project create for CS394R Reinforcement Learning at UT Austin Spring 2024.

Requirements and Setup

This project requires ZeroMQ for passing messages between GPU workers and gameplay workers. For MacOs, it is installable using homebrew:

brew install zeromq

For Debian based systems you can install it using apt:

apt-get install libzmq3-dev

For other installations, refer to the ZeroMQ github repository.

To install all requirements for this project, first set up your favorite python environment management and install:

pip install torch
python setup.py install

Running the code

This project breaks training into two processes. The first process handles policy and value inference, training, evaluation, and replay buffer management. The second process controls gameplay workers which choose moves using MCTS search. ZeroMQ is utilized to pass messages between the workers. To run the training process

python yacgo/scripts/stack.py --training_steps_per_epoch 1000 --num_servers 2 --board_size 3

In another terminal window, run the gameplay worker:

python yacgo/scripts/client.py --pcap_train 400 --pcap_fast 100 --num_servers 2 --board_size 3

yacgo's People

Contributors

d-huck avatar nkrypt26 avatar

Watchers

 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.