Instructions to use OpenDCAI/Omni-Edu-Pro-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenDCAI/Omni-Edu-Pro-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="OpenDCAI/Omni-Edu-Pro-4B") 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("OpenDCAI/Omni-Edu-Pro-4B") model = AutoModelForMultimodalLM.from_pretrained("OpenDCAI/Omni-Edu-Pro-4B", 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 OpenDCAI/Omni-Edu-Pro-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenDCAI/Omni-Edu-Pro-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenDCAI/Omni-Edu-Pro-4B", "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/OpenDCAI/Omni-Edu-Pro-4B
- SGLang
How to use OpenDCAI/Omni-Edu-Pro-4B 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 "OpenDCAI/Omni-Edu-Pro-4B" \ --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": "OpenDCAI/Omni-Edu-Pro-4B", "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 "OpenDCAI/Omni-Edu-Pro-4B" \ --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": "OpenDCAI/Omni-Edu-Pro-4B", "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 OpenDCAI/Omni-Edu-Pro-4B with Docker Model Runner:
docker model run hf.co/OpenDCAI/Omni-Edu-Pro-4B
Omni-Edu-Pro-4B
Open Foundation Models for Learning and Teaching
Paper · Project Page · GitHub · Dataset · Model Collection
Omni-Edu-Pro-4B is a multimodal model for K–12 learning and teaching, built on OmniEdu-4B through proximal policy optimization (PPO) using the Omni-Edu-Pro dataset. This repository provides the complete model weights in BF16 precision.
Capabilities
- Subject competence: solve K–12 problems across subjects and input formats.
- Curriculum grounding: connect questions, concepts, and solutions to curriculum standards and prerequisites.
- Diagnostic reasoning: identify misconceptions and gaps in learner understanding.
- Pedagogical support: provide targeted feedback, guiding questions, explanations, and scaffolding.
Model family
All three models use Qwen3_5ForConditionalGeneration. Use the multimodal model class and processor below, including for text-only conversations.
Evaluation
Results cover curriculum grounding, K–12 problem solving, and pedagogical tutoring. Higher is better. Values are percentages except LongTutor-T, which uses a 1–5 scale. This model's column is highlighted.
| Metric | OmniEdu-4B-Pro | OmniEdu-9B-Pro | OmniEdu-27B-Pro |
|---|---|---|---|
| K12-Bench EM | 60.26% | 61.41% | 64.53% |
| K12-Bench F1 | 73.28% | 75.17% | 77.63% |
| MathFish Acc. | 84.61% | 84.20% | 86.60% |
| EDUMATH MaC | 88.00% | 92.39% | 93.50% |
| GAOKAO-Bench Full | 90.87% | 93.73% | 97.40% |
| EXAMS-V | 61.63% | 67.00% | 69.71% |
| MDK12-Bench Full | 58.82% | 62.07% | 67.76% |
| MathTutor-S | 93.37% | 88.95% | 90.06% |
| MathTutor-SH | 93.62% | 87.23% | 91.49% |
| MathTutor Overall | 92.33% | 91.01% | 92.76% |
| TutorBench | 51.07% | 53.16% | 59.69% |
| LongTutor-E | 67.45% | 68.30% | 78.41% |
| LongTutor-T | 2.34 | 2.55 | 2.96 |
Quick start
Transformers
Use a recent Transformers release with Qwen3.5 support and a GPU setup with sufficient memory for the chosen checkpoint. The example below loads this checkpoint.
pip install -U torch torchvision transformers accelerate safetensors pillow
import torch
from transformers import AutoProcessor, Qwen3_5ForConditionalGeneration
MODEL_ID = "OpenDCAI/Omni-Edu-Pro-4B"
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = Qwen3_5ForConditionalGeneration.from_pretrained(
MODEL_ID,
dtype=torch.bfloat16,
device_map="auto",
).eval()
messages = [
{
"role": "user",
"content": [
{
"type": "text",
"text": "A Grade 7 student says summer is warmer because Earth is closer to the Sun. Identify the misconception and give a guiding question before explaining.",
}
],
}
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
enable_thinking=False,
).to(model.device)
with torch.inference_mode():
outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False)
answer = processor.batch_decode(
outputs[:, inputs["input_ids"].shape[-1]:],
skip_special_tokens=True,
)[0]
print(answer)
For image-based questions, include an image item such as {"type": "image", "image": "/path/to/question.png"} alongside the text item in content. The processor prepares both modalities. See the official Qwen3.5 Transformers documentation for supported input formats.
Chat template: Keep enable_thinking=False when formatting conversations.
For an OpenAI-compatible deployment, see the vLLM example in the project repository. Set the model ID to OpenDCAI/Omni-Edu-Pro-4B and choose GPU parallelism and context length for your available memory.
Intended use
OmniEdu is intended for educational research, teacher-assistance tools, and learning-support applications. Generated solutions and instructional material should be reviewed before use with learners.
License
The model weights and accompanying model card are released under the Apache License 2.0. See LICENSE and NOTICE.
Citation
If you use OmniEdu models or data in your research, please cite:
@misc{liang2026omniedu,
title = {OmniEdu: Open Foundation Models for Learning and Teaching},
author = {Hao Liang and Qihan Lin and Meiyi Qiang and Linzhuang Sun and Hengyi Feng and Mingrui Chen and Sizhe Qiu and Wentao Zhang},
year = {2026},
eprint = {2609.23088},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2609.23088}
}
- Downloads last month
- 28