Playfulbug commited on
Commit
a5cf208
·
verified ·
1 Parent(s): 8640ebe

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ Python_pretrain.jsonl filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright 2026 PlayfulBug
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
Python_pretrain.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c575517c22f0c4f609fc3a44258fd0413febeeb36b9b3f61918d5d8904ebf7b2
3
+ size 804031016
Python_pretrain.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3291ad707cfa88c54861bcb47a50ea5f9a79ea455eff3f374f046fd68e4c8c50
3
+ size 927329380
Python_pretrain.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b147d9309c181384d3f8694d5337db931ad4f1ec2fca55b1275ee314770ada3c
3
+ size 209511633
README.md CHANGED
@@ -1,3 +1,51 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - code
7
+ - python
8
+ - pretraining
9
+ - programming
10
+ - pip
11
+ - datasets
12
+ - gradio
13
+ - keras
14
+ - pytorch-lightning
15
+ - pytest
16
+ - transformers
17
+ - ternsorflow
18
+ - pytorch
19
+ - numpy
20
+ - pandas
21
+ - matpotlib
22
+ - django
23
+ size_categories:
24
+ - 100K<n<1M
25
  ---
26
+
27
+ # Python and Docs Training Dataset
28
+
29
+ A massive, multi-format code and documentation corpus built from 70+ major open-source Python repositories (including the Pip, Keras, Gradio, Transformers, Datasets, and more).
30
+
31
+ ## Dataset Structure
32
+ ## Dataset Structure
33
+
34
+ The dataset is processed using exact BPE token chunking (**512-token chunks** with **zero overlap** via OpenAI's `cl100k_base` tokenizer) while preserving original Python indentation, newlines, and `<|file|>path` document boundaries—eliminating boundary duplication and allowing direct fixed-window pre-training without truncation or padding.
35
+
36
+ Each record in the JSONL and Parquet shards contains:
37
+ - **`id`**: Unique sequential identifier for the 512-token chunk (e.g., `combine_chunk_0`).
38
+ - **`source`**: Originating combined corpus file (`combine.txt`).
39
+ - **`chunk_index`**: Zero-based sequential index preserving repository-grouped ordering (`Docs -> Code`).
40
+ - **`token_count`**: Exact BPE token length (`512` tokens per row; `< 512` only on the final EOF tail row if retained).
41
+ - **`content`**: Raw, indentation-preserved block of Python code, type stubs, or documentation separated by `<|file|>path` headers.
42
+
43
+ *(An accompanying flat binary shard `Python_pretrain.bin` stores the same continuous token stream as headerless `uint32` token IDs for zero-copy `np.memmap` training.)*
44
+
45
+ ## Corpus Breakdown
46
+ - **Combined Repository Corpus (`combine.txt`)**: **22,551,967 lines** (~850.3 MB / ~220M+ `cl100k_base` tokens) curated across **74 permissive-license (MIT, Apache-2.0, BSD-3) repositories**, with line lengths capped at `999` characters and test/vendored directories excluded.
47
+ - **Documentation (`.md`, `.rst`)**: Repository guides, API references, and technical manuals grouped ahead of each library's source tree.
48
+ - **Python Source & Type Stubs (`.py`, `.pyi`)**: Production library implementations, core modules, and type annotations across foundational Python, data science, web, and ML frameworks (including CPython, PyTorch, TensorFlow, NumPy, SciPy, Pandas, Django, FastAPI/Starlette, and Transformers).
49
+
50
+ ## License
51
+ Distributed under the **Apache-2.0** open-source license.