alexkstern commited on
Commit
4df4bf2
·
verified ·
1 Parent(s): dbba483

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: github-code-nanochatbpe-1B
3
+ language:
4
+ - en
5
+ tags:
6
+ - pretokenized
7
+ - language-modeling
8
+ size_categories:
9
+ - 1B<n<10B
10
+ ---
11
+
12
+ # github-code-nanochatbpe-1B
13
+
14
+ **GitHub Code (all-all)** (from [`codeparrot/github-code`](https://huggingface.co/datasets/codeparrot/github-code)), pre-tokenized with the `nanochatbpe` tokenizer (vocab 65,536) and packaged as flat `uint16` token-id `.bin` files for fast memmap training.
15
+
16
+ | file | split | tokens |
17
+ | --- | --- | --- |
18
+ | `train.bin` | train | 1,000,000,000 |
19
+ | `val.bin` | val | 10,000,000 |
20
+
21
+ `train` and `val` are disjoint held-out partitions. Each `.bin` is a raw little-endian `uint16` stream (no header); token count = `filesize / 2`, and `train.meta.json` / `val.meta.json` carry the full metadata. The `tokenizer/` files (when present) are the exact tokenizer used to produce these ids.
22
+
23
+ **Load a bin** with the standard Hugging Face downloader:
24
+
25
+ ```python
26
+ from huggingface_hub import hf_hub_download
27
+ import numpy as np
28
+
29
+ path = hf_hub_download(repo_id="alexkstern/github-code-nanochatbpe-1B", filename="train.bin", repo_type="dataset")
30
+ tokens = np.memmap(path, dtype="uint16", mode="r")
31
+ ```