Views
No views yet
fastwam policy format and is intended
for RoboTwin-style manipulation evaluation and fine-tuning.fastwamWan-AI/Wan2.2-TI2V-5Bobservation.images.image(3, 384, 320)(14,)(14,)3233bfloat16fastwam policy:pip install "lerobot[fastwam]@git+https://github.com/huggingface/lerobot.git"select_action1import torch
2
3from lerobot.policies.fastwam.modeling_fastwam import FastWAMPolicy
4
5model_id = "<namespace>/fastwam-robotwin-uncond-3cam384"
6device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
7
8policy = FastWAMPolicy.from_pretrained(model_id, strict=False).to(device).eval()
9
10batch = {
11 "observation.images.image": torch.zeros(1, 3, 384, 320, device=device),
12 "observation.state": torch.zeros(1, 14, device=device),
13 "prompt": "complete the manipulation task",
14}
15
16with torch.inference_mode():
17 action = policy.select_action(batch)
18
19print(action.shape)FastWAMPolicy.from_pretrained(...) loads the policy weights and the local Wan sidecar components
from this same repository snapshot. It should not download the Wan2.2 backbone separately.forward(...) and use the returned loss key:1policy.train()
2
3outputs = policy.forward(batch)
4loss = outputs["loss"]
5loss.backward()video, action, context, and
context_mask, or LeRobot observation/action keys that can be adapted by the policy wrapper.1lerobot-train \
2 --dataset.repo_id=<your-robotwin-style-dataset> \
3 --output_dir=./outputs/fastwam_finetune \
4 --job_name=fastwam_finetune \
5 --policy.type=fastwam \
6 --policy.path=<namespace>/fastwam-robotwin-uncond-3cam384 \
7 --policy.device=cuda \
8 --steps=100000 \
9 --batch_size=11python scripts/robotwin/eval_robotwin_fastwam.py \
2 --policy-path <namespace>/fastwam-robotwin-uncond-3cam384 \
3 --device cudaFastWAMPolicy.from_pretrained(...):1config.json
2model.safetensors
3policy_preprocessor.json
4policy_preprocessor_step_2_normalizer_processor.safetensors
5policy_postprocessor.json
6policy_postprocessor_step_0_unnormalizer_processor.safetensors
7Wan2.2_VAE.pth
8models_t5_umt5-xxl-enc-bf16.pth
9google/umt5-xxl/
10robotwin_uncond_3cam_384_dataset_stats.jsonconfig.json, model.safetensors, and local Wan sidecar files. Original FastWAM .pt
checkpoint loading is not required.