Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Vectorized multi-agent reinforcement learning simulator
.claude/skills/brycewang-stanford-vmas-simulator-guide/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | -3% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 25% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 26% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 38% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 25% | 0% |
VMAS is a vectorized simulator for multi-agent reinforcement learning (MARL) that runs thousands of parallel environments on GPU via PyTorch. It provides a diverse set of 2D cooperative, competitive, and mixed scenarios for benchmarking multi-agent algorithms. Orders of magnitude faster than CPU-based simulators, enabling rapid research iteration on multi-agent coordination problems.
bashpip install vmas
pythonimport vmas # Create vectorized environment env = vmas.make_env( scenario="simple_spread", num_envs=1024, # Parallel environments num_agents=3, device="cuda", # GPU acceleration continuous_actions=True, ) # Environment loop obs = env.reset() for step in range(100): # Random actions for demonstration actions = [env.action_space[i].sample() for i in range(env.n_agents)] obs, rewards, dones, infos = env.step(actions) # obs: list of [num_envs, obs_dim] tensors # rewards: list of [num_envs] tensors
| Scenario | Type | Agents | Description | |----------|------|--------|-------------| | simple_spread | Cooperative | 3 | Cover N landmarks | | simple_tag | Competitive | 4 | Predator-prey | | transport | Cooperative | 4 | Move package to goal | | wheel | Cooperative | 4 | Coordination on wheel | | flocking | Cooperative | 5+ | Reynolds flocking | | discovery | Cooperative | 3 | Explore and discover | | navigation | Mixed | N | Multi-agent navigation |
python# With TorchRL from torchrl.envs import VmasEnv env = VmasEnv( scenario="simple_spread", num_envs=512, device="cuda", ) # With RLlib from ray.rllib.env import MultiAgentEnv # VMAS provides RLlib-compatible wrapper # With CleanRL / custom training import torch env = vmas.make_env("transport", num_envs=2048, device="cuda") obs = env.reset() # All tensors on GPU — train directly without CPU transfer policy_output = policy_network(obs[0]) # Agent 0 observations
pythonfrom vmas import Scenario, Agent, World, Landmark class MyScenario(Scenario): def make_world(self, batch_dim, device): world = World(batch_dim=batch_dim, device=device) world.add_agent(Agent(name="agent_0")) world.add_agent(Agent(name="agent_1")) world.add_landmark(Landmark(name="goal")) return world def reset_world(self, env, world): # Randomize positions for agent in world.agents: agent.set_pos(torch.rand(env.batch_dim, 2) * 2 - 1) def reward(self, agent, world): # Distance to goal goal = world.landmarks[0] return -torch.linalg.norm(agent.state.pos - goal.state.pos, dim=-1) # Register and use env = vmas.make_env(MyScenario(), num_envs=512)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 11,579 | 10,071 | -13% | 1 | 1 | 0% | 2,136 | 2,697 | +26% | 0 | 0 | — |
case-02 | pass→pass | 18,335 | 19,086 | +4% | 1 | 1 | 0% | 3,654 | 5,045 | +38% | 0 | 0 | — |
case-03 | pass→pass | 17,826 | 14,289 | -20% | 1 | 1 | 0% | 2,644 | 3,296 | +25% | 0 | 0 | — |
case-04 | pass→pass | 13,193 | 4,346 | -67% | 1 | 1 | 0% | 2,149 | 1,743 | -19% | 0 | 0 | — |
case-05 | fail→pass | 11,430 | 5,787 | -49% | 1 | 1 | 0% | 1,992 | 1,939 | -3% | 0 | 0 | — |
case-06 | pass→pass | 10,142 | 5,633 | -44% | 1 | 1 | 0% | 1,781 | 1,985 | +11% | 0 | 0 | — |
case-07 | pass→pass | 12,096 | 5,274 | -56% | 1 | 1 | 0% | 2,164 | 1,928 | -11% | 0 | 0 | — |
case-08 | pass→pass | 6,869 | 7,836 | +14% | 1 | 1 | 0% | 1,178 | 2,150 | +83% | 0 | 0 | — |
case-09 | pass→pass | 6,768 | 2,368 | -65% | 1 | 1 | 0% | 1,070 | 1,345 | +26% | 0 | 0 | — |
case-10 | pass→pass | 4,944 | 3,154 | -36% | 1 | 1 | 0% | 826 | 1,542 | +87% | 0 | 0 | — |
case-11 | fail→fail | 18,430 | 17,262 | -6% | 1 | 1 | 0% | 3,397 | 4,193 | +23% | 0 | 0 | — |
case-12 | fail→pass | 12,967 | 10,941 | -16% | 1 | 1 | 0% | 2,415 | 3,025 | +25% | 0 | 0 | — |
case-13 | pass→pass | 3,908 | 2,537 | -35% | 1 | 1 | 0% | 635 | 1,348 | +112% | 0 | 0 | — |
case-14 | pass→pass | 16,550 | 3,080 | -81% | 1 | 1 | 0% | 2,688 | 1,502 | -44% | 0 | 0 | — |
case-15 | pass→pass | 3,947 | 2,213 | -44% | 1 | 1 | 0% | 609 | 1,328 | +118% | 0 | 0 | — |
case-16 | pass→pass | 5,144 | 2,138 | -58% | 1 | 1 | 0% | 844 | 1,363 | +61% | 0 | 0 | — |
case-17 | pass→pass | 5,343 | 2,446 | -54% | 1 | 1 | 0% | 847 | 1,350 | +59% | 0 | 0 | — |
case-18 | pass→pass | 10,523 | 7,148 | -32% | 1 | 1 | 0% | 1,752 | 2,069 | +18% | 0 | 0 | — |
case-19 | pass→pass | 10,857 | 3,359 | -69% | 1 | 1 | 0% | 1,717 | 1,515 | -12% | 0 | 0 | — |
case-20 | pass→pass | 3,519 | 1,204 | -66% | 1 | 1 | 0% | 460 | 1,105 | +140% | 0 | 0 | — |
case-21 | pass→pass | 5,496 | 2,523 | -54% | 1 | 1 | 0% | 898 | 1,404 | +56% | 0 | 0 | — |
case-22 | pass→pass | 15,096 | 12,924 | -14% | 1 | 1 | 0% | 2,383 | 3,170 | +33% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +9 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.