Run this model with HF Jobs
Run h-siyuan/RoMA-27B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/h-siyuan/RoMA-27B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/h-siyuan/RoMA-27B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/h-siyuan/RoMA-27B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/h-siyuan/RoMA-27B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use h-siyuan/RoMA-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use h-siyuan/RoMA-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="h-siyuan/RoMA-27B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("h-siyuan/RoMA-27B") model = AutoModelForMultimodalLM.from_pretrained("h-siyuan/RoMA-27B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use h-siyuan/RoMA-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "h-siyuan/RoMA-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "h-siyuan/RoMA-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/h-siyuan/RoMA-27B
- SGLang
How to use h-siyuan/RoMA-27B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "h-siyuan/RoMA-27B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "h-siyuan/RoMA-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "h-siyuan/RoMA-27B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "h-siyuan/RoMA-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use h-siyuan/RoMA-27B with Docker Model Runner:
docker model run hf.co/h-siyuan/RoMA-27B
RoMA-27B
RoMA-27B is the robot policy of RoMA: VLM as Universal Robot Policy via Environment Scaling. Post-trained from Qwen3.8-27B, it controls a robot arm end to end in a closed loop. Each turn it reads the instruction, a front and a wrist RGB image with their camera calibration, and the robot state. It locates targets with its native 2D grounding and calibrated math, then replies with up to four primitive actions, with no external perception tools.
A VLM coding agent synthesizes the worlds RoMA-27B trains in: 5,000 executable SAPIEN environments for Franka and PiPER + Pika arms, each with an automatically verified check(). RoMA-27B is post-trained inside them with SFT and GRPO RL, using zero external robot data or human demonstrations.
The training environments contain no LIBERO or RoboLab tasks or scenes. RoMA-27B is evaluated zero-shot on unseen simulators (MuJoCo, Isaac Sim), an unseen gripper (Robotiq) and a real AgileX PiPER + Pika arm.
Results
RoMA-27B transfers zero-shot to unseen simulators, an unseen gripper and real hardware.
| Benchmark | Setting | Reference | RoMA-27B (zero-shot) |
|---|---|---|---|
| LIBERO-Pro (MuJoCo) | 3,000 rollouts (Spatial / Object / Goal) | — | 56.07% (70.8% Spatial) |
| RoboLab-120 (Isaac Sim) | 1,200 rollouts, unseen Robotiq gripper | 37.3% (PEAR-27B, RL in Isaac Sim) | 39.3% (53.0 Score, 22.9% Complex) |
| Real PiPER + Pika | 10 tasks × 3 trials, zero real-robot data | — | 23 / 30 |
| Inference latency | 2× H100 (TP=2, BS=1), 60 LIBERO-Pro tasks |
42.23 s/turn (PEAR-27B) | 4.75 s/turn (8.9× faster) |
Scaling the synthesized pool from 100 to 5,000 environments lifts zero-shot LIBERO-Pro success from 11.07% to 56.07%.
RoMA-27B keeps the general capabilities of Qwen3.8-27B.
| Benchmark | Capability | Qwen3.8-27B | RoMA-27B |
|---|---|---|---|
| MATH-500 | Competition mathematics | 98.0 | 98.6 |
| RealWorldQA | Real-world visual QA | 83.4 | 83.5 |
| MMMU (val) | College-level multimodal | 79.9 | 79.6 |
| MMMU-Pro (standard) | Hard 10-option multimodal | 76.3 | 75.4 |
| MMMU-Pro (vision) | Vision-only multimodal | 74.9 | 73.9 |
| IFBench | Instruction following | 73.3 | 71.3 |
| ERQA | Embodied reasoning | 65.0 | 62.8 |
Both models answer the same questions under evalscope 1.13.0 and BF16 vLLM thinking-mode sampling (T = 1.0, top-p 0.95, top-k 20). Every paired 95% bootstrap confidence interval straddles zero. Full tables are in the paper.
How RoMA-27B acts
The cameras are inputs. Every turn the prompt gives each camera's position, axes and intrinsics in the robot base frame, in centimetres. RoMA-27B grounds a target pixel (u, v) and places the point on its calibrated ray
p = C + λ R K−1 [u, v, 1]⊤
fixing λ with one physical constraint: the height of the support surface, the ray from the second camera, or the visible fingertips. A new camera, simulator or arm changes these numbers.
Each turn's prompt carries:
- the task instruction;
- the current front and wrist RGB images (384 × 384), each with its calibration;
- the robot state: fingertip position, approach and finger axes, and gripper opening;
- feedback from the previous turn: the outcome of each command, the cause of any failure, a compact log of earlier turns, and the notes RoMA-27B wrote last turn.
Each reply has three parts: the working for grounding and calibrated arithmetic inside <think>…</think>, NOTES: carried to the next turn, and COMMANDS: with one to four primitive actions executed in order. If a command fails, the rest of the turn is skipped and the cause comes back in the next prompt.
<working: target pixels, calibrated rays, heights and clearances>
</think>
NOTES:
<object coordinates and progress, carried to the next turn>
COMMANDS:
move +2.2 +0 -8.1
gripper close
move -1.1 +0 +4
| Command | Effect | Arguments |
|---|---|---|
move dx dy dz |
Translate the fingertip by (Δx, Δy, Δz) in the robot base frame | cm, 3 floats |
move <axis> ±d |
Translate the fingertip along one base axis (x, y or z) |
axis, cm |
rotate <axis> ±θ |
Rotate the wrist about yaw, pitch or roll |
axis, degrees |
point <preset> |
Set the gripper pitch to a preset (down, down15, down30, down45) |
preset name |
gripper open / gripper close |
Open or close the parallel-jaw gripper | binary state |
home |
Move the arm to its neutral home configuration | none |
wait |
Hold the current pose and observe again | none |
done |
Declare the task complete and end the episode | none |
Quickstart
RoMA-27B runs with vLLM. One 80 GB GPU holds the model; the latency in the table above uses two H100s with tensor parallelism 2.
pip install "vllm>=0.27.1"
vllm serve h-siyuan/RoMA-27B \
--tensor-parallel-size 2 \
--max-model-len 32768 \
--limit-mm-per-prompt '{"image": 6}'
Each turn is a single request: a system prompt that describes the robot, the base frame, the front camera's calibration, the command grammar and the reply format, then a user message with the turn's text and the two images. RoMA-27B runs in thinking mode with reasoning_effort set to medium and the default sampling in generation_config.json.
import base64
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
def jpeg(path):
data = base64.b64encode(open(path, "rb").read()).decode()
return {"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{data}"}}
system_prompt = ... # the robot, the base frame, the front camera's calibration, the command grammar and the reply format
# Turn 11 of a real PiPER + Pika run.
turn_text = """TASK: put the tennis ball on top of the can.
TURN 11 of 60.
RESULT OF YOUR LAST COMMANDS:
- cmd 1: OK (gripper open) - opened; opening 9.0 cm
- cmd 2: OK (wait)
- cmd 3: OK (move z +4)
CURRENT STATE:
gripper position (fingertip centre) = (39.7, -8.0, 19.5) cm, approach = (0.50, -0.00, -0.87), finger axis = (0.00, 1.00, -0.00), opening = 9.0 cm
WRIST CAMERA CALIBRATION (current pose): The camera is calibrated. Position: (38.7, -8.0, 32.8) cm. Axes as base-frame unit vectors: image right (+u) = (0.022, -1.000, -0.007), image down (+v) = (-0.882, -0.016, -0.472), viewing direction = (0.471, 0.016, -0.882). Intrinsics: focal length 346.7 px, principal point (192.0, 190.7); the image is 384x384 px, u to the right and v down from the top-left corner. The ray through pixel (u, v) has direction viewing + (u - 192.0)/346.7 * right + (v - 190.7)/346.7 * down.
YOUR NOTES FROM PREVIOUS TURNS (you wrote these; rewrite them under NOTES):
Hand (39.7,-8.0,15.6), ball held at opening5.0. Front ball bottom (224,197) over lid centre (220,193), gap~.5-1 cm. Release and settle; then verify ball stays on can and withdraw if needed.
HISTORY OF YOUR COMMANDS AND THEIR OUTCOMES:
...
turn 9: move z -2.5 -> ok | after: tip@(40, -8, 16) opening 5.0 cm
turn 10: gripper open -> ok; wait -> ok; move z +4 -> ok | after: tip@(40, -8, 20) opening 9.0 cm
"""
response = client.chat.completions.create(
model="h-siyuan/RoMA-27B",
messages=[
{"role": "system", "content": system_prompt},
{"role": "user", "content": [{"type": "text", "text": turn_text}, jpeg("front.jpg"), jpeg("wrist.jpg")]},
],
max_tokens=4096,
extra_body={"chat_template_kwargs": {"enable_thinking": True, "reasoning_effort": "medium"}},
)
reply = response.choices[0].message.content
notes = reply.split("NOTES:")[1].split("COMMANDS:")[0].strip()
commands = reply.split("COMMANDS:")[1].strip().splitlines()
The weights also load with Transformers (AutoModelForImageTextToText and AutoProcessor, version 5.16.1 or later).
Training
- Environments. A VLM coding agent writes 5,000 SAPIEN programs over 3,115 scanned objects and 105 articulated fixtures. Each program defines
build(),goal(), near-misscounterexamples()and acheck()graded on the goal, the start state and the near misses. - SFT. The coding agent acts through the policy's own interface, and
check()keeps 6,835 solved trajectories (median 8 turns), together with recovery forks that revise earlier coordinate estimates. SFT co-trains them with general multimodal and spatial QA data that Qwen3.8-27B generates itself. - RL. GRPO samples 16 closed-loop rollouts per task group in the synthesized environments and rewards each with the binary
check()verdict.
Citation
@misc{hu2026romavlmuniversalrobot,
title={RoMA: VLM as Universal Robot Policy via Environment Scaling},
author={Siyuan Hu and Haiwen Diao and Kairui Hu and Weichen Fan and Ziwei Liu},
year={2026},
eprint={2611.41797},
archivePrefix={arXiv},
primaryClass={cs.RO},
url={https://arxiv.org/abs/2611.41797},
}
License
RoMA-27B is released under the Apache-2.0 License, the license of its base model Qwen3.8-27B.
- Downloads last month
- 84
Model tree for h-siyuan/RoMA-27B
Base model
Qwen/Qwen3.8-27B

