Skip to content

Pretrained teams

gridhunt.zoo provides the benchmark's trained teams as numpy-only policies: no PyTorch is needed to run them. For every scenario and algorithm two runs are published: the seed with the median final score (typical of the algorithm) and the best seed (the strongest teammates).

from gridhunt import zoo

team = zoo.load("toxic_stag", "mappo", rank="best")  # downloaded once, then cached
env = team.make_env()                                # the scenario exactly as trained
observations, _ = env.reset(seed=0)
while env.agents:
    observations, *_ = env.step(team.act(observations))
  • team.act(observations) samples actions, as the benchmark evaluates; pass greedy=True for the most likely action. zoo.load(..., rng=seed) makes sampling reproducible.
  • team.make_env() rebuilds the benchmark configuration of the scenario, including the variants; overriding max_steps or render_mode is fine, observation settings are not.
  • A team is also a teammate for a human study: HumanSession(env, humans=..., teammates={"predator_1": team}) (see sessions).
  • Files are checked against their SHA-256 hash and cached in ~/.cache/gridhunt/zoo ($GRIDHUNT_ZOO_DIR to change it, $GRIDHUNT_ZOO_URL for a mirror).

Before publishing, every exported team is checked against the PyTorch model it came from: equal action logits on observations from real episodes, greedy actions that reproduce the recorded greedy evaluation episode by episode, and a sampled score within 4 standard errors of the recorded one (benchmark/export_zoo.py).

Published teams

Scenario Algorithm Rank Seed Score (sampled) Size
classic_stag IPPO median 11 123.7 0.1 MB
classic_stag IPPO best 7 125.3 0.1 MB
classic_stag MAPPO median 7 123.9 0.1 MB
classic_stag MAPPO best 15 124.7 0.1 MB
classic_stag HAPPO median 19 124.0 0.1 MB
classic_stag HAPPO best 5 124.8 0.1 MB
toxic_stag IPPO median 17 161.3 1.4 MB
toxic_stag IPPO best 15 167.5 1.4 MB
toxic_stag MAPPO median 13 150.7 0.5 MB
toxic_stag MAPPO best 14 155.1 0.5 MB
toxic_stag HAPPO median 13 155.3 1.4 MB
toxic_stag HAPPO best 17 164.3 1.4 MB
specialists IPPO median 11 92.3 1.9 MB
specialists IPPO best 18 97.0 1.9 MB
specialists MAPPO median 16 94.8 0.9 MB
specialists MAPPO best 3 99.3 0.9 MB
specialists HAPPO median 11 95.5 1.9 MB
specialists HAPPO best 0 98.8 1.9 MB
military IPPO median 0 84.1 2.9 MB
military IPPO best 19 89.9 2.9 MB
military MAPPO median 6 75.9 1.5 MB
military MAPPO best 1 82.5 1.5 MB
military HAPPO median 16 77.2 2.9 MB
military HAPPO best 12 82.6 2.9 MB
raid IPPO median 0 5.9 0.2 MB
raid IPPO best 19 5.9 0.2 MB
raid MAPPO median 14 5.8 0.1 MB
raid MAPPO best 4 6.0 0.1 MB
raid HAPPO median 4 5.9 0.2 MB
raid HAPPO best 3 6.0 0.2 MB
pig_chase IPPO median 4 50.0 0.4 MB
pig_chase IPPO best 19 50.0 0.4 MB
pig_chase MAPPO median 6 50.0 0.2 MB
pig_chase MAPPO best 19 50.0 0.2 MB
pig_chase HAPPO median 7 50.0 0.4 MB
pig_chase HAPPO best 19 50.0 0.4 MB
land_and_sea IPPO median 19 42.0 0.6 MB
land_and_sea IPPO best 16 42.9 0.6 MB
land_and_sea MAPPO median 11 41.5 0.3 MB
land_and_sea MAPPO best 1 42.2 0.3 MB
land_and_sea HAPPO median 19 42.2 0.6 MB
land_and_sea HAPPO best 4 42.6 0.6 MB
swarm IPPO median 0 22.4 0.8 MB
swarm IPPO best 16 25.0 0.8 MB
swarm MAPPO median 6 22.8 0.1 MB
swarm MAPPO best 16 25.7 0.1 MB
swarm HAPPO median 8 19.2 0.8 MB
swarm HAPPO best 13 22.2 0.8 MB
specialists_comm IPPO median 3 109.3 1.9 MB
specialists_comm IPPO best 5 111.8 1.9 MB
specialists_comm MAPPO median 0 109.2 0.9 MB
specialists_comm MAPPO best 1 111.6 0.9 MB
specialists_comm HAPPO median 2 109.5 1.9 MB
specialists_comm HAPPO best 18 114.0 1.9 MB
specialists_full_vision IPPO median 7 121.4 1.9 MB
specialists_full_vision IPPO best 18 124.2 1.9 MB
specialists_full_vision MAPPO median 10 122.5 0.9 MB
specialists_full_vision MAPPO best 19 125.0 0.9 MB
specialists_full_vision HAPPO median 13 121.3 1.9 MB
specialists_full_vision HAPPO best 18 123.7 1.9 MB
toxic_stag_blind IPPO median 13 133.6 1.4 MB
toxic_stag_blind IPPO best 14 138.7 1.4 MB
toxic_stag_blind MAPPO median 2 131.3 0.5 MB
toxic_stag_blind MAPPO best 6 134.1 0.5 MB
toxic_stag_blind HAPPO median 5 134.5 1.4 MB
toxic_stag_blind HAPPO best 19 144.4 1.4 MB
military_full_vision IPPO median 14 107.9 2.9 MB
military_full_vision IPPO best 17 111.5 2.9 MB
military_full_vision MAPPO median 18 96.3 1.4 MB
military_full_vision MAPPO best 16 104.4 1.4 MB
military_full_vision HAPPO median 11 101.0 2.9 MB
military_full_vision HAPPO best 6 105.9 2.9 MB