Views
No views yet
norm_stats.json. pass norm_tag="libero" at inference time.pip install torch transformers pillow numpy huggingface_hublibero_10, episode 0, frame 0. The LIBERO camera order is front/agent view followed by wrist view.| Agentview RGB | Wrist RGB |
|---|---|
![]() | ![]() |
1from huggingface_hub import hf_hub_download
2from PIL import Image
3import numpy as np
4
5repo_id = "allenai/MolmoAct2-LIBERO"
6
7agentview_rgb = Image.open(
8 hf_hub_download(repo_id, "assets/sample_agentview_rgb.png")
9).convert("RGB")
10wrist_rgb = Image.open(
11 hf_hub_download(repo_id, "assets/sample_wrist_rgb.png")
12).convert("RGB")
13
14task = "put the white mug on the left plate and put the yellow and white mug on the right plate"
15robot_state = np.array(
16 [
17 -0.05338004603981972,
18 0.007029631175100803,
19 0.6783280968666077,
20 3.1407692432403564,
21 0.0017593271331861615,
22 -0.08994418382644653,
23 0.03878866136074066,
24 -0.03878721222281456,
25 ],
26 dtype=np.float32,
27)1import numpy as np
2import torch
3from huggingface_hub import hf_hub_download
4from PIL import Image
5from transformers import AutoModelForImageTextToText, AutoProcessor
6
7repo_id = "allenai/MolmoAct2-LIBERO"
8
9agentview_rgb = Image.open(
10 hf_hub_download(repo_id, "assets/sample_agentview_rgb.png")
11).convert("RGB")
12wrist_rgb = Image.open(
13 hf_hub_download(repo_id, "assets/sample_wrist_rgb.png")
14).convert("RGB")
15task = "put the white mug on the left plate and put the yellow and white mug on the right plate"
16robot_state = np.array(
17 [
18 -0.05338004603981972,
19 0.007029631175100803,
20 0.6783280968666077,
21 3.1407692432403564,
22 0.0017593271331861615,
23 -0.08994418382644653,
24 0.03878866136074066,
25 -0.03878721222281456,
26 ],
27 dtype=np.float32,
28)
29
30processor = AutoProcessor.from_pretrained(repo_id, trust_remote_code=True)
31model = AutoModelForImageTextToText.from_pretrained(
32 repo_id,
33 trust_remote_code=True,
34 dtype=torch.float32,
35).to("cuda").eval()
36
37out = model.predict_action(
38 processor=processor,
39 images=[agentview_rgb, wrist_rgb],
40 task=task,
41 state=robot_state,
42 norm_tag="libero",
43 inference_action_mode="continuous",
44 enable_depth_reasoning=False,
45 num_steps=10,
46 normalize_language=True,
47 enable_cuda_graph=True,
48)
49
50actions = out.actionsfloat32. This path uses the most GPU memory: roughly 26GB with CUDA graph enabled, or around 24GB without CUDA graph.bfloat16 instead:1model = AutoModelForImageTextToText.from_pretrained(
2 repo_id,
3 trust_remote_code=True,
4 dtype=torch.bfloat16,
5).to("cuda").eval()
6
7with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16):
8 out = model.predict_action(...)bfloat16 is much more memory efficient and can run under 16GB of GPU memory in our tests. It usually does not hurt performance much.images should preserve camera order, for example [agentview_rgb, wrist_rgb]. Images may be PIL images or RGB arrays. state is the raw robot state, and actions are returned in robot scale.normalize_language=True is the default. It lowercases the task string and removes trailing sentence punctuation to match training preprocessing. Set it to False if you need to preserve the task text exactly.enable_cuda_graph=True is the default. The first few calls can be slow because the model warms up and captures CUDA graphs. run several random warm-up calls before measuring deployment latency. num_steps controls the continuous flow solver and defaults to the checkpoint config value, 10.enable_depth_reasoning=True will raise an error.1action_tokenizer = AutoProcessor.from_pretrained(
2 "allenai/MolmoAct2-FAST-Tokenizer",
3 trust_remote_code=True,
4)
5
6out = model.predict_action(
7 processor=processor,
8 images=[agentview_rgb, wrist_rgb],
9 task=task,
10 state=robot_state,
11 norm_tag="libero",
12 inference_action_mode="discrete",
13 action_tokenizer=action_tokenizer,
14 enable_depth_reasoning=False,
15)1@misc{fang2026molmoact2actionreasoningmodels,
2 title={MolmoAct2: Action Reasoning Models for Real-world Deployment},
3 author={Haoquan Fang and Jiafei Duan and Donovan Clay and Sam Wang and Shuo Liu and Weikai Huang and Xiang Fan and Wei-Chuan Tsai and Shirui Chen and Yi Ru Wang and Shanli Xing and Jaemin Cho and Jae Sung Park and Ainaz Eftekhar and Peter Sushko and Karen Farley and Angad Wadhwa and Cole Harrison and Winson Han and Ying-Chun Lee and Eli VanderBilt and Rose Hendrix and Suveen Ellawela and Lucas Ngoo and Joyce Chai and Zhongzheng Ren and Ali Farhadi and Dieter Fox and Ranjay Krishna},
4 year={2026},
5 eprint={2605.02881},
6 archivePrefix={arXiv},
7 primaryClass={cs.RO},
8 url={https://arxiv.org/abs/2605.02881},
9}