Oriel — AI & technology worth noticing, every day.

Swarms, Flocks, Gangs: How to build, train, and evaluate multi-agent systems

Web page · https://huggingface.co/blog/training-swarms

First seen by Oriel on .

AI summary

This Hugging Face blog introduces a reproducible four-agent reinforcement-learning experiment showing that a shared Qwen3-0.6B policy can learn communication for collaboratively ordering private numbers.

  • The system uses four agents with separate contexts, shared Qwen3-0.6B weights, messaging tools, and a team reward based on correctness and token efficiency.
  • Each agent receives one integer from 1 to 99, and the team succeeds when any agent submits the complete sorted list, including duplicates.
  • After 75 updates, success increased from 6.6% to 82.3%, while generated tokens per team fell 37.4%, from approximately 13,000 to 8,000.
  • Broadcasts increased as training progressed, indicating more active information sharing despite lower total token use.
  • The original experiment used one trainer H200 and seven rollout H200s; the walkthrough runs 50 updates on two H200s through TRL and Hugging Face Jobs.

#multi-agent systems #reinforcement learning #qwen3 #trl

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
Hugging Face Bloghttps://huggingface.co/blog/training-swarmshttps://huggingface.co/blog/training-swarms Read discussion