Release pass: licence classes, recipe links, fixed snippet
#2
by davanstrien HF Staff - opened
- README.md +38 -26
- scripts/release_build.py +9 -1
README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
license_name: mixed
|
| 4 |
-
pretty_name: Curation decision mix
|
| 5 |
task_categories: [text-classification, zero-shot-classification]
|
| 6 |
-
|
|
|
|
| 7 |
size_categories: [100K<n<1M]
|
| 8 |
configs:
|
| 9 |
- {config_name: all, data_files: "data/*/train.parquet", default: true}
|
|
@@ -18,15 +19,18 @@ configs:
|
|
| 18 |
- {config_name: procpile, data_files: data/procpile/train.parquet}
|
| 19 |
---
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
The training data of `davanstrien/ultrabert-380m-curation`, a small classifier that answers curation questions about web pages, prompts,
|
| 26 |
maths problems and library records ("what topic is this page?", "how educational is it?", "how hard is this
|
| 27 |
problem?"). Each row is a text, a question, a set of options and a probability for each option. Every row records
|
| 28 |
where it came from, who made its label and under which licence.
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
| | |
|
| 31 |
|---|---|
|
| 32 |
| Rows | 516,964 released, from a 535,730-row training mix; 18,766 base rows without a verified open licence are left out (see Licences) |
|
|
@@ -34,22 +38,23 @@ where it came from, who made its label and under which licence.
|
|
| 34 |
| Row shapes | decision rows `{state, question, target}` and GLiClass rows `{text, all_labels, true_labels, prompt}` |
|
| 35 |
| Labels made by | dataset gold, library cataloguers, programs, and LLMs (named per source and per row) |
|
| 36 |
| Licence | mixed, per row; web page text is **not** included (labels plus a pointer to the source row; rebuild snippet below) |
|
| 37 |
-
| Trains |
|
| 38 |
-
| Build | mix builder on Hugging Face Jobs (CPU), then `scripts/release_build.py` (
|
| 39 |
|
| 40 |
```python
|
| 41 |
import json
|
| 42 |
from datasets import load_dataset
|
| 43 |
-
ds = load_dataset("davanstrien/curation-decision-mix", "all", split="train")
|
| 44 |
-
ok = ds.filter(lambda r: r["licence_class"] == "permissive")
|
| 45 |
-
|
|
|
|
| 46 |
```
|
| 47 |
|
| 48 |
---
|
| 49 |
|
| 50 |
## Layout
|
| 51 |
|
| 52 |
-
One config per source, plus `all`. Splitting by source keeps licence terms together, so a user can take only the parts
|
| 53 |
whose terms suit them.
|
| 54 |
|
| 55 |
| Config | Rows (training mix) | Shape |
|
|
@@ -64,6 +69,9 @@ whose terms suit them.
|
|
| 64 |
| `arxiv` | 13,597 | GLiClass |
|
| 65 |
| `procpile` | 10,997 | GLiClass |
|
| 66 |
|
|
|
|
|
|
|
|
|
|
| 67 |
Columns (union of both shapes; unused fields are null):
|
| 68 |
|
| 69 |
| Column | Meaning |
|
|
@@ -72,7 +80,7 @@ Columns (union of both shapes; unused fields are null):
|
|
| 72 |
| `config`, `src` | source group and the finer origin (e.g. `db_bitext_support`, a tasksource task) |
|
| 73 |
| `row_type` | `decision` or `gliclass` |
|
| 74 |
| `teacher` | who made the label (e.g. `Llama-3.1-405B`, `cataloguer`, `program`, `50% source label + 50% Qwen3.8-27B`) |
|
| 75 |
-
| `licence_class`, `licence` | `permissive` / `sa` (share-alike) / `publisher` (text not redistributed), and the licence id |
|
| 76 |
| `state` | the input (decision rows): a string, or a record as a JSON string |
|
| 77 |
| `question` | JSON string: `{type: noul|choice, instructions, criteria}`; `noul` = yes/no; `choice` options are `{key: description}`; graded scales use `level_<k>` keys, lowest first |
|
| 78 |
| `target` | JSON string: probability per option (soft targets allowed; sums to 1 for single-answer rows) |
|
|
@@ -104,6 +112,8 @@ source dataset's `train` split; the training text was the first 3,000 characters
|
|
| 104 |
(do not redistribute it):
|
| 105 |
|
| 106 |
```python
|
|
|
|
|
|
|
| 107 |
src = {}
|
| 108 |
def rebuild(r):
|
| 109 |
if r["source_dataset"] not in src:
|
|
@@ -112,7 +122,7 @@ def rebuild(r):
|
|
| 112 |
web = load_dataset("davanstrien/curation-decision-mix", "web", split="train").map(rebuild)
|
| 113 |
```
|
| 114 |
|
| 115 |
-
Row indices assume the source datasets are unchanged since October 2026.
|
| 116 |
|
| 117 |
---
|
| 118 |
|
|
@@ -121,11 +131,11 @@ Row indices assume the source datasets are unchanged since October 2026.
|
|
| 121 |
| Source | Rows | What the rows ask | Labels made by | Licence |
|
| 122 |
|---|---:|---|---|---|
|
| 123 |
| base (tasksource + knowledgator GLiClass data) | 173,859 (192,625 trained on) | many public classification tasks | dataset gold; knowledgator gliclass-v2.0 / v3-logic (LLM-generated) | per source repo, in `licence`; only rows with a verified permissive, share-alike or other open licence are released (see Licences) |
|
| 124 |
-
| DecisionBank-260k (jgeuter/DecisionBank) | 165,277 | public tasks, written and programmatic decision questions | 50 % source label + 50 % Qwen3.8-27B; Qwen3.8-27B with thinking; 50 % Jeff 1.0 teachers (Qwen3.6-27B, Qwen3.5-122B-A10B) + 50 % Qwen3.8-27B (4,188 rows); code | per row: CC BY / CC BY-SA, Apache, MIT, CC0 (public domain), CDLA-Sharing
|
| 125 |
| prompt slice | 52,491 | NuminaMath-1.5 question type / problem type / validity; DeepMath-103K difficulty / topic; WebInstruct-verified answer type / category / difficulty; LMArena criteria and tags | dataset columns (NuminaMath, WebInstruct: labeller not documented); GPT-4o (DeepMath); LMArena classifiers | Apache-2.0; MIT; Apache-2.0; CC-BY-4.0 |
|
| 126 |
| web slice (**ids and labels only**) | 41,890 | WebOrganizer topic and format; FineWeb-Edu educational value | Llama-3.1-405B (WebOrganizer; the annotation datasets state no licence); Llama-3-70B (FineWeb-Edu) | labels: none stated; ODC-By. Page text: publisher copyright, not included (rebuild snippet above) |
|
| 127 |
| National Library of Scotland catalogue | 23,846 | subject areas of library records | National Library of Scotland cataloguers | CC0 |
|
| 128 |
-
| tool lane | 21,089 |
|
| 129 |
| Harvard modern catalogue | 13,918 | Library of Congress subject class, literary form, government publication | Harvard Library cataloguers (from their catalogue records) | CC0 |
|
| 130 |
| arXiv | 13,597 | arXiv subject category | author-chosen categories | arXiv metadata (CC0) |
|
| 131 |
| procedural pile | 10,997 | program-checkable reasoning | program-computed | CC BY 4.0 (attribute) |
|
|
@@ -136,7 +146,7 @@ Row indices assume the source datasets are unchanged since October 2026.
|
|
| 136 |
|
| 137 |
The mix is the result of a series of screened experiments (2026-10-23 → 10-27). Each choice below states what it rests
|
| 138 |
on: earlier decision-model reports, published curation work, or our own measurements. "Curation score" is the
|
| 139 |
-
benchmark used for selection: the mean of 16 curation test
|
| 140 |
|
| 141 |
**1. Start from a broad public base, cleaned by task identity.** The base follows the GLiClass v4 recipe
|
| 142 |
(knowledgator): tasksource classification tasks plus knowledgator's GLiClass training sets, so the model keeps general
|
|
@@ -178,7 +188,7 @@ over the other rows (3 seeds each, all 9 pairs positive), mostly on evals whose
|
|
| 178 |
labeller. Only rows with allowed licences were kept; the HelpSteer families were dropped because they are held-out test sets.
|
| 179 |
|
| 180 |
**7. Program-computed lanes for reasoning and tools.** Procedural reasoning tasks, tool selection and arXiv
|
| 181 |
-
categories have labels that are computed or author-chosen, so
|
| 182 |
tasks more than the curation score.
|
| 183 |
|
| 184 |
### How train and eval were split
|
|
@@ -193,8 +203,8 @@ tasks more than the curation score.
|
|
| 193 |
- **Separate same-labeller from independent gold.** Where an eval's gold comes from the same LLM that labelled
|
| 194 |
training rows (WebOrganizer, FineWeb-Edu, DeepMath), it partly measures agreement with that labeller. The fair
|
| 195 |
comparison uses independent gold (Omni-MATH human ratings, Essential-Web), reported apart in the model card.
|
| 196 |
-
- **Seeds and review.** Each data choice was screened with ≥ 2 training seeds and claimed with ≥ 3; every claimed result was
|
| 197 |
-
two independent
|
| 198 |
|
| 199 |
## Decontamination
|
| 200 |
|
|
@@ -206,9 +216,10 @@ DecisionBank row. The catalogue test sets were kept out by id and title when the
|
|
| 206 |
|
| 207 |
## Licences
|
| 208 |
|
| 209 |
-
Licence classes in
|
| 210 |
-
trained on, never redistributed). DecisionBank's own parts are CC BY-SA 4.0;
|
| 211 |
-
this dataset. The model is released under Apache-2.0
|
|
|
|
| 212 |
|
| 213 |
Base rows, by the licence on the source repo's card (or, for tasksource tasks, the origin dataset's card; not legal
|
| 214 |
advice): of 200,000 rows before decontamination, 178,084 verified permissive, 1,127 share-alike (CC BY-SA), 497 under
|
|
@@ -229,11 +240,12 @@ and test sets in Hugging Face storage buckets mounted into each job.
|
|
| 229 |
|
| 230 |
## Known issues
|
| 231 |
|
| 232 |
-
- Several label sources are LLM outputs (named above and per row)
|
| 233 |
-
licence statement
|
|
|
|
| 234 |
- Use terms of the original sources apply to their rows; check `licence` / `src` per row before reuse.
|
| 235 |
- Multilingual rows (DecisionBank) are present; the model was evaluated in English only.
|
| 236 |
-
-
|
| 237 |
|
| 238 |
## Notes for agents
|
| 239 |
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
license_name: mixed
|
| 4 |
+
pretty_name: Curation decision mix
|
| 5 |
task_categories: [text-classification, zero-shot-classification]
|
| 6 |
+
language: [en, zh, pt, ja, id, ar, ko, fr, el, es, pl, uk, cs, hi, tr, sv, it, de, da, nl, "no", fi]
|
| 7 |
+
tags: [data-curation, decision-model, decision-models, system-one, gliclass, provenance, hf-jobs]
|
| 8 |
size_categories: [100K<n<1M]
|
| 9 |
configs:
|
| 10 |
- {config_name: all, data_files: "data/*/train.parquet", default: true}
|
|
|
|
| 19 |
- {config_name: procpile, data_files: data/procpile/train.parquet}
|
| 20 |
---
|
| 21 |
|
| 22 |
+
# Curation decision mix
|
| 23 |
|
| 24 |
+
The training data of [davanstrien/ultrabert-380m-curation](https://huggingface.co/davanstrien/ultrabert-380m-curation), a small decision model that answers curation questions about web pages, prompts,
|
|
|
|
|
|
|
| 25 |
maths problems and library records ("what topic is this page?", "how educational is it?", "how hard is this
|
| 26 |
problem?"). Each row is a text, a question, a set of options and a probability for each option. Every row records
|
| 27 |
where it came from, who made its label and under which licence.
|
| 28 |
|
| 29 |
+
This card is also the data recipe: it says which sources were used, why, and which choices moved the scores (see
|
| 30 |
+
[How the mix was designed](#how-the-mix-was-designed)). The scripts are in
|
| 31 |
+
[github.com/davanstrien/curation-decision-recipe](https://github.com/davanstrien/curation-decision-recipe). If you
|
| 32 |
+
train decision models, please share how you made your data too.
|
| 33 |
+
|
| 34 |
| | |
|
| 35 |
|---|---|
|
| 36 |
| Rows | 516,964 released, from a 535,730-row training mix; 18,766 base rows without a verified open licence are left out (see Licences) |
|
|
|
|
| 38 |
| Row shapes | decision rows `{state, question, target}` and GLiClass rows `{text, all_labels, true_labels, prompt}` |
|
| 39 |
| Labels made by | dataset gold, library cataloguers, programs, and LLMs (named per source and per row) |
|
| 40 |
| Licence | mixed, per row; web page text is **not** included (labels plus a pointer to the source row; rebuild snippet below) |
|
| 41 |
+
| Trains | [davanstrien/ultrabert-380m-curation](https://huggingface.co/davanstrien/ultrabert-380m-curation) (UltraBERT-380M + GLiClass head; 12,000 steps over this mix) |
|
| 42 |
+
| Build | mix builder on Hugging Face Jobs (CPU), then [`scripts/release_build.py`](scripts/release_build.py) for the release (a record of how this repo was made: it reads the mix from a private bucket); test sets fixed before the mix was built, and every row checked against them |
|
| 43 |
|
| 44 |
```python
|
| 45 |
import json
|
| 46 |
from datasets import load_dataset
|
| 47 |
+
ds = load_dataset("davanstrien/curation-decision-mix", "all", split="train") # or one config per source, e.g. "decisionbank"
|
| 48 |
+
ok = ds.filter(lambda r: r["licence_class"] == "permissive") # filter by licence before reuse
|
| 49 |
+
decisions = ok.filter(lambda r: r["row_type"] == "decision") # decision rows; the rest are GLiClass rows
|
| 50 |
+
q = json.loads(decisions[0]["question"]) # nested fields are JSON strings
|
| 51 |
```
|
| 52 |
|
| 53 |
---
|
| 54 |
|
| 55 |
## Layout
|
| 56 |
|
| 57 |
+
One config per source, plus `all`. `web` rows have an empty `state` by design (see Web text). Splitting by source keeps licence terms together, so a user can take only the parts
|
| 58 |
whose terms suit them.
|
| 59 |
|
| 60 |
| Config | Rows (training mix) | Shape |
|
|
|
|
| 69 |
| `arxiv` | 13,597 | GLiClass |
|
| 70 |
| `procpile` | 10,997 | GLiClass |
|
| 71 |
|
| 72 |
+
`manifest/training_mix_manifest.parquet` lists all 535,730 rows of the training mix (including the 18,766 rows not
|
| 73 |
+
released here): row id, source, licence class, labeller and a SHA-256 hash of each row's text.
|
| 74 |
+
|
| 75 |
Columns (union of both shapes; unused fields are null):
|
| 76 |
|
| 77 |
| Column | Meaning |
|
|
|
|
| 80 |
| `config`, `src` | source group and the finer origin (e.g. `db_bitext_support`, a tasksource task) |
|
| 81 |
| `row_type` | `decision` or `gliclass` |
|
| 82 |
| `teacher` | who made the label (e.g. `Llama-3.1-405B`, `cataloguer`, `program`, `50% source label + 50% Qwen3.8-27B`) |
|
| 83 |
+
| `licence_class`, `licence` | `permissive` / `sa` (share-alike, e.g. CC BY-SA, CDLA-Sharing) / `other_open` (MPL-2.0, AFL-3.0) / `publisher` (text not redistributed), and the licence id |
|
| 84 |
| `state` | the input (decision rows): a string, or a record as a JSON string |
|
| 85 |
| `question` | JSON string: `{type: noul|choice, instructions, criteria}`; `noul` = yes/no; `choice` options are `{key: description}`; graded scales use `level_<k>` keys, lowest first |
|
| 86 |
| `target` | JSON string: probability per option (soft targets allowed; sums to 1 for single-answer rows) |
|
|
|
|
| 112 |
(do not redistribute it):
|
| 113 |
|
| 114 |
```python
|
| 115 |
+
from datasets import load_dataset
|
| 116 |
+
|
| 117 |
src = {}
|
| 118 |
def rebuild(r):
|
| 119 |
if r["source_dataset"] not in src:
|
|
|
|
| 122 |
web = load_dataset("davanstrien/curation-decision-mix", "web", split="train").map(rebuild)
|
| 123 |
```
|
| 124 |
|
| 125 |
+
Row indices assume the source datasets are unchanged since October 2026. The snippet loads each source dataset in full; it has not been tested end to end.
|
| 126 |
|
| 127 |
---
|
| 128 |
|
|
|
|
| 131 |
| Source | Rows | What the rows ask | Labels made by | Licence |
|
| 132 |
|---|---:|---|---|---|
|
| 133 |
| base (tasksource + knowledgator GLiClass data) | 173,859 (192,625 trained on) | many public classification tasks | dataset gold; knowledgator gliclass-v2.0 / v3-logic (LLM-generated) | per source repo, in `licence`; only rows with a verified permissive, share-alike or other open licence are released (see Licences) |
|
| 134 |
+
| DecisionBank-260k (jgeuter/DecisionBank) | 165,277 | public tasks, written and programmatic decision questions | 50 % source label + 50 % Qwen3.8-27B; Qwen3.8-27B with thinking; 50 % Jeff 1.0 teachers (Qwen3.6-27B, Qwen3.5-122B-A10B) + 50 % Qwen3.8-27B (4,188 rows); code | per row: CC BY / CC BY-SA, Apache, MIT, CC0 (public domain), CDLA-Sharing-1.0; non-commercial, research-only, unknown and other terms dropped |
|
| 135 |
| prompt slice | 52,491 | NuminaMath-1.5 question type / problem type / validity; DeepMath-103K difficulty / topic; WebInstruct-verified answer type / category / difficulty; LMArena criteria and tags | dataset columns (NuminaMath, WebInstruct: labeller not documented); GPT-4o (DeepMath); LMArena classifiers | Apache-2.0; MIT; Apache-2.0; CC-BY-4.0 |
|
| 136 |
| web slice (**ids and labels only**) | 41,890 | WebOrganizer topic and format; FineWeb-Edu educational value | Llama-3.1-405B (WebOrganizer; the annotation datasets state no licence); Llama-3-70B (FineWeb-Edu) | labels: none stated; ODC-By. Page text: publisher copyright, not included (rebuild snippet above) |
|
| 137 |
| National Library of Scotland catalogue | 23,846 | subject areas of library records | National Library of Scotland cataloguers | CC0 |
|
| 138 |
+
| tool lane (code decisions) | 21,089 | linter findings (classification and yes/no) and complexity comparisons on functions from Python packages | program-computed (linter and complexity tools) | permissive package licences (MIT / BSD / Apache-2.0 / PSF); the package is not recorded per row |
|
| 139 |
| Harvard modern catalogue | 13,918 | Library of Congress subject class, literary form, government publication | Harvard Library cataloguers (from their catalogue records) | CC0 |
|
| 140 |
| arXiv | 13,597 | arXiv subject category | author-chosen categories | arXiv metadata (CC0) |
|
| 141 |
| procedural pile | 10,997 | program-checkable reasoning | program-computed | CC BY 4.0 (attribute) |
|
|
|
|
| 146 |
|
| 147 |
The mix is the result of a series of screened experiments (2026-10-23 → 10-27). Each choice below states what it rests
|
| 148 |
on: earlier decision-model reports, published curation work, or our own measurements. "Curation score" is the
|
| 149 |
+
benchmark used for selection: the mean of 16 curation test units (see the model card for the grouping and all 16 scores).
|
| 150 |
|
| 151 |
**1. Start from a broad public base, cleaned by task identity.** The base follows the GLiClass v4 recipe
|
| 152 |
(knowledgator): tasksource classification tasks plus knowledgator's GLiClass training sets, so the model keeps general
|
|
|
|
| 188 |
labeller. Only rows with allowed licences were kept; the HelpSteer families were dropped because they are held-out test sets.
|
| 189 |
|
| 190 |
**7. Program-computed lanes for reasoning and tools.** Procedural reasoning tasks, tool selection and arXiv
|
| 191 |
+
categories have labels that are computed or author-chosen, so no LLM labeller is involved (the task design still shapes them). They help general decision
|
| 192 |
tasks more than the curation score.
|
| 193 |
|
| 194 |
### How train and eval were split
|
|
|
|
| 203 |
- **Separate same-labeller from independent gold.** Where an eval's gold comes from the same LLM that labelled
|
| 204 |
training rows (WebOrganizer, FineWeb-Edu, DeepMath), it partly measures agreement with that labeller. The fair
|
| 205 |
comparison uses independent gold (Omni-MATH human ratings, Essential-Web), reported apart in the model card.
|
| 206 |
+
- **Seeds and review.** Each data choice was screened with ≥ 2 training seeds and claimed with ≥ 3; every claimed result was checked by
|
| 207 |
+
two independent automated reviews (separate AI models) before adoption.
|
| 208 |
|
| 209 |
## Decontamination
|
| 210 |
|
|
|
|
| 216 |
|
| 217 |
## Licences
|
| 218 |
|
| 219 |
+
Licence classes in this release: permissive 375,637 rows, share-alike 98,941, other open 496, publisher terms 41,890
|
| 220 |
+
(`web` labels only; page text trained on, never redistributed). DecisionBank's own parts are CC BY-SA 4.0;
|
| 221 |
+
share-alike rows keep their licence in this dataset. The model is released under Apache-2.0. These are the licences
|
| 222 |
+
stated by each source; this is not legal advice, so check the terms of the sources you reuse.
|
| 223 |
|
| 224 |
Base rows, by the licence on the source repo's card (or, for tasksource tasks, the origin dataset's card; not legal
|
| 225 |
advice): of 200,000 rows before decontamination, 178,084 verified permissive, 1,127 share-alike (CC BY-SA), 497 under
|
|
|
|
| 240 |
|
| 241 |
## Known issues
|
| 242 |
|
| 243 |
+
- Several label sources are LLM outputs (named above and per row in `teacher`). The WebOrganizer annotation datasets
|
| 244 |
+
carry no licence statement. The Llama 3 and Llama 3.1 licences cover the Llama-made labels (WebOrganizer, FineWeb-Edu);
|
| 245 |
+
read them before you reuse those rows.
|
| 246 |
- Use terms of the original sources apply to their rows; check `licence` / `src` per row before reuse.
|
| 247 |
- Multilingual rows (DecisionBank) are present; the model was evaluated in English only.
|
| 248 |
+
- Difficulty labels are subjective and depend on the labeller (LLM-made here; human ratings agree only moderately).
|
| 249 |
|
| 250 |
## Notes for agents
|
| 251 |
|
scripts/release_build.py
CHANGED
|
@@ -34,6 +34,8 @@ CONFIG_LICENCE = {"nls": "cc0-1.0", "harvard": "cc0-1.0", "arxiv": "cc0-1.0", "p
|
|
| 34 |
SRC_LICENCE = {"numina_": "apache-2.0", "wi_": "apache-2.0", "dm_": "mit", "arena_": "cc-by-4.0",
|
| 35 |
"fineweb_edu": "odc-by", "weborganizer_": None,
|
| 36 |
"tool": "per package: mit / bsd / apache-2.0 / psf"}
|
|
|
|
|
|
|
| 37 |
# Web rows: the id suffix is the row index in the source dataset's train split (scripts/cur_build.py).
|
| 38 |
WEB_SOURCE = {"cur-wo-topic-": "WebOrganizer/TopicAnnotations-Llama-3.1-405B-FP8",
|
| 39 |
"cur-wo-format-": "WebOrganizer/FormatAnnotations-Llama-3.1-405B-FP8",
|
|
@@ -78,6 +80,11 @@ def main():
|
|
| 78 |
stats[f"base:drop_{entry['status']}"] += 1
|
| 79 |
continue
|
| 80 |
licence = entry["licence"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
row_type = "gliclass" if "all_labels" in r else "decision"
|
| 82 |
state = r.get("state")
|
| 83 |
source_dataset = source_row = None
|
|
@@ -87,7 +94,7 @@ def main():
|
|
| 87 |
source_dataset, source_row = WEB_SOURCE[prefix], int(r["id"][len(prefix):])
|
| 88 |
out = {
|
| 89 |
"id": r["id"], "config": config, "src": r.get("src"), "row_type": row_type,
|
| 90 |
-
"teacher": r.get("teacher"), "licence_class":
|
| 91 |
"state": state if state is None or isinstance(state, str) else as_json(state),
|
| 92 |
"question": as_json(r.get("question")), "target": as_json(r.get("target")),
|
| 93 |
"text": r.get("text"), "all_labels": r.get("all_labels"),
|
|
@@ -102,6 +109,7 @@ def main():
|
|
| 102 |
no_licence[(config, out["src"])] += 1
|
| 103 |
rows[config].append(out)
|
| 104 |
stats[f"{config}:out"] += 1
|
|
|
|
| 105 |
|
| 106 |
schema = {c: pl.Utf8 for c in COLUMNS}
|
| 107 |
schema["all_labels"] = pl.List(pl.Utf8)
|
|
|
|
| 34 |
SRC_LICENCE = {"numina_": "apache-2.0", "wi_": "apache-2.0", "dm_": "mit", "arena_": "cc-by-4.0",
|
| 35 |
"fineweb_edu": "odc-by", "weborganizer_": None,
|
| 36 |
"tool": "per package: mit / bsd / apache-2.0 / psf"}
|
| 37 |
+
# Base rows: the class follows the source repo's resolved licence, not the mix-level "permissive" default.
|
| 38 |
+
BASE_CLASS = {"permissive": "permissive", "sa": "sa", "other_open": "other_open"}
|
| 39 |
# Web rows: the id suffix is the row index in the source dataset's train split (scripts/cur_build.py).
|
| 40 |
WEB_SOURCE = {"cur-wo-topic-": "WebOrganizer/TopicAnnotations-Llama-3.1-405B-FP8",
|
| 41 |
"cur-wo-format-": "WebOrganizer/FormatAnnotations-Llama-3.1-405B-FP8",
|
|
|
|
| 80 |
stats[f"base:drop_{entry['status']}"] += 1
|
| 81 |
continue
|
| 82 |
licence = entry["licence"]
|
| 83 |
+
licence_class = BASE_CLASS[entry["status"]]
|
| 84 |
+
if config != "base":
|
| 85 |
+
licence_class = r.get("licence_class")
|
| 86 |
+
if licence and ("-sa" in licence or "sharing" in licence):
|
| 87 |
+
assert licence_class == "sa", (r["id"], licence, licence_class)
|
| 88 |
row_type = "gliclass" if "all_labels" in r else "decision"
|
| 89 |
state = r.get("state")
|
| 90 |
source_dataset = source_row = None
|
|
|
|
| 94 |
source_dataset, source_row = WEB_SOURCE[prefix], int(r["id"][len(prefix):])
|
| 95 |
out = {
|
| 96 |
"id": r["id"], "config": config, "src": r.get("src"), "row_type": row_type,
|
| 97 |
+
"teacher": r.get("teacher"), "licence_class": licence_class, "licence": licence,
|
| 98 |
"state": state if state is None or isinstance(state, str) else as_json(state),
|
| 99 |
"question": as_json(r.get("question")), "target": as_json(r.get("target")),
|
| 100 |
"text": r.get("text"), "all_labels": r.get("all_labels"),
|
|
|
|
| 109 |
no_licence[(config, out["src"])] += 1
|
| 110 |
rows[config].append(out)
|
| 111 |
stats[f"{config}:out"] += 1
|
| 112 |
+
stats[f"class:{licence_class}"] += 1
|
| 113 |
|
| 114 |
schema = {c: pl.Utf8 for c in COLUMNS}
|
| 115 |
schema["all_labels"] = pl.List(pl.Utf8)
|