|
Download README.md from teamflowrl/TeamFlowRL: direct link, hf CLI and curl.
- Browser
- Download file 4.25 kB
-
https://huggingface.co/teamflowrl/TeamFlowRL/resolve/main/README.md
- Command line
-
hf download hf://teamflowrl/TeamFlowRL/README.md
-
curl -L -o README.md https://huggingface.co/teamflowrl/TeamFlowRL/resolve/main/README.md
4.25 kB
| 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} | |
| } | |
| ``` | |