Instructions to use twanghcmut/xvla-so101-left-arm-task3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use twanghcmut/xvla-so101-left-arm-task3 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("twanghcmut/xvla-so101-left-arm-task3", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
X-VLA fine-tuned on SO-101 left arm, 3 tasks
2toINF/X-VLA-Pt (Florence-2-large encoder + soft-prompted flow-matching
action transformer, 0.9B) fine-tuned with the official X-VLA repository
(commit 6bc2513) on hungho77/so101-left-arm-task3:
159 episodes, 133,763 frames at 30 fps, 3 tasks, one SO-101 left arm, cameras top (360x640) and wrist (480x640),
6-dim state and action (5 joints in degrees + gripper aperture). Same recipe and SO-101 integration as the 11-task
checkpoint twanghcmut/X-VLA-SO101-LeftArm-Multitask.
Tasks
Pass the task string verbatim, trailing period included where present.
| id | task |
|---|---|
| 0 | Take the red cube out of the steel pot and place it into the orange hollow cube. |
| 1 | Use the left gripper to open the top drawer, pick up the red square block, place it inside the top drawer, and then close the drawer. |
| 2 | Open the drawer, pick up the red cube then stack on the blue cube |
How the SO-101 data enters X-VLA
Everything is in so101/ (xvla_so101_upstream.patch for the three upstream files, so101.py for the handler,
config_auto_so101.json, the launcher run_so101_task3_xvla.sh and the evaluation script), identical to the 11-task
checkpoint except the launcher.
- Action space
auto,real_action_dim 6,max_action_dim 20; loss (MSE x 100) on the 6 real dims; the gripper is a continuous aperture. - Handler (
so_follower, domain id 19): camerastop,wrist, a zero third view; joints 0-4 predicted as deltas from the proprio, the gripper as an absolute target; actions min-max normalized to [-1, 1] with the dataset'smeta/stats.json. - Proprio is the previous action (
action[t-1]), as in the upstream LeRobot v2.1 handler, notobservation.state. Feed the last commanded action at inference. The chunk is 30 steps over 1 s.
Training
| Recipe | accelerate launch --mixed_precision bf16 train.py --learning_rate 1e-4 --learning_coef 0.1 --freeze_steps 1000 --warmup_steps 2000 |
| Batch | 32 on one GPU (the 11-task run used 16 x 2 GPUs = 32) |
| Iterations | 24,000 = 768k samples, about 5.7 passes over the 133,763 frames |
| Schedule | VLM and transformer core frozen for 1,000 steps, linear warmup over 2,000, then constant; VLM and soft prompts at 0.1x |
| Hardware | 1 x H100 80GB, 4 h 24 min (about 0.65 s/step) |
| Loss | 10.7 at step 20, 0.32 at 2,000, mean 0.082 over the last 1,000 steps (MSE x 100 in normalized units) |
Evaluation (open loop, in-sample)
so101/eval_so101_open_loop.py on 6 training trajectories (2 per task: episodes 0, 25, 51, 80, 108, 133), the policy
called every 16 steps from the dataset's own frames and previous action, the first 16 of the predicted 30 steps compared
with the ground-truth actions, up to 400 steps per trajectory, 10 denoising steps. MAE in the dataset's units;
"normalized" divides by the absolute action std of the dataset, 29.97. These trajectories were in the training set, so
this measures fit, not generalization.
| trajectory | task | MAE | MSE |
|---|---|---|---|
| 0 | 0 | 0.872 | 1.85 |
| 25 | 0 | 1.090 | 3.07 |
| 51 | 1 | 0.940 | 1.99 |
| 80 | 1 | 0.967 | 2.15 |
| 108 | 2 | 1.065 | 4.40 |
| 133 | 2 | 1.045 | 3.74 |
| average | 0.997 | 2.87 |
Normalized MAE: 3.33%. Holding the previous action (the proprio this model is given) for 16 steps on the same trajectories and protocol gives 2.313 (7.72%). The error grows with the position in the chunk: 0.41 at step 0, 0.82 at step 4, 1.11 at step 8, 1.32 at step 14.
Other models on this dataset (same 6 trajectories, 400 steps, horizon 16):
| model | MAE | state input | checkpoint |
|---|---|---|---|
| X-VLA (this) | 0.997 | previous action | |
| GR00T N1.6 | 1.345 | observation.state |
|
| GR00T N1.7 | 1.440 | observation.state |
twanghcmut/gr00t-n1d7-so101-left-arm-task3 |
| pi0.5 | 1.459 | observation.state |
twanghcmut/pi05-so101-left-arm-task3 |
| Cosmos3-Edge | 1.911 | observation.state |
twanghcmut/cosmos3-edge-so101-left-arm-task3 |
Not a like-for-like comparison. X-VLA receives the recorded action at t-1 as its proprio, the others receive the
measured joint state. On this dataset the previous action and the measured state differ by 1.83 units on average,
so X-VLA starts every chunk from an exact anchor that the other models do not have. The comparison that decides between
them is a closed-loop or real-robot run. This checkpoint has not been run on the real robot.
Usage
git clone https://github.com/2toinf/X-VLA && cd X-VLA && git checkout 6bc2513 # install per its README
hf download twanghcmut/xvla-so101-left-arm-task3 --local-dir xvla-so101-left-arm-task3
git apply xvla-so101-left-arm-task3/so101/xvla_so101_upstream.patch
cp xvla-so101-left-arm-task3/so101/so101.py datasets/domain_handler/
cp xvla-so101-left-arm-task3/so101/eval_so101_open_loop.py .
python eval_so101_open_loop.py --model xvla-so101-left-arm-task3 --data-root <so101-left-arm-task3 v2.1 root> \
--traj-ids 0 25 51 80 108 133 --steps 400 --eval-horizon 16 --norm-std 29.97
from models.modeling_xvla import XVLA
from models.processing_xvla import XVLAProcessor
model = XVLA.from_pretrained("xvla-so101-left-arm-task3").cuda().eval()
processor = XVLAProcessor.from_pretrained("xvla-so101-left-arm-task3")
# images: [top, wrist, zeros] resized to 224x224 bicubic, ImageNet-normalized, image_mask all True;
# proprio: previous action min-max normalized to [-1, 1], zero-padded to 20; domain_id 19.
chunk = model.generate_actions(input_ids, image_input, image_mask, domain_id, proprio, steps=10) # [1, 30, 6]
# joints 0-4: add the normalized proprio back; then (x + 1) / 2 * (max - min) + min with meta/stats.json.
VLA-RT serves X-VLA as TensorRT engines (experimental_models/xvla/scripts/export_xvla.py), see
VLA-RT.
Files
model.safetensors (3.5 GB, fp32), config.json (action_mode auto, real_action_dim 6, DaViT checkpointing on),
tokenizer and preprocessor files, state.json (global step 24000), so101/ (handler, upstream patch, config copy,
launcher, evaluation scripts).
License
Apache-2.0, as the base model 2toINF/X-VLA-Pt and the X-VLA repository.
- Downloads last month
- 30