Instructions to use pandabear139/WorldPhyReward with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pandabear139/WorldPhyReward with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("pandabear139/WorldPhyReward") model = AutoModelForMultimodalLM.from_pretrained("pandabear139/WorldPhyReward", device_map="auto") - Notebooks
- Google Colab
- Kaggle
WorldPhyReward
WorldPhyReward is the default epoch-4 (E4) full-parameter fine-tuned model from WorldPhy: Benchmarking Fine-Grained Physical Plausibility of World Models in Robotics.
Project page ยท Project and inference code
Given a task instruction, its initial image, and a candidate video, the model returns a JSON object with an English reason and a binary score for each of seven dimensions. R1โR6 evaluate physical plausibility; R7 evaluates instruction following. It generates the scores directly and does not use a separate scalar reward head.
| Key | Dimension |
|---|---|
| R1 | Entity and Identity Consistency |
| R2 | Geometric and Material Plausibility |
| R3 | Connection and Joint Constraints |
| R4 | Impenetrability |
| R5 | Contact and Interaction Causality |
| R6 | Support and Motion Dynamics |
| R7 | Instruction Following |
A score of 1 means the criterion is satisfied; 0 means a violation. Each value contains reason followed by score. Reasons begin with Consistent: or Issue: and are limited to 45 English words.
Using the checkpoint
Download the checkpoint with the Hugging Face CLI and pass its local directory to the project's standalone inference script:
git clone https://github.com/chuziyuan139/WorldPhy.git
cd WorldPhy
hf download pandabear139/WorldPhyReward --local-dir ./WorldPhyReward-checkpoint
CUDA_VISIBLE_DEVICES=0,1 python worldphyreward/inference/score.py \
--model ./WorldPhyReward-checkpoint \
--video /path/to/video.mp4 --image /path/to/initial-image.png \
--caption "Task instruction." --output /path/to/scores --tp 2
Alternatively, use --model pandabear139/WorldPhyReward to load the checkpoint directly from the Hub into the Hugging Face cache.
See the project README for the reference CUDA environment, dependencies, batch inference, and evaluation of generated task videos. This repository contains the full BF16 weights, tokenizer, and processor assets; no separate base-model or LoRA merge is required.
For the published evaluation protocol, use score.py: it applies the fixed prompt, samples at 5 fps with a maximum of 128 frames, stretches the initial image and video frames to 640ร480 RGB with bicubic resizing, and uses BF16, a 24,576-token context, 1,024 output tokens, temperature 0, top-p 1, and thinking disabled. It also embeds the original fixed reason-opening logit bias and strict output parser. Generic processor defaults in the checkpoint are inherited from the base model and are overridden by this script; using a generic pipeline without these overrides does not reproduce the evaluation protocol.
Training
- Initialization: Qwen/Qwen3.5-9B; approximately 9.41B trainable parameters, including the vision backbone and multimodal projector.
- Full SFT with LLaMA-Factory for 4 epochs / 200 steps on 1,569 annotated videos (10,983 rubric ratings).
- BF16, GPU-only ZeRO-3, global batch size 32; language learning rate
3e-6, vision learning rate3e-8. - Supervision covers the target JSON and end-of-sequence token. Tokens in a rubric span with human score 0 receive weight 2; tokens in a score-1 span receive weight 1. The same rule applies to every rubric, with equal reason/score token weights within each span. A span ends at its score token; trailing JSON and EOS tokens have weight 1. Weighted token losses are divided by the number of supervised tokens, not the sum of weights, and then averaged across examples.
Evaluation context
The model estimates visible consistency in generated robotics videos. Frame sampling can miss short events, and visual judgments do not establish physical validity outside the visible evidence. The 200-video evaluation subset and retained repeat runs were selected during development; reported results are descriptive of that protocol rather than an independent blind-test estimate. See the project for the fixed benchmark tasks and evaluation procedures.
License
Apache-2.0. The upstream Qwen license and copyright notice are retained in LICENSE.
- Downloads last month
- 25