Instructions to use AmberHeart/Uni-MOPD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AmberHeart/Uni-MOPD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AmberHeart/Uni-MOPD") 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("AmberHeart/Uni-MOPD") model = AutoModelForMultimodalLM.from_pretrained("AmberHeart/Uni-MOPD", 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 AmberHeart/Uni-MOPD with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AmberHeart/Uni-MOPD" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AmberHeart/Uni-MOPD", "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/AmberHeart/Uni-MOPD
- SGLang
How to use AmberHeart/Uni-MOPD 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 "AmberHeart/Uni-MOPD" \ --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": "AmberHeart/Uni-MOPD", "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 "AmberHeart/Uni-MOPD" \ --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": "AmberHeart/Uni-MOPD", "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 AmberHeart/Uni-MOPD with Docker Model Runner:
docker model run hf.co/AmberHeart/Uni-MOPD
Paper ยท Code ยท Project Page ยท HF Collection ยท ModelScope Collection
Uni-MOPD
A single multimodal model that unifies five domain specialists: a uniform-merge strong start refined by short multi-teacher on-policy distillation.
Uni-MOPD
Strong Starts, Simple Recipes: Unified Multi-Teacher On-Policy Distillation from Multimodal Specialists
Multi-teacher on-policy distillation (MOPD) integrates separately trained domain specialists into a unified model: the student generates responses to training queries, and the teacher of each query's domain supervises them. Existing methods refine the distillation procedure while the student starts from a base model or a multi-domain supervised fine-tuning checkpoint, which leaves capability integration largely to distillation itself.
Unified MOPD (Uni-MOPD) treats the starting point as a design variable and pairs a strong start with a simple recipe: a training-free uniform merge of specialists from the same base model initializes the student, and short MOPD with uniform domain sampling and full-vocabulary reverse KL then refines it.
The bank covers five domains: STEM reasoning, general visual question answering, document/OCR/chart understanding, GUI grounding, and embodied understanding. All five specialists are post-trained from the same base checkpoint, Qwen/Qwen3-VL-30B-A3B-Instruct, an instruction-tuned mixture-of-experts vision-language model, and follow different post-training paths, each ending with reinforcement learning on its own domain. Because they share the base model, the specialists share one architecture and vocabulary, which permits both weight-space merging and token-level distillation.
| Model | What it is | Links |
|---|---|---|
| Uni-MOPD | The unified student | MS |
| Uni-MOPD-Merge | The uniform merge that initializes the student | MS |
| Uni-MOPD-Teacher-STEM | STEM reasoning specialist | MS |
| Uni-MOPD-Teacher-VQA | General visual question answering specialist | MS |
| Uni-MOPD-Teacher-OCR | Document/OCR/chart understanding specialist (RL from a multi-domain SFT start) | MS |
| Uni-MOPD-Teacher-OCR-Bank2 | Document/OCR/chart understanding specialist (OCR-domain SFT and RL) | MS |
| Uni-MOPD-Teacher-GUI | GUI grounding specialist | MS |
| Uni-MOPD-Teacher-Embodied | Embodied understanding specialist | MS |
Uni-MOPD-Teacher-OCR-Bank2 comes from the paper's second specialist bank.
The two OCR specialists follow different post-training paths: the first
starts its domain reinforcement learning from a multi-domain SFT checkpoint,
which gives it broader coverage, while the second is trained with supervised
fine-tuning and reinforcement learning on the document/OCR domain only.
All of them sit under the AmberHeart namespace; Uni-MOPD is this
repository.
This model
The unified student. Five specialists post-trained from a shared base are combined through a training-free uniform merge to initialize the student, which is then refined with short MOPD โ 50 updates using uniform domain sampling and full-vocabulary reverse KL.
GUI grounding
For GUI grounding, use this prompt:
You are a GUI grounding agent. Given a screenshot and an element description, locate the element and output a click action.
Briefly reason about the target element location, then output the click action as JSON.
The expected JSON output format is as follows:
{"action": {"name": "click", "button": "left", "click_type": "single", "x": 250, "y": 845}}
Here, "name" is the action to perform, "button" is the mouse button, "click_type" is how the click is performed, and "x" and "y" represent the target location on screen.
The coordinate system is normalized: output x and y as integers from 0 to 1000, where the entire screenshot maps to this range.
The model answers with brief reasoning followed by the click action as JSON,
with x and y as integers in [0, 1000] normalized to the screenshot.
For instruction-driven grounding (clicking the target of a natural-language command rather than a described element), only the first paragraph changes:
You are a GUI interaction agent. Given a screenshot and a natural language instruction, identify the target element and output a click action.
The rest of the prompt and the output format are identical.
Weights are bfloat16, in 13 safetensors shards.
Usage
from transformers import AutoProcessor, Qwen3VLMoeForConditionalGeneration
model_id = "AmberHeart/Uni-MOPD"
model = Qwen3VLMoeForConditionalGeneration.from_pretrained(
model_id, dtype="auto", device_map="auto"
)
processor = AutoProcessor.from_pretrained(model_id)
messages = [{
"role": "user",
"content": [
{"type": "image", "url": "<your-image>"},
{"type": "text", "text": "Describe this image."},
],
}]
inputs = processor.apply_chat_template(
messages, add_generation_prompt=True, tokenize=True,
return_dict=True, return_tensors="pt",
).to(model.device)
out = model.generate(**inputs, max_new_tokens=128)
print(processor.decode(out[0][inputs["input_ids"].shape[1]:],
skip_special_tokens=True))
Requires transformers>=4.57.1.
Citation
@misc{chang2026strongstartssimplerecipes,
title={Strong Starts, Simple Recipes: Unified Multi-Teacher On-Policy Distillation from Multimodal Specialists},
author={Wenzheng Chang and Taiqiang Wu and Yuqi Xu and Yongfu Zhu and Zelin Peng and Ji Zhao and Shuai Dong and Wenpu Liu and Caoyuan Ma and Xuehui Wang and Ziyue Wang and Weichu Xie and Haiyuan Wan and Ngai Wong and Tong He and Wenqi Shao and Jiaqi Wang},
year={2026},
eprint={2611.34397},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2611.34397},
}
License
Apache License 2.0, inherited from the base model. See LICENSE for the license
text and NOTICE for the statement of modifications.
- Downloads last month
- 87
Model tree for AmberHeart/Uni-MOPD
Base model
Qwen/Qwen3-VL-30B-A3B-Instruct