POCA agent playing SoccerTwos

replay

A POCA (multi-agent PPO-style trainer with a shared critic) team trained with the Unity ML-Agents toolkit on the 2-vs-2 soccer environment SoccerTwos, as the Unit 7 project of the Hugging Face Deep RL Course. The clip is a screen recording of this model playing against itself in the Hugging Face browser viewer.

Results

Steps trained 11,000,010 (max_steps 11M)
Self-play ELO at the end 1531.96 (initial ELO 1200)

Source: run_logs/training_status.json; max_steps and initial ELO from configuration.yaml. ELO is measured only against earlier snapshots of this same agent during self-play, so it shows the team improving over its own history, not strength against an outside opponent. There is no per-agent reward to report: the checkpoint rewards in training_status.json are 0.0 in this zero-sum game. Evaluation against a fixed baseline: not recorded. One training run, resumed several times (6 TensorBoard event files in SoccerTwos/).

Training

  • Trainer poca, behaviour SoccerTwos, run id SoccerTwos1, 1 environment. ML-Agents 1.2.0.dev0, PyTorch 2.3.1 (run_logs/training_status.json metadata).
  • Hyperparameters: batch 2048, buffer 20480, learning rate 3e-4 (constant), beta 5e-3, epsilon 0.2, lambda 0.95, 3 epochs, network 2 x 512, gamma 0.99, time horizon 1000.
  • Self-play: window 15, save_steps 60000, swap_steps 3000, team_change 300000, play_against_latest_model_ratio 0.6.
  • Full config: configuration.yaml in this repo. Notebook and notes: GitHub.

Watch the agent play

  1. Open https://huggingface.co/spaces/unity/ML-Agents-SoccerTwos.
  2. Enter elliemci and choose elliemci/poca-SoccerTwos, then the SoccerTwos.onnx file.
  3. Click "Watch the agent play".

Download

mlagents-load-from-hf --repo-id="elliemci/poca-SoccerTwos" --local-dir="./downloads"

Resume training

mlagents-learn <your_configuration_file_path.yaml> --run-id=SoccerTwos1 --resume
Downloads last month
69
Video Preview
loading

Paper for elliemci/poca-SoccerTwos

Evaluation results