Image-Text-to-Text
Transformers
Safetensors
qwen3_5
video
multimodal
robotics
embodied-ai
evaluation
qwen
conversational
Instructions to use HuggingFriends/RoboJudge-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuggingFriends/RoboJudge-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="HuggingFriends/RoboJudge-9B") 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("HuggingFriends/RoboJudge-9B") model = AutoModelForMultimodalLM.from_pretrained("HuggingFriends/RoboJudge-9B", 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 HuggingFriends/RoboJudge-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HuggingFriends/RoboJudge-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFriends/RoboJudge-9B", "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/HuggingFriends/RoboJudge-9B
- SGLang
How to use HuggingFriends/RoboJudge-9B 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 "HuggingFriends/RoboJudge-9B" \ --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": "HuggingFriends/RoboJudge-9B", "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 "HuggingFriends/RoboJudge-9B" \ --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": "HuggingFriends/RoboJudge-9B", "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 HuggingFriends/RoboJudge-9B with Docker Model Runner:
docker model run hf.co/HuggingFriends/RoboJudge-9B
Update README.md
Browse files
README.md
CHANGED
|
@@ -21,12 +21,8 @@ It scores two axes on a 1–5 scale:
|
|
| 21 |
- **Instruction Alignment (IA):** agent match, object correctness, and goal
|
| 22 |
completion.
|
| 23 |
|
| 24 |
-
The model is trained with full-parameter supervised fine-tuning followed by 200
|
| 25 |
-
steps of reinforcement learning. The release code, exact prompts, and evaluation
|
| 26 |
-
scripts are available at
|
| 27 |
-
<https://github.com/SiyuanMaCS/robojudge-iclr2027>.
|
| 28 |
|
| 29 |
-
## Benchmark results
|
| 30 |
|
| 31 |
| Metric | Pearson r with human ratings |
|
| 32 |
|---|---:|
|
|
@@ -34,39 +30,6 @@ scripts are available at
|
|
| 34 |
| IA | 0.775 |
|
| 35 |
| Overall | 0.719 |
|
| 36 |
|
| 37 |
-
The exact released predictions reproduce PA 0.644617, IA 0.775028, and pooled
|
| 38 |
-
Overall 0.719211 with the repository evaluator.
|
| 39 |
-
|
| 40 |
-
## Download and inference
|
| 41 |
-
|
| 42 |
-
```bash
|
| 43 |
-
git clone https://github.com/SiyuanMaCS/robojudge-iclr2027.git
|
| 44 |
-
cd robojudge-iclr2027
|
| 45 |
-
pip install -r requirements.txt
|
| 46 |
-
|
| 47 |
-
hf download HuggingFriends/RoboJudge-9B \
|
| 48 |
-
--local-dir checkpoints_hf/RoboJudge-9B
|
| 49 |
-
|
| 50 |
-
CKPT=checkpoints_hf/RoboJudge-9B \
|
| 51 |
-
DATA_ROOT=/path/to/mllm-as-embodied-world-judge \
|
| 52 |
-
OUT=outputs/robojudge_predictions.jsonl \
|
| 53 |
-
bash code/run_inference.sh
|
| 54 |
-
```
|
| 55 |
-
|
| 56 |
-
A smaller BF16 sharded copy and the exact one-epoch SFT checkpoint are available
|
| 57 |
-
at <https://huggingface.co/HuggingFriends/robojudge-iclr2027-checkpoints>.
|
| 58 |
-
|
| 59 |
-
## Checkpoint identity
|
| 60 |
-
|
| 61 |
-
- Weight format: safetensors
|
| 62 |
-
- Original training dtype: FP32
|
| 63 |
-
- `model.safetensors` SHA256:
|
| 64 |
-
`34e17912b402182ab8588494d2715461c7120761e98f8b055b1adbbee400e103`
|
| 65 |
-
|
| 66 |
-
## Data
|
| 67 |
-
|
| 68 |
-
- Video assets: <https://huggingface.co/datasets/HuggingFriends/mllm-as-embodied-world-judge>
|
| 69 |
-
- Release metadata and predictions: <https://huggingface.co/datasets/HuggingFriends/robojudge-iclr2027-reviewer-bundle>
|
| 70 |
|
| 71 |
## License
|
| 72 |
|
|
|
|
| 21 |
- **Instruction Alignment (IA):** agent match, object correctness, and goal
|
| 22 |
completion.
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
## Benchmark results on RoboJudge-Bench
|
| 26 |
|
| 27 |
| Metric | Pearson r with human ratings |
|
| 28 |
|---|---:|
|
|
|
|
| 30 |
| IA | 0.775 |
|
| 31 |
| Overall | 0.719 |
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
## License
|
| 35 |
|