vmas-simulator-guide

Solid

Vectorized multi-agent reinforcement learning simulator

Web & Frontend 231 stars 37 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
79
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# VMAS: Vectorized Multi-Agent Simulator Guide ## Overview 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. ## Installation ```bash pip install vmas ``` ## Quick Start ```python import 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 ``` ## Scenarios | 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** ...

Details

Author
wentorai
Repository
wentorai/research-plugins
Created
3 months ago
Last Updated
3 days ago
Language
TypeScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category