EasyWAM README

项目的 README,来自 github.com/OpenMOSS/EasyWAM。合并为一个 markdown 文件:README.md。

EasyWAM Logo

🚀 EasyWAM: A Unified and Efficient Framework for Training and Evaluating World Action Models

A unified research codebase for training and evaluating World Action Models.

English README 中文 README EasyWAM Website Hugging Face Models WeChat

Start here: Quick start · Supported models · Benchmark results · Checkpoints · Documentation

✨ Overview and Key Features

EasyWAM is a unified research codebase designed to make World Action Model development efficient, reproducible, and easy to extend. It connects model implementation, data processing, distributed training, parameter-efficient fine-tuning, and large-scale evaluation through a consistent workflow.

EasyWAM Overview

🌟 Hope: We hope EasyWAM will become an efficient and easy-to-use codebase for World Action Model research, enabling researchers to explore WAMs more quickly and easily. More models and benchmarks will be continuously added and supported. We warmly welcome contributions from the community to help make EasyWAM better. If you encounter any problems or have suggestions for improving EasyWAM, please open an issue. We will continue to refine and improve EasyWAM.

📰 News

🤖 Supported Models and Benchmarks

🧠 Models

Model Full-Parameter Training LoRA Fine-Tuning
EasyWAM-Unified ✅ ✅
EasyWAM-MoT ✅ ✅
EasyWAM-MoT-Joint ✅ ✅
EasyWAM-MoT-IDM ✅ ✅
EasyWAM-Hidden ✅ ✅

🏗️ Backbone

Backbone Supported
Wan2.2-TI2V-5B ✅
Cosmos-Predict2.5-2B ✅
FLUX.2 Klein-4B ✅

🧪 Benchmarks

Benchmark Supported Training Evaluation
LIBERO ✅ Full-parameter and LoRA Standard evaluation
LIBERO-Pro ✅ Uses LIBERO checkpoints Official five-dimension generalization evaluation
LIBERO-Plus ✅ Uses LIBERO checkpoints Robustness evaluation
RoboTwin ✅ Full-parameter and LoRA Clean and randomized evaluation
RoboDojo ✅ Full-parameter and LoRA Official 42-task simulation evaluation
RoboCasa365 ✅ Full-parameter and LoRA Official 50-task evaluation
VLABench ✅ Full-parameter and LoRA Official tracks 1/2/3/4/6 evaluation

🏆 Benchmark Results

All results below are reported with state_position: sequence, where state/proprio tokens are placed after the action tokens in the model sequence.

LIBERO

Full-Parameter

Backbone Model Spatial Object Goal Long Avg.
Wan2.2-TI2V-5B EasyWAM-Unified 98.4 98.8 99.2 98.0 98.6
Wan2.2-TI2V-5B EasyWAM-MoT 97.0 99.2 96.6 94.0 96.7
Wan2.2-TI2V-5B EasyWAM-MoT-Joint 98.2 98.0 97.6 96.8 97.7
Wan2.2-TI2V-5B EasyWAM-MoT-IDM 99.0 99.2 98.8 97.4 98.6
Wan2.2-TI2V-5B EasyWAM-Hidden 99.2 100.0 97.8 98.2 98.8
Cosmos-Predict2.5-2B EasyWAM-Unified 97.8 99.4 97.0 93.0 96.8
Cosmos-Predict2.5-2B EasyWAM-MoT 98.0 98.4 98.4 95.6 97.6
Cosmos-Predict2.5-2B EasyWAM-MoT-Joint 98.6 99.8 98.4 96.0 98.2
Cosmos-Predict2.5-2B EasyWAM-MoT-IDM 99.4 99.4 99.8 98.4 99.3
Cosmos-Predict2.5-2B EasyWAM-Hidden 97.2 98.8 96.0 95.0 96.8

LoRA (Rank 128)

