Instructions to use Efficient-Large-Model/SANA-Robot-AR-Pretrain-LeRobot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use Efficient-Large-Model/SANA-Robot-AR-Pretrain-LeRobot 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
- Sana
How to use Efficient-Large-Model/SANA-Robot-AR-Pretrain-LeRobot with Sana:
# Load the model and infer image from text import torch from app.sana_pipeline import SanaPipeline from torchvision.utils import save_image sana = SanaPipeline("configs/sana_config/1024ms/Sana_1600M_img1024.yaml") sana.from_pretrained("hf://Efficient-Large-Model/SANA-Robot-AR-Pretrain-LeRobot") image = sana( prompt='a cyberpunk cat with a neon sign that says "Sana"', height=1024, width=1024, guidance_scale=5.0, pag_guidance_scale=2.0, num_inference_steps=18, ) - Notebooks
- Google Colab
- Kaggle
SANA-Robot-AR Pretrain (LeRobot format)
SANA-Robot-AR-Pretrain in the
LeRobot format, for the sana_robot policy. The weights are those of
the original repository, unchanged; see its model card for the model and the pretraining data.
This is the pretrained model, the start of a fine-tune: it holds weights only. Its config.json has the
defaults of the sana_robot policy for the cameras and the robot slots, and its processors have no normalization
statistics: lerobot-train computes the normalization from your dataset. To reproduce a released checkpoint,
train with the normalization that checkpoint was released with instead, see
SANA-Robot-AR-LIBERO-LeRobot.
Project page · Paper · Code
Files
| File | Content |
|---|---|
config.json |
the sana_robot policy config, with the policy's defaults |
model.safetensors |
policy weights, FP32 |
policy_preprocessor*, policy_postprocessor* |
the processors, without statistics |
The text encoder (Gemma 2 2B, gated) and the video VAE (LTX-2.3 VAE) are not included; LeRobot downloads them at the revisions the config names.
Usage
The sana_robot policy is proposed in huggingface/lerobot#5488.
A full fine-tune shards the 4.5B weights over the GPUs of a node:
torchrun --nproc-per-node=8 $(which lerobot-train) \
--policy.path=Efficient-Large-Model/SANA-Robot-AR-Pretrain-LeRobot \
--policy.dtype=float32 --accelerator.mixed_precision=bf16 \
--parallelism.dp_shard=8 \
--dataset.repo_id=${HF_USER}/my_dataset \
--batch_size=2 --steps=20000 --ema.type=constant
The original trainer, with its fused kernels and its packing of episodes, is in the SANA-Robot code.
Citation
@article{zhao2026sanarobot,
title={SANA-Robot: Efficient World Action Model with Hybrid Memory},
author={Zhao, Yuyang and Li, Zekai and Pan, Yicheng and Tang, Jiaming and Zhang, Zhuoyang and Xing, Jiaxu and Reuss, Moritz and Peng, Quanquan and Chen, Junsong and Xie, Enze and Liu, Zhijian and Han, Song},
year={2026}
}
- Downloads last month
- -
Model tree for Efficient-Large-Model/SANA-Robot-AR-Pretrain-LeRobot
Base model
Efficient-Large-Model/SANA-Robot-AR-Pretrain