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.

RoMA-27B

arXiv Hugging Face Paper Project Page Code Base Model

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.

Overview of RoMA: a VLM coding agent synthesizes 5,000 verifiable SAPIEN environments, and RoMA-27B, post-trained inside them with SFT and GRPO RL, transfers zero-shot to LIBERO-Pro (MuJoCo), RoboLab-120 (Isaac Sim) and a real PiPER + Pika arm

Tight-clearance insertion Upright stacking Two-stage nesting
Lower clear tape roll concentrically over upright Coca-Cola can Stack Sprite can upright on top of white can Place clear tape roll into blue bowl, then tennis ball inside the tape roll
"Put the clear tape roll over the Coca-Cola can, so that the can stands inside the hole of the tape roll." "Stack the Sprite can on top of the white can." "Put the clear tape roll into the blue bowl, then put the tennis ball into the hole of the tape roll."

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:

  1. the task instruction;
  2. the current front and wrist RGB images (384 × 384), each with its calibration;
  3. the robot state: fingertip position, approach and finger axes, and gripper opening;
  4. 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-miss counterexamples() and a check() 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
Safetensors
Model size
27B params
Tensor type
BF16
·
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for h-siyuan/RoMA-27B

Base model

Qwen/Qwen3.8-27B
Finetuned
(1,157)
this model

Collection including h-siyuan/RoMA-27B

Paper for h-siyuan/RoMA-27B