AI model
CrossFormer
By Robotic AI & Learning Lab Berkeley, from github.com/rail-berkeley/crossformer (opens in a new tab)
- Humanoids and robot learning
- MIT (code)
- MIT (weights)
CrossFormer is a transformer-based robot policy trained on about 900K trajectories across 20 robot embodiments, for controlling many different robot types from one model.
- Stale. No commit in 12 months: the newest is from 26 Aug 2024.
Facts
- Code last updated
- 26 Aug 2024Newest commit on main
- Maintenance
- Staleno commit in 12 months
- Difficulty
- Advanced
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- MIT (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 4a56b64 (opens in a new tab), on 16 Oct 2026.
- Weights
- MIT (opens in a new tab)
Read on huggingface.co/rail-berkeley/crossformer (opens in a new tab).
- Commercial use
- Yes
At a glance
- What it is
- Controls single and dual arm manipulators, wheeled robots, quadcopters, and quadrupeds with one pretrained policy.
- Can be instructed through language commands or goal images.
- Uses a modular attention structure so it can be finetuned to new sensors, action spaces, and morphologies with a small dataset.
- Pretrained checkpoint is a 130M parameter model, available on Hugging Face and loadable from Python.
- Includes scripts for pretraining, finetuning on RLDS-format datasets, and serving the model to remote robots.
- Built on the Octo codebase.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses this model yet.
- Licence
- MIT (code); MIT (weights). Commercial use: Yes. Where it was read
- Load it
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Stale, last commit on 26 Aug 2024.
Use it
How to load it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/rail-berkeley/crossformer (opens in a new tab)
- The version Robotheca read4a56b64 (opens in a new tab)
- Latest releaseNone published on GitHub
- Model card on Hugging Facehuggingface.co/rail-berkeley/crossformer (opens in a new tab)
Robotheca never hosts the code or the weights: each link goes to the creator's own page.
The README and the model card
The creator's own README, copied as written: README.md by Robotic AI & Learning Lab Berkeley, at commit 4a56b64, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
Scaling Cross-Embodied Learning: One Policy for Manipulation, Navigation, Locomotion and Aviation
(opens in a new tab) Image: Open In Colab (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
Ria Doshi (opens in a new tab), Homer Walke (opens in a new tab), Oier Mees (opens in a new tab), Sudeep Dasari (opens in a new tab), Sergey Levine (opens in a new tab)
This repo contains code for training and finetuning CrossFormer. CrossFormer is a transformer-based robot policy trained on 900K robot trajectories across 20 different robot embodiments. Our codebase is built on the Octo codebase (opens in a new tab).

Get Started
Follow the installation instructions, then load the pre-trained CrossFormer model! See our colab notebook (opens in a new tab) for an inference example.
from crossformer.model.crossformer_model import CrossFormerModel
model = CrossFormerModel.load_pretrained("hf://rail-berkeley/crossformer")
print(model.get_pretty_spec())
Out of the box, CrossFormer can control single and dual arm manipulation systems, wheeled robots, quadcopters, and quadrupeds, and can be instructed via language commands or goal images. CrossFormer uses a modular attention structure in its transformer backbone, allowing it to be effectively finetuned to robot setups with new sensory inputs, action spaces, and morphologies, using only a small target domain dataset and accessible compute budgets.
Installation
conda create -n crossformer python=3.10
conda activate crossformer
pip install -e .
pip install -r requirements.txt
For GPU:
pip install --upgrade "jax[cuda11_pip]==0.4.20" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
For TPU
pip install --upgrade "jax[tpu]==0.4.20" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
See the Jax Github page (opens in a new tab) for more details on installing Jax.
Checkpoint
You can find the pre-trained CrossFormer 130M parameter checkpoint here (opens in a new tab).
CrossFormer Evaluation
See scripts/server.py (opens in a new tab) for an example of how to host the CrossFormer model on a server for remote inference. Remote inference is useful for evaluating on robots that cannot be directly connected to a powerful GPU.
CrossFormer Pre-training
To reproduce CrossFormer pre-training, edit scripts/configs/pretrain_config.py (opens in a new tab) to point to your data and log directory. Then, run:
python scripts/train.py --config scripts/configs/pretrain_config.py
To download the pre-training datasets from the Open X-Embodiment Dataset (opens in a new tab), install the rlds_dataset_mod package (opens in a new tab) and run the prepare_open_x.sh script (opens in a new tab).
Pre-training takes 47 hours on a TPUv5-256 pod.
CrossFormer Finetuning
To run finetuning on your own dataset, convert your dataset to the RLDS format using this repository (opens in a new tab). Then, edit scripts/configs/finetune_config.py (opens in a new tab), and run:
python scripts/finetune.py --config scripts/configs/finetune_config.py
There are a few options for finetuning CrossFormer. If your dataset has an observation space and action space that was used during pre-training, you can finetune from entirely pre-trained weights, using the existing observation tokenizers, action heads, and transformer backbone. Otherwise, you can initialize new observation tokenizers and/or action heads while keeping the pre-trained transformer backbone. Additionally, you may choose to finetune the entire model or freeze the transformer and finetune only the action head. Finally, you can choose to finetune on your data with goal image conditioning, language conditioning, or both.
See the comments in scripts/configs/finetune_config.py (opens in a new tab) for an explanation of how to configure these fine-tuning options.
Citation
@article{doshi24-crossformer,
title={Scaling Cross-Embodied Learning: One Policy for Manipulation, Navigation, Locomotion and Aviation},
author={Ria Doshi and Homer Walke and Oier Mees and Sudeep Dasari and Sergey Levine},
journal={arXiv preprint arXiv:2408.11812},
year={2024}
}
Robotheca lists AI models as a reference: nothing is hosted or run here, and every fact links to where it was read.