pietrolesci commited on
Commit
422beb1
·
verified ·
1 Parent(s): 0baf3db

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -0
README.md CHANGED
@@ -16,6 +16,10 @@ but it is presented in a more manageable format. Instead of using the Megatron f
16
 
17
  ## Format
18
 
 
 
 
 
19
  The dataset has 3 columns:
20
  - `uid`: a sequential identified for the sequence (not present in the original dataset)
21
  - `batch_idx`: the index of the batch to which a sequence belongs (not present in the original dataset).
@@ -35,6 +39,22 @@ Batches with `batch_idx` >= 1000 are only seen by later checkpoints.
35
  I did not create a separate file for these, but you can easily subset the first chunk (i.e., `data/train-001000.parquet`).
36
 
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  ## License
39
 
40
  For the license, refer to the original dataset ([EleutherAI/pile-deduped-pythia-preshuffled](https://huggingface.co/datasets/EleutherAI/pile-deduped-pythia-preshuffled)).
 
16
 
17
  ## Format
18
 
19
+ ### `/data`
20
+
21
+ The `/data` folder contains the original tokenised, packed, and preshuffled data.
22
+
23
  The dataset has 3 columns:
24
  - `uid`: a sequential identified for the sequence (not present in the original dataset)
25
  - `batch_idx`: the index of the batch to which a sequence belongs (not present in the original dataset).
 
39
  I did not create a separate file for these, but you can easily subset the first chunk (i.e., `data/train-001000.parquet`).
40
 
41
 
42
+ ### `idxmaps-npy`
43
+
44
+ These are the files that are used to load the packed, tokenised, and preshuffled data starting
45
+ from the [`EleutherAI/pythia_deduped_pile_idxmaps`](https://huggingface.co/datasets/EleutherAI/pythia_deduped_pile_idxmaps)
46
+ using the [GPT2Dataset](https://github.com/EleutherAI/gpt-neox/blob/71df4d5017f9f4919566a11454fe3a507ffdc632/megatron/data/gpt2_dataset.py#L29)
47
+ class implemented in the GPT-NeoX library.
48
+
49
+ You can read this numpy file as follows:
50
+ ```python
51
+ idx_file = np.load(<path_to_npy>, allow_pickle=True, mmap_mode="r")
52
+ ```
53
+
54
+ Note: the dataset available under the `/data` folder is basically what you would get by combining the `pythia_deduped_pile_idxmaps`
55
+ and these files.
56
+
57
+
58
  ## License
59
 
60
  For the license, refer to the original dataset ([EleutherAI/pile-deduped-pythia-preshuffled](https://huggingface.co/datasets/EleutherAI/pile-deduped-pythia-preshuffled)).