#1212th of 12 in Training and fine-tuning

ml-agents

Train game agents with reinforcement learning inside Unity environments

Stars
19.7k
License
custom license
Last commit
Oct 2026
Last release
Sep 2025
Language
C#

Missed the latest GitHub check; these facts may be older.

Overview

Unity SDK plus a PyTorch-based Python trainer that turns Unity scenes into reinforcement learning environments. It ships PPO, SAC, MA-POCA and self-play, plus BC and GAIL imitation learning, and exposes environments through a Python API, Gym and PettingZoo wrappers. Trained policies run in-game through Unity's Inference Engine.

Who it is for: Game developers and RL researchers training agents in Unity simulations

Strengths

  • Ships PPO, SAC, MA-POCA, self-play, BC and GAIL trainers out of the box
  • Gym and PettingZoo wrappers plus a low-level Python API for custom training code
  • 17+ example Unity environments and curriculum learning and environment randomization support
  • Trained models run natively in Unity across platforms via the Inference Engine

Weaknesses

  • Requires the Unity editor and a Unity project; not usable standalone
  • Last tagged release is from 2025; develop branch is described as unstable
  • Web docs are deprecated; docs live in the Unity package documentation
  • License shown as NOASSERTION by detection, while the README badge says Apache-2.0

What it needs

  • GPU optional
  • Docker
  • Needs Unity (2020.1 or later), Python, PyTorch
  • Models: PPO, SAC, MA-POCA, BC, GAIL

Also in Training and fine-tuning

See all 12
Also in Training and fine-tuning
RankProjectScore
1unslothDesktop and web app to run, fine-tune and export open models Live demo ↗ (opens in a new tab)78k starsApache-2.088 out of 100
2deepspeedPyTorch library for distributed training of large models with ZeRO43.2k starsApache-2.079 out of 100
3llamafactoryFine-tuning toolkit for 100+ LLMs with a CLI and Gradio web UI Live demo ↗ (opens in a new tab)75.5k starsApache-2.074 out of 100
#4verlReinforcement learning training library for LLM post-training with PPO and GRPO23.8k starsApache-2.068 out of 100
#5minimindTrain a 64M-parameter LLM from scratch in plain PyTorch Live demo ↗ (opens in a new tab)63.8k starsApache-2.066 out of 100