Instructions to use elliemci/poca-SoccerTwos with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ml-agents
How to use elliemci/poca-SoccerTwos with ml-agents:
mlagents-load-from-hf --repo-id="elliemci/poca-SoccerTwos" --local-dir="./downloads"
- Notebooks
- Google Colab
- Kaggle
POCA agent playing SoccerTwos
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, behaviourSoccerTwos, run idSoccerTwos1, 1 environment. ML-Agents 1.2.0.dev0, PyTorch 2.3.1 (run_logs/training_status.jsonmetadata). - 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:
window15,save_steps60000,swap_steps3000,team_change300000,play_against_latest_model_ratio0.6. - Full config:
configuration.yamlin this repo. Notebook and notes: GitHub.
Watch the agent play
- Open https://huggingface.co/spaces/unity/ML-Agents-SoccerTwos.
- Enter
elliemciand chooseelliemci/poca-SoccerTwos, then theSoccerTwos.onnxfile. - 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
Paper for elliemci/poca-SoccerTwos
Evaluation results
- self-play ELO (start 1200) on SoccerTwosself-reported1531.960
