Datasets:

Modalities:
Tabular
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
Dask
License:
shivi commited on
Commit
9ed2dd5
·
verified ·
1 Parent(s): 1019b59

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +374 -0
README.md CHANGED
@@ -1,4 +1,120 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: apache-2.0
3
  dataset_info:
4
  - config_name: achinese
@@ -5522,3 +5638,261 @@ configs:
5522
  - split: test
5523
  path: zulu/test-*
5524
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - ace
4
+ - afr
5
+ - amh
6
+ - ara
7
+ - aze
8
+ - ban
9
+ - bbc
10
+ - bel
11
+ - bem
12
+ - ben
13
+ - bjn
14
+ - bul
15
+ - cat
16
+ - ceb
17
+ - ces
18
+ - cym
19
+ - dan
20
+ - deu
21
+ - ell
22
+ - eng
23
+ - epo
24
+ - est
25
+ - eus
26
+ - fil
27
+ - fin
28
+ - fon
29
+ - fra
30
+ - gla
31
+ - gle
32
+ - glg
33
+ - guj
34
+ - hat
35
+ - hau
36
+ - heb
37
+ - hin
38
+ - hrv
39
+ - hun
40
+ - hye
41
+ - ibo
42
+ - ind
43
+ - isl
44
+ - ita
45
+ - jav
46
+ - jpn
47
+ - kan
48
+ - kas
49
+ - kat
50
+ - kau
51
+ - kaz
52
+ - khm
53
+ - kin
54
+ - kir
55
+ - kor
56
+ - kur
57
+ - lao
58
+ - lav
59
+ - lij
60
+ - lit
61
+ - ltz
62
+ - mad
63
+ - mal
64
+ - man
65
+ - mar
66
+ - min
67
+ - mkd
68
+ - mlg
69
+ - mlt
70
+ - mon
71
+ - mri
72
+ - msa
73
+ - mya
74
+ - nep
75
+ - nij
76
+ - nld
77
+ - nor
78
+ - nso
79
+ - nya
80
+ - pan
81
+ - pes
82
+ - pol
83
+ - por
84
+ - pus
85
+ - ron
86
+ - rus
87
+ - sin
88
+ - slk
89
+ - slv
90
+ - smo
91
+ - sna
92
+ - snd
93
+ - som
94
+ - sot
95
+ - spa
96
+ - sqi
97
+ - srp
98
+ - sun
99
+ - swa
100
+ - swe
101
+ - tam
102
+ - taq
103
+ - tel
104
+ - tgk
105
+ - tha
106
+ - tur
107
+ - twi
108
+ - ukr
109
+ - urd
110
+ - uzb
111
+ - vie
112
+ - wol
113
+ - xho
114
+ - yid
115
+ - yor
116
+ - zho
117
+ - zul
118
  license: apache-2.0
119
  dataset_info:
120
  - config_name: achinese
 
5638
  - split: test
5639
  path: zulu/test-*
5640
  ---
5641
+
5642
+ ![Aya Header](https://huggingface.co/datasets/CohereForAI/aya_collection/resolve/main/aya_header.png)
5643
+
5644
+ # Dataset Summary
5645
+ The Aya Collection is a massive multilingual collection consisting of 513 million instances of prompts and completions covering a wide range of tasks.
5646
+ This collection incorporates instruction-style templates from fluent speakers and applies them to a curated list of datasets, as well as translations of instruction-style datasets into 101 languages. Aya Dataset, a human-curated multilingual instruction and response dataset, is also part of this collection. See our paper for more details regarding the collection.
5647
+
5648
+ - **Curated by:** Contributors of [Aya Open Science Intiative](https://cohere.com/research/aya)
5649
+ - **Language(s):** 115 languages
5650
+ - **License:** [Apache 2.0](https://opensource.org/license/apache-2-0)
5651
+
5652
+ - **Aya Datasets Family:**
5653
+ | Name | Explanation |
5654
+ |------|--------------|
5655
+ | [aya_dataset](https://huggingface.co/datasets/CohereForAI/aya_dataset) | Human-annotated multilingual instruction finetuning dataset, comprising over 204K instances across 65 languages. |
5656
+ | [aya_collection](https://huggingface.co/datasets/CohereForAI/aya_collection) | Created by applying instruction-style templates from fluent speakers to 44 datasets, including translations of 19 instruction-style datasets into 101 languages. This collection structured based on dataset level subsets. An alternative version of the collection structured by language subsets is also available.|
5657
+ | [aya_collection_language_split](https://huggingface.co/datasets/CohereForAI/aya_collection_language_split) | Aya Collection structured based on language level subsets. |
5658
+ | [aya_evaluation_suite](https://huggingface.co/datasets/CohereForAI/aya_evaluation_suite) | A diverse evaluation set for multilingual open-ended generation, featuring 250 culturally grounded prompts in 7 languages, 200 translated prompts in 24 languages, and human-edited versions selected for cross-cultural relevance from English Dolly in 6 languages.|
5659
+
5660
+
5661
+ # Dataset
5662
+ The `Aya Collection` is a comprehensive, large corpus of datasets that can be used by researchers around the world to train multilingual models. Our goal is only to include datasets with permissive licensing for manipulation and redistribution.
5663
+
5664
+ The `Aya Collection` consists of three different sources of data:
5665
+
5666
+ 1. Templated data: We collaborated with fluent speakers to create templates that allowed for the automatic expansion of existing datasets into various languages.
5667
+ 2. Translated data: We translated a hand-selected subset of 19 datasets into 101 languages (114 dialects) using the NLLB 3.3B parameter machine translation model.
5668
+ 3. Aya Dataset: We release the [Aya Dataset](https://huggingface.co/datasets/CohereForAI/aya_dataset) as a subset of the overall collection. This is the only dataset in the collection that is human-annotated in its entirety.
5669
+
5670
+ ## Load with Datasets
5671
+ To load this dataset with Datasets, you'll need to install Datasets as `pip install datasets --upgrade` and then use the following code:
5672
+
5673
+ ```python
5674
+ from datasets import load_dataset
5675
+
5676
+ dataset = load_dataset("CohereForAI/aya_collection_language_split", "english")
5677
+ ```
5678
+ In the above code snippet, "english" refers to a subset of the aya_collection. You can load other subsets by specifying its name at the time of loading the dataset.
5679
+
5680
+ ## Data Instances
5681
+ An example of a `train` instance looks as follows:
5682
+ ```json
5683
+ {'id': 246001,
5684
+ 'inputs': 'The following query in English is taken from the geography category. What could be the answer to the question?\nWhat is the seventh tallest mountain in North America?',
5685
+ 'targets': 'The answer is Mount Lucania.',
5686
+ 'dataset_name': 'Mintaka-inst',
5687
+ 'sub_dataset_name': '-',
5688
+ 'task_type': 'question-answering',
5689
+ 'template_id': 3,
5690
+ 'language': 'eng',
5691
+ 'split': 'train',
5692
+ 'script': 'Latn'
5693
+ }
5694
+ ```
5695
+
5696
+ ## Data Fields
5697
+ The data fields are the same among all splits:
5698
+ - `id:` Unique id of the data point
5699
+ - `inputs:` Prompt or input to the language model.
5700
+ - `targets:` Completion or output of the language model.
5701
+ - `dataset_name:` The name of the source dataset that the data point was taken from
5702
+ - `sub_dataset_name:` If the source is a collection, this field indicates which part of that collection the data point was taken from. If it is not a collection, this field is left blank.
5703
+ - `task_type:` The task type that this conversation belongs to.
5704
+ - `template_id`: The id of the template applied to this data point.
5705
+ - `language:` The ISO code of the dialect of the conversation.
5706
+ - `script:` The script of the language.
5707
+ - `split:` Indicates whether the data point is part of the `train` or the `test` split.
5708
+
5709
+
5710
+
5711
+ ### Statistics
5712
+ The total number of data points, including the Aya Dataset` is 513,758,189. To view the breakdown of dialect codes and the respective templated and translated data point counts in the Aya Collection , refer to the toggled table below.
5713
+
5714
+ <details>
5715
+ <summary> <b> Breakdown of Aya Collection data point counts grouped by dialects </b> </summary>
5716
+
5717
+ |dialect code|language|total count |
5718
+ |------------|--------|---------------|
5719
+ |ace |Achinese|8242684 |
5720
+ |acm |Arabic |4120342 |
5721
+ |acq |Arabic |4120342 |
5722
+ |aeb |Arabic |4120342 |
5723
+ |afr |Afrikaans|4126450 |
5724
+ |ajp |Arabic |4120342 |
5725
+ |als |Albanian|4120342 |
5726
+ |amh |Amharic |4145669 |
5727
+ |apc |Arabic |4120342 |
5728
+ |arb |Arabic |6641429 |
5729
+ |ars |Arabic |4120342 |
5730
+ |ary |Arabic |4138418 |
5731
+ |arz |Arabic |4120342 |
5732
+ |azb |Azerbaijani|4120342 |
5733
+ |azj |Azerbaijani|4120342 |
5734
+ |bel |Belarusian|4141615 |
5735
+ |ben |Bengali |4151003 |
5736
+ |bjn |Banjar |8242684 |
5737
+ |bul |Bulgarian|4158064 |
5738
+ |cat |Catalan |4187242 |
5739
+ |ceb |Cebuano |4120342 |
5740
+ |ces |Czech |4299946 |
5741
+ |ckb |Kurdish |4120342 |
5742
+ |cym |Welsh |4120342 |
5743
+ |dan |Danish |4156652 |
5744
+ |deu |German |5447064 |
5745
+ |ell |Greek |4160633 |
5746
+ |eng |English |17838105 |
5747
+ |epo |Esperanto|4120342 |
5748
+ |est |Estonian|4120342 |
5749
+ |eus |Basque |4120342 |
5750
+ |fin |Finnish |4578237 |
5751
+ |fra |French |4955862 |
5752
+ |gla |Scottish Gaelic|4120342 |
5753
+ |gle |Irish |4120342 |
5754
+ |glg |Galician|4120342 |
5755
+ |guj |Gujarati|4122499 |
5756
+ |hat |Haitian Creole|4120342 |
5757
+ |hau |Hausa |4171738 |
5758
+ |heb |Hebrew |4223808 |
5759
+ |hin |Hindi |4380729 |
5760
+ |hun |Hungarian|4202381 |
5761
+ |hye |Armenian|4127422 |
5762
+ |ibo |Igbo |4156654 |
5763
+ |ind |Indonesian|4166051 |
5764
+ |isl |Icelandic|4120342 |
5765
+ |ita |Italian |4526024 |
5766
+ |jav |Javanese|4121171 |
5767
+ |jpn |Japanese|6813519 |
5768
+ |kan |Kannada |4121498 |
5769
+ |kas |Kashmiri|4120342 |
5770
+ |kat |Georgian|4120342 |
5771
+ |kaz |Kazakh |4120342 |
5772
+ |khk |Mongolian|4120342 |
5773
+ |khm |Khmer |4120342 |
5774
+ |kir |Kyrgyz |4120342 |
5775
+ |kmr |Kurdish |4120342 |
5776
+ |knc |Kanuri |8240684 |
5777
+ |kor |Korean |4161353 |
5778
+ |lao |Lao |4120342 |
5779
+ |lit |Lithuanian|4120342 |
5780
+ |ltz |Luxembourgish|4120342 |
5781
+ |lvs |Latvian |4120342 |
5782
+ |mal |Malayalam|4124689 |
5783
+ |mar |Marathi |4124020 |
5784
+ |min |Minangkabau|6755788 |
5785
+ |mkd |Macedonian|4120342 |
5786
+ |mlt |Maltese |4120342 |
5787
+ |mni |Manipuri|4120342 |
5788
+ |mri |Maori |4120342 |
5789
+ |mya |Burmese |4120342 |
5790
+ |nld |Dutch |4340523 |
5791
+ |nno |Norwegian|4120342 |
5792
+ |nob |Norwegian|4120342 |
5793
+ |npi |Nepali |4120342 |
5794
+ |nso |Northern Sotho|4120342 |
5795
+ |pbt |Pashto |4120342 |
5796
+ |pes |Persian |4365862 |
5797
+ |plt |Malagasy|4120342 |
5798
+ |pol |Polish |4452845 |
5799
+ |por |Portuguese|4407774 |
5800
+ |ron |Romanian|4156701 |
5801
+ |rus |Russian |4666262 |
5802
+ |sin |Sinhala |4120537 |
5803
+ |slk |Slovak |4148187 |
5804
+ |slv |Slovenian|4146073 |
5805
+ |smo |Samoan |4120342 |
5806
+ |sna |Shona |4124026 |
5807
+ |snd |Sindhi |4120342 |
5808
+ |som |Somali |4123268 |
5809
+ |sot |Southern Sotho|4120342 |
5810
+ |spa |Spanish |4499536 |
5811
+ |srp |Serbian |4197466 |
5812
+ |sun |Sundanese|4122550 |
5813
+ |swe |Swedish |4196828 |
5814
+ |swh |Swahili |4133068 |
5815
+ |tam |Tamil |4131804 |
5816
+ |taq |Tamasheq|4120342 |
5817
+ |tel |Telugu |4598163 |
5818
+ |tgk |Tajik |4120342 |
5819
+ |tha |Thai |6245522 |
5820
+ |tur |Turkish |4180274 |
5821
+ |ukr |Ukrainian|4309726 |
5822
+ |urd |Urdu |4458081 |
5823
+ |uzn |Uzbek |4120342 |
5824
+ |vie |Vietnamese|4162574 |
5825
+ |xho |Xhosa |4123294 |
5826
+ |ydd |Yiddish |4120342 |
5827
+ |yor |Yoruba |4125249 |
5828
+ |yue |Chinese |4120342 |
5829
+ |zho-Hans |Chinese |4174870 |
5830
+ |zho-Hant |Chinese |4120342 |
5831
+ |zsm |Malay |4134292 |
5832
+ |zul |Zulu |4121128 |
5833
+ |arq |Arabic |6046 |
5834
+ |ban |Balinese|2000 |
5835
+ |bbc |Toba Batak|2000 |
5836
+ |bem |Bemba |776 |
5837
+ |fil |Filipino|220 |
5838
+ |fon |Fon |845 |
5839
+ |hrv |Croatian|9007 |
5840
+ |kin |Kinyarwanda|11165 |
5841
+ |lij |Ligurian|6409 |
5842
+ |mad |Madurese|2000 |
5843
+ |nij |Ngaju |2000 |
5844
+ |nor |Norwegian|72352 |
5845
+ |pan |Punjabi |2156 |
5846
+ |twi |Twi |10840 |
5847
+ |wol |Wolof |785 |
5848
+ |zho |Chinese |74972 |
5849
+
5850
+ PS: Templated data also includes Mozambican Portuguese, which doesn't have its own ISO language code.
5851
+
5852
+ </details>
5853
+
5854
+ <br>
5855
+
5856
+
5857
+ # Motivations & Intentions
5858
+ - **Curation Rationale:** Automatic augmentation of existing datasets serves to enhance the available linguistic resources for multiple languages. The list of languages was initially established from mT5 and aligned with the annotators’ language list and NLLB translation model. The datasets were translated directly from English for all languages.
5859
+
5860
+
5861
+ # Additional Information
5862
+ ## Provenance
5863
+ - **Methods Used:** A combination of crowd-sourced templating and automatic translation was employed to source this dataset.
5864
+ - **Methodology Details:**
5865
+ - *Source:* Existing NLP datasets
5866
+ - *Dates of Collection:* May 2023 - Dec 2023
5867
+
5868
+
5869
+ ## Dataset Version and Maintenance
5870
+ - **Maintenance Status:** Actively Maintained
5871
+ - **Version Details:**
5872
+ - *Current version:* 1.0
5873
+ - *Last Update:* 02/2024
5874
+ - *First Release:* 02/2024
5875
+
5876
+
5877
+ ## Authorship
5878
+ - **Publishing Organization:** [Cohere For AI](https://cohere.com/research)
5879
+ - **Industry Type:** Not-for-profit - Tech
5880
+ - **Contact Details:** https://cohere.com/research/aya
5881
+
5882
+
5883
+ ## Licensing Information
5884
+ This dataset can be used for any purpose, whether academic or commercial, under the terms of the [Apache 2.0](https://opensource.org/license/apache-2-0) License.
5885
+
5886
+
5887
+ ## Citation Information
5888
+ ```bibtex
5889
+ @misc{singh2024aya,
5890
+ title={Aya Dataset: An Open-Access Collection for Multilingual Instruction Tuning},
5891
+ author={Shivalika Singh and Freddie Vargus and Daniel Dsouza and Börje F. Karlsson and Abinaya Mahendiran and Wei-Yin Ko and Herumb Shandilya and Jay Patel and Deividas Mataciunas and Laura OMahony and Mike Zhang and Ramith Hettiarachchi and Joseph Wilson and Marina Machado and Luisa Souza Moura and Dominik Krzemiński and Hakimeh Fadaei and Irem Ergün and Ifeoma Okoh and Aisha Alaagib and Oshan Mudannayake and Zaid Alyafeai and Vu Minh Chien and Sebastian Ruder and Surya Guthikonda and Emad A. Alghamdi and Sebastian Gehrmann and Niklas Muennighoff and Max Bartolo and Julia Kreutzer and Ahmet Üstün and Marzieh Fadaee and Sara Hooker},
5892
+ year={2024},
5893
+ eprint={2402.06619},
5894
+ archivePrefix={arXiv},
5895
+ primaryClass={cs.CL}
5896
+ }
5897
+
5898
+ ```