Add BiCAT w/o CA AT (latest, step 300000)
Browse files
BiCAT/CA_ablation/AT/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- model_hub_mixin
|
| 4 |
+
- pytorch_model_hub_mixin
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
|
| 8 |
+
- Code: [More Information Needed]
|
| 9 |
+
- Paper: [More Information Needed]
|
| 10 |
+
- Docs: [More Information Needed]
|
BiCAT/CA_ablation/AT/config.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"action_dim": 14,
|
| 3 |
+
"action_horizon": 32,
|
| 4 |
+
"arm_dim": 7,
|
| 5 |
+
"clamp_normalized_actions": false,
|
| 6 |
+
"conv_kernel_sizes": [
|
| 7 |
+
5,
|
| 8 |
+
3
|
| 9 |
+
],
|
| 10 |
+
"conv_strides": [
|
| 11 |
+
2,
|
| 12 |
+
2
|
| 13 |
+
],
|
| 14 |
+
"decoder_nhead": 8,
|
| 15 |
+
"decoder_nlayer": 6,
|
| 16 |
+
"dropout": 0.1,
|
| 17 |
+
"fsq_levels": [
|
| 18 |
+
8,
|
| 19 |
+
8,
|
| 20 |
+
6,
|
| 21 |
+
5
|
| 22 |
+
],
|
| 23 |
+
"latent_dim": 4,
|
| 24 |
+
"latent_horizon_per_arm": 8,
|
| 25 |
+
"model_dim": 256,
|
| 26 |
+
"name": "btt",
|
| 27 |
+
"num_heads": 8,
|
| 28 |
+
"right_arm_sign": [
|
| 29 |
+
-1.0,
|
| 30 |
+
1.0,
|
| 31 |
+
1.0,
|
| 32 |
+
1.0,
|
| 33 |
+
-1.0,
|
| 34 |
+
-1.0,
|
| 35 |
+
1.0
|
| 36 |
+
],
|
| 37 |
+
"shared_action_max": [
|
| 38 |
+
2.945596,
|
| 39 |
+
3.3889313,
|
| 40 |
+
3.4514999,
|
| 41 |
+
1.9530925,
|
| 42 |
+
1.6339467,
|
| 43 |
+
3.0108311,
|
| 44 |
+
1.0
|
| 45 |
+
],
|
| 46 |
+
"shared_action_min": [
|
| 47 |
+
-1.3947148,
|
| 48 |
+
-0.5742835,
|
| 49 |
+
-0.1190902,
|
| 50 |
+
-1.9893787,
|
| 51 |
+
-1.4216828,
|
| 52 |
+
-3.4687879,
|
| 53 |
+
0.0
|
| 54 |
+
],
|
| 55 |
+
"use_causal_decoder": true,
|
| 56 |
+
"use_cross_attention": false
|
| 57 |
+
}
|
BiCAT/CA_ablation/AT/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:454f2f1bbfc1d58885fd9f44fa05b8538604bab9c8dd1db4d8dca0c6bc1d2770
|
| 3 |
+
size 28556932
|
BiCAT/CA_ablation/AT/norm_stats.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b9e7e69a4cb1bf67acc655cba23f329c1a6125d8c74ee1b37c19bd2c54a56e5
|
| 3 |
+
size 3957
|
BiCAT/CA_ablation/AT/policy_io.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"obs_features": [],
|
| 3 |
+
"action_feature": {
|
| 4 |
+
"key": "action",
|
| 5 |
+
"type": "action",
|
| 6 |
+
"shape": [
|
| 7 |
+
14
|
| 8 |
+
],
|
| 9 |
+
"norm_mode": "min_max"
|
| 10 |
+
},
|
| 11 |
+
"n_obs_steps": 0,
|
| 12 |
+
"n_action_steps": 32,
|
| 13 |
+
"fps": 15,
|
| 14 |
+
"language_key": null
|
| 15 |
+
}
|
BiCAT/CA_ablation/AT/train_config.yaml
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
codec:
|
| 2 |
+
name: btt
|
| 3 |
+
kind: tokens
|
| 4 |
+
pretrained_path: null
|
| 5 |
+
action_dim: 14
|
| 6 |
+
arm_dim: 7
|
| 7 |
+
action_horizon: 32
|
| 8 |
+
latent_horizon_per_arm: 8
|
| 9 |
+
max_fit_chunks: 50000
|
| 10 |
+
model_dim: 256
|
| 11 |
+
num_heads: 8
|
| 12 |
+
decoder_nhead: 8
|
| 13 |
+
decoder_nlayer: 6
|
| 14 |
+
dropout: 0.1
|
| 15 |
+
use_causal_decoder: true
|
| 16 |
+
conv_kernel_sizes:
|
| 17 |
+
- 5
|
| 18 |
+
- 3
|
| 19 |
+
conv_strides:
|
| 20 |
+
- 2
|
| 21 |
+
- 2
|
| 22 |
+
latent_dim: 4
|
| 23 |
+
fsq_levels:
|
| 24 |
+
- 8
|
| 25 |
+
- 8
|
| 26 |
+
- 6
|
| 27 |
+
- 5
|
| 28 |
+
right_arm_sign:
|
| 29 |
+
- -1
|
| 30 |
+
- 1
|
| 31 |
+
- 1
|
| 32 |
+
- 1
|
| 33 |
+
- -1
|
| 34 |
+
- -1
|
| 35 |
+
- 1
|
| 36 |
+
shared_action_min:
|
| 37 |
+
- -1.3947148
|
| 38 |
+
- -0.5742835
|
| 39 |
+
- -0.1190902
|
| 40 |
+
- -1.9893787
|
| 41 |
+
- -1.4216828
|
| 42 |
+
- -3.4687879
|
| 43 |
+
- 0.0
|
| 44 |
+
shared_action_max:
|
| 45 |
+
- 2.945596
|
| 46 |
+
- 3.3889313
|
| 47 |
+
- 3.4514999
|
| 48 |
+
- 1.9530925
|
| 49 |
+
- 1.6339467
|
| 50 |
+
- 3.0108311
|
| 51 |
+
- 1.0
|
| 52 |
+
clamp_normalized_actions: false
|
| 53 |
+
use_cross_attention: false
|
| 54 |
+
dataset:
|
| 55 |
+
name: robotwin_new_demo_clean
|
| 56 |
+
repo_id: local/robotwin_new_demo_clean
|
| 57 |
+
root: /scratch/xuanweiliu/bimanual_tokenizer/data/lerobot/local/robotwin_new_demo_clean
|
| 58 |
+
hf_datasets_cache: ${oc.env:HF_DATASETS_CACHE,null}
|
| 59 |
+
episodes: null
|
| 60 |
+
exclude_episodes_file: null
|
| 61 |
+
action_stats_file: null
|
| 62 |
+
observation_keys:
|
| 63 |
+
- observation.state
|
| 64 |
+
- observation.images.cam_high
|
| 65 |
+
- observation.images.cam_left_wrist
|
| 66 |
+
- observation.images.cam_right_wrist
|
| 67 |
+
video_backend: null
|
| 68 |
+
bypass_force_cache_sync: true
|
| 69 |
+
trainer:
|
| 70 |
+
max_steps: 300000
|
| 71 |
+
batch_size: 512
|
| 72 |
+
global_batch_size: null
|
| 73 |
+
num_workers: 4
|
| 74 |
+
prefetch_factor: 4
|
| 75 |
+
use_episode_aware_sampler: true
|
| 76 |
+
drop_n_first_frames: 0
|
| 77 |
+
drop_n_last_frames: 0
|
| 78 |
+
weight_decay: 0.0
|
| 79 |
+
betas:
|
| 80 |
+
- 0.9
|
| 81 |
+
- 0.95
|
| 82 |
+
eps: 1.0e-08
|
| 83 |
+
lr_scheduler: constant
|
| 84 |
+
warmup_steps: 200
|
| 85 |
+
min_lr_ratio: 0.1
|
| 86 |
+
use_ema: true
|
| 87 |
+
ema_decay: 0.995
|
| 88 |
+
mixed_precision: bf16
|
| 89 |
+
gradient_accumulation_steps: 1
|
| 90 |
+
find_unused_parameters: false
|
| 91 |
+
max_grad_norm: 1.0
|
| 92 |
+
distributed_strategy: ddp
|
| 93 |
+
fsdp_min_num_params: 100000000
|
| 94 |
+
fsdp_reshard_after_forward: true
|
| 95 |
+
fsdp_cpu_offload: false
|
| 96 |
+
log_every: 200
|
| 97 |
+
val_every: 1000
|
| 98 |
+
checkpoint_every: 5000
|
| 99 |
+
checkpoint_dir: ${output_dir}/checkpoints
|
| 100 |
+
local_log_path: ${output_dir}/train_metrics.jsonl
|
| 101 |
+
val_ratio: 0.05
|
| 102 |
+
split_seed: ${seed}
|
| 103 |
+
val_batch_size: null
|
| 104 |
+
max_val_batches: 100
|
| 105 |
+
checkpoint_candidates:
|
| 106 |
+
best:
|
| 107 |
+
metric_key: val_reconst_loss
|
| 108 |
+
mode: min
|
| 109 |
+
k: 3
|
| 110 |
+
recent:
|
| 111 |
+
k: 2
|
| 112 |
+
use_wandb: true
|
| 113 |
+
wandb_project: tokenizer_pretrain
|
| 114 |
+
wandb_entity: evan_lxw-harbin-institute-of-technology
|
| 115 |
+
wandb_init_timeout: null
|
| 116 |
+
wandb_upload_eval_videos: true
|
| 117 |
+
wandb_max_eval_videos: 16
|
| 118 |
+
_trainer_type: codecs
|
| 119 |
+
lr: 5.0e-05
|
| 120 |
+
reconst_every: 1000
|
| 121 |
+
max_reconst_batches: 100
|
| 122 |
+
skip_codec_fit: false
|
| 123 |
+
name: train_codecs
|
| 124 |
+
seed: 42
|
| 125 |
+
device: cuda
|
| 126 |
+
run_name: robotwin_new_btt_wo_CA_300k
|
| 127 |
+
output_dir: /scratch/Projects/CFP-05/CFP05-CF-002/BiCAT/sim/BiCAT/CA_ablation/AT
|
| 128 |
+
run_mode: overwrite
|
| 129 |
+
resume_checkpoint: null
|