aalkaswan commited on
Commit
8353071
·
verified ·
1 Parent(s): 2908516

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +40 -0
  2. partitions.json +0 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: [data-portraits, bloom-filter, crystalcoder, llm360]
3
+ ---
4
+ # Data Portrait: CrystalCoder training data
5
+
6
+ A [Data Portrait](https://github.com/ruyimarone/data-portraits) of the pre-training data of [IFM/Crystal](https://huggingface.co/IFM/Crystal) (CrystalCoder, LLM360), decoded from
7
+ the exact training sequences released in [IFM/CrystalCoderDatasets](https://huggingface.co/datasets/IFM/CrystalCoderDatasets) (token ids, decoded with the model's tokenizer; fill-in-the-middle
8
+ documents are put back in their original order):
9
+
10
+ - phase1: first half of SlimPajama
11
+ - phase2: second half of SlimPajama + StarCoder data (FIM undone)
12
+ - phase3: StarCoder Python/HTML/CSS/JavaScript (FIM undone)
13
+
14
+ Not covered: the ~10B tokens of SlimPajama re-used in phase 3 are not a separate phase-3 filter (which
15
+ rows were drawn is not recorded, and all of that text is already in the phase-1/2 filters), and the stage-3a
16
+ instruction-tuning data, which was never released.
17
+
18
+ Text is normalised as in data-portraits and split into 50-character n-grams with stride
19
+ 50. Each stage is split into Bloom filters that fit in RAM (4 in total). A query ORs
20
+ membership across filters: combined false-positive rate <= 0.01 over all of them (each filter
21
+ 0.002509). Since every filter belongs to one stage, a match can be traced to a stage.
22
+ Documents were packed into 2048-token rows, so n-grams that span a row boundary are missing.
23
+
24
+ Each partition is a separate revision of this repo (tag `<stage>-p<i>of<k>`, branch `partition-<n>`):
25
+
26
+ | stage | tag | files | size |
27
+ |---|---|---|---|
28
+ | phase1 | [`phase1-p0of1`](https://huggingface.co/aalkaswan/crystalcoder-portrait/tree/phase1-p0of1) | 1730 | 43 GiB |
29
+ | phase2 | [`phase2-p0of2`](https://huggingface.co/aalkaswan/crystalcoder-portrait/tree/phase2-p0of2) | 2401 | 45 GiB |
30
+ | phase2 | [`phase2-p1of2`](https://huggingface.co/aalkaswan/crystalcoder-portrait/tree/phase2-p1of2) | 2401 | 45 GiB |
31
+ | phase3 | [`phase3-p0of1`](https://huggingface.co/aalkaswan/crystalcoder-portrait/tree/phase3-p0of1) | 581 | 7 GiB |
32
+
33
+ `partitions.json` lists the exact files (pinned dataset revision) in each partition. Query with
34
+ `crystal_portrait.query`:
35
+
36
+ ```python
37
+ from crystal_portrait.query import SequentialPortrait
38
+ portrait = SequentialPortrait("aalkaswan/crystalcoder-portrait", ["phase1-p0of1", "phase2-p0of2", "phase2-p1of2", "phase3-p0of1"])
39
+ report = portrait.contains_from_text([text], sort_chains_by_length=True)[0]
40
+ ```
partitions.json ADDED
The diff for this file is too large to render. See raw diff