emozilla commited on
Commit
586e092
1 Parent(s): cf653ef

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -0
README.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Tokenized (Llama 3) verison of [NousResearch/dolma-v1_7-30B](https://huggingface.co/datasets/NousResearch/dolma-v1_7-30B) as a [Nanotron](https://github.com/huggingface/nanotron) dataset split into 10 GB chunks.
2
+
3
+ To recombine,
4
+
5
+ ```shell
6
+ cat dolma-v1_7-30B-nanoset-l3_input_ids.npy.* > dolma-v1_7-30B-nanoset-l3_input_ids.npy
7
+ ```
8
+
9
+ Can also be used directly with numpy, for example
10
+ ```python
11
+ import numpy as np
12
+
13
+ dataset_buffer_mmap = np.memmap("dolma-v1_7-30B-nanoset-l3_input_ids.npy", mode="r", order="C", dtype=np.int32)
14
+ dataset_buffer = memoryview(dataset_buffer_mmap)
15
+ dataset_number_of_tokens = int(len(dataset_buffer))
16
+ ```