Skip to main content

brawlgym-ppo

A vectorized implementation of PPO for use with brawlgym, adapted from rlgym-ppo.

INSTALLATION

  1. Install brawlgym.
  2. If you would like to use a GPU install PyTorch with CUDA
  3. Install this project via pip install git+https://github.com/chrisrca/brawlgym-ppo

USAGE

Import the learner with from brawlgym_ppo import Learner, pass it a function that takes a game port and returns a brawlgym environment, and run the learning algorithm. The learner patches the game, boots one instance per process and hands each process its port:

from brawlgym_ppo import Learner

def my_brawlgym_function(port):
    import brawlgym
    return brawlgym.make(port=port)

learner = Learner(my_brawlgym_function)
learner.learn()

See example.py for a function that configures the environment's components.

Metadata

Release files for brawlgym-ppo 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brawlgym-ppo 0.1.0
File Size Uploaded
brawlgym_ppo-0.1.0.tar.gz 32.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brawlgym-ppo 0.1.0
File Interpreter ABI Platform
brawlgym_ppo-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 72.4 kB

Release files / brawlgym_ppo-0.1.0.tar.gz

Download URL brawlgym_ppo-0.1.0.tar.gz
Size 32.6 kB
Tags Source
SHA-256 checksum
How to use checksums
997a9acce8578a3e0f21dabc12d39956a18e5d5f19d0dbae9f54d0637e369ef0
BLAKE2b-256 checksum
How to use checksums
1a91707703c9b489304f26b82a1fdbfe14643b056b236844bbbc19a289fbedd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / brawlgym_ppo-0.1.0-py3-none-any.whl

Download URL brawlgym_ppo-0.1.0-py3-none-any.whl
Size 39.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f74f9813e6c47b9a7f2d6837db18456321b46ed9350bc8ca360ff3908dfc6812
BLAKE2b-256 checksum
How to use checksums
e7f007f36c95453415f7b7c5b7784c42279ec3977ad19205c7785512dbbef48d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page