Skip to content

Latest commit

ย 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

โœจ 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

  • ๐Ÿงฉ Unified and modular design. Modular model components share consistent data, training, checkpoint, and evaluation interfaces, making new WAM designs easier to integrate.
  • โšก Efficient computation. Efficiency is a first-class design goal in EasyWAM. It natively integrates FlashAttention 2/3/4 to accelerate attention workloads and provides complete LoRA support from parameter-efficient training and checkpointing to merged inference. BF16, gradient checkpointing, DeepSpeed ZeRO, and PyTorch SDPA fallback further improve speed, memory usage, and compatibility.
  • ๐Ÿš„ Optimized end-to-end pipeline. EasyWAM streamlines every stage of training and inference. Sparse video decoding, indexed text caches, persistent workers, prompt caching, and resumable evaluation eliminate repeated work and deliver substantial speedups across both training and inference.
  • ๐Ÿ› ๏ธ Easy-to-use workflows. Hydra-based configuration, standardized training and evaluation recipes, distributed launchers, automatic GPU sharding, and result summaries keep common workflows straightforward.

๐ŸŒŸ 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

  • [2026-08] EasyWAM is released with unified training and evaluation workflows for World Action Models.

๐Ÿค– Supported Models and Benchmarks

๐Ÿง  Models

  • EasyWAM-Unified. A single-backbone architecture that places video, action, and robot-state tokens in one Video DiT to jointly predict future video and actions. The architecture is based on DreamZero.
  • EasyWAM-MoT. A dual-backbone model with separate Video DiT and Action DiT experts whose tokens interact through shared mixed self-attention. It performs action-only prediction and is based on FastWAM.
  • EasyWAM-MoT-Joint. A dual-backbone model that jointly denoises video and action tokens through shared mixed self-attention.
  • EasyWAM-MoT-IDM. A dual-backbone model that uses teacher-forced conditional video for action prediction.
  • EasyWAM-Hidden. A dual-backbone architecture that uses intermediate Video DiT features as conditional input to a separate Action DiT. The architecture is based on DiT4DiT.
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 (ImageWAM-compatible) โœ…

See FLUX.2 / ImageWAM backbone integration for checkpoint migration, configuration, and evaluation details.

๐Ÿงช Benchmarks

Benchmark Training Evaluation
LIBERO Full-parameter and LoRA Standard evaluation
LIBERO-Plus Uses LIBERO checkpoints Robustness evaluation
RoboTwin Full-parameter and LoRA Clean and randomized evaluation

๐Ÿ† Benchmark Results

All benchmark results reported below use Wan2.2-TI2V-5B as the backbone.

LIBERO

Full-Parameter

Model Spatial Object Goal Long Avg.
EasyWAM-Unified 99.0 99.4 99.2 98.2 99.0
EasyWAM-MoT 97.8 98.4 97.6 95.6 97.4
EasyWAM-Hidden 99.4 100.0 97.0 97.8 98.6

LoRA (Rank 128)

Model Spatial Object Goal Long Avg.
EasyWAM-Unified 84.0 97.8 92.0 81.2 88.8
EasyWAM-MoT 96.8 98.8 94.4 90.4 95.1
EasyWAM-Hidden 96.8 99.4 92.6 86.8 93.9
LIBERO-Plus
Model Orig (LIBERO) Background Camera Language Layout Light Noise Robot Avg.
EasyWAM-Unified 99.0 55.8 33.7 93.7 80.6 92.2 50.2 71.4 67.5
EasyWAM-MoT 97.4 52.8 20.6 80.4 65.2 85.1 51.5 49.7 56.8
EasyWAM-Hidden 98.6 56.8 49.2 95.3 81.0 90.4 58.2 77.4 72.4

For an analysis of these benchmark results, see our blog: What WAM Architecture Do We Need? (ไธญๆ–‡).

โšก 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 121.9 samples/s, a 2.37ร— throughput improvement over FastWAM's 51.5 samples/s. It also reduces data, forward, and backward time per step by 66.0%, 58.4%, and 54.7%, respectively.

EasyWAM and FastWAM training efficiency comparison

Framework Throughput (samples/s) โ†‘ Data Time (s) โ†“ Forward Time (s) โ†“ Backward Time (s) โ†“
EasyWAM-MoT 121.9 0.0258 0.5162 0.4842
FastWAM 51.5 0.0759 1.2412 1.0680

On LIBERO, training for 20,000 steps takes approximately 6 hours with EasyWAM, compared with approximately 14 hours using the original FastWAM codebaseโ€”a 57.1% 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+cu128 torchvision==0.22.1+cu128 \
  --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.

๐Ÿ“ฆ Prepare Models

Released EasyWAM checkpoints are available in the OpenMOSS-Team/EasyWAM collection on Hugging Face. For checkpoint-specific download commands and usage requirements, see the corresponding model cards.

Run the following commands from the project root. The paths match the values in configs/model/backbone/wan22.yaml and configs/model/backbone/cosmos25.yaml.

