armanakbari4 commited on
Commit
a9ebd5b
Β·
verified Β·
1 Parent(s): 4f68306

g1 put_away_tools v2.1 FDM-v2 transformer @ step 2000 (MIN/MAX norm)

Browse files
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - robotics
5
+ - lingbot-va
6
+ - unitree-g1
7
+ - world-model
8
+ ---
9
+
10
+ # UnitreeG1_putawaytoolsV2_minmax_2000step β€” LingBot-VA G1 post-trained transformer
11
+
12
+ Fine-tuned `transformer` for LingBot-VA on Unitree G1 (Dex1), task
13
+ `XiaoweiLinXL/pi05-unitree-g1-put-away-tools-v2.1`:
14
+ *"Put the battery on the shelf labeled 'battery' and put the screwdriver
15
+ on the shelf labeled 'Philips'."*
16
+
17
+ **Same data, same recipe as the `rndchnk` series β€” only difference: action
18
+ normalization is MIN/MAX (not q01/q99 quantile).** See "Why min/max" below.
19
+
20
+ - Base: `robbyant/lingbot-va-base`
21
+ - Post-training: 70 demos (43,851 frames), lr 1e-5, **FDM v2 recipe** β€”
22
+ mutually-exclusive per-microstep regime (`fdm_prob=0.5`, `lambda_fdm=1.0`).
23
+ Per-step randomized chunk_size ∈ {1..4} and window_size ∈ {4..64}.
24
+ - 4 GPUs Γ— `grad_accum=4` = effective batch 16, optimizer **step 2000** of a
25
+ 5000-step schedule (mid-training; the `_500step` ckpt deployed weakly so
26
+ this checkpoint exists for the next deployment test).
27
+ - **Action normalization: dataset min/max** β€” every training target bounded
28
+ strictly to [-1, +1]. (Codebase variable names are still `q01`/`q99`
29
+ because that's all the loader supports; the values stored there are
30
+ min/max β€” drop-in replacement.)
31
+ - This repo contains **only `transformer/`** β€” `vae/`, `text_encoder/`,
32
+ `tokenizer/` are unchanged from `robbyant/lingbot-va-base`.
33
+
34
+ ## Why min/max (the v21 quantile series underperformed)
35
+
36
+ The earlier v21 5k training under quantile normalization had its right-arm
37
+ joints overflow: R-wrist-roll absmax was **4.11**, R-shoulder-roll 3.55,
38
+ R-wrist-yaw 3.55. The model's bounded prediction range
39
+ (`[~-1.5, ~+1.5]`) cannot match those targets β†’ during deployment the model
40
+ under-predicts the precise reach-extension moments β†’ arm under-extends β†’
41
+ misses the shelves. Min/max normalization bounds every target to Β±1
42
+ (verified absmax = 1.0000 over all 43,851 training rows), eliminating
43
+ out-of-range targets and restoring deployment quality.
44
+
45
+ ## Assemble an eval-ready checkpoint
46
+
47
+ ```bash
48
+ hf download robbyant/lingbot-va-base --local-dir lingbot-va-base
49
+ hf download EmbodyX/UnitreeG1_putawaytoolsV2_minmax_2000step --local-dir g1_pat_v2_mm_2000_dl
50
+
51
+ mkdir -p g1_pat_v2_mm_2000
52
+ ln -sf $(realpath g1_pat_v2_mm_2000_dl/transformer) g1_pat_v2_mm_2000/transformer
53
+ ln -sf $(realpath lingbot-va-base/vae) g1_pat_v2_mm_2000/vae
54
+ ln -sf $(realpath lingbot-va-base/text_encoder) g1_pat_v2_mm_2000/text_encoder
55
+ ln -sf $(realpath lingbot-va-base/tokenizer) g1_pat_v2_mm_2000/tokenizer
56
+ ```
57
+
58
+ Serve with `CONFIG_NAME=g1_putawaytools_v21 MODEL_PATH=g1_pat_v2_mm_2000`.
59
+ `transformer/config.json` has `attn_mode: torch` (inference-ready).
60
+
61
+ **IMPORTANT β€” config must match training**: the inference config's
62
+ `norm_stat` must contain the same MIN/MAX values used during training
63
+ (NOT the original quantile values). The `va_g1_putawaytools_v21_cfg.py`
64
+ in the lingbot-va repo has been updated in lockstep β€” using the original
65
+ quantile config at inference with this checkpoint would denormalize wrong.
66
+ Quick check: `grep "1.178246855736" wan_va/configs/va_g1_putawaytools_v21_cfg.py`
67
+ should return a hit.
transformer/config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "patch_size": [
3
+ 1,
4
+ 2,
5
+ 2
6
+ ],
7
+ "num_attention_heads": 24,
8
+ "attention_head_dim": 128,
9
+ "in_channels": 48,
10
+ "out_channels": 48,
11
+ "action_dim": 30,
12
+ "text_dim": 4096,
13
+ "freq_dim": 256,
14
+ "ffn_dim": 14336,
15
+ "num_layers": 30,
16
+ "cross_attn_norm": true,
17
+ "eps": 1e-06,
18
+ "rope_max_seq_len": 1024,
19
+ "pos_embed_seq_len": null,
20
+ "attn_mode": "torch",
21
+ "_class_name": "WanTransformer3DModel",
22
+ "_diffusers_version": "0.35.0.dev0"
23
+ }
transformer/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef631cc4d52293ecfa14bbae10991e378ec6bf36fa51e8a79a00f3a27a78abca
3
+ size 10177831668