Image-Text-to-Text
Transformers
Safetensors
qwen3_vl
robotics
reward-model
video-language-model
reasoning
reinforcement-learning
qwen3-vl
bf16
conversational
Instructions to use Philip-MIT/SOLE-R1-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Philip-MIT/SOLE-R1-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Philip-MIT/SOLE-R1-8B") 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)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("Philip-MIT/SOLE-R1-8B") model = AutoModelForImageTextToText.from_pretrained("Philip-MIT/SOLE-R1-8B") 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Philip-MIT/SOLE-R1-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Philip-MIT/SOLE-R1-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Philip-MIT/SOLE-R1-8B", "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/Philip-MIT/SOLE-R1-8B
- SGLang
How to use Philip-MIT/SOLE-R1-8B 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 "Philip-MIT/SOLE-R1-8B" \ --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": "Philip-MIT/SOLE-R1-8B", "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 "Philip-MIT/SOLE-R1-8B" \ --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": "Philip-MIT/SOLE-R1-8B", "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 Philip-MIT/SOLE-R1-8B with Docker Model Runner:
docker model run hf.co/Philip-MIT/SOLE-R1-8B
Create README.md
Browse files
README.md
CHANGED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: transformers
|
| 4 |
+
tags:
|
| 5 |
+
- robotics
|
| 6 |
+
- reward-model
|
| 7 |
+
- video-language-model
|
| 8 |
+
- reasoning
|
| 9 |
+
- reinforcement-learning
|
| 10 |
+
- qwen3-vl
|
| 11 |
+
- bf16
|
| 12 |
+
pipeline_tag: image-text-to-text
|
| 13 |
+
datasets:
|
| 14 |
+
- Philip-MIT/sole_training_data
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# SOLE-R1-8B
|
| 18 |
+
|
| 19 |
+
SOLE-R1-8B is a video-language reward reasoning model for robotics. It is designed to estimate task progress from robot video frames and a natural-language task description, producing both per-timestep reasoning traces and scalar progress predictions that can be used as rewards for online robot reinforcement learning.
|
| 20 |
+
|
| 21 |
+
This model accompanies the paper **“SOLE-R1: Video-Language Reasoning as the Sole Reward for On-Robot RL”** by Philip Schroeder, Thomas Weng, Karl Schmeckpeper, Eric Rosen, Stephen Hart, and Ondrej Biza.
|
| 22 |
+
|
| 23 |
+
- Paper: https://arxiv.org/abs/2603.28730
|
| 24 |
+
- Project page: https://philip-mit.github.io/sole-r1/
|
| 25 |
+
- Code: https://github.com/Philip-MIT/sole-r1-model
|
| 26 |
+
- Training data: https://huggingface.co/datasets/Philip-MIT/sole_training_data
|
| 27 |
+
|
| 28 |
+
## Model Description
|
| 29 |
+
|
| 30 |
+
SOLE-R1 predicts robot task progress from visual observations. Given an image or video-frame montage containing the first, previous, and current timestep views, plus a task description and prior progress value, the model outputs a reasoning trace and a scalar progress estimate.
|
| 31 |
+
|
| 32 |
+
Expected output format:
|
| 33 |
+
|
| 34 |
+
<think>reasoning about task progress</think><answer>progress%</answer>
|
| 35 |
+
|
| 36 |
+
The progress estimate is intended to serve as a dense reward signal for robotic reinforcement learning, especially when manually engineered rewards are unavailable.
|
| 37 |
+
|
| 38 |
+
## Intended Use
|
| 39 |
+
|
| 40 |
+
SOLE-R1-8B is intended for:
|
| 41 |
+
|
| 42 |
+
- Robotics reward prediction
|
| 43 |
+
- Online robot RL reward generation
|
| 44 |
+
- Evaluating task progress from robot videos
|
| 45 |
+
- Interpretable video-language reasoning for manipulation tasks
|
| 46 |
+
- Research on learned reward models and robotic foundation models
|
| 47 |
+
|
| 48 |
+
It is not intended as a general-purpose safety-critical robotics controller. The model should be validated in the target environment before use in closed-loop robotic systems.
|
| 49 |
+
|
| 50 |
+
## Quick Start
|
| 51 |
+
|
| 52 |
+
The recommended interface for inference is [RoboReason](https://github.com/Philip-MIT/roboreason):
|
| 53 |
+
|
| 54 |
+
# pip install -U roboreason
|
| 55 |
+
|
| 56 |
+
import roboreason as rr
|
| 57 |
+
|
| 58 |
+
video_paths = [
|
| 59 |
+
"test_videos/robosuite/lift/unsuccessful/robosuite_lift_episode_12_unsuccessful_max_reward_38.mp4"
|
| 60 |
+
]
|
| 61 |
+
|
| 62 |
+
task_description = "Pick up the cube from the table."
|
| 63 |
+
|
| 64 |
+
rewards, reasoning_traces = rr.generate(
|
| 65 |
+
model="SOLE-R1",
|
| 66 |
+
task_description=task_description,
|
| 67 |
+
video_paths=video_paths,
|
| 68 |
+
view_type_per_video=["external and wrist"],
|
| 69 |
+
verbose=False,
|
| 70 |
+
)
|
| 71 |
+
|
| 72 |
+
print(rewards)
|
| 73 |
+
print(reasoning_traces)
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
Optional pre-download:
|
| 78 |
+
|
| 79 |
+
from roboreason.utils.model_utils import get_model_dir
|
| 80 |
+
|
| 81 |
+
get_model_dir("sole-r1")
|
| 82 |
+
|
| 83 |
+
## Input Format
|
| 84 |
+
|
| 85 |
+
The model is trained to reason over robot task progress using prompts that include:
|
| 86 |
+
|
| 87 |
+
- A robot task description
|
| 88 |
+
- The first timestep progress, typically `0%`
|
| 89 |
+
- The previous timestep progress
|
| 90 |
+
- Visual observations from the first, previous, and current timesteps
|
| 91 |
+
- Multiple camera views when available, such as external and wrist cameras
|
| 92 |
+
|
| 93 |
+
Example task description:
|
| 94 |
+
|
| 95 |
+
Pick up the cube from the table.
|
| 96 |
+
|
| 97 |
+
## Output Format
|
| 98 |
+
|
| 99 |
+
The expected output format is:
|
| 100 |
+
|
| 101 |
+
<think>[reasoning about visual task progress]</think><answer>[current task progress]%</answer>
|
| 102 |
+
|
| 103 |
+
Example:
|
| 104 |
+
|
| 105 |
+
<think>The gripper has moved closer to the cube but has not yet grasped or lifted it. This indicates incremental progress from the previous timestep.</think><answer>22%</answer>
|
| 106 |
+
|
| 107 |
+
Downstream systems should parse the numeric value inside `<answer>...</answer>` as the reward/progress estimate.
|
| 108 |
+
|
| 109 |
+
## Training Data
|
| 110 |
+
|
| 111 |
+
The model was trained on the [SOLE-R1-8B](https://huggingface.co/Philip-MIT/SOLE-R1-8B) training dataset.
|
| 112 |
+
|
| 113 |
+
The dataset contains robot task progress examples with images, prompts, reasoning completions, and progress labels. The full dataset is approximately 2TB.
|
| 114 |
+
|
| 115 |
+
Streaming example:
|
| 116 |
+
|
| 117 |
+
from datasets import load_dataset
|
| 118 |
+
|
| 119 |
+
ds = load_dataset(
|
| 120 |
+
"Philip-MIT/sole_training_data",
|
| 121 |
+
split="train",
|
| 122 |
+
streaming=True,
|
| 123 |
+
)
|
| 124 |
+
|
| 125 |
+
for row in ds:
|
| 126 |
+
print(row)
|
| 127 |
+
break
|
| 128 |
+
|
| 129 |
+
## Citation
|
| 130 |
+
|
| 131 |
+
BibTeX:
|
| 132 |
+
|
| 133 |
+
@misc{schroeder2026soler1,
|
| 134 |
+
title={SOLE-R1: Video-Language Reasoning as the Sole Reward for On-Robot RL},
|
| 135 |
+
author={Philip Schroeder and Thomas Weng and Karl Schmeckpeper and Eric Rosen and Stephen Hart and Ondrej Biza},
|
| 136 |
+
year={2026},
|
| 137 |
+
eprint={2603.28730},
|
| 138 |
+
archivePrefix={arXiv},
|
| 139 |
+
primaryClass={cs.RO}
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
## License
|
| 143 |
+
|
| 144 |
+
This repository is released under the MIT License.
|
| 145 |
+
|