Instructions to use ahad-j/nat-vla-450m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use ahad-j/nat-vla-450m 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
NAT VLA 450M
A 450M-parameter vision-language-action model that writes robot actions as NAT action tokens. Built on LFM2-VL-450M and pretrained on a large multi-robot mixture, it is meant to be fine-tuned on your own robot with LeRobot. It is part of the NAT collection.
Paper: NAT: Scaling Causal Neural Action Tokenizers Across Embodiments.
Quick start
Install LeRobot with the nat_vla policy:
pip install "lerobot[nat_vla,training] @ git+https://github.com/ahadjawaid/lerobot-1.git@nat-vla"
Fine-tune on a LeRobot dataset (--policy.type=nat_vla starts from these weights):
lerobot-train \
--policy.type=nat_vla \
--policy.setup="single so100 robotic arm" \
--policy.control_mode="absolute joint pose" \
--policy.repo_id=<your/model> \
--dataset.repo_id=<your/dataset> \
--batch_size=64 \
--steps=50000 \
--output_dir=outputs/nat_vla_finetune
Run the fine-tuned policy:
from lerobot.policies.factory import make_pre_post_processors
from lerobot.policies.nat_vla import NATVLAPolicy
checkpoint = "outputs/nat_vla_finetune/checkpoints/last/pretrained_model"
policy = NATVLAPolicy.from_pretrained(checkpoint).to("cuda")
preprocessor, postprocessor = make_pre_post_processors(policy.config, pretrained_path=checkpoint)
policy.reset()
action = postprocessor(policy.select_action(preprocessor(observation))) # observation: cameras, state and "task"
observation holds the dataset's camera images (observation.images.*, float in [0, 1]), its state
(observation.state) and the instruction (task).
How it works
- Inputs. Every camera image, at its native resolution through LFM2-VL's image processor, and a prompt: "The task is to {task}. The setup is {setup}. The current state of the robot is {state}. The expected control mode is {control mode}. Given these, what action should the robot take to complete the task?" The state is normalized to [-1, 1] by its 1st and 99th percentiles and written as one of 256 bins per value.
- Outputs. A 32-step action chunk as NAT tokens: 14 tokens per group of up to 7 action columns. Actions are
normalized to [-1, 1] by each column's min and max before tokenizing. The tokens are time-ordered, so for up to 7
columns the first 4, 7 or 11 tokens already decode the first 8, 16 or 24 steps: with
--policy.n_action_steps=8the policy generates only 4 tokens per chunk. - Training. Cross-entropy over the action tokens with a 1e-4 z-loss. The language model, vision encoder, projector and the added token rows are trained; LFM2-VL's original token embeddings stay frozen.
- Inference. Greedy decoding restricted to the action tokens, with a KV cache.
select_actionstreams each chunk: its tokens are generated in a background thread, and each group of 8 actions is returned as soon as its tokens are generated, so the robot starts moving after 4 tokens while the rest of the chunk is still being generated. The streamed actions are identical topredict_action_chunk's. Streaming applies to actions of up to 7 columns; wider actions arrive as a whole chunk. - Real-time chunking. With
--policy.rtc_steps=8, the next chunk is generated while the current chunk's last 8 actions run, and it starts with their tokens. The robot never waits for a new chunk and consecutive chunks join without a jump. Withlerobot-rollout --inference.type=rtcor a policy server servingrtc_guided, the chunk starts with the tokens of the actions that run during inference, rounded up to whole latents of 8 steps.
Configuration
| Option | Default | Meaning |
|---|---|---|
setup |
"" |
The robot setup named in the prompt |
control_mode |
"" |
The control mode named in the prompt |
n_action_steps |
32 |
Steps executed per prediction (8, 16 or 24 generate fewer tokens) |
dtype |
bfloat16 |
Precision of the vision-language model (the NAT tokenizer runs in float32) |
rtc_steps |
0 |
Actions of a chunk that run while the next chunk is generated, which then starts with their tokens (0: off) |
action_tokenizer |
ahad-j/nat-tokenizer-h32-l4-c6400 |
NAT tokenizer (Hub repository or local folder) a new policy (--policy.type) loads; --policy.path keeps the checkpoint's own |
optimizer_lr |
5e-5 |
Language model learning rate |
optimizer_vision_lr |
2.5e-5 |
Vision encoder and projector learning rate |
scheduler_warmup_steps |
200 |
Linear warmup, then cosine decay to scheduler_decay_lr (5e-6) |
Setups and control modes seen in pretraining include "single franka robotic arm in droid" / "absolute joint pose", "single so100/so101 robotic arm in molmoact2" / "absolute joint pose", "bimanual yam robotic arms in molmoact2" / "absolute joint pose", "single widowx robotic arm in bridge" / "delta end-effector pose" and "google robot in rt_1" / "delta end-effector pose". A new robot can use its own description.
The dataset's meta/stats.json needs q01 and q99 for observation.state and min and max for action.
Model
| Backbone | LFM2-VL-450M (SigLIP2 vision encoder, LFM2 language model) |
| Action tokenizer | NAT: 4 latents per chunk, 6,400 codes per scale, 25,600 action tokens |
| Chunk | 32 steps, up to 7 action columns per 14-token group |
| Parameters | 477M trained, plus the 63M frozen NAT tokenizer |
| Pretraining | 95,315 steps at batch 12 on a multi-robot mixture (DROID, Bridge, RT-1, BC-Z, Franka, bimanual YAM and SO-100/101 data) |
Citation
@misc{jawaid2026nat,
title={NAT: Scaling Causal Neural Action Tokenizers Across Embodiments},
author={Ahad Jawaid and Alexander Swerdlow and Yu Xiang},
year={2026},
eprint={2611.28873},
archivePrefix={arXiv},
primaryClass={cs.RO},
url={https://arxiv.org/abs/2611.28873}
}
License
The weights are a derivative of LFM2-VL-450M and are released under the LFM Open License v1.0.
- Downloads last month
- 81
Model tree for ahad-j/nat-vla-450m
Base model
LiquidAI/LFM2-VL-450M