Backbone Model Spatial Object Goal Long Avg.
Wan2.2-TI2V-5B EasyWAM-Unified 91.2 98.8 91.8 66.2 87.0
Wan2.2-TI2V-5B EasyWAM-MoT 96.8 99.6 97.4 90.0 95.9
Wan2.2-TI2V-5B EasyWAM-Hidden 98.0 99.8 89.4 86.6 93.5
LIBERO-Plus
Backbone Model Background Camera Language Layout Light Noise Robot Avg.
Wan2.2-TI2V-5B EasyWAM-Unified 72.3 54.8 93.7 83.4 97.0 72.0 83.4 79.0
Wan2.2-TI2V-5B EasyWAM-MoT 64.5 45.5 71.4 80.1 94.7 78.5 71.5 71.7
Wan2.2-TI2V-5B EasyWAM-MoT-Joint 60.9 47.3 89.7 80.5 92.4 68.9 75.9 73.3
Wan2.2-TI2V-5B EasyWAM-MoT-IDM 62.2 52.0 94.1 82.0 93.2 67.8 78.0 75.3
Wan2.2-TI2V-5B EasyWAM-Hidden 59.3 57.0 93.2 84.3 95.0 70.8 83.7 77.6
Cosmos-Predict2.5-2B EasyWAM-Unified 72.7 63.7 90.1 82.6 89.2 72.1 79.2 78.2
Cosmos-Predict2.5-2B EasyWAM-MoT 60.7 75.1 92.3 82.6 92.6 81.3 58.5 77.7
Cosmos-Predict2.5-2B EasyWAM-MoT-Joint 62.1 60.8 96.6 84.5 94.4 69.4 76.9 77.7
Cosmos-Predict2.5-2B EasyWAM-MoT-IDM 66.4 59.8 93.8 85.7 89.0 72.3 81.9 78.4
Cosmos-Predict2.5-2B EasyWAM-Hidden 59.5 65.9 92.6 85.0 89.1 68.3 82.5 77.8

See the complete benchmark results for more results and What WAM Architecture Do We Need? (中文) for analysis.

⚡ Efficiency Results

All efficiency results reported below use Wan2.2-TI2V-5B as the backbone. Actual training time may vary with the CPU and GPU configuration; these figures are provided for reference only. Please refer to the efficiency configuration guide to choose settings appropriate for your machine and improve training and inference efficiency.

EasyWAM-MoT and FastWAM use the same model architecture, enabling an architecture-matched comparison between the EasyWAM training framework and the original FastWAM codebase. Measured on 8 × NVIDIA H100 GPUs with a per-device batch size of 16, EasyWAM-MoT achieves 138.2 samples/s, a 2.68× throughput improvement over FastWAM's 51.5 samples/s. It also reduces data, forward, and backward time per step by 85.8%, 70.5%, and 49.5%, respectively.

EasyWAM and FastWAM training efficiency comparison

Framework Throughput (samples/s) ↑ Data Time (s) ↓ Forward Time (s) ↓ Backward Time (s) ↓
EasyWAM-MoT 138.2 0.0108 0.3663 0.5392
FastWAM 51.5 0.0759 1.2412 1.0680

On LIBERO, training for 20,000 steps takes approximately 5 hours with EasyWAM, compared with approximately 14 hours using the original FastWAM codebase—a 64.3% reduction in overall training time.

🌟 Hope: Training and evaluating World Action Models often requires substantial computational resources. EasyWAM aims to lower this barrier with an efficient and lightweight codebase, enabling researchers to train models, run evaluations, and iterate quickly even with limited compute. Through continuous efficiency improvements, we hope researchers can devote more of their resources to model and algorithm innovation and that more members of the community can participate in WAM research.

🚀 Quick Start

🛠️ Installation

conda create -n easywam python=3.10 -y
conda activate easywam
pip install -U pip
pip install torch==2.7.1 torchvision==0.22.1 --extra-index-url https://download.pytorch.org/whl/cu128
pip install -e .

FlashAttention is optional. When installed, EasyWAM uses the fastest compatible implementation available and otherwise falls back to PyTorch SDPA.

Install the implementation supported by your GPU. FA2 supports Ampere, Ada, and Hopper GPUs; FA3 targets Hopper GPUs; FA4 targets Hopper and Blackwell GPUs.

# FlashAttention 2
pip install flash-attn --no-build-isolation

# FlashAttention 3
git clone https://github.com/Dao-AILab/flash-attention.git
cd flash-attention/hopper
python setup.py install

# FlashAttention 4
pip install flash-attn-4

# FlashAttention 4 with CUDA 13
# pip install "flash-attn-4[cu13]"

📦 Prepare Models

Released EasyWAM checkpoints are available in the OpenMOSS-Team/EasyWAM collection on Hugging Face.

Prepare the selected backbone with its dedicated guide:

📝 Precompute Text Embeddings

Run this once after preparing a benchmark dataset:

python scripts/precompute_text_embeds.py task=libero_easywam_mot_wan22
# Or: python scripts/precompute_text_embeds.py task=robotwin_easywam_mot_wan22
# Or: python scripts/precompute_text_embeds.py task=robocasa_easywam_mot_wan22
# Or: python scripts/precompute_text_embeds.py task=robodojo_easywam_mot_wan22
python scripts/precompute_text_embeds.py task=libero_easywam_mot_cosmos25

Existing caches are reused by default; if all prompts are cached, the text encoder is not loaded. Add +overwrite=true to regenerate embeddings.

🏋️ Train

The launchers accept Hydra overrides directly. Set the number of local processes through NPROC_PER_NODE:

# DeepSpeed ZeRO-1 on 8 local GPUs
NPROC_PER_NODE=8 bash scripts/train_zero1.sh task=libero_easywam_mot_wan22

# MoT, MoT-Joint, and MoT-IDM each have a corresponding Cosmos25 task config
bash scripts/train_zero1.sh task=libero_easywam_mot_cosmos25

# DeepSpeed ZeRO-2 LoRA training on 4 local GPUs
NPROC_PER_NODE=4 bash scripts/train_zero2.sh task=libero_easywam_unified_wan22_lora

# RoboDojo joint-only LeRobot v3 training
bash scripts/train_zero2.sh task=robodojo_easywam_mot_wan22

scripts/train_zero2_offload.sh enables ZeRO-2 CPU offload. Multi-node runs additionally use NNODES, NODE_RANK, MASTER_ADDR, and MASTER_PORT.

📊 Evaluate

# LIBERO
python experiments/libero/run_libero_manager.py \
  task=libero_easywam_mot_wan22 \
  ckpt=<path/to/checkpoint.pt>

# LIBERO-Plus (uses a LIBERO checkpoint)
python experiments/libero_plus/run_libero_plus_manager.py \
  task=libero_easywam_mot_wan22 \
  ckpt=<path/to/checkpoint.pt>

# LIBERO-Pro (uses a LIBERO checkpoint)
python experiments/libero_pro/run_libero_pro_manager.py \
  task=libero_easywam_mot_wan22 \
  ckpt=<path/to/checkpoint.pt>

# RoboTwin
python experiments/robotwin/run_robotwin_manager.py \
  task=robotwin_easywam_mot_wan22 \
  ckpt=<path/to/checkpoint.pt>

# RoboDojo
python experiments/robodojo/run_robodojo_manager.py \
  task=robodojo_easywam_mot_wan22 \
  ckpt=<path/to/checkpoint.pt>

# RoboCasa365
python experiments/robocasa/run_robocasa_manager.py \
  task=robocasa_easywam_mot_wan22 \
  ckpt=<path/to/checkpoint.pt> \
  EVALUATION.dataset_stats_path=<path/to/dataset_stats.json>

Evaluation concurrency is controlled by MULTIRUN.num_gpus, MULTIRUN.gpu_ids, MULTIRUN.workers_per_gpu, and MULTIRUN.env_num_per_worker. Every model worker loads its own model copy and owns an independent dynamic inference batcher, so increasing workers_per_gpu also increases GPU memory use. MULTIRUN.inference_batch_size and MULTIRUN.inference_batch_wait_ms apply per worker. See the data and benchmark guides for dataset layout, simulator installation, checkpoint examples, filtering, and resume behavior.

📚 Documentation

Section English 中文
Backbone preparation and usage Index 索引
Training data preparation Index 索引
Benchmark setup and evaluation Index 索引
Configuration reference Index 索引

🗂️ Repository Layout

EasyWAM/
├── configs/          # Data, model, task, training, and evaluation configs
├── docs/             # Repository documents
│   ├── README.md      # Documentation index
│   ├── blogs/        # Architecture blogs
│   ├── results/      # Benchmark result summaries
│   └── instructions/   # Data, benchmark, backbone, and configuration guides
├── experiments/      # Benchmark evaluators
├── scripts/          # Training, preprocessing, and caching entrypoints
├── src/              # Models, data pipeline, runtime, and trainer
├── checkpoints/      # External and trained checkpoints
├── data/             # Local datasets and text caches
└── runs/             # Training outputs

🤝 Contributing

EasyWAM is built with the community, and contributions of all sizes are welcome. You can help by fixing bugs, improving documentation and examples, supporting new models or benchmarks, optimizing training and evaluation, or sharing reproducible results.

For bugs and small improvements, feel free to open an Issue or Pull Request. For substantial features or changes that may affect public interfaces, configurations, or compatibility, please open an Issue first so the scope and design can be discussed. Pull Requests should stay focused, include relevant verification, and update both English and Chinese documentation when user-facing behavior changes.

See CONTRIBUTING.md for reporting guidelines, development expectations, and the Pull Request checklist.

🙏 Acknowledgements

This project builds on code from FastWAM, and draws inspiration and references from DreamZero, DiT4DiT, and ImageWAM. Thanks to all the teams above for their valuable contributions to the open-source community.

📝 Citation

We welcome you to cite EasyWAM's experimental results and codebase in your research. If EasyWAM is useful in your research, please cite:

@misc{easywam2026,
  title  = {EasyWAM: A Unified and Efficient Framework for Training and Evaluating World Action Models},
  author = {EasyWAM-Team},
  year   = {2026},
  url    = {https://github.com/OpenMOSS/EasyWAM}
}

📮 Contact

If you have any questions or suggestions, feel free to join our WeChat discussion group.

EasyWAM WeChat Group

Star History

Star History Chart

EasyWAM (OpenMOSS/EasyWAM)

正在搜索数据库…

这是什么?EasyWAM 是一个统一的研究代码库,用于训练、微调和评估世界动作模型(World Action Model,WAM)——这类模型为具身智能和机器人研究联合预测未来的视频与机器人动作。
这是开箱即用的机器人控制器,还是用来构建 WAM 的研究框架?它是一个研究框架,不是即插即用的机器人控制器——它提供模型实现、训练方案和评估管线,让研究者能够构建、微调并对自己的世界动作模型进行基准测试。
我如何用它训练或评估模型?你要从 Hugging Face 上的 OpenMOSS-Team/EasyWAM 集合下载预训练骨干和检查点权重,为基准数据集预先计算文本嵌入,然后用 Hydra 覆盖项和 NPROCPERNODE 这类环境变量启动训练或评估脚本,进行分布式运行。
运行它需要特定的 GPU 配置吗?你需要带 PyTorch 的 Python 以及支持 CUDA 的 GPU;报告中的基准测试使用的是 8×NVIDIA H100 GPU。FlashAttention 2/3/4 是可选的,用于加速注意力计算,如果没有安装则回退到 PyTorch SDPA。
训练实际需要多少算力?即使有 EasyWAM 的优化,在 8 块 H100 GPU 上训练 LIBERO 模型 20,000 步仍需约 6 小时——比原 FastWAM 代码库的 14 小时要快,但仍然是相当重的多 GPU 工作负载,不是能在笔记本上跑的东西。
这到底是为谁准备的?它是为想要训练、微调或对世界动作模型进行基准测试的机器人和具身智能研究者构建的,而不是为想要成品可部署产品的开发者准备的。
EasyWAM 支持哪些骨干?它目前支持 Wan2.2-TI2V-5B 和 Cosmos-Predict2.5-2B 作为视频扩散骨干,另外还有 FLUX.2 Klein-4B 用于 ImageWAM 兼容的变体。
我可以在哪些基准上评估?EasyWAM 提供 LIBERO、LIBERO-Plus(一个侧重鲁棒性的变体)和 RoboTwin 的训练与评估方案。
里面包含哪些模型架构?EasyWAM-Unified 用单一的 Video DiT 骨干联合预测视频和动作,而 EasyWAM-MoT、EasyWAM-MoT-Joint、EasyWAM-MoT-IDM 和 EasyWAM-Hidden 则使用各自独立的视频与动作 DiT 专家,并采用不同的交互设计。
EasyWAM 比原 FastWAM 代码快多少?在 8×H100 GPU 上,EasyWAM-MoT 达到 121.9 samples/s,而 FastWAM 是 51.5 samples/s,吞吐量提升 2.37 倍,并把 LIBERO 的总训练时间缩短约 57%。
作者
OpenMOSS
大小
4 MB
星标
412
更新
提交Nov 16
时长
3个月
提交 · 90 天