Dataset card
Browse files
README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
-
license:
|
| 5 |
size_categories:
|
| 6 |
- 1M<n<10M
|
| 7 |
task_categories:
|
|
@@ -9,7 +10,22 @@ task_categories:
|
|
| 9 |
- text-classification
|
| 10 |
- token-classification
|
| 11 |
- zero-shot-classification
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
dataset_info:
|
| 14 |
features:
|
| 15 |
- name: inputs
|
|
@@ -34,65 +50,82 @@ dataset_info:
|
|
| 34 |
num_examples: 193580
|
| 35 |
download_size: 3099611926
|
| 36 |
dataset_size: 6849144692
|
| 37 |
-
tags:
|
| 38 |
-
- instructions
|
| 39 |
-
- instruction-tuning
|
| 40 |
-
- instruction-finetuning
|
| 41 |
-
- flan
|
| 42 |
-
- promptsource
|
| 43 |
-
- tasksource
|
| 44 |
-
configs:
|
| 45 |
-
- config_name: default
|
| 46 |
-
data_files:
|
| 47 |
-
- split: train
|
| 48 |
-
path: data/train-*
|
| 49 |
-
- split: test
|
| 50 |
-
path: data/test-*
|
| 51 |
-
- split: validation
|
| 52 |
-
path: data/validation-*
|
| 53 |
---
|
| 54 |
-
# Dataset Card for "tasksource-instruct-v0" (TSI)
|
| 55 |
|
|
|
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
```python
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
yield tasksource.load_task(task,instruct=True,max_rows=30_000,max_rows_eval=200)
|
| 66 |
```
|
| 67 |
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
-
|
|
|
|
|
|
|
| 71 |
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
List of tasks [here](https://github.com/sileod/tasksource/blob/main/tasks.md). Examples of tasks not in Flan V2 include Dynasent (adversarial sentiment analysis), Dynahate (adversarial hate speech detection, discriminative babi, epistemic logic, ruletaker, veridicality, discourse relation prediction, dozens of interesting natural language inference datasets...
|
| 75 |
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
|
|
|
| 79 |
|
| 80 |
-
|
| 81 |
|
| 82 |
-
|
| 83 |
-
|
| 84 |
|
| 85 |
-
|
|
|
|
| 86 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
@inproceedings{sileo-2024-tasksource,
|
| 88 |
title = "tasksource: A Large Collection of {NLP} tasks with a Structured Dataset Preprocessing Framework",
|
| 89 |
author = "Sileo, Damien",
|
| 90 |
-
editor = "Calzolari, Nicoletta and
|
| 91 |
-
Kan, Min-Yen and
|
| 92 |
-
Hoste, Veronique and
|
| 93 |
-
Lenci, Alessandro and
|
| 94 |
-
Sakti, Sakriani and
|
| 95 |
-
Xue, Nianwen",
|
| 96 |
booktitle = "Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)",
|
| 97 |
month = may,
|
| 98 |
year = "2024",
|
|
@@ -101,4 +134,4 @@ https://arxiv.org/abs/2301.05948
|
|
| 101 |
url = "https://aclanthology.org/2024.lrec-main.1361/",
|
| 102 |
pages = "15655--15684",
|
| 103 |
}
|
| 104 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: tasksource-instruct
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
+
license: other
|
| 6 |
size_categories:
|
| 7 |
- 1M<n<10M
|
| 8 |
task_categories:
|
|
|
|
| 10 |
- text-classification
|
| 11 |
- token-classification
|
| 12 |
- zero-shot-classification
|
| 13 |
+
tags:
|
| 14 |
+
- instructions
|
| 15 |
+
- instruction-tuning
|
| 16 |
+
- instruction-finetuning
|
| 17 |
+
- flan
|
| 18 |
+
- promptsource
|
| 19 |
+
- tasksource
|
| 20 |
+
configs:
|
| 21 |
+
- config_name: default
|
| 22 |
+
data_files:
|
| 23 |
+
- split: train
|
| 24 |
+
path: data/train-*
|
| 25 |
+
- split: test
|
| 26 |
+
path: data/test-*
|
| 27 |
+
- split: validation
|
| 28 |
+
path: data/validation-*
|
| 29 |
dataset_info:
|
| 30 |
features:
|
| 31 |
- name: inputs
|
|
|
|
| 50 |
num_examples: 193580
|
| 51 |
download_size: 3099611926
|
| 52 |
dataset_size: 6849144692
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
---
|
|
|
|
| 54 |
|
| 55 |
+
# tasksource-instruct
|
| 56 |
|
| 57 |
+
**Instruction-tuning data recast from the ~480 English classification, multiple-choice
|
| 58 |
+
and token-classification tasks of [tasksource](https://github.com/sileod/tasksource).**
|
| 59 |
+
|
| 60 |
+
Every example comes from a human-built dataset (NLI, logical reasoning, sentiment,
|
| 61 |
+
hate speech, discourse, argumentation, ...), not from a teacher model. Each task is
|
| 62 |
+
capped at 30k training examples, so no task dominates. Many tasks aren't in FLAN v2,
|
| 63 |
+
for example DynaSent, DynaHate, discriminative bAbI, epistemic logic, RuleTaker,
|
| 64 |
+
veridicality and dozens of NLI datasets.
|
| 65 |
|
| 66 |
```python
|
| 67 |
+
from datasets import load_dataset
|
| 68 |
+
|
| 69 |
+
ds = load_dataset("tasksource/tasksource-instruct", split="train")
|
| 70 |
+
ds = ds.filter(lambda use: use == "commercial", input_columns="license_use") # optional
|
|
|
|
| 71 |
```
|
| 72 |
|
| 73 |
+
## Format
|
| 74 |
+
|
| 75 |
+
| column | content |
|
| 76 |
+
|---|---|
|
| 77 |
+
| `inputs` | the instruction, the example, and the answer options |
|
| 78 |
+
| `targets` | the answer: an option (`entailment.`), a letter (`B.`), or `word: TAG` lines for token tasks |
|
| 79 |
+
| `task` | the tasksource task id |
|
| 80 |
+
| `license`, `license_use` | the source's licenses, see below |
|
| 81 |
|
| 82 |
+
Prompts ask for the answer with no explanation, so the short targets don't teach a
|
| 83 |
+
model to stop explaining in general. Tasks are interleaved round-robin, so any
|
| 84 |
+
slice of the split mixes them. Validation and test keep up to 500 examples per task.
|
| 85 |
|
| 86 |
+
`tasksource-instruct` works well mixed with FLAN v2 or other instruction data. It
|
| 87 |
+
covers discriminative reasoning tasks that those sets cover less.
|
|
|
|
| 88 |
|
| 89 |
+
For preference pairs built from the same rows, see
|
| 90 |
+
[tasksource_dpo_pairs](https://huggingface.co/datasets/tasksource/tasksource_dpo_pairs).
|
| 91 |
+
For soft labels, ratings and multi-question requests, see
|
| 92 |
+
[tasksource-jev-typed-decisions](https://huggingface.co/datasets/tasksource/tasksource-jev-typed-decisions).
|
| 93 |
|
| 94 |
+
## Reproducibility
|
| 95 |
|
| 96 |
+
The dataset is built by
|
| 97 |
+
[`scripts/build_instruct_dataset.py`](https://github.com/sileod/tasksource/blob/main/scripts/build_instruct_dataset.py):
|
| 98 |
|
| 99 |
+
```bash
|
| 100 |
+
PYTHONPATH=.:src python scripts/build_instruct_dataset.py --finalize
|
| 101 |
```
|
| 102 |
+
|
| 103 |
+
Sources are loaded at pinned Hub revisions. [sources.yaml](sources.yaml) records, per
|
| 104 |
+
task, the Hub dataset, revision, original dataset, licenses and row counts, and
|
| 105 |
+
`build-report.jsonl` records the code commit of each task's build. MMLU, BIG-bench and
|
| 106 |
+
BLiMP are left out, so they stay clean for evaluation. Other public benchmarks (GLUE,
|
| 107 |
+
SuperGLUE, HellaSwag, PIQA, ...) are **in** the data through their training splits.
|
| 108 |
+
|
| 109 |
+
## License and scope
|
| 110 |
+
|
| 111 |
+
Tasksource harmonizes datasets from many publishers; their original licenses
|
| 112 |
+
and terms still apply, hence `license: other`.
|
| 113 |
+
|
| 114 |
+
- `license` lists the `license` of the Hub dataset card the task was loaded from,
|
| 115 |
+
and of the original dataset behind a tasksource copy. It also lists licenses recorded
|
| 116 |
+
by the [Data Provenance Initiative](https://www.dataprovenance.org/), marked `(DPI)`.
|
| 117 |
+
- `license_use` takes the most restrictive of those: `non-commercial` if any is
|
| 118 |
+
non-commercial or academic-only, `commercial` if one allows commercial use (share-alike
|
| 119 |
+
and copyleft included), and `unspecified` otherwise.
|
| 120 |
+
|
| 121 |
+
This is a best-effort aid, not legal advice. Check the original terms before relying on them.
|
| 122 |
+
|
| 123 |
+
## Citation
|
| 124 |
+
|
| 125 |
+
```bibtex
|
| 126 |
@inproceedings{sileo-2024-tasksource,
|
| 127 |
title = "tasksource: A Large Collection of {NLP} tasks with a Structured Dataset Preprocessing Framework",
|
| 128 |
author = "Sileo, Damien",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
booktitle = "Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)",
|
| 130 |
month = may,
|
| 131 |
year = "2024",
|
|
|
|
| 134 |
url = "https://aclanthology.org/2024.lrec-main.1361/",
|
| 135 |
pages = "15655--15684",
|
| 136 |
}
|
| 137 |
+
```
|