mkdir -p checkpoints

# Wan2.2 video DiT, VAE, UMT5 encoder, and tokenizer
huggingface-cli download Wan-AI/Wan2.2-TI2V-5B --local-dir checkpoints/Wan2.2-TI2V-5B

# Cosmos post-trained 2B video DiT and its Wan2.1 video tokenizer
huggingface-cli download nvidia/Cosmos-Predict2.5-2B \
  --include "base/post-trained/81edfebe-bd6a-4039-8c1d-737df1a790bf_ema_bf16.pt" "tokenizer.pth" \
  --local-dir checkpoints/Cosmos-Predict2.5-2B

# Reason1 text encoder and tokenizer used to build the Cosmos text cache
huggingface-cli download nvidia/Cosmos-Reason1-7B --local-dir checkpoints/Cosmos-Reason1-7B

After downloading and generating ActionDiT initialization weights, the files used by the default configs are:

checkpoints/
โ”œโ”€โ”€ Wan2.2-TI2V-5B/
โ”œโ”€โ”€ Cosmos-Predict2.5-2B/
โ”‚   โ”œโ”€โ”€ base/post-trained/81edfebe-bd6a-4039-8c1d-737df1a790bf_ema_bf16.pt
โ”‚   โ””โ”€โ”€ tokenizer.pth
โ”œโ”€โ”€ Cosmos-Reason1-7B/
โ”œโ”€โ”€ ActionDiT_Wan22_5B_alphascale_1024hdim.pt
โ””โ”€โ”€ ActionDiT_CosmosPredict25_2B_alphascale_1024hdim.pt

EasyWAM-MoT and EasyWAM-Hidden also use an interpolated ActionDiT initialization:

# Writes the exact path referenced by configs/model/backbone/wan22.yaml
python scripts/preprocess_action_dit_backbone.py \
  --model-config configs/model/easywam_mot_wan22.yaml \
  --backbone wan22 \
  --output checkpoints/ActionDiT_Wan22_5B_alphascale_1024hdim.pt \
  --device cuda \
  --dtype bfloat16

# Writes the exact path referenced by configs/model/backbone/cosmos25.yaml
python scripts/preprocess_action_dit_backbone.py \
  --model-config configs/model/easywam_mot_cosmos25.yaml \
  --backbone cosmos25 \
  --output checkpoints/ActionDiT_CosmosPredict25_2B_alphascale_1024hdim.pt \
  --device cuda \
  --dtype bfloat16

EasyWAM-Unified does not require this ActionDiT checkpoint.

๐Ÿ“ 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
python scripts/precompute_text_embeds.py task=libero_easywam_mot_cosmos25

๐Ÿ‹๏ธ 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
NPROC_PER_NODE=8 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=robotwin_easywam_unified_wan22_lora

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>

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

The managers default to 8 GPUs. Override MULTIRUN.num_gpus and MULTIRUN.max_tasks_per_gpu to match your machine. See the benchmark guides for installation, data layout, checkpoint examples, filtering, and resume behavior.

๐Ÿ“š Documentation

Documentation English ไธญๆ–‡
Documentation index Index ๆ–‡ๆกฃ็ดขๅผ•
Configuration Guide ้…็ฝฎๆŒ‡ๅ—
LIBERO Guide ไฝฟ็”จๆŒ‡ๅ—
LIBERO-Plus Guide ไฝฟ็”จๆŒ‡ๅ—
RoboTwin Guide ไฝฟ็”จๆŒ‡ๅ—

๐Ÿ—‚๏ธ Repository Layout

EasyWAM/
โ”œโ”€โ”€ configs/          # Data, model, task, training, and evaluation configs
โ”œโ”€โ”€ docs/             # Repository documents
โ”‚   โ”œโ”€โ”€ README.md      # Documentation index
โ”‚   โ”œโ”€โ”€ blogs/        # Architecture blogs
โ”‚   โ”œโ”€โ”€ configurations/ # Configuration guides
โ”‚   โ””โ”€โ”€ instructions/   # Integration and benchmark 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. You can help by fixing bugs, improving documentation, adding model or benchmark support, or sharing ideas that make World Action Model research more accessible.

  • Report a bug: Open an Issue with reproduction steps, configuration details, and relevant logs.
  • Propose a feature or improvement: Open an Issue to discuss the scope and approach before starting a substantial change.
  • Submit a pull request: Keep changes focused, update documentation when needed, and describe how you verified the change.

We are happy to welcome contributions in any form. If you would like to contribute or help build EasyWAM together, please email siyinwang20@fudan.edu.cn. See docs/CONTRIBUTING.md for the contribution guidelines.

๐Ÿ™ Acknowledgements

This project builds on code from FastWAM, and draws inspiration and references from DreamZero and DiT4DiT. 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}
}

Star History

Star History Chart

About

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

Topics

Resources

Stars

83 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages