Skip to content

Repository files navigation

Reinforcement Learning for Atari

Experiments with Reinforcement Learning to play Atari games. See the original Google Deepmind Atari paper.

This repo is a modified fork of Reinforcement Learning repo authored by @BaptisteBell and @bribridu59.

Modifications & Improvements

The following list describes the diff between this fork and the original repo

Training:

  • Double DQN
  • Removed batch normalization
  • Modified hyperparameters

Performance:

  • PyTorch compilation
  • Fused AdamW optimizer
  • TF32 precision
  • Gradient clipping

Quality of life:

  • CSV exports for rewards and losses during each training run
  • Commandline args for profiling and rendering

Usage

# Training
python pong.py
python pong.py --enable-perf-logs

# Render Demonstration of model gameplay
python pong.py --demo
python pong.py --demo -m ./models/good_model.pth

Results

Rendering

Green = good_model.pth

alt text

Loss @ 500 episodes (each plot is a unique training run) alt text Reward @ 500 episodes (each plot is a unique training run) alt text

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages