Maurice Weber commited on
Commit ·
2c09767
1
Parent(s): bd77c17
update README.md
Browse files20 unmodified lines2122232425262 unmodified lines293031323334353637385 unmodified lines4445464748495051525352 unmodified lines10610710810911011111211311420 unmodified linesCheck out our [blog post](https://together.ai/blog/redpajama-data-v2) for more details on the build process, datasetstructure and schema.To familiarize yourself with the dataset, you can load the sample dataset using:```python2 unmodified linesds = load_dataset("togethercomputer/RedPajama-Data-V2", name="sample")```To download a the dataset for a specific combination of `{partition} x {snapshot_id} x {language}` (e.g., English andGerman data from the `head_middle` partition of the 2023-06 and the 2022-49 dumps), you can run the following commandwhich downloads the raw (i.e., not deduplicated) part of the dataset._Note that this will download the entire dumps and requires ~1TB disk space per dump_.```pythonfrom datasets import load_dataset5 unmodified lineslanguages=["en", "de"])```Alternatively, you can also directly download the files using the following instructions, using English data from the`2023-06` snapshot and the `head_middle` partition as an example. The full set of CC snapshots included in the datasetis given in `_CC_SNAPSHOT_IDS`, and the available partitions are `tail` and `head_middle`. The available language tagsare `en`, `de`, `fr`, `es`, `it`.To download the plain text data, available for both the `head_middle` and `tail` partitions, you can run52 unmodified linesdone```A full set of scripts to recreate the dataset, including the quality signals, can befound [here](https://github.com/togethercomputer/RedPajama-Data).### Applying Filtering RulesYou can use the quality signals to filter the raw RedPajama-V2 dataset for a given set of rules. For example, consider20 unmodified lines21222324252627282930312 unmodified lines343536373839404142434445465 unmodified lines525354555657585960616263646566676869707172737475767778798052 unmodified lines13313413513613713820 unmodified linesCheck out our [blog post](https://together.ai/blog/redpajama-data-v2) for more details on the build process, datasetstructure and schema.A full set of scripts to recreate the dataset, including the quality signals, can befound [here](https://github.com/togethercomputer/RedPajama-Data).#### Downloading the raw Dataset with Quality AnnotationsTo familiarize yourself with the dataset, you can load the sample dataset using:```python2 unmodified linesds = load_dataset("togethercomputer/RedPajama-Data-V2", name="sample")```To download a the dataset for a specific combination of `{partition} x {snapshot_id} x {language}`, you can use thefollowing command which downloads the raw (i.e., *not* deduplicated) part of the dataset and the corresponding qualitysignals. In the example below, we use English and German data from the `head_middle` partition of the 2023-06 and the2022-49 snapshots. The full set of available snapshots is specified in `_CC_SNAPSHOT_IDS`. The available partitionsare `tail` and `head_middle`. The available language tags are `en`, `de`, `fr`, `es`, `it`._Note that this will download the entire snapshots specified in the `snapshots` argument and requires ~1TB of disk spaceper snapshot_.```pythonfrom datasets import load_dataset5 unmodified lineslanguages=["en", "de"])```#### Downloading the dataset via wgetIf you prefer to download the full dataset via wget, you can download the following lists of urls and use them todownload the dataset:```bash# get list of urls pointing to the text documentswget "https://data.together.xyz/redpajama-data-v2/v1.0.0/urls/document-urls.txt" -O "document-urls.txt"# get list of urls pointing to the quality signalswget "https://data.together.xyz/redpajama-data-v2/v1.0.0/urls/quality_signals-urls.txt" -O "quality_signals-urls.txt"# get list of urls pointing to the ids of duplicate documentswget "https://data.together.xyz/redpajama-data-v2/v1.0.0/urls/duplicates-urls.txt" -O "duplicates-urls.txt"# get list of urls pointing to the minhash signatureswget "https://data.together.xyz/redpajama-data-v2/v1.0.0/urls/minhash-urls.txt" -O "minhash-urls.txt"```You can also directly download subsets of the dataset using the following instructions. Here we use Englishdata from the `2023-06` snapshot and the `head_middle` partition as an example. The full set of CC snapshots included inthe dataset is given in `_CC_SNAPSHOT_IDS`. The available partitions are `tail` and `head_middle`. The availablelanguage tags are `en`, `de`, `fr`, `es`, `it`.To download the plain text data, available for both the `head_middle` and `tail` partitions, you can run52 unmodified linesdone```### Applying Filtering RulesYou can use the quality signals to filter the raw RedPajama-V2 dataset for a given set of rules. For example, consider
README.md+35-11