Upload 3 files
Browse files- LICENSE +34 -0
- README.md +103 -5
- kernelllm_dataset_v2.parquet +3 -0
LICENSE
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# License for KernelLLM-2 Dataset
|
| 2 |
+
|
| 3 |
+
This dataset is a compilation of publicly available open-source code, mailing list archives, and git histories.
|
| 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** (Linux, seL4, Xen, QEMU, coreboot, GRUB, U-Boot, ReactOS)
|
| 10 |
+
* **Common Development and Distribution License (CDDL)** (illumos)
|
| 11 |
+
* **BSD 2-Clause / 3-Clause / 4-Clause & ISC** (FreeBSD, NetBSD, OpenBSD, SerenityOS, Limine)
|
| 12 |
+
* **MIT License** (Redox, Haiku, musl)
|
| 13 |
+
* **Apache License 2.0** (Zephyr)
|
| 14 |
+
* **Mozilla Public License (MPL) 2.0** (Asterinas)
|
| 15 |
+
* **BSD-2-Clause-Patent** (EDK2)
|
| 16 |
+
|
| 17 |
+
## Metadata and Attribution
|
| 18 |
+
|
| 19 |
+
To facilitate compliance with the attribution requirements of various licenses (such as BSD and MIT) each entry in the dataset includes:
|
| 20 |
+
- `source`: The source repository or mailing list (e.g. "linux", "freebsd", "asterinas").
|
| 21 |
+
- `author`: The original author of the code or post (where available).
|
| 22 |
+
- `filepath`: The path to the original file (where applicable).
|
| 23 |
+
|
| 24 |
+
## Safe-Clipping Policy
|
| 25 |
+
|
| 26 |
+
We preserve `SPDX-License-Identifier` and `Copyright` lines in source code headers while removing generic licensing boilerplate to maximize the density of logic for model training.
|
| 27 |
+
|
| 28 |
+
## Usage and Disclaimer
|
| 29 |
+
|
| 30 |
+
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.
|
| 31 |
+
|
| 32 |
+
## Opt-out Policy
|
| 33 |
+
|
| 34 |
+
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,103 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: other
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- code
|
| 9 |
+
- kernel
|
| 10 |
+
- osdev
|
| 11 |
+
- linux
|
| 12 |
+
- freebsd
|
| 13 |
+
- openbsd
|
| 14 |
+
- netbsd
|
| 15 |
+
- rust
|
| 16 |
+
- systems-programming
|
| 17 |
+
pretty_name: KernelLLM-2
|
| 18 |
+
size_categories:
|
| 19 |
+
- 100K<n<1M
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# KernelLLM-2 Dataset
|
| 23 |
+
|
| 24 |
+
A high-quality raw dataset for training and fine-tuning LLMs on Operating System Development, significantly expanded for the second version.
|
| 25 |
+
|
| 26 |
+
## Overview
|
| 27 |
+
|
| 28 |
+
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, plus unique Git logic-diff traces.
|
| 29 |
+
|
| 30 |
+
> [!NOTE]
|
| 31 |
+
> The source code included in this dataset represents the latest stable versions of the respective repositories as of **February 27th 2026**.
|
| 32 |
+
|
| 33 |
+
## Dataset Structure
|
| 34 |
+
|
| 35 |
+
The dataset is provided in **Parquet** format for optimal compression and integration with the `datasets` library.
|
| 36 |
+
|
| 37 |
+
### 1. `kernelllm_dataset_v2.parquet` (~1.8 GB)
|
| 38 |
+
**Unified Knowledge Base:**
|
| 39 |
+
- **Files/Entries:** 367,769
|
| 40 |
+
- **Size:** ~1.8 GB (Parquet), ~6.1 GB (Raw JSONL)
|
| 41 |
+
- **Sources:** 20+ Kernel and System Projects.
|
| 42 |
+
- **Cleaning:**
|
| 43 |
+
- Preserved `SPDX-License-Identifier` and `Copyright` lines while removing generic licensing boilerplate headers to prioritize logic.
|
| 44 |
+
- Exact and "smart" deduplication across repositories.
|
| 45 |
+
- Excluded files < 100 characters to remove boilerplate headers.
|
| 46 |
+
|
| 47 |
+
#### Repository Distribution:
|
| 48 |
+
| Repository | Entry Count |
|
| 49 |
+
|------------|------------|
|
| 50 |
+
| NetBSD | 83,959 |
|
| 51 |
+
| Linux | 69,197 |
|
| 52 |
+
| FreeBSD | 50,127 |
|
| 53 |
+
| OpenBSD | 27,522 |
|
| 54 |
+
| illumos | 24,703 |
|
| 55 |
+
| Zephyr | 19,066 |
|
| 56 |
+
| ReactOS | 17,688 |
|
| 57 |
+
| Haiku | 15,472 |
|
| 58 |
+
| U-Boot | 12,674 |
|
| 59 |
+
| Coreboot | 12,082 |
|
| 60 |
+
| SerenityOS | 9,159 |
|
| 61 |
+
| QEMU | 7,029 |
|
| 62 |
+
| EDK2 | 5,869 |
|
| 63 |
+
| Xen Hypervisor | 2,311 |
|
| 64 |
+
| musl libc | 1,875 |
|
| 65 |
+
| GRUB | 1,706 |
|
| 66 |
+
| Asterinas | 1,417 |
|
| 67 |
+
| seL4 | 641 |
|
| 68 |
+
| Limine | 151 |
|
| 69 |
+
| Redox OS | 34 |
|
| 70 |
+
|
| 71 |
+
### 2. Specialized Data Types
|
| 72 |
+
- **`git_logdiff`:** (234 entries) Pairs commit messages with filtered logic-diffs to show how code evolves.
|
| 73 |
+
- **`lkml_critique`:** (~26,600 pairs) Contentious technical discussions pairing code snippets with maintainer feedback.
|
| 74 |
+
|
| 75 |
+
## Dataset Release Strategy
|
| 76 |
+
|
| 77 |
+
This is the **Raw** version of the dataset. It is intended for:
|
| 78 |
+
1. **Intermediate Training:** Pre-training on high-quality systems code.
|
| 79 |
+
2. **Fine-Tuning:** Instruction-tuning models to act as "Kernel Maintainers".
|
| 80 |
+
3. **Research:** Analyzing developer communication patterns in low-level systems.
|
| 81 |
+
|
| 82 |
+
## Licensing and Usage
|
| 83 |
+
|
| 84 |
+
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.
|
| 85 |
+
|
| 86 |
+
* **GNU General Public License (GPL) v2/v3** (Linux, seL4, Xen, QEMU, coreboot, GRUB, U-Boot, ReactOS)
|
| 87 |
+
* **Common Development and Distribution License (CDDL)** (illumos)
|
| 88 |
+
* **BSD 2-Clause / 3-Clause / 4-Clause & ISC** (FreeBSD, NetBSD, OpenBSD, SerenityOS, Limine)
|
| 89 |
+
* **MIT License** (Redox, Haiku, musl)
|
| 90 |
+
* **Apache License 2.0** (Zephyr)
|
| 91 |
+
* **Mozilla Public License (MPL) 2.0** (Asterinas)
|
| 92 |
+
* **BSD-2-Clause-Patent** (EDK2)
|
| 93 |
+
|
| 94 |
+
### Disclaimer
|
| 95 |
+
|
| 96 |
+
1. **Original Licenses Apply:** The individual source code files and mailing list archives contained in this dataset remain governed by their original respective licenses.
|
| 97 |
+
2. **Attribution:** The `source` and `author` fields (where available) facilitate attribution.
|
| 98 |
+
3. **Research & Ethics:** This dataset is provided primarily for research and educational purposes in the field of LLM training and systems programming analysis.
|
| 99 |
+
4. **License Compliance:** Users of this dataset are responsible for ensuring that their use of the data complies with all applicable licenses.
|
| 100 |
+
|
| 101 |
+
### Opt-out
|
| 102 |
+
|
| 103 |
+
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_dataset_v2.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7602e5c277a03b1d4200e1fee607274c15d3d6c012a97db06c36fa9dd613695b
|
| 3 |
+
size 1884716050
|