File size: 4,251 Bytes
4e8e1dc
382d4ef
4e8e1dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
license: mit
library_name: pytorch
tags:
  - reinforcement-learning
  - multi-agent-reinforcement-learning
  - flow-matching
  - offline-to-online
  - robotics
---

# TeamFlowRL checkpoints

Checkpoints for **TeamFlowRL: Online Policy Optimization of Decentralized Flow Policies for Multi-Agent Coordination**.

Guowei Zou, Beiwen Zhang, Haitao Wang, Hong Hong, Zhiquan Chen, Hejun Wu (Sun Yat-sen University)

[Project page](https://teamflowrl.github.io/) · [Code](https://github.com/teamflowrl/TeamFlowRL)

## Model description

TeamFlowRL pretrains a decentralized flow policy for each agent offline and fine-tunes it online with MAPPO. Each agent acts from its local observation through a ten-step denoising trajectory. The policy update weights each agent's complete trajectory ratio with a shared team advantage and clips each ratio separately.

For every configuration the repository provides two checkpoints:

| File | Content |
|---|---|
| `pretrained.pt` | offline-pretrained flow policy, the starting point of online fine-tuning |
| `teamflowrl_step<N>.pt` | TeamFlowRL policy after `N` online environment steps; this is the checkpoint behind the reported result |

## Contents

```
benchmarks/<benchmark>/<task>/<dataset>/   45 configurations
  SMAC (12), MPE (10), MaMuJoCo (9), OMIGA-MaMuJoCo (9), SMACv2 (5)
robots/<simulator>/<task>/<observation>/   5 configurations
  ManiSkill3: TwoRobotPickCube (state), TwoRobotStackCube (state, camera),
              TwoRobotStackCube-HandsAway (state)
  RoboFactory: TwoRobotsStackCube (state)
checkpoints.csv                            file list with configuration, run, online steps, size and SHA-256
```

Benchmark directories match the configuration files of the code repository: `benchmarks/SMAC/5m_vs_6m/medium/` corresponds to `configs/benchmarks/smac__5m_vs_6m__medium.json`. Benchmark checkpoints are taken at the online step of the reported result (at most 50M steps); robot checkpoints are the final checkpoints of online fine-tuning.

## Usage

Install the code from [GitHub](https://github.com/teamflowrl/TeamFlowRL) and download a configuration:

```bash
hf download teamflowrl/TeamFlowRL --include "benchmarks/SMAC/5m_vs_6m/medium/*" --local-dir ckpts
```

Benchmark evaluation (three groups of 20 episodes, evaluation seeds 10000, 80000, 90000):

```bash
python -m eval.evaluate_main_table --config configs/benchmarks/smac__5m_vs_6m__medium.json \
  --checkpoint ckpts/benchmarks/SMAC/5m_vs_6m/medium/teamflowrl_step50000000.pt \
  --out eval.json
```

A few benchmark cells were trained with a code variant of the repository (`variants/<variant>`, see `variants/README.md`); pass the same `--variant` when evaluating them:

| Cell | Variant |
|---|---|
| OMIGA-MaMuJoCo 6halfcheetah expert, 3hopper expert | `bounded_mean` |
| SMAC 5m_vs_6m good | `rev2` |
| SMAC 5m_vs_6m medium | `rev1_kl_backtrack` |
| MPE simple_spread random | `minibatch_kl` |
| MaMuJoCo 2halfcheetah good | `chunked_rollout_kl` |

To fine-tune online from the offline policy, point `source_checkpoint` in the configuration (or `CKPT_ROOT`) to `pretrained.pt`.

Robot evaluation:

```bash
python robots/core/evaluate.py \
  --checkpoint ckpts/robots/ManiSkill3/TwoRobotStackCube/state/teamflowrl_step5004800.pt --out eval.json
```

Checkpoints are standard PyTorch files; load them with `torch.load(path, map_location="cpu", weights_only=False)`. Paths stored in the saved configurations are relative (`outputs/`, `${DATA_ROOT}/`); datasets and simulators are not included and are set up as described in the code repository.

## Training data

Offline pretraining uses the public datasets of each benchmark (OG-MARL for SMAC, SMACv2 and MaMuJoCo; the OMIGA datasets; the MPE datasets used by prior offline MARL work). Robot pretraining uses successful ManiSkill3 demonstrations and demonstrations recorded from a PPO expert for RoboFactory; the camera policy is distilled from a state teacher with DAgger.

## Citation

```bibtex
@misc{zou2026teamflowrl,
  title  = {TeamFlowRL: Online Policy Optimization of Decentralized Flow Policies for Multi-Agent Coordination},
  author = {Zou, Guowei and Zhang, Beiwen and Wang, Haitao and Hong, Hong and Chen, Zhiquan and Wu, Hejun},
  year   = {2026}
}
```