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 folder using huggingface_hub
Browse files
tinyvla2/pretrain_C_diverse/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TinyVLA-2 — C-diverse (morphology conditioning, continue-trained on 8 morphologies)
|
| 2 |
+
|
| 3 |
+
Variant C (canonical actions + morphology tokens) continue-trained from the C
|
| 4 |
+
pretrain on an **expanded, morphology-diverse mixture** of 8 embodiments — fixed
|
| 5 |
+
arms (SO-101, WidowX, UR5, xArm) + mobile (Google-robot, DLR-EDAN wheelchair arm,
|
| 6 |
+
TidyBot holonomic base, Stretch prismatic). The original C saw only 3 arm-ish
|
| 7 |
+
robots, so its descriptor→MLP failed to generalize (C ≈ B, and OOD-hurt on mobile).
|
| 8 |
+
|
| 9 |
+
## Why this exists
|
| 10 |
+
The A/B/C ablation showed morphology tokens gave NO advantage over a learned
|
| 11 |
+
embodiment-ID on held-out arms (jaco), because jaco's descriptor ≈ the training
|
| 12 |
+
arms. Hypothesis: the descriptor encoder only generalizes if it has seen diverse
|
| 13 |
+
morphologies. This checkpoint tests it.
|
| 14 |
+
|
| 15 |
+
## Result (held-out jaco, zero-shot, integrated-trajectory endpoint error, n=20)
|
| 16 |
+
| model | training morphologies | jaco endpoint |
|
| 17 |
+
|---|---|---|
|
| 18 |
+
| C | 3 (arms only) | 178 mm |
|
| 19 |
+
| **C-diverse** | 8 (arms+mobile) | **150 mm** (−16%) |
|
| 20 |
+
| C-diverse-slow (+morph into Qwen prefix) | 8 | 162 mm (no gain) |
|
| 21 |
+
|
| 22 |
+
**Morphology diversity in training improves held-out transfer** — the descriptor
|
| 23 |
+
becomes a useful conditioning signal once the encoder has seen a range of
|
| 24 |
+
morphologies. Feeding morphology into the slow LM prefix (C-diverse-slow) gave no
|
| 25 |
+
additional benefit here.
|
| 26 |
+
|
| 27 |
+
## Files
|
| 28 |
+
`config.json`, `model.safetensors` — `TinyVLAPolicy.from_pretrained`,
|
| 29 |
+
`conditioning="morph"`, `action_space="canonical"`. Trained via
|
| 30 |
+
`configs/tv2_C_diverse.yaml`. Full results in `tinyvla2/RESULTS.md`,
|
| 31 |
+
wiring in `tinyvla2/WIRING.md`.
|
tinyvla2/pretrain_C_diverse/config.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"type": "tinyvla",
|
| 3 |
+
"n_obs_steps": 1,
|
| 4 |
+
"input_features": {
|
| 5 |
+
"observation.images.cam0": {
|
| 6 |
+
"type": "VISUAL",
|
| 7 |
+
"shape": [
|
| 8 |
+
3,
|
| 9 |
+
256,
|
| 10 |
+
256
|
| 11 |
+
]
|
| 12 |
+
},
|
| 13 |
+
"observation.images.cam1": {
|
| 14 |
+
"type": "VISUAL",
|
| 15 |
+
"shape": [
|
| 16 |
+
3,
|
| 17 |
+
256,
|
| 18 |
+
256
|
| 19 |
+
]
|
| 20 |
+
},
|
| 21 |
+
"observation.state": {
|
| 22 |
+
"type": "STATE",
|
| 23 |
+
"shape": [
|
| 24 |
+
16
|
| 25 |
+
]
|
| 26 |
+
}
|
| 27 |
+
},
|
| 28 |
+
"output_features": {
|
| 29 |
+
"action": {
|
| 30 |
+
"type": "ACTION",
|
| 31 |
+
"shape": [
|
| 32 |
+
8
|
| 33 |
+
]
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"device": "cuda",
|
| 37 |
+
"use_amp": false,
|
| 38 |
+
"use_peft": false,
|
| 39 |
+
"push_to_hub": true,
|
| 40 |
+
"repo_id": null,
|
| 41 |
+
"private": null,
|
| 42 |
+
"tags": null,
|
| 43 |
+
"license": null,
|
| 44 |
+
"pretrained_path": null,
|
| 45 |
+
"pretrained_revision": null,
|
| 46 |
+
"chunk_size": 50,
|
| 47 |
+
"n_action_steps": 50,
|
| 48 |
+
"normalization_mapping": {
|
| 49 |
+
"VISUAL": "IDENTITY",
|
| 50 |
+
"STATE": "MEAN_STD",
|
| 51 |
+
"ACTION": "MEAN_STD"
|
| 52 |
+
},
|
| 53 |
+
"max_state_dim": 16,
|
| 54 |
+
"max_action_dim": 8,
|
| 55 |
+
"num_embodiments": 16,
|
| 56 |
+
"max_cameras": 3,
|
| 57 |
+
"conditioning": "morph",
|
| 58 |
+
"morph_tokens": 2,
|
| 59 |
+
"action_space": "canonical",
|
| 60 |
+
"image_size": 256,
|
| 61 |
+
"freeze_vision_encoder": true,
|
| 62 |
+
"lm_model_name": "Qwen/Qwen3.5-0.8B",
|
| 63 |
+
"lm_num_layers": 12,
|
| 64 |
+
"num_readout_tokens": 8,
|
| 65 |
+
"freeze_lm": true,
|
| 66 |
+
"tokenizer_max_length": 48,
|
| 67 |
+
"pad_language_to": "longest",
|
| 68 |
+
"expert_dim": 512,
|
| 69 |
+
"expert_layers": 12,
|
| 70 |
+
"expert_heads": 8,
|
| 71 |
+
"use_semantic_latent": true,
|
| 72 |
+
"use_spatial_tokens": true,
|
| 73 |
+
"spatial_vocab": 1024,
|
| 74 |
+
"spatial_loss_weight": 0.0,
|
| 75 |
+
"num_denoise_steps": 10,
|
| 76 |
+
"flow_beta_alpha": 1.5,
|
| 77 |
+
"flow_beta_beta": 1.0,
|
| 78 |
+
"min_period": 0.004,
|
| 79 |
+
"max_period": 4.0,
|
| 80 |
+
"staleness_prob": 0.0,
|
| 81 |
+
"staleness_max_s": 2.0,
|
| 82 |
+
"optimizer_lr": 0.0001,
|
| 83 |
+
"optimizer_betas": [
|
| 84 |
+
0.9,
|
| 85 |
+
0.95
|
| 86 |
+
],
|
| 87 |
+
"optimizer_eps": 1e-08,
|
| 88 |
+
"optimizer_weight_decay": 1e-10,
|
| 89 |
+
"optimizer_grad_clip_norm": 10.0,
|
| 90 |
+
"scheduler_warmup_steps": 1000,
|
| 91 |
+
"scheduler_decay_steps": 40000,
|
| 92 |
+
"scheduler_decay_lr": 2.5e-06
|
| 93 |
+
}
|
tinyvla2/pretrain_C_diverse/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5026012dcff8f80b05f5a48086bc9c3ecbd7c8bc1d229431a5617b6b407d5856
|
| 3 |
+
size 2575766712
|