How seongilheo/ucmarl works
UCMARL is an experimental cooperative multi-agent reinforcement-learning system centered on communication-aware PPO. Its main workflow is CLI selection, algorithm-specific runner execution, vectorized environment interaction, rollout collection and policy updates, with evaluation/rendering and logged outputs. The README documents these runtime stages and the supported algorithm families; sampled source confirms a runner’s environment/algorithm wiring and supporting rollout/network components. Unsampled runner and algorithm internals are represented at their exact directories, so their finer-grained calls are not inferred.
Main entry points: runners Mode runners · env_factory.py Environment factory · env_vectorization.py Vector environments · train.py CLI entry
Components 24
Run orchestration
- CLI entry
train.py - Mode runners
runners - Run logging
utils/logger.py - Evaluation tools
tools - Video rendering
utils/video_utils.py
RL methods
- UCMAPPO
algos/ucmappo - MAPPO
algos/mappo - Communication baselines
algos - Advanced PPO variants
algos - MAMBA world model
algos/mamba/mamba.py - Rollout storage
algos/ucmappo/rollout_storage.py
Environment runtime
- Environment factory
envs/env_factory.py - Vector environments
envs/env_vectorization.py - POGEMA adapter
envs/pogema/pogema_env.py - MPE2 adapter
envs/mpe2/mpe_env.py - Environment wrappers
envs/wrappers/base_wrapper.py
Learning support
- Shared networks
networks/mlp.py - POGEMA metrics
utils/pogema_metrics.py - Reward normalization
utils/reward_normalization.py - Tensor transforms
utils/transform_tools.py
Other components
- Experimenter
- POGEMA / MPE2
- Run artifacts
- Weights & Biases
Connections 25
- Experimenter → CLI entry: starts run
README.md - CLI entry → Mode runners: selects runner
README.md - Mode runners → UCMAPPO: runs algorithm
README.md - Mode runners → MAPPO: runs algorithm
README.md - Mode runners → Communication baselines: runs algorithm
README.md - Mode runners → Advanced PPO variants: runs algorithm
README.md - Mode runners → MAMBA world model: runs algorithm
README.md - Mode runners → Environment factory: creates environments
runners/pdgppo_runner.py - Environment factory → Vector environments: constructs
- Vector environments → POGEMA adapter: dispatches to
- Vector environments → MPE2 adapter: dispatches to
- POGEMA adapter → POGEMA / MPE2: wraps
README.md - MPE2 adapter → POGEMA / MPE2: supports
README.md - Environment factory → Environment wrappers: uses wrappers
- Mode runners → Rollout storage: stores rollout
- Rollout storage → Tensor transforms: converts batches
algos/ucmappo/rollout_storage.py - UCMAPPO → Shared networks: uses networks
algos/ucmappo/networks.py - Mode runners → Run logging: logs run
README.md - Mode runners → POGEMA metrics: records metrics
runners/pdgppo_runner.py - Mode runners → Reward normalization: normalizes rewards
README.md - Mode runners → Video rendering: saves videos
README.md - Experimenter → Evaluation tools: analyzes runs
README.md - Evaluation tools → Run artifacts: reads results
README.md - Run logging → Run artifacts: writes logs
README.md - Mode runners → Weights & Biases: tracks experiments
README.md