Open sourceHugging FaceConfirmed
Story 9 of 12 in the Thursday 26 November editionHugging Face publishes TRL recipe to train four-agent Qwen3 swarms
Reproducible cooperative RL guide on Hugging Face Jobs lifts four-agent Qwen3-0.6B success from 6.6% to 82.3% while cutting team tokens 37.4%.

Hugging Face launched a technical blog series and open TRL training recipe on 26 November 2026 explaining how to train and audit cooperative multi-agent reinforcement learning swarms using small open weights, building on its recent RL post-training guides including Qwen3.8-27B harness adapters. Part 1 reproduces the distributed information-aggregation task from Simple Scaling of Swarms, where four Qwen3-0.6B agents share one policy, hold private integers, and coordinate via message, read_messages, and check_notifications tools to output a sorted list.

Centralised GRPO team rewards and token efficiency
Using centralised GRPO-style group advantage across eight team attempts per problem, every agent in a team receives the identical token-penalised team advantage, incentivising useful communication without handcrafted per-message rewards. Across 75 updates (256 team attempts per update on one trainer H200 and seven vLLM rollout H200s), training success climbed from 6.6% to 82.3%, held-out accuracy hit 81.25% (26 of 32 problems), and generated tokens per team fell 37.4% from roughly 13k to 8k as broadcasts rose from 2.38 to 5.73.
For smaller budgets, Hugging Face published a two-GPU TRL script (async_grpo_s3_aggregation.py) for Hugging Face Jobs that runs 50 updates in 4.8 hours on two H100s (roughly $50 on two H200s), achieving 60.9% held-out success across 192 problems.
Technical details
- Shared base policy
- Qwen3-0.6B across four logical agents per team (1,024-problem pool)
- Recorded 8-GPU run
- 75 updates (256 teams/update) on 1 trainer H200 + 7 vLLM rollout H200s
- Accessible 2-GPU job
- TRL async_grpo_s3_aggregation.py (50 updates, ~4.8 h on 2 H100s, ~$50 on 2 H200s)
- Communication tools
- message, read_messages, and check_notifications with Trackio logging
Release details & context
Trained teams versus untrained retries at equal budget
Hugging Face’s analysis stresses measuring multi-agent gains against matched compute rather than raw attempt counts. In early updates (1 to 5), taking the best of eight untrained team attempts solved fewer than half the problems while burning roughly 103,000 generated tokens per problem, roughly 13 times the token budget of a single attempt from the trained checkpoint (7,624 mean tokens at batch 75).
The companion Hugging Face Jobs workflow pairs GPU 0 running vLLM rollouts with GPU 1 executing TRL training, logging team/success, team/messages, and team/tokens to Trackio and exporting base.jsonl, trained.jsonl, and checkpoint-50 weights directly into a Hub Storage Bucket.
Common questions
How much does the two-GPU Hugging Face TRL swarm walkthrough cost to run?
Running 50 updates of async_grpo_s3_aggregation.py takes roughly 4.8 hours on two H100 GPUs, or about $50 on two H200 GPUs via Hugging Face Jobs.
Why did token usage drop while message broadcasts increased during swarm training?
Because the shared GRPO team reward penalised excess token generation, agents replaced verbose private chains of thought and direct back-and-forth with concise broadcasts.
Sources
- PrimaryHugging Face Blog: Swarms, Flocks, Gangs (Part 1)huggingface.co/blog
Hugging Face release timeline (6 launches tracked)
- Hugging Face publishes open-source Mixture-of-Experts training guide based on 800k GPU hours
Hugging Face published The Ultimate MoE Training Handbook, a 70k-word open guide with 55 interactive figures distilling 800k GPU hours of MoE experiments.
- Hugging Face routes Hub open-model inference through OpenRouter
Hugging Face switches Hub chat-model Inference Providers to OpenRouter across 80+ hosts with automatic failover, zero markup and Bucket traces.
- Hugging Face releases Qwen3.8-27B-pi-adapted RL LoRA harness adapter
Hugging Face’s harness-hub releases open-weight Qwen3.8-27B-pi-adapted, doubling SWE-bench Pro Hard 51 pass@1 to 62.7% with 55% to 62% fewer tool calls.
- Hugging Face launches Nightwatch security agent for Enterprise Hub
Hugging Face releases Nightwatch, an automated security agent add-on for Enterprise Hub organisations built after the July 2026 agent swarm incident.

