BridgeWAM commited on
Commit
fc097ce
·
verified ·
1 Parent(s): 95830bf

Add BridgeWAM model card

Browse files
Files changed (1) hide show
  1. README.md +159 -1
README.md CHANGED
@@ -1,3 +1,161 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pretty_name: BridgeWAM Checkpoints
3
+ library_name: pytorch
4
+ tags:
5
+ - robotics
6
+ - robot-learning
7
+ - imitation-learning
8
+ - embodied-ai
9
+ - libero
10
+ - robotwin
11
+ - world-action-model
12
+ - latent-bridge-queries
13
  ---
14
+
15
+ # BridgeWAM Checkpoints
16
+
17
+ Released checkpoints for **BridgeWAM**, a video-action model that connects a
18
+ pretrained video expert to a lightweight action expert through **Latent Bridge
19
+ Queries (LBQs)**.
20
+
21
+ This repository provides separate checkpoints for **LIBERO** and **RoboTwin**,
22
+ together with the normalization statistics required by each checkpoint.
23
+
24
+ ## Files
25
+
26
+ ```text
27
+ README.md
28
+ libero/
29
+ model.pt
30
+ dataset_stats.json
31
+ robotwin/
32
+ model.pt
33
+ dataset_stats.json
34
+ ```
35
+
36
+ ## Included checkpoints
37
+
38
+ | Checkpoint | Benchmark | Camera inputs | Action dimensions |
39
+ | --- | --- | --- | ---: |
40
+ | `libero/model.pt` | LIBERO | Front and wrist cameras | 7 |
41
+ | `robotwin/model.pt` | RoboTwin | Head and two wrist cameras | 14 |
42
+
43
+ Use these checkpoints with the following task configurations in the BridgeWAM
44
+ codebase:
45
+
46
+ - **LIBERO:** `task=libero_uncond_2cam224_lbqs_only_2layer_alternating_cross_self_fullfinetune_1e-4`
47
+ - **RoboTwin:** `task=robotwin_bridgewam_3cam384_lbq32_2layer_1e-4`
48
+
49
+ Always use the `dataset_stats.json` from the **same benchmark folder** as the
50
+ checkpoint. The two checkpoints have different action and proprioception
51
+ dimensions and are not interchangeable.
52
+
53
+ ## BridgeWAM configuration
54
+
55
+ Both checkpoints use a 30-layer Wan2.2 video expert and a two-layer action expert
56
+ with alternating cross-attention and self-attention. They use **32 LBQs**, injected
57
+ from video layer `0` and read out at the final video layer (`readout_layer=-1`).
58
+ Action conditioning uses `lbq_only`, without direct Video-to-Action K/V routing.
59
+
60
+ The standard action-inference path computes LBQ conditioning once from the
61
+ observations, language instruction and proprioception, then reuses it throughout
62
+ action denoising. It does **not** generate future video at test time.
63
+
64
+ The release inference settings use a 32-step action horizon and 10 denoising
65
+ steps. The LIBERO evaluator replans after 10 actions; the RoboTwin evaluator
66
+ replans after 24 actions.
67
+
68
+ ## Download
69
+
70
+ ```bash
71
+ pip install -U huggingface_hub
72
+ hf download BridgeWAM/bridgewam --local-dir ./checkpoints/bridgewam
73
+ ```
74
+
75
+ ## Evaluation
76
+
77
+ Install the [BridgeWAM code and dependencies](https://github.com/BridgeWam/BridgeWAM-code)
78
+ and run the commands below from the code repository root, in its configured
79
+ Linux/CUDA environment. The checkpoints require the matching Wan VAE, text
80
+ encoder and tokenizer resources, as described in the code README. These external
81
+ resources and simulator assets are not included in this model repository.
82
+
83
+ Common environment settings:
84
+
85
+ ```bash
86
+ export BRIDGEWAM_PYTHON="$(command -v python)"
87
+ export PYTHONPATH="$PWD/src:$PWD${PYTHONPATH:+:$PYTHONPATH}"
88
+ export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
89
+ export MUJOCO_GL=egl
90
+ export PYOPENGL_PLATFORM=egl
91
+ export DIFFSYNTH_MODEL_BASE_PATH=/path/to/pretrained-models
92
+ ```
93
+
94
+ ### LIBERO
95
+
96
+ Install LIBERO and configure its BDDL files, initial states and simulator assets.
97
+ Replace `/path/to/LIBERO` with the environment repository path.
98
+
99
+ ```bash
100
+ export LIBERO_ROOT=/path/to/LIBERO
101
+ export PYTHONPATH="$LIBERO_ROOT:$PYTHONPATH"
102
+
103
+ python experiments/libero/run_libero_manager.py \
104
+ task=libero_uncond_2cam224_lbqs_only_2layer_alternating_cross_self_fullfinetune_1e-4 \
105
+ ckpt=./checkpoints/bridgewam/libero/model.pt \
106
+ EVALUATION.dataset_stats_path=./checkpoints/bridgewam/libero/dataset_stats.json \
107
+ EVALUATION.output_dir="./runs/eval/libero/$(date +%Y%m%d_%H%M%S)" \
108
+ EVALUATION.num_trials=50 \
109
+ EVALUATION.num_inference_steps=10 \
110
+ model.skip_dit_load_from_pretrain=true \
111
+ seed=42 \
112
+ MULTIRUN.num_gpus=8 \
113
+ MULTIRUN.max_tasks_per_gpu=6
114
+ ```
115
+
116
+ The default manager evaluates all 40 tasks across LIBERO-Spatial, LIBERO-Object,
117
+ LIBERO-Goal and LIBERO-Long (`libero_10`). LIBERO-Plus and LIBERO-Pro have separate
118
+ environment setup instructions and evaluation entrypoints in the code repository.
119
+
120
+ ### RoboTwin
121
+
122
+ Install the complete RoboTwin environment and assets at `third_party/RoboTwin`,
123
+ and expose the `bridgewam_policy` adapter under its `policy/` directory. Empty
124
+ placeholder files are not a working simulator installation.
125
+
126
+ ```bash
127
+ python experiments/robotwin/run_robotwin_manager.py \
128
+ task=robotwin_bridgewam_3cam384_lbq32_2layer_1e-4 \
129
+ ckpt=./checkpoints/bridgewam/robotwin/model.pt \
130
+ EVALUATION.dataset_stats_path=./checkpoints/bridgewam/robotwin/dataset_stats.json \
131
+ EVALUATION.output_dir="./runs/eval/robotwin/$(date +%Y%m%d_%H%M%S)" \
132
+ EVALUATION.eval_num_episodes=100 \
133
+ EVALUATION.num_inference_steps=10 \
134
+ model.skip_dit_load_from_pretrain=true \
135
+ seed=42 \
136
+ MULTIRUN.num_gpus=8 \
137
+ MULTIRUN.max_tasks_per_gpu=4
138
+ ```
139
+
140
+ The manager schedules clean and randomized evaluation settings. The concurrency
141
+ values above are launch settings, not minimum GPU requirements; reduce
142
+ `MULTIRUN.max_tasks_per_gpu` if GPU memory is insufficient.
143
+
144
+ ## Notes and limitations
145
+
146
+ - These are task-specific research checkpoints, not general-purpose robot policies.
147
+ - Use the matching camera layout, action/state representation and normalization.
148
+ - Load weights through the BridgeWAM model loader and matching task configuration;
149
+ these are not Transformers `AutoModel` checkpoints.
150
+ - Successful checkpoint loading does not establish closed-loop task success.
151
+ Benchmark results require the corresponding simulator and a complete evaluation.
152
+ - Real-robot deployment requires independent validation and appropriate safeguards.
153
+ - Upstream software, model and dataset licenses continue to apply.
154
+
155
+ ## Project
156
+
157
+ - Code: [BridgeWAM-code](https://github.com/BridgeWam/BridgeWAM-code)
158
+ - Checkpoints: [BridgeWAM/bridgewam](https://huggingface.co/BridgeWAM/bridgewam)
159
+
160
+ BridgeWAM builds on Wan, Fast-WAM and LeRobot components. See the code repository
161
+ for upstream attribution, environment setup and additional evaluation instructions.