Datasets:
Improve dataset card with paper, composition, loading examples, and citation
Browse files
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
-
pretty_name:
|
| 4 |
language:
|
| 5 |
- en
|
| 6 |
- zh
|
|
@@ -15,6 +15,10 @@ tags:
|
|
| 15 |
- sft
|
| 16 |
- multimodal
|
| 17 |
- sharegpt
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
size_categories:
|
| 19 |
- 10K<n<100K
|
| 20 |
configs:
|
|
@@ -24,81 +28,242 @@ configs:
|
|
| 24 |
path: train.jsonl
|
| 25 |
---
|
| 26 |
|
| 27 |
-
#
|
| 28 |
|
| 29 |
-
|
| 30 |
-
competence, curriculum grounding, diagnostic reasoning, pedagogical action and
|
| 31 |
-
general-purpose instruction. 12,146 rows (17.4%) are multimodal; every image
|
| 32 |
-
referenced by the JSONL ships in this repository under `images/`.
|
| 33 |
|
| 34 |
-
|
| 35 |
-
an explicit `system` message, and the non-system turns are byte-identical to the
|
| 36 |
-
unprompted v6 release. `assembly_report.json` records the audit that verified
|
| 37 |
-
that property.
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
-
|
| 51 |
-
`system_prompt_registry.json` via `extra_info.system_prompt_id`. 20 prompt
|
| 52 |
-
variants are in use (e.g. `solve_reasoned`, `multiturn_socratic`,
|
| 53 |
-
`mathtutor_scaffolding`, `general_native`). The 9,048 general-purpose rows keep
|
| 54 |
-
their upstream system prompt, which is why the `general_native` id is not in the
|
| 55 |
-
registry.
|
| 56 |
|
| 57 |
-
##
|
| 58 |
|
| 59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
```json
|
| 62 |
{
|
| 63 |
"messages": [
|
| 64 |
-
{
|
| 65 |
-
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
],
|
| 68 |
-
"images": [
|
| 69 |
-
|
|
|
|
|
|
|
| 70 |
}
|
| 71 |
```
|
| 72 |
|
| 73 |
-
|
| 74 |
-
go up to 21 messages; 94.5% are single-turn.
|
| 75 |
-
* `images` — 0 to 16 entries, relative to the repository root; 82.6% of rows are
|
| 76 |
-
text-only, 16.2% carry one image, and the rest carry between 2 and 16. The
|
| 77 |
-
`<image>` marker inside the user turn shows where each image belongs, and 131
|
| 78 |
-
rows reference the same image more than once.
|
| 79 |
-
* `extra_info` — a **JSON-encoded string** (not an object); `json.loads` it to
|
| 80 |
-
reach `category`, `dataset`, `uid`, `system_prompt_id`, `system_prompt_version`
|
| 81 |
-
and, where present, `kcenter` / `source_license` / `language`.
|
| 82 |
|
| 83 |
-
`
|
| 84 |
|
| 85 |
-
##
|
| 86 |
|
| 87 |
-
|
| 88 |
-
from datasets import load_dataset
|
| 89 |
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
``
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
-
|
| 95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
-
##
|
| 98 |
|
| 99 |
-
|
| 100 |
-
tokenised against `Qwen/Qwen3.5-9B-Base`: max sequence length 12,786 tokens,
|
| 101 |
-
p99 8,830, and zero rows above the 16,384 cutoff. Sources are public K-12 and
|
| 102 |
-
general corpora; per-row `extra_info.source_license` is present where the
|
| 103 |
-
upstream source declares one. Licences of the constituent corpora still apply —
|
| 104 |
-
check `extra_info.dataset` before redistribution.
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
+
pretty_name: 'OmniEdu: Instruction Data for Learning and Teaching'
|
| 4 |
language:
|
| 5 |
- en
|
| 6 |
- zh
|
|
|
|
| 15 |
- sft
|
| 16 |
- multimodal
|
| 17 |
- sharegpt
|
| 18 |
+
- curriculum-grounding
|
| 19 |
+
- diagnostic-reasoning
|
| 20 |
+
- pedagogical-scaffolding
|
| 21 |
+
- arxiv:2609.23088
|
| 22 |
size_categories:
|
| 23 |
- 10K<n<100K
|
| 24 |
configs:
|
|
|
|
| 28 |
path: train.jsonl
|
| 29 |
---
|
| 30 |
|
| 31 |
+
# OmniEdu Dataset
|
| 32 |
|
| 33 |
+
**Instruction data for K–12 learning and teaching**
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
[Paper](https://arxiv.org/abs/2609.23088) · [Project Page](https://haolpku.github.io/Omni-Edu/) · [GitHub](https://github.com/haolpku/Omni-Edu) · [Models](#model-family) · [Quick Start](#quick-start) · [Citation](#citation)
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
+
OmniEdu is a capability-oriented instruction-tuning dataset for educational models that connect **subject knowledge, curriculum understanding, learner diagnosis, and instructional support**. This repository releases **69,999 training examples**, combining **60,951 education-specific examples** with **9,048 general-purpose examples**.
|
| 38 |
|
| 39 |
+
The dataset accompanies [**OmniEdu: Open Foundation Models for Learning and Teaching**](https://arxiv.org/abs/2609.23088). The paper describes a mixture drawn from more than 100 educational resources and general instruction sources, containing **15.96M supervised response tokens**.
|
| 40 |
+
|
| 41 |
+
Hao Liang · Qihan Lin · Meiyi Qiang · Linzhuang Sun · Hengyi Feng · Mingrui Chen · Sizhe Qiu · Wentao Zhang
|
| 42 |
+
Peking University · University of the Chinese Academy of Sciences · Zhongguancun Academy
|
| 43 |
+
|
| 44 |
+
## Dataset at a glance
|
| 45 |
+
|
| 46 |
+
| Property | Released data |
|
| 47 |
+
| --- | --- |
|
| 48 |
+
| Examples | 69,999 |
|
| 49 |
+
| Education-specific / general-purpose | 60,951 / 9,048 |
|
| 50 |
+
| Multimodal examples | 12,146 (17.4%) |
|
| 51 |
+
| Languages | English and Chinese |
|
| 52 |
+
| Modalities | Text; image and text |
|
| 53 |
+
| Format | JSON Lines with ShareGPT-style messages |
|
| 54 |
+
| Configuration | `core_v6_full_system_prompted` |
|
| 55 |
+
| Split | `train` |
|
| 56 |
+
| System prompt IDs in use | 20, including `general_native` |
|
| 57 |
+
| Image assets | Included under `images/` |
|
| 58 |
+
|
| 59 |
+
This is the **system-prompted Core V6 release**. Every example starts with a system message. The [assembly report](assembly_report.json) records that non-system message content and image references are unchanged from the unprompted Core V6 assembly. This repository provides a training mixture; it does not define validation or test splits.
|
| 60 |
+
|
| 61 |
+
## Capability composition
|
| 62 |
+
|
| 63 |
+
| Capability family | Examples | Share | Training focus |
|
| 64 |
+
| --- | ---: | ---: | --- |
|
| 65 |
+
| Subject competence | 31,855 | 45.51% | Solve school-level problems using textual and visual evidence. |
|
| 66 |
+
| Pedagogical action and scaffolding | 14,226 | 20.32% | Provide hints, guiding questions, feedback, and adaptive instructional support. |
|
| 67 |
+
| Curriculum grounding | 9,381 | 13.40% | Connect problems and concepts to knowledge points, curriculum standards, and prerequisite relations. |
|
| 68 |
+
| Diagnostic reasoning | 5,489 | 7.84% | Identify learner errors, misconceptions, and gaps in understanding. |
|
| 69 |
+
| General-purpose instruction | 9,048 | 12.93% | Maintain broad instruction-following behavior alongside educational specialization. |
|
| 70 |
+
| **Total** | **69,999** | **100%** | |
|
| 71 |
+
|
| 72 |
+
The four education-specific families account for 60,951 examples. General-purpose instruction supplies the remaining 9,048 examples. Percentages are rounded.
|
| 73 |
|
| 74 |
+
## Quick start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
+
### Load the training split
|
| 77 |
|
| 78 |
+
```bash
|
| 79 |
+
pip install -U datasets huggingface_hub pillow
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
```python
|
| 83 |
+
import json
|
| 84 |
+
from datasets import load_dataset
|
| 85 |
+
|
| 86 |
+
DATASET_ID = "lhpku20010120/Omni-Edu"
|
| 87 |
+
CONFIG = "core_v6_full_system_prompted"
|
| 88 |
+
|
| 89 |
+
train = load_dataset(DATASET_ID, CONFIG, split="train")
|
| 90 |
+
example = train[0]
|
| 91 |
+
metadata = json.loads(example["extra_info"])
|
| 92 |
+
|
| 93 |
+
print(len(train)) # 69999
|
| 94 |
+
print(example["messages"])
|
| 95 |
+
print(example["images"])
|
| 96 |
+
print(metadata["category"], metadata["system_prompt_id"])
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
For sequential inspection without first downloading the entire JSONL file, pass `streaming=True` to `load_dataset` and retrieve an example with `next(iter(train))` instead of indexing.
|
| 100 |
+
|
| 101 |
+
### Load an image from an example
|
| 102 |
+
|
| 103 |
+
The `images` field contains **relative file paths**, not decoded image objects. Loading the training split does not automatically download and open these image assets. Continue from the example above:
|
| 104 |
+
|
| 105 |
+
```python
|
| 106 |
+
from huggingface_hub import hf_hub_download
|
| 107 |
+
from PIL import Image
|
| 108 |
+
|
| 109 |
+
loaded_images = []
|
| 110 |
+
for relative_path in example["images"]:
|
| 111 |
+
local_path = hf_hub_download(
|
| 112 |
+
repo_id=DATASET_ID,
|
| 113 |
+
repo_type="dataset",
|
| 114 |
+
filename=relative_path,
|
| 115 |
+
)
|
| 116 |
+
with Image.open(local_path) as image:
|
| 117 |
+
loaded_images.append(image.convert("RGB"))
|
| 118 |
+
|
| 119 |
+
print([image.size for image in loaded_images])
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
Preserve the order of the image paths and any repeated entries: they correspond to the `<image>` placeholders in the conversation. For text-only examples, `images` is an empty list.
|
| 123 |
+
|
| 124 |
+
### Download the full release for local training
|
| 125 |
+
|
| 126 |
+
This downloads the JSONL file, image assets, and accompanying metadata:
|
| 127 |
+
|
| 128 |
+
```python
|
| 129 |
+
from pathlib import Path
|
| 130 |
+
from datasets import load_dataset
|
| 131 |
+
from huggingface_hub import snapshot_download
|
| 132 |
+
|
| 133 |
+
release_dir = Path(snapshot_download(
|
| 134 |
+
repo_id="lhpku20010120/Omni-Edu",
|
| 135 |
+
repo_type="dataset",
|
| 136 |
+
local_dir="./Omni-Edu",
|
| 137 |
+
))
|
| 138 |
+
train = load_dataset(
|
| 139 |
+
"json",
|
| 140 |
+
data_files={"train": str(release_dir / "train.jsonl")},
|
| 141 |
+
split="train",
|
| 142 |
+
)
|
| 143 |
+
image_paths = [release_dir / path for path in train[0]["images"]]
|
| 144 |
+
print(image_paths)
|
| 145 |
+
```
|
| 146 |
+
|
| 147 |
+
For reproducible experiments, set `revision` to a specific dataset commit when loading or downloading. LLaMA-Factory users can use the supplied [dataset registration](dataset_info.json), which maps the message roles, content, and image fields.
|
| 148 |
+
|
| 149 |
+
## Data format
|
| 150 |
+
|
| 151 |
+
Each line of `train.jsonl` is a JSON object with exactly three top-level fields:
|
| 152 |
+
|
| 153 |
+
| Field | Type | Meaning |
|
| 154 |
+
| --- | --- | --- |
|
| 155 |
+
| `messages` | List of objects | A system message followed by user and assistant turns; each object has `role` and `content`. |
|
| 156 |
+
| `images` | List of strings | Image paths relative to the repository root; an empty list for text-only examples. |
|
| 157 |
+
| `extra_info` | String containing JSON | Provenance, capability category, prompt ID, and optional selection or source metadata. Parse with `json.loads`. |
|
| 158 |
+
|
| 159 |
+
The following is a schematic example; the text and image filename are placeholders, and the metadata is abbreviated:
|
| 160 |
|
| 161 |
```json
|
| 162 |
{
|
| 163 |
"messages": [
|
| 164 |
+
{
|
| 165 |
+
"role": "system",
|
| 166 |
+
"content": "Task-specific instruction..."
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"role": "user",
|
| 170 |
+
"content": "Problem:\n<image>Question text..."
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"role": "assistant",
|
| 174 |
+
"content": "Target answer..."
|
| 175 |
+
}
|
| 176 |
],
|
| 177 |
+
"images": [
|
| 178 |
+
"images/0a/example.png"
|
| 179 |
+
],
|
| 180 |
+
"extra_info": "{\"category\": \"subject_competence\", \"dataset\": \"geometry3k-answer-only\", \"uid\": \"geometry3k-513\", \"system_prompt_id\": \"solve_answer_only\"}"
|
| 181 |
}
|
| 182 |
```
|
| 183 |
|
| 184 |
+
Conversations contain up to 21 messages; approximately 94.5% are single-turn. Examples contain zero to 16 image references: approximately 82.6% are text-only, 16.2% contain one image, and the remainder contain multiple images. In 131 rows, an image is referenced more than once.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
|
| 186 |
+
After parsing `extra_info`, common keys include `category`, `dataset`, `uid`, `system_prompt_id`, and `system_prompt_version`. Optional fields include `kcenter`, `source_license`, and `language`; availability varies by source.
|
| 187 |
|
| 188 |
+
## System prompts
|
| 189 |
|
| 190 |
+
Task-specific instructions make the expected teaching or problem-solving behavior explicit. Examples of active prompt IDs include:
|
|
|
|
| 191 |
|
| 192 |
+
| Prompt ID | Intended behavior |
|
| 193 |
+
| --- | --- |
|
| 194 |
+
| `solve_answer_only` | Return an answer in the requested format without an explanation. |
|
| 195 |
+
| `solve_reasoned` | Produce a self-contained solution with a clear final answer. |
|
| 196 |
+
| `knowledge_point` | Identify concepts, standards, prerequisites, or curriculum relations. |
|
| 197 |
+
| `diagnose_and_correct` | Identify the learner's first material error and provide a useful correction. |
|
| 198 |
+
| `mathtutor_scaffolding` | Give a concise next scaffold. |
|
| 199 |
+
| `multiturn_socratic` | Use dialogue history to guide the learner with focused questions. |
|
| 200 |
+
| `general_native` | Retain the upstream system prompt for general-purpose examples. |
|
| 201 |
+
|
| 202 |
+
There are **20 prompt IDs in use** in the [assembly report](assembly_report.json). Education-specific instructions are defined in [system_prompt_registry.json](system_prompt_registry.json). The **9,048 `general_native` examples retain their upstream prompts**, so `general_native` is not an entry in that registry. The registry also contains `general_assistant`, which is not used in this release's prompt counts.
|
| 203 |
+
|
| 204 |
+
## Construction and provenance
|
| 205 |
+
|
| 206 |
+
The [paper](https://arxiv.org/abs/2609.23088) describes a pipeline combining deterministic cleaning, semantic auditing and rewriting, task-specific quality scoring, token-budgeted diversity selection, and pedagogical instruction assignment. Per-example metadata identifies the contributing source and, where provided upstream, its license.
|
| 207 |
+
|
| 208 |
+
This release was assembled as `training_core_v6/releases/v6_full_system_prompted`. Its [assembly report](assembly_report.json) records:
|
| 209 |
+
|
| 210 |
+
| Assembly check | Result |
|
| 211 |
+
| --- | --- |
|
| 212 |
+
| Every row has a system message | Yes |
|
| 213 |
+
| Non-system content unchanged from the unprompted assembly | Yes |
|
| 214 |
+
| Image references unchanged | Yes |
|
| 215 |
+
| Tokenizer used for length audit | `Qwen/Qwen3.5-9B-Base` |
|
| 216 |
+
| Maximum audited sequence length | 12,786 tokens |
|
| 217 |
+
| 99th-percentile sequence length | 8,830 tokens |
|
| 218 |
+
| Audit cutoff | 16,384 tokens |
|
| 219 |
+
| Examples above the cutoff | 0 |
|
| 220 |
|
| 221 |
+
These are dataset assembly statistics under the named tokenizer. The paper separately reports a **32,768-token maximum training sequence length** for model fine-tuning; it is a training configuration rather than the longest sequence in this release. The **15.96M supervised response tokens** reported in the paper measure response-token volume, not total input-plus-output sequence length.
|
| 222 |
+
|
| 223 |
+
## Repository contents
|
| 224 |
+
|
| 225 |
+
| Path | Contents |
|
| 226 |
+
| --- | --- |
|
| 227 |
+
| [train.jsonl](https://huggingface.co/datasets/lhpku20010120/Omni-Edu/blob/main/train.jsonl) | Training examples |
|
| 228 |
+
| [images/](https://huggingface.co/datasets/lhpku20010120/Omni-Edu/tree/main/images) | Referenced image assets |
|
| 229 |
+
| [system_prompt_registry.json](system_prompt_registry.json) | Task-specific instruction definitions |
|
| 230 |
+
| [assembly_report.json](assembly_report.json) | Prompt counts and assembly audit |
|
| 231 |
+
| [dataset_info.json](dataset_info.json) | LLaMA-Factory dataset registration |
|
| 232 |
+
|
| 233 |
+
## Model family
|
| 234 |
+
|
| 235 |
+
Explore the accompanying models for inference examples and evaluation results:
|
| 236 |
+
|
| 237 |
+
| Model | Scale |
|
| 238 |
+
| --- | ---: |
|
| 239 |
+
| [OmniEdu-4B](https://huggingface.co/lhpku20010120/Omni-Edu-4B) | 4B |
|
| 240 |
+
| [OmniEdu-9B](https://huggingface.co/lhpku20010120/Omni-Edu-9B) | 9B |
|
| 241 |
+
| [OmniEdu-27B](https://huggingface.co/lhpku20010120/Omni-Edu-27B) | 27B |
|
| 242 |
+
|
| 243 |
+
## Intended use and limitations
|
| 244 |
+
|
| 245 |
+
The mixture supports supervised fine-tuning, analysis of educational instruction data, and research on curriculum grounding, learner diagnosis, and tutoring. Coverage reflects the contributing sources and does not establish uniform quality across subjects, languages, curricula, or learner populations. Inspect examples for suitability before using them in educational applications. Model benchmark results reported in the paper do not establish classroom learning gains.
|
| 246 |
+
|
| 247 |
+
## Source licenses and usage terms
|
| 248 |
+
|
| 249 |
+
This repository retains the `other` license designation. Licenses and usage terms of the constituent datasets and source materials continue to apply. Check `extra_info.dataset` to identify the source and `extra_info.source_license` where available; consult the upstream terms before reuse or redistribution. Missing per-row license metadata does not imply unrestricted permission.
|
| 250 |
+
|
| 251 |
+
## Citation
|
| 252 |
+
|
| 253 |
+
If you use the dataset or accompanying models in your research, please cite:
|
| 254 |
+
|
| 255 |
+
```bibtex
|
| 256 |
+
@misc{liang2026omniedu,
|
| 257 |
+
title = {OmniEdu: Open Foundation Models for Learning and Teaching},
|
| 258 |
+
author = {Hao Liang and Qihan Lin and Meiyi Qiang and Linzhuang Sun and Hengyi Feng and Mingrui Chen and Sizhe Qiu and Wentao Zhang},
|
| 259 |
+
year = {2026},
|
| 260 |
+
eprint = {2609.23088},
|
| 261 |
+
archivePrefix = {arXiv},
|
| 262 |
+
primaryClass = {cs.CL},
|
| 263 |
+
url = {https://arxiv.org/abs/2609.23088}
|
| 264 |
+
}
|
| 265 |
+
```
|
| 266 |
|
| 267 |
+
## Feedback
|
| 268 |
|
| 269 |
+
For questions about the data, source attribution, or educational use cases, open a discussion in the [dataset Community tab](https://huggingface.co/datasets/lhpku20010120/Omni-Edu/discussions) or an [issue on GitHub](https://github.com/haolpku/Omni-Edu/issues).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|