Views
No views yet
norm_stats.json. pass norm_tag="so100_so101_molmoact2" at inference time.pip install torch transformers pillow numpy huggingface_hubBeegbrain/pick_lemon_and_drop_in_bowl, episode 0, frame 0. Camera order for this checkpoint does not matter. random camera order is acceptable.| Realsense Top RGB | Realsense Side RGB |
|---|---|
![]() | ![]() |
1from huggingface_hub import hf_hub_download
2from PIL import Image
3import numpy as np
4
5repo_id = "allenai/MolmoAct2-SO100_101"
6
7top_rgb = Image.open(
8 hf_hub_download(repo_id, "assets/sample_realsense_top_rgb.png")
9).convert("RGB")
10side_rgb = Image.open(
11 hf_hub_download(repo_id, "assets/sample_realsense_side_rgb.png")
12).convert("RGB")
13
14task = "Move the arm towards the lemon, grasp it, lift it up, and drop it into the red bowl."
15robot_state = np.array(
16 [
17 -0.52734375,
18 189.140625,
19 181.40625,
20 60.64453125,
21 -3.603515625,
22 1.0971786975860596,
23 ],
24 dtype=np.float32,
25)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-SO100_101"
8
9top_rgb = Image.open(
10 hf_hub_download(repo_id, "assets/sample_realsense_top_rgb.png")
11).convert("RGB")
12side_rgb = Image.open(
13 hf_hub_download(repo_id, "assets/sample_realsense_side_rgb.png")
14).convert("RGB")
15task = "Move the arm towards the lemon, grasp it, lift it up, and drop it into the red bowl."
16robot_state = np.array(
17 [
18 -0.52734375,
19 189.140625,
20 181.40625,
21 60.64453125,
22 -3.603515625,
23 1.0971786975860596,
24 ],
25 dtype=np.float32,
26)
27
28processor = AutoProcessor.from_pretrained(repo_id, trust_remote_code=True)
29model = AutoModelForImageTextToText.from_pretrained(
30 repo_id,
31 trust_remote_code=True,
32 dtype=torch.float32,
33).to("cuda").eval()
34
35out = model.predict_action(
36 processor=processor,
37 images=[top_rgb, side_rgb],
38 task=task,
39 state=robot_state,
40 norm_tag="so100_so101_molmoact2",
41 inference_action_mode="continuous",
42 enable_depth_reasoning=False,
43 num_steps=10,
44 normalize_language=True,
45 enable_cuda_graph=True,
46)
47
48actions = 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.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=[top_rgb, side_rgb],
9 task=task,
10 state=robot_state,
11 norm_tag="so100_so101_molmoact2",
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}