Run this model with HF Jobs
Run ModalityDance/Omni-R1-Zero 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 to fine-tune https://huggingface.co/ModalityDance/Omni-R1-Zero. 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/ModalityDance/Omni-R1-Zero 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.
Instructions to use ModalityDance/Omni-R1-Zero with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ModalityDance/Omni-R1-Zero with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ModalityDance/Omni-R1-Zero") model = AutoModelForMultimodalLM.from_pretrained("ModalityDance/Omni-R1-Zero", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files10 unmodified lines11121314151617181920212223242526272829304 unmodified lines3536373810 unmodified linesbase_model:- GAIR/Anole-7b-v0.1license: mitpipeline_tag: any-to-any---# Omni-R1-ZeroOmni-R1-Zero is trained without multimodal annotations. It bootstraps step-wise visualizations from text-only CoT seeds, then follows the SFT→RL recipe to learn interleaved multimodal reasoning.<p align="center"><a href="https://arxiv.org/abs/2601.09536"><b>Paper</b>👁️</a> ·<a href="https://github.com/ModalityDance/Omni-R1"><b>Code</b>🐙</a> ·<a href="https://huggingface.co/datasets/ModalityDance/Omni-Bench"><b>Omni-Bench</b>🧪</a></p>## Citation```bibtex@misc{cheng2026omnir1unifiedgenerativeparadigm,title={Omni-R1: Towards the Unified Generative Paradigm for Multimodal Reasoning},4 unmodified linesprimaryClass={cs.AI},url={https://arxiv.org/abs/2601.09536},}```10 unmodified lines11121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980814 unmodified lines8687888910 unmodified linesbase_model:- GAIR/Anole-7b-v0.1license: mit---# Omni-R1-Zero[](https://arxiv.org/abs/2601.09536)[](https://github.com/ModalityDance/Omni-R1)[](https://huggingface.co/datasets/ModalityDance/Omni-Bench)## Overview**Omni-R1-Zero** is trained **without multimodal annotations**. It bootstraps **step-wise visualizations** from **text-only CoT seeds** (e.g., M3CoT), and then follows the same **SFT → RL** recipe as Omni-R1 to learn interleaved multimodal reasoning.## Usage```pythonimport torchfrom PIL import Imagefrom transformers import ChameleonProcessor, ChameleonForConditionalGeneration# 1) Import & loadmodel_id = "ModalityDance/Omni-R1-Zero" # or a local checkpoint pathprocessor = ChameleonProcessor.from_pretrained(model_id)model = ChameleonForConditionalGeneration.from_pretrained(model_id,torch_dtype=torch.bfloat16,device_map="auto",)model.eval()# 2) Prepare a single inputprompt = "You are a helpful assistant.\nUser: Which of these would appear shinier when polished? A. Metal spoon B. Wooden spoon\nThink with images first, the image reasoning process and answer are enclosed within <reserved12856> <reserved12857> and <reserved12866> <reserved12867> XML tags, respectively.\nAssistant:"inputs = processor(prompt,padding=False,return_for_text_completion=True,return_tensors="pt",).to(model.device)# 3) Call the modeloutputs = model.generate(**inputs,max_length=4096,do_sample=True,temperature=1.0,top_p=0.9,pad_token_id=1,multimodal_generation_mode="unrestricted",)# 4) Get resultstext = processor.batch_decode(outputs, skip_special_tokens=False)[0]print(text)```For full scripts (batch JSONL inference, interleaved decoding, and vLLM-based evaluation), please refer to the official GitHub repository:https://github.com/ModalityDance/Omni-R1## LicenseThis project is licensed under the **MIT License**.It also complies with the licenses of referenced third-party projects and dependencies, including the **Chameleon Research License**.## Citation```bibtex@misc{cheng2026omnir1unifiedgenerativeparadigm,title={Omni-R1: Towards the Unified Generative Paradigm for Multimodal Reasoning},4 unmodified linesprimaryClass={cs.AI},url={https://arxiv.org/abs/2601.09536},}```
README.md+59-8