tasksource 0.0.39__tar.gz → 0.0.41__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tasksource-0.0.39/src/tasksource.egg-info → tasksource-0.0.41}/PKG-INFO +23 -7
- tasksource-0.0.39/PKG-INFO → tasksource-0.0.41/README.md +12 -17
- tasksource-0.0.41/mtasks.md +404 -0
- tasksource-0.0.41/src/tasksource/metadata/original.txt +250 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource/mtasks.py +11 -5
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource/recast.py +2 -2
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource/tasks.py +79 -8
- tasksource-0.0.39/README.md → tasksource-0.0.41/src/tasksource.egg-info/PKG-INFO +33 -5
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource.egg-info/SOURCES.txt +2 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/tasks.md +451 -436
- {tasksource-0.0.39 → tasksource-0.0.41}/.github/scripts/release.py +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/.github/workflows/python-publish.yml +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/.github/workflows/release.yml +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/.gitignore +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/CITATION.cff +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/LICENSE +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/pyproject.toml +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/setup.cfg +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource/__init__.py +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource/access.py +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource/metadata/__init__.py +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource/metadata/bigbench_groups.py +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource/metadata/blimp_groups.py +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource/metadata/popularity.py +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource/preprocess.py +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource.egg-info/dependency_links.txt +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource.egg-info/requires.txt +0 -0
- {tasksource-0.0.39 → tasksource-0.0.41}/src/tasksource.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tasksource
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.41
|
|
4
4
|
Summary: Preprocessings to prepare datasets for a task
|
|
5
5
|
Home-page: https://github.com/sileod/tasksource/
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -9,8 +9,17 @@ Classifier: Intended Audience :: Developers
|
|
|
9
9
|
Requires-Python: >=3.6
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
Requires-Dist: dotwiz
|
|
13
|
+
Requires-Dist: funcy
|
|
14
|
+
Requires-Dist: datasets
|
|
15
|
+
Requires-Dist: exrex
|
|
16
|
+
Requires-Dist: magicattr
|
|
17
|
+
Requires-Dist: pandas
|
|
18
|
+
Requires-Dist: numpy
|
|
19
|
+
Requires-Dist: scipy
|
|
20
|
+
Requires-Dist: sorcery
|
|
21
|
+
|
|
22
|
+
## tasksource  500+ curated datasets and preprocessings for instant and interchangeable use
|
|
14
23
|
|
|
15
24
|
Huggingface Datasets is an excellent library, but it lacks standardization, and datasets often require preprocessing work to be used interchangeably.
|
|
16
25
|
`tasksource` streamlines interchangeable datasets usage to scale evaluation or multi-task learning.
|
|
@@ -21,7 +30,7 @@ Each dataset is standardized to a `MultipleChoice`, `Classification`, or `TokenC
|
|
|
21
30
|
`pip install tasksource`
|
|
22
31
|
```python
|
|
23
32
|
from tasksource import list_tasks, load_task
|
|
24
|
-
df = list_tasks() # takes some time
|
|
33
|
+
df = list_tasks(multilingual=False) # takes some time
|
|
25
34
|
|
|
26
35
|
for id in df[df.task_type=="MultipleChoice"].id:
|
|
27
36
|
dataset = load_task(id) # all yielded datasets can be used interchangeably
|
|
@@ -29,11 +38,18 @@ for id in df[df.task_type=="MultipleChoice"].id:
|
|
|
29
38
|
|
|
30
39
|
Browse the 500+ curated tasks in tasks.md (200+ MultipleChoice tasks, 200+ Classification tasks), and feel free to request a new task. Datasets are downloaded to $HF_DATASETS_CACHE (like any Hugging Face dataset), so ensure you have more than 100GB of space available.
|
|
31
40
|
|
|
32
|
-
|
|
41
|
+
You can now also use:
|
|
42
|
+
```python
|
|
43
|
+
load_dataset("tasksource/data", "glue/rte",max_rows=30_000)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Pretrained models:
|
|
33
47
|
|
|
34
48
|
Text encoder pretrained on tasksource reached state-of-the-art results: [🤗/deberta-v3-base-tasksource-nli](https://hf.co/sileod/deberta-v3-base-tasksource-nli)
|
|
35
49
|
|
|
36
|
-
Tasksource pretraining is notably helpful for RLHF reward modeling.
|
|
50
|
+
Tasksource pretraining is notably helpful for RLHF reward modeling or any kind of classification, including zero-shot. You can also find a large, and a multilingual version.
|
|
51
|
+
|
|
52
|
+
[u/conceptofmind](https://github.com/conceptofmind) also trained Llama on tasksource: [🤗/conceptofmind/Tasksource-Open-Llama-13b](https://hf.co/conceptofmind/Tasksource-Open-Llama-13b)
|
|
37
53
|
|
|
38
54
|
### tasksource-instruct
|
|
39
55
|
|
|
@@ -43,7 +59,7 @@ The repo also contains some recasting code to convert tasksource datasets to ins
|
|
|
43
59
|
|
|
44
60
|
### tasksource-label-nli
|
|
45
61
|
|
|
46
|
-
We also recast all classification tasks
|
|
62
|
+
We also recast all classification tasks as natural language inference, to improve entailment-based zero-shot classification detection:
|
|
47
63
|
[🤗/zero-shot-label-nli](https://huggingface.co/datasets/tasksource/zero-shot-label-nli)
|
|
48
64
|
|
|
49
65
|
### Write and use custom preprocessings
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Name: tasksource
|
|
3
|
-
Version: 0.0.39
|
|
4
|
-
Summary: Preprocessings to prepare datasets for a task
|
|
5
|
-
Home-page: https://github.com/sileod/tasksource/
|
|
6
|
-
Classifier: Programming Language :: Python :: 3
|
|
7
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
8
|
-
Classifier: Intended Audience :: Developers
|
|
9
|
-
Requires-Python: >=3.6
|
|
10
|
-
Description-Content-Type: text/markdown
|
|
11
|
-
License-File: LICENSE
|
|
12
|
-
|
|
13
|
-
## tasksource  500+ curated datasets and preprocessings for effortless scaling of multi-task learning and evaluation.
|
|
1
|
+
## tasksource  500+ curated datasets and preprocessings for instant and interchangeable use
|
|
14
2
|
|
|
15
3
|
Huggingface Datasets is an excellent library, but it lacks standardization, and datasets often require preprocessing work to be used interchangeably.
|
|
16
4
|
`tasksource` streamlines interchangeable datasets usage to scale evaluation or multi-task learning.
|
|
@@ -21,7 +9,7 @@ Each dataset is standardized to a `MultipleChoice`, `Classification`, or `TokenC
|
|
|
21
9
|
`pip install tasksource`
|
|
22
10
|
```python
|
|
23
11
|
from tasksource import list_tasks, load_task
|
|
24
|
-
df = list_tasks() # takes some time
|
|
12
|
+
df = list_tasks(multilingual=False) # takes some time
|
|
25
13
|
|
|
26
14
|
for id in df[df.task_type=="MultipleChoice"].id:
|
|
27
15
|
dataset = load_task(id) # all yielded datasets can be used interchangeably
|
|
@@ -29,11 +17,18 @@ for id in df[df.task_type=="MultipleChoice"].id:
|
|
|
29
17
|
|
|
30
18
|
Browse the 500+ curated tasks in tasks.md (200+ MultipleChoice tasks, 200+ Classification tasks), and feel free to request a new task. Datasets are downloaded to $HF_DATASETS_CACHE (like any Hugging Face dataset), so ensure you have more than 100GB of space available.
|
|
31
19
|
|
|
32
|
-
|
|
20
|
+
You can now also use:
|
|
21
|
+
```python
|
|
22
|
+
load_dataset("tasksource/data", "glue/rte",max_rows=30_000)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Pretrained models:
|
|
33
26
|
|
|
34
27
|
Text encoder pretrained on tasksource reached state-of-the-art results: [🤗/deberta-v3-base-tasksource-nli](https://hf.co/sileod/deberta-v3-base-tasksource-nli)
|
|
35
28
|
|
|
36
|
-
Tasksource pretraining is notably helpful for RLHF reward modeling.
|
|
29
|
+
Tasksource pretraining is notably helpful for RLHF reward modeling or any kind of classification, including zero-shot. You can also find a large, and a multilingual version.
|
|
30
|
+
|
|
31
|
+
[u/conceptofmind](https://github.com/conceptofmind) also trained Llama on tasksource: [🤗/conceptofmind/Tasksource-Open-Llama-13b](https://hf.co/conceptofmind/Tasksource-Open-Llama-13b)
|
|
37
32
|
|
|
38
33
|
### tasksource-instruct
|
|
39
34
|
|
|
@@ -43,7 +38,7 @@ The repo also contains some recasting code to convert tasksource datasets to ins
|
|
|
43
38
|
|
|
44
39
|
### tasksource-label-nli
|
|
45
40
|
|
|
46
|
-
We also recast all classification tasks
|
|
41
|
+
We also recast all classification tasks as natural language inference, to improve entailment-based zero-shot classification detection:
|
|
47
42
|
[🤗/zero-shot-label-nli](https://huggingface.co/datasets/tasksource/zero-shot-label-nli)
|
|
48
43
|
|
|
49
44
|
### Write and use custom preprocessings
|