Skip to content

AI model

Octo

By Robotic AI & Learning Lab Berkeley, United States (checked on github.com/octo-models/octo/blob/main/LICENSE (opens in a new tab)), from github.com/octo-models/octo (opens in a new tab)

  • Humanoids and robot learning
  • MIT (code)
  • MIT (weights)

Octo is a set of open generalist robot policies: transformer-based diffusion models trained on about 800k robot trajectories, for controlling various robot arms from images and language.

  • Stale. No commit in 12 months: the newest is from 31 Jul 2024.

Facts

Code last updated
31 Jul 2024Newest commit on main
Maintenance
Staleno commit in 12 months
Difficulty
Advanced
Hardware it needs, as the project states it
Inference speed is given for one NVIDIA 4090 GPU (Octo-Base 13 it/sec, Octo-Small 17 it/sec). Pretraining was run on a TPUv4-128 pod (8 hours for Octo-S, 14 hours for Octo-B). Installation is described for GPU (CUDA 11) and TPU setups.

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 241fb35 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Trained on a diverse mix of 800k robot trajectories and built as transformer-based diffusion policies.
  • Accepts multiple RGB camera inputs and can be instructed with language commands or goal images.
  • Can be finetuned to new sensors, action spaces and robot morphologies using a small dataset and modest compute.
  • Pretrained checkpoints Octo-Base (93M params) and Octo-Small (27M params) are available on Hugging Face.
  • Includes example scripts for inference, finetuning, Gym rollouts, and evaluation on a real WidowX robot.
  • Provides code to reproduce pretraining on the Open X-Embodiment data and an Open X dataloader in PyTorch.

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 website (opens in a new tab)
Maintenance
Stale, last commit on 31 Jul 2024.

Use it

How to load it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 241fb35

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 241fb35, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Octo

Image: Open In Colab (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)

This repo contains code for training and finetuning Octo generalist robotic policies (GRPs). Octo models are transformer-based diffusion policies, trained on a diverse mix of 800k robot trajectories.

Get Started

Follow the installation instructions, then load a pretrained Octo model! See examples (opens in a new tab) for guides to zero-shot evaluation and finetuning and Image: Open In Colab (opens in a new tab) (opens in a new tab) for an inference example.

from octo.model.octo_model import OctoModel
model = OctoModel.load_pretrained("hf://rail-berkeley/octo-base-1.5")
print(model.get_pretty_spec())

Octo model

Out of the box, Octo supports multiple RGB camera inputs, can control various robot arms, and can be instructed via language commands or goal images. Octo 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 octo python=3.10
conda activate octo
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.

Test the installation by finetuning on the debug dataset:

python scripts/finetune.py --config.pretrained_path=hf://rail-berkeley/octo-small-1.5 --debug
Checkpoints

You can find pretrained Octo checkpoints here (opens in a new tab). At the moment we provide the following model versions:

ModelInference on 1x NVIDIA 4090Size
Octo-Base (opens in a new tab)13 it/sec93M Params
Octo-Small (opens in a new tab)17 it/sec27M Params
Examples

We provide simple example scripts (opens in a new tab) that demonstrate how to use and finetune Octo models, as well as how to use our data loader independently. We provide the following examples:

Octo Inference (opens in a new tab)Minimal example for loading and running a pretrained Octo model
Octo Finetuning (opens in a new tab)Minimal example for finetuning a pretrained Octo models on a small dataset with a new observation and action space
Octo Rollout (opens in a new tab)Run a rollout of a pretrained Octo policy in a Gym environment
Octo Robot Eval (opens in a new tab)Evaluate a pretrained Octo model on a real WidowX robot
OpenX Dataloader Intro (opens in a new tab)Walkthrough of the features of our Open X-Embodiment data loader
OpenX PyTorch Dataloader (opens in a new tab)Standalone Open X-Embodiment data loader in PyTorch
Octo Pretraining

To reproduce our Octo pretraining on 800k robot trajectories, run:

python scripts/train.py --config scripts/configs/octo_pretrain_config.py:<size> --name=octo --config.dataset_kwargs.oxe_kwargs.data_dir=... --config.dataset_kwargs.oxe_kwargs.data_mix=oxe_magic_soup ...

To download the pretraining dataset 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). The total size of the pre-processed dataset is ~1.2TB.

We run pretraining using a TPUv4-128 pod in 8 hours for the Octo-S model and in 14 hours for Octo-B.

Octo Finetuning

We provide a minimal example (opens in a new tab) for finetuning with a new observation and action space.

We also provide a more advanced finetuning script that allows you to change hyperparameters via a config file and logs finetuning metrics. To run advanced finetuning, use:

