Instructions to use AlexWortega/tinyvla with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use AlexWortega/tinyvla with LeRobot:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Upload tinyvla2/CLAUDE.md with huggingface_hub
Browse files- 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-
|
| 116 |
-
| **C-scaled
|
|
|
|
|
|
|
|
|
|
| 117 |
|
| 118 |
-
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
```
|