opensi·si

Long-WAM is a long-context world-action model: it uses a language instruction,

Long-WAM

Paper · Project and demos · Code

Long-WAM is a long-context world-action model: it uses a language instruction, robot state, and visual history to predict future dynamics and generate actions.

Model overview

  • Learn to use history. LongLive2.0-Robot autoregressive video pretraining learns history-to-future dependencies before adaptation to robot actions.
  • Predict, then act. IDM conditions action generation on observed history and predicted future latents, without decoding future RGB images.
  • Scale temporal context. Longer observation windows capture motion and task progress; the history length is separate from the action horizon.

LeRobot supports both IDM and joint video/action co-denoising (COD), with native checkpoint loading, fine-tuning, and synchronous action-chunk inference. Wan backbones come from Diffusers and the UMT5 text encoder from Transformers.

Results

Reported lerobot-eval results for the published LeRobot-native IDM and COD checkpoints:

Suite IDM success rate COD success rate Episodes per model
libero_spatial 99.4% 98.6% 500
libero_object 99.8% 99.6% 500
libero_goal 97.8% 98.2% 500
libero_10 99.0% 97.4% 500
Average 99.00% 98.45% 2000

See Evaluation for example commands and episode limits. The commands were tested on NVIDIA GB200 with BF16 and synchronous inference.

Install

From a LeRobot source checkout:

pip install -e ".[longwam]"

Checkpoints

LeRobot-native checkpoints include full model weights and saved pre/post-processors. The tokenizer loads from google/umt5-xxl.

Mode Inference Checkpoint
IDM Imagine future video, then denoise actions LIBERO IDM
COD Denoise video and actions jointly LIBERO COD

Both use P48 history (2.4 s at 20 Hz), two 224×224 camera views, 7-D actions, and an 8-D robot state. Use the checkpoint matching the desired denoising mode; original Long-WAM model.pt bundles cannot be loaded directly.

Data requirements

Use a LeRobot dataset with RGB cameras, observation.state, action, and task instructions. The released LIBERO camera keys are observation.images.image and observation.images.image2, in that order. Supply RGB tensors in [0, 1]; the processor resizes and center-crops each view, and the policy concatenates views horizontally. Keep camera order and action/state conventions aligned with the checkpoint.

Inference

from lerobot.policies import make_pre_post_processors
from lerobot.policies.longwam.modeling_longwam import LongWAMPolicy

checkpoint = "Efficient-Large-Model/Long-WAM-LIBERO-IDM-LeRobot"
policy = LongWAMPolicy.from_pretrained(checkpoint).to("cuda").eval()
preprocess, postprocess = make_pre_post_processors(
    policy.config,
    pretrained_path=checkpoint,
    preprocessor_overrides={"device_processor": {"device": "cuda"}},
)
policy.reset()
# observation contains both current camera images, observation.state, and task.
# Repeat on every control tick, including ticks that consume queued actions.
action = postprocess(policy.select_action(preprocess(observation)))

Call select_action on every control tick, including while an action chunk is executing, so the history stays current. predict_action_chunk returns [batch, prediction_steps, action_dim]; each call records the supplied current frame. reset() and drop_queued_actions() clear both history and queued actions. Generic async/RTC is not yet validated in this integration.

By default, inference_seed=1 restarts separate video/action noise generators with the same seed for each chunk, preserving released inference behavior. Set inference_seed=None in Python (--policy.inference_seed=null in the CLI) to use the advancing global RNG instead; reset() does not reseed that stream. Training always samples fresh noise.

Evaluation

Install the benchmark extra and evaluate a native checkpoint:

pip install -e ".[longwam,libero]"

lerobot-eval --policy.path=Efficient-Large-Model/Long-WAM-LIBERO-IDM-LeRobot \
  --policy.device=cuda --policy.dtype=bfloat16 \
  --env.type=libero --env.task=libero_spatial \
  --env.observation_height=256 --env.observation_width=256 \
  --env.episode_length=300 \
  --eval.batch_size=1 --eval.n_episodes=50 --seed=1

Use libero_object or libero_goal for the other short suites. For LIBERO-Long, set --env.task=libero_10 --env.episode_length=600. Replace IDM with COD in the checkpoint path to evaluate co-denoising.

History and action chunking

Parameter Meaning Released LIBERO value
past_obs_steps Past control ticks retained 48
video_stride Control ticks between sampled video frames 4
future_video_steps Future video supervision horizon 32
action_horizon Training action chunk length 32
inference_action_horizon Predicted action chunk length 80
n_action_steps Actions executed before a new prediction 10

History duration is past_obs_steps / control_frequency. Early history is padded with the first observation. Use a checkpoint trained for the intended history; changing the window at inference is not context-scaling training.