python scripts/finetune.py --config.pretrained_path=hf://rail-berkeley/octo-small-1.5

We offer three finetuning modes depending on the parts of the model that are kept frozen: head_only, head_mlp_only, and full to finetune the full model. Additionally, one can specify the task type to finetune with: image_conditioned, language_conditioned or multimodal for both. For example, to finetune the full transformer with image inputs only use: --config=finetune_config.py:full,image_conditioned.

Octo Evaluation

Loading and running a trained Octo model is as easy as:

from octo.model import OctoModel

model = OctoModel.load_pretrained("hf://rail-berkeley/octo-small-1.5")
task = model.create_tasks(texts=["pick up the spoon"])
action = model.sample_actions(observation, task, rng=jax.random.PRNGKey(0))

We provide examples for evaluating Octo in a simulated Gym environment (opens in a new tab) as well as on a real WidowX robot (opens in a new tab).

To evaluate on your own environment, simply wrap it in a Gym interface and follow the instructions in the Eval Env README (opens in a new tab).

Code Structure
FileDescription
Hyperparametersconfig.py (opens in a new tab)Defines all hyperparameters for the training run.
Pretraining Looptrain.py (opens in a new tab)Main pretraining script.
Finetuning Loopfinetune.py (opens in a new tab)Main finetuning script.
Datasetsdataset.py (opens in a new tab)Functions for creating single / interleaved datasets + data augmentation.
Tokenizerstokenizers.py (opens in a new tab)Tokenizers that encode image / text inputs into tokens.
Octo Modelocto_model.py (opens in a new tab)Main entry point for interacting with Octo models: loading, saving, and inference.
Model Architectureocto_module.py (opens in a new tab)Combines token sequencing, transformer backbone and readout heads.
Visualizationvisualization_lib.py (opens in a new tab)Utilities for offline qualitative & quantitative eval.
FAQ
What is the timestep_pad_mask in the observation dictionary?

The timestep_pad_mask indicates which observations should be attended to, which is important when using multiple timesteps of observation history. Octo was trained with a history window size of 2, meaning the model can predict an action using both the current observation and the previous observation. However, at the very beginning of the trajectory, there is no previous observation, so we need to set timestep_pad_mask=False at the corresponding index. If you use Octo with a window size of 1, timestep_pad_mask should always just be [True], indicating that the one and only observation in the window should be attended to. Note that if you wrap your robot environment with the HistoryWrapper (see gym_wrappers.py (opens in a new tab)), the timestep_pad_mask key will be added to the observation dictionary for you.

What is pad_mask_dict in the observation dictionary?

While timestep_pad_mask indicates which observations should be attended to on a timestep level, pad_mask_dict indicates which elements of the observation should be attended to within a single timestep. For example, for datasets without language labels, pad_mask_dict["language_instruction"] is set to False. For datasets without a wrist camera, pad_mask_dict["image_wrist"] is set to False. For convenience, if a key is missing from the observation dict, it is equivalent to setting pad_mask_dict to False for that key.

Does model.sample_actions([...]) return the full trajectory to solve a task?

Octo was pretrained with an action chunking size of 4, meaning it predicts the next 4 actions at once. You can choose to execute all these actions before sampling new ones, or only execute the first action before sampling new ones (also known as receding horizon control). You can also do something more advanced like temporal ensembling (opens in a new tab).

Updates for Version 1.5
  • Improved cross-attention between visual and language tokens by repeating language tokens at every timestep in the context window.
  • Augmented the language instructions in the data with rephrasings from GPT-3.5.
  • Bug fixes:
    • Turned off dropout in the diffusion head due to incompatibility with layer norm.
    • Fixed an off-by-one error with the attention mask.
    • Fixed an issue where different image augmentations did not get fresh random seeds.
Citation
@inproceedings{octo_2023,
    title={Octo: An Open-Source Generalist Robot Policy},
    author = {{Octo Model Team} and Dibya Ghosh and Homer Walke and Karl Pertsch and Kevin Black and Oier Mees and Sudeep Dasari and Joey Hejna and Charles Xu and Jianlan Luo and Tobias Kreiman and {You Liang} Tan and Pannag Sanketi and Quan Vuong and Ted Xiao and Dorsa Sadigh and Chelsea Finn and Sergey Levine},
    booktitle = {Proceedings of Robotics: Science and Systems},
    address  = {Delft, Netherlands},
    year = {2024},
}

Read the model card on Hugging Face (opens in a new tab)

Robotheca lists AI models as a reference: nothing is hosted or run here, and every fact links to where it was read.