AlexWortega commited on
Commit
872d7ec
Β·
verified Β·
1 Parent(s): 93c96d8

Upload tinyvla2/CLAUDE.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. tinyvla2/CLAUDE.md +56 -8
tinyvla2/CLAUDE.md CHANGED
@@ -110,13 +110,28 @@ Dual-rate (semantic latent refreshed at 1 Hz) matched or beat full-rate β€” the
110
  architectural claim, verified closed-loop.
111
 
112
  ### v2 β€” cross-embodiment (ratio to zero-floor, lower is better)
 
 
 
 
113
  | | in-training | held-out |
114
  |---|---|---|
115
- | C-diverse (8 robots, 20k steps, frozen LM) | 0.99 | 1.17 |
116
- | **C-scaled (9.1M frames, 60k steps, LM unfrozen)** | **0.81** | **0.88** |
 
 
 
117
 
118
- Per-robot final: jaco 0.69, xarm 0.64, dlr_edan 0.69, stretch 0.69, LeKiwi (held-out)
119
- 1.07, ur5 1.22 (hardest β€” the fastest robot, 9.9 mm/step; its canonicalization is fine).
 
 
 
 
 
 
 
 
120
 
121
  **Negative results (all documented in `tinyvla2/RESULTS.md`):**
122
  - Robot description as text in the prompt (frozen LM) β€” hurts.
