AaronHuangWei commited on
Commit
e104e72
·
verified ·
1 Parent(s): 415f69c

Publish weights and concise inference instructions

Browse files
Files changed (5) hide show
  1. README.md +48 -0
  2. SHA256SUMS +4 -0
  3. config.yaml +172 -0
  4. dataset_stats.json +204 -0
  5. model.pt +3 -0
README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ library_name: pytorch
4
+ pipeline_tag: robotics
5
+ datasets: [XDOF/ABC-130k]
6
+ tags: [long-wam, yam, abc-130k, robotics]
7
+ ---
8
+
9
+ # Long-WAM YAM
10
+
11
+ A YAM bimanual robot pretraining model trained on **ABC 130K**, with a
12
+ LongLive 2.0 Robot-S video backbone. It predicts actions after imagining future
13
+ video latents.
14
+
15
+ ## Download
16
+
17
+ ```bash
18
+ hf download Efficient-Large-Model/Long-WAM-YAM --local-dir ./weights/Long-WAM-YAM
19
+ ```
20
+
21
+ ## Inference
22
+
23
+ Load `model.pt` with the matching Long-WAM runtime, `config.yaml` and
24
+ `dataset_stats.json`. Use 4 video denoising steps to sigma 0.9, followed by
25
+ 10 action denoising steps.
26
+
27
+ The three RGB views use a fixed **384 × 320** layout:
28
+
29
+ ```text
30
+ +---------------------------------+
31
+ | Top view: 256 × 320 |
32
+ +----------------+----------------+
33
+ | Left wrist | Right wrist |
34
+ | 128 × 160 | 128 × 160 |
35
+ +----------------+----------------+
36
+ ```
37
+
38
+ P48 covers **1.6 seconds at 30 Hz**. Sample history every four control steps:
39
+ 13 images become four clean latent frames, followed by two imagined latents.
40
+ Predict a 32-step action chunk, approximately 1.07 seconds.
41
+
42
+ State and action are 14-D: left arm's six joints and gripper, then right arm's
43
+ six joints and gripper. Use the supplied z-score statistics to normalize state
44
+ and denormalize predicted actions; RGB inputs use `[-1, 1]`.
45
+
46
+ The matching runtime and base-model VAE/text assets are required separately.
47
+ This is a pretraining checkpoint: task-specific adaptation and controlled
48
+ closed-loop validation are required before real-robot use.
SHA256SUMS ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ d759778c060040f560d17bee3bbea6df3a2184099b3089f9e7d8b4940dbd55b7 model.pt
2
+ 4a84a914bcf939c8240e5ff54cc1dca3006dff912231333406ca099cd449eb83 README.md
3
+ 189c1b3c2e229cf4b069b6e85e9f30b894fca72d711b6d8aafb3f71d03b36343 config.yaml
4
+ 91f295bf93294214ebc83ace488e08816d29ac93b61d71d70e4ffe22f74fed9b dataset_stats.json
config.yaml ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Inference-only configuration. Load model.pt strictly after model construction.
2
+ # Supply matching text embeddings, or enable the compatible text encoder.
3
+ checkpoint: ./model.pt
4
+ mixed_precision: bf16
5
+ eval_num_inference_steps: 10
6
+ data:
7
+ train:
8
+ shape_meta:
9
+ images:
10
+ - key: top
11
+ raw_shape:
12
+ - 3
13
+ - 224
14
+ - 224
15
+ shape:
16
+ - 3
17
+ - 224
18
+ - 224
19
+ - key: left_wrist
20
+ raw_shape:
21
+ - 3
22
+ - 224
23
+ - 224
24
+ shape:
25
+ - 3
26
+ - 224
27
+ - 224
28
+ - key: right_wrist
29
+ raw_shape:
30
+ - 3
31
+ - 224
32
+ - 224
33
+ shape:
34
+ - 3
35
+ - 224
36
+ - 224
37
+ action:
38
+ - key: default
39
+ raw_shape: 14
40
+ shape: 14
41
+ state:
42
+ - key: default
43
+ raw_shape: 14
44
+ shape: 14
45
+ num_frames: 81
46
+ past_obs_size: 48
47
+ action_chunk: 32
48
+ action_video_freq_ratio: 4
49
+ video_size:
50
+ - 384
51
+ - 320
52
+ concat_multi_camera: robotwin
53
+ context_len: 128
54
+ processor:
55
+ _target_: fastwam.datasets.lerobot.processors.fastwam_processor.FastWAMProcessor
56
+ shape_meta:
57
+ images:
58
+ - key: top
59
+ raw_shape:
60
+ - 3
61
+ - 224
62
+ - 224
63
+ shape:
64
+ - 3
65
+ - 224
66
+ - 224
67
+ - key: left_wrist
68
+ raw_shape:
69
+ - 3
70
+ - 224
71
+ - 224
72
+ shape:
73
+ - 3
74
+ - 224
75
+ - 224
76
+ - key: right_wrist
77
+ raw_shape:
78
+ - 3
79
+ - 224
80
+ - 224
81
+ shape:
82
+ - 3
83
+ - 224
84
+ - 224
85
+ action:
86
+ - key: default
87
+ raw_shape: 14
88
+ shape: 14
89
+ state:
90
+ - key: default
91
+ raw_shape: 14
92
+ shape: 14
93
+ num_obs_steps: 81
94
+ num_image_steps: 21
95
+ num_output_cameras: 3
96
+ action_output_dim: 14
97
+ proprio_output_dim: 14
98
+ action_state_transforms: null
99
+ use_stepwise_action_norm: false
100
+ norm_default_mode: z-score
101
+ norm_exception_mode: null
102
+ action_state_merger:
103
+ _target_: fastwam.datasets.lerobot.transforms.action_state_merger.ConcatLeftAlign
104
+ val_transforms:
105
+ - _target_: fastwam.datasets.lerobot.transforms.image.ToTensor
106
+ pretrained_norm_stats: ./dataset_stats.json
107
+ model:
108
+ _target_: fastwam.runtime.create_arwam
109
+ model_id: Wan-AI/Wan2.2-TI2V-5B
110
+ tokenizer_model_id: Wan-AI/Wan2.1-T2V-1.3B
111
+ tokenizer_max_len: 128
112
+ load_text_encoder: false
113
+ proprio_dim: 14
114
+ redirect_common_files: false
115
+ mot_checkpoint_mixed_attn: true
116
+ skip_dit_load_from_pretrain: true
117
+ skip_video_dit_load_from_pretrain: true
118
+ skip_action_dit_load_from_pretrain: true
119
+ longlive_video_weights: null
120
+ action_dit_pretrained_path: null
121
+ arwam_num_frame_per_block: 1
122
+ arwam_local_attn_size: -1
123
+ arwam_sink_size: 0
124
+ arwam_past_obs_size: 48
125
+ arwam_num_imagine_frames: 2
126
+ arwam_imagine_sigma: 0.9
127
+ arwam_imagine_infer_steps: 4
128
+ arwam_joint_denoise: false
129
+ video_dit_config:
130
+ has_image_input: false
131
+ patch_size:
132
+ - 1
133
+ - 2
134
+ - 2
135
+ in_dim: 48
136
+ hidden_dim: 3072
137
+ ffn_dim: 14336
138
+ freq_dim: 256
139
+ text_dim: 4096
140
+ out_dim: 48
141
+ num_heads: 24
142
+ attn_head_dim: 128
143
+ num_layers: 30
144
+ eps: 1.0e-06
145
+ seperated_timestep: true
146
+ require_clip_embedding: false
147
+ require_vae_embedding: false
148
+ fuse_vae_embedding_in_latents: true
149
+ use_gradient_checkpointing: true
150
+ video_attention_mask_mode: per_frame_causal
151
+ action_conditioned: false
152
+ action_dim: 14
153
+ action_group_causal_mask_mode: group_diagonal
154
+ action_dit_config:
155
+ action_dim: 14
156
+ hidden_dim: 1024
157
+ ffn_dim: 4096
158
+ num_heads: 24
159
+ attn_head_dim: 128
160
+ num_layers: 30
161
+ text_dim: 4096
162
+ freq_dim: 256
163
+ eps: 1.0e-06
164
+ use_gradient_checkpointing: true
165
+ video_scheduler:
166
+ train_shift: 5.0
167
+ infer_shift: 5.0
168
+ num_train_timesteps: 1000
169
+ action_scheduler:
170
+ train_shift: 5.0
171
+ infer_shift: 5.0
172
+ num_train_timesteps: 1000
dataset_stats.json ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "action": {
3
+ "default": {
4
+ "global_max": [
5
+ 2.7320046424865723,
6
+ 3.2818641662597656,
7
+ 3.204439163208008,
8
+ 2.700853109359741,
9
+ 2.691441297531128,
10
+ 3.7811522483825684,
11
+ 1.0,
12
+ 3.2167577743530273,
13
+ 3.2351346015930176,
14
+ 3.186357259750366,
15
+ 3.09946608543396,
16
+ 2.984330415725708,
17
+ 2.9432990550994873,
18
+ 1.0002068281173706
19
+ ],
20
+ "global_mean": [
21
+ -0.5005107238240027,
22
+ 1.381914052447372,
23
+ 1.0282389744588594,
24
+ -0.19609857970739863,
25
+ 0.17349895456527187,
26
+ -0.3958070538075272,
27
+ 0.4321060916782643,
28
+ 0.5512800313762668,
29
+ 1.4804727180244466,
30
+ 1.1117122735819063,
31
+ -0.2406437357551019,
32
+ -0.15723303230210917,
33
+ 0.3200179397521419,
34
+ 0.38689656182345383
35
+ ],
36
+ "global_min": [
37
+ -2.662975311279297,
38
+ -0.378818154335022,
39
+ -3.0811784267425537,
40
+ -2.8247804641723633,
41
+ -2.7046494483947754,
42
+ -6.9197869300842285,
43
+ 0.0,
44
+ -2.9336249828338623,
45
+ -0.35128146409988403,
46
+ -3.081232786178589,
47
+ -2.905407667160034,
48
+ -2.7879931926727295,
49
+ -3.8900976181030273,
50
+ 0.0
51
+ ],
52
+ "global_q01": [
53
+ -1.0157207326698905,
54
+ 0.7051830743478448,
55
+ 0.407990651693777,
56
+ -0.9059864495467933,
57
+ -0.5121502233752125,
58
+ -1.1316519512331715,
59
+ 0.023071729762461142,
60
+ -0.07745912643418537,
61
+ 0.7754657879592324,
62
+ 0.4315820502820917,
63
+ -0.9569596528430835,
64
+ -0.8317613052450866,
65
+ -0.4902951630757069,
66
+ 0.01692275123376297
67
+ ],
68
+ "global_q99": [
69
+ 0.07271401301061571,
70
+ 2.1668070771412085,
71
+ 1.9000231042792755,
72
+ 0.8037183337660352,
73
+ 0.7994896226295166,
74
+ 0.373592091320015,
75
+ 0.9847720186116629,
76
+ 1.1047793473952356,
77
+ 2.2635719182396654,
78
+ 2.0252360502520084,
79
+ 0.8000953872301054,
80
+ 0.549115486854637,
81
+ 1.0949446105958247,
82
+ 0.9814563312580594
83
+ ],
84
+ "global_std": [
85
+ 0.3495856634202851,
86
+ 0.4604627147894431,
87
+ 0.4625276502550232,
88
+ 0.5374316293156617,
89
+ 0.41281121135280635,
90
+ 0.5302864916675254,
91
+ 0.3971947804685133,
92
+ 0.362892788354845,
93
+ 0.43697687766447907,
94
+ 0.4692866453073781,
95
+ 0.5132881050819743,
96
+ 0.4262513416446453,
97
+ 0.5217358174703388,
98
+ 0.3639911014721376
99
+ ]
100
+ }
101
+ },
102
+ "num_episodes": 129225,
103
+ "num_transition": 382468339,
104
+ "state": {
105
+ "default": {
106
+ "global_max": [
107
+ 2.722400188446045,
108
+ 3.2164111137390137,
109
+ 3.1466009616851807,
110
+ 1.7015717029571533,
111
+ 1.6321431398391724,
112
+ 2.141031503677368,
113
+ 1.0947552919387817,
114
+ 3.1515603065490723,
115
+ 3.1744487285614014,
116
+ 3.144693613052368,
117
+ 1.8350881338119507,
118
+ 1.6649500131607056,
119
+ 2.1646831035614014,
120
+ 1.0836290121078491
121
+ ],
122
+ "global_mean": [
123
+ -0.5002014805754177,
124
+ 1.3905682227662843,
125
+ 1.0178349787136176,
126
+ -0.20808514546206375,
127
+ 0.17286741860914037,
128
+ -0.4002024154821403,
129
+ 0.4714656611298453,
130
+ 0.5501045778928189,
131
+ 1.4886307077258405,
132
+ 1.0994255696016024,
133
+ -0.2515373244593867,
134
+ -0.16077766487327597,
135
+ 0.32213089729568706,
136
+ 0.4243088171154238
137
+ ],
138
+ "global_min": [
139
+ -2.593461513519287,
140
+ -0.004005493130534887,
141
+ -0.03223468363285065,
142
+ -1.7092012166976929,
143
+ -1.6100175380706787,
144
+ -2.2795071601867676,
145
+ -0.06222819909453392,
146
+ -2.141031503677368,
147
+ -0.005531395319849253,
148
+ -0.013542382046580315,
149
+ -1.7130159139633179,
150
+ -1.659609317779541,
151
+ -2.1391241550445557,
152
+ -0.041723888367414474
153
+ ],
154
+ "global_q01": [
155
+ -1.0117017015849312,
156
+ 0.7125901749503004,
157
+ 0.40519094674870604,
158
+ -0.890344442608663,
159
+ -0.487476534926118,
160
+ -1.1169224102203834,
161
+ 0.07559663105985771,
162
+ -0.07600138597609059,
163
+ 0.7834616794367687,
164
+ 0.42744681026174963,
165
+ -0.9373523169981716,
166
+ -0.8116705046539765,
167
+ -0.47362078209378244,
168
+ 0.06055312201755787
169
+ ],
170
+ "global_q99": [
171
+ 0.06982143971411163,
172
+ 2.168851191866642,
173
+ 1.8781019825238348,
174
+ 0.750493507662465,
175
+ 0.7760530405530245,
176
+ 0.3549474786489756,
177
+ 0.9838985491937439,
178
+ 1.100049616703889,
179
+ 2.263974365278712,
180
+ 2.00085369716042,
181
+ 0.7454671833829447,
182
+ 0.5173974011005017,
183
+ 1.079475639591082,
184
+ 0.9805554291104522
185
+ ],
186
+ "global_std": [
187
+ 0.3482919988599236,
188
+ 0.46043732106118535,
189
+ 0.4585170040774648,
190
+ 0.5239460726523609,
191
+ 0.4042537307516345,
192
+ 0.5264449965374698,
193
+ 0.3691896556185469,
194
+ 0.3617254804816032,
195
+ 0.4363034754839644,
196
+ 0.46516993227957726,
197
+ 0.4989206819201248,
198
+ 0.4166750697298143,
199
+ 0.5178937337339758,
200
+ 0.3404773192431705
201
+ ]
202
+ }
203
+ }
204
+ }
model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d759778c060040f560d17bee3bbea6df3a2184099b3089f9e7d8b4940dbd55b7
3
+ size 12041813652