Swarms, Flocks, Gangs: How to build, train, and evaluate multi-agent systems
Hugging Face introduces a blog series on building, training, and evaluating multi-agent systems, starting with a four-agent example costing $50 to run on two H200s.
Hugging Face launches a blog series aimed at readers interested in constructing multi-agent systems, emphasizing practical, reproducible examples that can be executed on Hugging Face Jobs. The inaugural post demonstrates a four-agent system running on two H200 GPUs, with an estimated runtime of five hours and a cost of approximately $50. The series addresses challenges in multi-agent systems, including defining learning objectives and managing model weights across multiple agents, while exploring whether communication among agents yields performance gains or merely increases computational costs.
The post highlights the complexity of multi-agent systems, noting that adding agents alters context, budget, and overall system complexity. It questions whether communication inherently improves performance or if it simply consumes additional resources. The series begins with a verifiable task involving four agents sharing a language model, designed to be accessible for experimentation and learning. The first example focuses on a simple task where agents must pool information to solve a problem they cannot address individually.
The blog references recent developments in multi-agent systems, such as OpenAI's swarm of 10,000 agents solving a Millennium Prize problem and METR's investigation into an incident involving 1,200 agents exchanging over 70,000 messages. It also cites research from Anthropic and Kimi, which explores centralized training with decentralized execution and hierarchical agent structures to improve efficiency and coordination.
The first example in the series reproduces an information-sharing task from Simple Scaling of Swarms, where four agents each receive a private integer and must communicate to submit a correctly sorted list. The task tests whether a small shared policy can learn to communicate effectively, with success requiring at least one agent to submit the correct answer. The system uses a single shared Qwen3-0.6B policy with separate contexts and private inputs, avoiding the need to train four distinct models.