@@ -125,6 +140,11 @@ Per-robot final: jaco 0.69, xarm 0.64, dlr_edan 0.69, stretch 0.69, LeKiwi (held
125
  - In-context demo conditioning β€” **five architectures**, all dead (real vs garbage
126
  exemplars indistinguishable): MLP same-task β†’ MLP cross-task β†’ 24Γ— capacity β†’
127
  demos inside the LM attention stream β†’ demos as the only identity channel.
 
 
 
 
 
128
 
129
  ## Lessons
130
 
@@ -143,11 +163,39 @@ Per-robot final: jaco 0.69, xarm 0.64, dlr_edan 0.69, stretch 0.69, LeKiwi (held
143
  (1.24 β†’ 1.13 β†’ 1.07) when in-training had plateaued at 40k.
144
  5. Some community datasets are broken at source (meta frame count β‰  parquet rows);
145
  validate `len(reader.hf_dataset) == meta.total_frames` and quarantine mismatches.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
 
147
  ## State
148
 
149
  Best checkpoints: **v1** `outputs/libero_ft4/final` (86% LIBERO) Β· **v2**
150
- `outputs/tv2_C_scaled/final` (0.81/0.88). Currently training: `tv2_robocasa` β€”
151
- continue-train from C-scaled on RoboCasa365 (sim kitchens, PandaOmron mobile
152
- manipulator, 1.5M frames) at weight 0.5 with the old robots replayed at 0.5, to
153
- separate new-domain integration from catastrophic forgetting.
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  architectural claim, verified closed-loop.
111
 
112
  ### v2 β€” cross-embodiment (ratio to zero-floor, lower is better)
113
+ Numbers below are **post-correction** (2026-08-28): the old eval harness fed raw,
114
+ 6-dim-truncated `observation.state` where training normalizes and pads it. Every
115
+ pre-correction v2 number was measured with out-of-distribution proprioception.
116
+
117
  | | in-training | held-out |
118
  |---|---|---|
119
+ | C-scaled, as published (buggy harness) | 0.81 | 0.88 |
120
+ | **C-scaled, corrected** | **0.34** | **0.97** |
121
+
122
+ Per-robot corrected: stretch 0.11, xarm 0.13, dlr_edan 0.23, ur5 0.90, jaco
123
+ (held-out arm) **0.28**, LeKiwi (held-out mobile base) **1.67**.
124
 
125
+ The correction splits the headline claim in two. In-domain competence is real and
126
+ ~3Γ— better than reported. Transfer to an unseen *arm* works (jaco 0.28, better than
127
+ in-training ur5). Transfer to an unseen *mobile base* does not β€” LeKiwi 1.67 is
128
+ worse than predicting mean motion. With garbage proprio the model had to ignore the
129
+ state channel, which flattered LeKiwi and penalised everyone else.
130
+
131
+ ### v2 β€” LIBERO closed loop (the benchmark comparable to v1)
132
+ Canonical policies output EE deltas, not OSC actions, so they need a decoder.
133
+ Zero-shot (no LIBERO training) offline ratio **0.79**; canonical FT at 5k steps
134
+ scores **40%** on libero_spatial (30k run in progress; v1 reference 86% at 40k).
135
 
136
  **Negative results (all documented in `tinyvla2/RESULTS.md`):**
137
  - Robot description as text in the prompt (frozen LM) β€” hurts.
 
140
  - In-context demo conditioning β€” **five architectures**, all dead (real vs garbage
141
  exemplars indistinguishable): MLP same-task β†’ MLP cross-task β†’ 24Γ— capacity β†’
142
  demos inside the LM attention stream β†’ demos as the only identity channel.
143
+ **Survives the harness correction**, and is now better supported: real LeKiwi
144
+ demos are also indistinguishable from demos of a *different robot* (490.5 vs
145
+ 489.5 mm). The model reads demonstration format, never content. The two oldest
146
+ in-context checkpoints can no longer be loaded (the demo encoder was widened
147
+ after they were trained), so their numbers stand only as originally measured.
148
 
149
  ## Lessons
150
 
 
163
  (1.24 β†’ 1.13 β†’ 1.07) when in-training had plateaued at 40k.
164
  5. Some community datasets are broken at source (meta frame count β‰  parquet rows);
165
  validate `len(reader.hf_dataset) == meta.total_frames` and quarantine mismatches.
166
+ 6. **The eval harness must build its observation the way the training loader does.**
167
+ Months of v2 numbers were measured with raw, truncated `observation.state` while
168
+ training normalized it β€” the model looked 3Γ— weaker than it was, and one
169
+ conclusion (mobile-base transfer) flipped sign. Route every eval through
170
+ `src/tinyvla/data/eval_utils.py::StateAdapter`, and when a metric moves a lot,
171
+ re-derive it with a control that changes only the suspect input.
172
+ 7. **Canonical deltas are achieved motion; robot actions are commands.** Replaying
173
+ predicted deltas as OSC commands scores 1/5 on the GT round-trip against a 4/5
174
+ ceiling, because a P-controller never closes the gap in one step. Integrate the
175
+ deltas into an absolute desired pose and command the error against the *measured*
176
+ pose (`--decode servo`, kp=120) β€” that recovers the full 4/5. This matters for any
177
+ real deployment, not just LIBERO.
178
+ 8. **Verify liveness by the python process and log growth, never by a wrapper.**
179
+ `pgrep -f` matches the launching bash too, so a dead job looks alive; twice a
180
+ "running" job was a shell wrapper, and once two copies of the same eval
181
+ interleaved into one log and produced a wrong success count.
182
 
183
  ## State
184
 
185
  Best checkpoints: **v1** `outputs/libero_ft4/final` (86% LIBERO) Β· **v2**
186
+ `outputs/tv2_C_scaled/final` (corrected 0.34 in-training / 0.28 held-out arm).
187
+
188
+ Currently training: `tv2_libero_ft` β€” C-scaled fine-tuned on LIBERO in canonical
189
+ action space with morphology conditioning, 30k steps, to get a closed-loop number
190
+ directly comparable to v1's 86%. At 5k it scores 40% on libero_spatial.
191
+
192
+ `tv2_robocasa` was stopped at ~18k/30k to free the GPU; its 10k checkpoint gave
193
+ RoboCasa 0.52 (best-in-project on that domain) but degraded held-out LeKiwi, i.e.
194
+ weight 0.5 is too high for the new domain.
195
+
196
+ Benchmark commands:
197
+ ```bash
198
+ python scripts/replay_libero_canon.py --episodes 5 --decode servo --grip-mode gt # gate first
199
+ MUJOCO_GL=egl python scripts/eval_libero_canon.py --checkpoint <ckpt> \
200
+ --suite libero_spatial --episodes 100 --n-action-steps 25
201
+ ```