File size: 5,903 Bytes
df15bb1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
pretrained:
  vae_path: pretrained/vision/Wan2.1_VAE.pth
  text_encoder_path: pretrained/language/models_t5_umt5-xxl-enc-bf16.pth
  tokenizer_id: google/umt5-xxl
  context_len: 128
model:
  visual_encoder:
    type: dinov3
    future:
      temporal_downsample_factor: 4
      encode_all_frames: true
    compute_dtype: float32
    architecture: vitb16
    pretraining: lvd1689m
    model_id: facebook/dinov3-vitb16-pretrain-lvd1689m
    revision: 5931719e67bbdb9737e363e781fb0c67687896bc
    resolved_revision: 5931719e67bbdb9737e363e781fb0c67687896bc
    frozen: true
    input_size: 224
    patch_size: 16
    feature:
      type: patch_tokens
      normalization: final_layernorm
      l2_normalize: false
      include_cls: false
      include_registers: false
      output_dtype: bfloat16
      layers:
        mode: final
    adapter:
      input_dim: 768
      hidden_dim: 64
    cache:
      per_frame: true
      storage_dtype: bfloat16
  latent_encoder:
    in_channels: 16
    latent_dim: 64
    compression_stages:
    - - 64
      - - 1
        - 3
        - 3
      - - 1
        - 2
        - 2
      - - 0
        - 1
        - 1
    - - 128
      - - 1
        - 3
        - 3
      - - 1
        - 2
        - 2
      - - 0
        - 1
        - 1
    - - 128
      - - 3
        - 3
        - 3
      - - 2
        - 1
        - 1
      - - 1
        - 1
        - 1
    use_kl: true
    bottleneck:
      type: none
      target_grid: null
  reconstruction:
    decoder_enabled: false
    lambda_rec: 0.0
    hidden_dim: 64
  multi_view_latent_encoder:
    max_main_slots: 1
    max_wrist_slots: 2
    camera_rope_slot_stride: 32
  mot:
    num_heads: 12
    attn_head_dim: 64
    num_layers: 12
    checkpoint_mixed_attn: true
  world_dit:
    hidden_dim: 768
    ffn_dim: 3072
    text_dim: 4096
    freq_dim: 256
    eps: 1.0e-06
    use_3d_rope: true
    use_gradient_checkpointing: true
  action_dit:
    hidden_dim: 768
    ffn_dim: 3072
    text_dim: 4096
    freq_dim: 256
    eps: 1.0e-06
    action_dim: 14
    use_gradient_checkpointing: true
  context_encoder:
    text_dim: 4096
    hidden_dim: 768
    proprio_dim: 14
  world_scheduler:
    train_shift: 5.0
    num_train_timesteps: 1000
  action_scheduler:
    train_shift: 5.0
    num_train_timesteps: 1000
  independent_timesteps: true
  stage: 2
  architecture: miniwam
  stage1_objective: inverse_dynamics
data:
  features_root: datasets/dino_features_robotwin2_demo_clean_50x50
  vae_path: pretrained/vision/Wan2.1_VAE.pth
  text_encoder_path: pretrained/language/models_t5_umt5-xxl-enc-bf16.pth
  tokenizer_id: google/umt5-xxl
  context_len: 128
  action_dim: 14
  action_horizon: 24
  future_rgb_horizon: 24
  num_workers: 4
  dataset_name: robotwin2_demo_clean_50x50
  proprio_dim: 14
  action_type: joint
  action_representation: absolute_qpos
  action_transform: null
  delta_action_mask: null
  normalization:
    action:
      type: zscore_clip
      scope: global_exact_training_split
      clip: 5.0
      epsilon: 1.0e-08
    proprio:
      type: zscore_clip
      scope: global_exact_training_split
      clip: 5.0
      epsilon: 1.0e-08
  split:
    tasks: 50
    episodes_per_task: 50
    episode_ids: 0000000-0000049
    source: demo_clean
  feature_contract:
    dinov3:
      architecture: vitb16
      boundary_dtype: bfloat16
      cache_layout: per_frame_v1
      compute_dtype: float32
      feature_layers: final
      feature_normalization: final_layernorm
      feature_type: patch_tokens
      include_cls: false
      include_registers: false
      input_size: 224
      l2_normalize: false
      model_id: facebook/dinov3-vitb16-pretrain-lvd1689m
      patch_size: 16
      pretraining: lvd1689m
      processor:
        crop_size: null
        do_center_crop: null
        do_normalize: true
        do_rescale: true
        do_resize: true
        image_mean:
        - 0.485
        - 0.456
        - 0.406
        image_std:
        - 0.229
        - 0.224
        - 0.225
        implementation: DINOv3ViTImageProcessorFast
        resample: 2
        rescale_factor: 0.00392156862745098
        size:
          height: 224
          width: 224
      resolved_revision: 5931719e67bbdb9737e363e781fb0c67687896bc
      revision: 5931719e67bbdb9737e363e781fb0c67687896bc
      storage_dtype: bfloat16
    text:
      encoding:
        compute_dtype: torch.bfloat16
        context_len: 128
        encoder_sha256: 7cace0da2b446bbbbc57d031ab6cf163a3d59b366da94e5afe36745b746fd81d
        encoding_backend: cuda
        encoding_sources:
          models/wan_video_text_encoder.py: aedf7f131556a39b99a273deec3a85d67f41b5367cef41f310f33a807ae60a87
          prompting.py: bf26161c383fd009153ab1fd725bd3a5d53a86ee890c44d884492c022d257d23
          text_encoding.py: 6b79295e68d87f6176486ddf757306a5fb8a2e09b9dbc5b124fb80301a706c4e
        prompt_template: 'A video recorded from a robot''s point of view executing
          the following instruction: {task}'
        schema_version: 2
        storage_dtype: torch.bfloat16
        tokenizer_id: google/umt5-xxl
      tokenizer_backend_sha256: e99f6ad706709653ba3db032f7c12ab0d0bd594f3f7a49ecf0e0fa185a971d26
training:
  seed: 42
  global_batch_size: 256
  per_device_batch_size: 256
  learning_rate: 0.0005
  weight_decay: 0.0
  max_grad_norm: 1.0
  lr_scheduler_type: cosine
  warmup_ratio: 0.05
  mixed_precision: bf16
  gradient_accumulation_steps: 1
  max_steps: 25epoch
  save_interval: 5epoch
  log_interval: 10
  output_dir: outputs/robotwin_stage2
inference:
  num_inference_steps: 20
  seed: 42
  replan_steps: action_horizon
logging:
  use_wandb: false
  wandb_api_key: null
  wandb_project: miniwam
  wandb_entity: null
  wandb_run_name: robotwin-stage2
stage: 2
checkpoint:
  stage1_path: outputs/robotwin_stage1/latest
  policy_init: stage1
loss:
  lambda_action: 1.0
  lambda_latent: 1.0
  kl_beta: 0.0
  kl_warmup_steps: 0