frisk2137 commited on
Commit
be5922c
·
verified ·
1 Parent(s): 1b23e5e

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. LICENSE +26 -0
  2. README.md +81 -5
  3. kernelllm_critiques.parquet +3 -0
  4. kernelllm_source.parquet +3 -0
LICENSE CHANGED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # License for KernelLLM-1 Dataset
2
+
3
+ This dataset is a compilation of publicly available open-source code and mailing list archives.
4
+
5
+ ## Mixed Licensing
6
+
7
+ The content within this dataset is subject to various open-source licenses based on its point of origin. All original licenses remain in full effect for the individual files and snippets included. These include, but are not limited to:
8
+
9
+ * **GNU General Public License (GPL) v2/v3**
10
+ * **BSD 2-Clause / 3-Clause**
11
+ * **MIT License**
12
+ * **Apache License 2.0**
13
+
14
+ ## Metadata and Attribution
15
+
16
+ To facilitate compliance with the attribution requirements of various licenses (such as BSD and MIT) each entry in the dataset JSONL files includes a `metadata` object containing:
17
+ - `repo`: The source repository (e.g. "linux", "freebsd", "serenityos").
18
+ - `author`: The original author of the code or mailing list post. (where available)
19
+
20
+ ## Usage and Disclaimer
21
+
22
+ This dataset is provided "as is" for research, educational, and machine learning training purposes. Users of this dataset are responsible for ensuring that their specific use case (including any derivative models) complies with the original licenses of the source data.
23
+
24
+ ## Opt-out Policy
25
+
26
+ We respect the rights of open-source maintainers. If you are a primary maintainer of a project included in this dataset and wish to have your project's data removed from future versions, please contact us or open an issue on the dataset repository.
README.md CHANGED
@@ -1,5 +1,81 @@
1
- ---
2
- license: other
3
- license_name: mixed
4
- license_link: LICENSE
5
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # KernelLLM-1 Dataset
2
+
3
+ A high-quality raw dataset for training and fine-tuning LLMs on Operating System Development.
4
+
5
+ ## Overview
6
+
7
+ This dataset combines raw source code from a variety of mature and hobbyist operating system kernels with thousands of expert-level technical discussions and critiques from the Linux Kernel Mailing List.
8
+
9
+ > [!NOTE]
10
+ > The source code included in this dataset represents the latest stable versions of the respective repositories as of **February 2nd 2026**.
11
+
12
+ ## Dataset Structure
13
+
14
+ The dataset is provided in **Parquet** format for optimal compression and integration with the `datasets` library.
15
+
16
+ ### 1. `kernelllm_source.parquet` (~982 MB)
17
+ **Cleaned & Deduplicated Source Code (180,129 files).**
18
+ - **Sources:** Linux, FreeBSD, OpenBSD, NetBSD, Illumos, ReactOS, seL4, ToaruOS, Redox OS, SerenityOS and DragonFlyBSD.
19
+ - **Cleaning:**
20
+ - Removed common license headers (GPL, BSD, MIT, etc) to prioritize logic.
21
+ - Exact and "smart" deduplication (normalized whitespace) across repositories.
22
+ - Excluded files < 100 characters to remove boilerplate headers.
23
+
24
+ #### Repository Distribution:
25
+ | Repository | File Count |
26
+ |------------|------------|
27
+ | Linux | 62,969 |
28
+ | FreeBSD | 43,956 |
29
+ | Illumos | 23,411 |
30
+ | BSD-Mixed (Open/Net) | 22,949 |
31
+ | DragonFlyBSD | 17,662 |
32
+ | SerenityOS | 7,307 |
33
+ | Redox OS | 701 |
34
+ | ToaruOS | 609 |
35
+ | seL4 | 565 |
36
+
37
+ ### 2. `kernelllm_critiques.parquet` (~3.6 MB) (Tiny bit of the LKML)
38
+ **LKML Critique Pairs (3,135 pairs).**
39
+ - **Sources:** `lore.kernel.org` archives.
40
+ - **Content:** Pairs code snippets (patches) with substantive replies, critiques and NACKs from senior maintainers.
41
+ - **Schema:**
42
+ ```json
43
+ {
44
+ "source": "lkml",
45
+ "subject": "[PATCH] ...",
46
+ "code": "(The patch content)",
47
+ "critique": "(The maintainer feedback)",
48
+ "metadata": {
49
+ "author": "...",
50
+ "date": "...",
51
+ "thread_id": "..."
52
+ }
53
+ }
54
+ ```
55
+
56
+ ## Dataset Release Strategy
57
+
58
+ This is the **Raw** version of the dataset. It is intended for:
59
+ 1. **Intermediate Training:** Pre-training on high-quality systems code.
60
+ 2. **Fine-Tuning:** Instruction-tuning models to act as "Kernel Maintainers". (Or just make them better at Kernel code.)
61
+ 3. **Research:** Analyzing developer communication patterns in low-level systems.
62
+
63
+ ## Licensing and Usage
64
+
65
+ This dataset is a collection of publicly available open-source code and mailing list archives. It contains content governed by multiple licenses. For full details, see the [LICENSE](LICENSE) file.
66
+
67
+ * **GNU General Public License (GPL) v2/v3** (e.g., Linux, ReactOS)
68
+ * **BSD 2-Clause / 3-Clause** (e.g., FreeBSD, OpenBSD, NetBSD)
69
+ * **MIT License** (e.g. SerenityOS, ToaruOS)
70
+ * **Apache License 2.0** (e.g., seL4)
71
+
72
+ ### Disclaimer
73
+
74
+ 1. **Original Licenses Apply:** The individual source code files and mailing list archives contained in this dataset remain governed by their original respective licenses.
75
+ 2. **Attribution:** The `metadata` field for each entry in the dataset includes repository and author information to facilitate attribution.
76
+ 3. **Research & Ethics:** This dataset is provided primarily for research and educational purposes in the field of LLM training and systems programming analysis.
77
+ 4. **License Compliance:** Users of this dataset are responsible for ensuring that their use of the data complies with all applicable licenses.w
78
+
79
+ ### Opt-out
80
+
81
+ If you are a maintainer of one of the included repositories and would like your data removed from future versions of this dataset, please open an issue on the Hugging Face dataset page.
kernelllm_critiques.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:004bf8a94e7c7a65841917ae9e44a877db5d0e7d75af324f4c4cada9ee2c9044
3
+ size 3797407
kernelllm_source.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b2a6cd679d9c2270309a218fbd6de4b51f3ed0998d8dc6a55226e98f32b0b6d
3
+ size 1029865215