Update README.md
Browse files
README.md
CHANGED
|
@@ -1,23 +1,51 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
- config_name: default
|
| 20 |
-
data_files:
|
| 21 |
-
- split: train
|
| 22 |
-
path: data/train-*
|
| 23 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: gpl-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- code-generation
|
| 5 |
+
- text-generation
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- linux
|
| 10 |
+
- kernel
|
| 11 |
+
- c
|
| 12 |
+
- c++
|
| 13 |
+
- bug-fix
|
| 14 |
+
- SFT
|
| 15 |
+
- instruction-tuning
|
| 16 |
+
- security
|
| 17 |
+
size_categories:
|
| 18 |
+
- 100K<n<1M
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
---
|
| 20 |
+
|
| 21 |
+
# 🐧 Linux Kernel Bugfixes & Patches Dataset (Instruction-Tuned)
|
| 22 |
+
|
| 23 |
+
## 📖 Dataset Description
|
| 24 |
+
|
| 25 |
+
This dataset is a highly curated, instruction-tuned collection of **problem-solution pairs** extracted directly from the official Linux Kernel Git repository (`torvalds/linux`). It is specifically designed to train Large Language Models (LLMs) on **low-level C programming, kernel architecture, memory management, and security vulnerability patching**.
|
| 26 |
+
|
| 27 |
+
Unlike raw commit histories, this dataset has been strictly filtered to include only meaningful bug fixes and excludes noisy data such as typos, documentation updates, and version bumps.
|
| 28 |
+
|
| 29 |
+
- **Language:** English (Commit messages), C / Assembly (Code)
|
| 30 |
+
- **License:** GPL-2.0 (Inherited from Linux Kernel)
|
| 31 |
+
- **Format:** Supervised Fine-Tuning (SFT) ready (Instruction / Input / Output)
|
| 32 |
+
|
| 33 |
+
## 🚀 Intended Uses & Applications
|
| 34 |
+
|
| 35 |
+
This dataset is perfect for training AI Agents and local LLMs for:
|
| 36 |
+
1. **Low-Level Code Repair:** Teaching models to fix memory leaks, use-after-free errors, null pointer dereferences, and race conditions.
|
| 37 |
+
2. **Patch Generation:** Generating valid `git diff` outputs based on issue descriptions.
|
| 38 |
+
3. **Cybersecurity Analysis:** Fine-tuning models to recognize and patch CVEs and kernel panics.
|
| 39 |
+
|
| 40 |
+
## 📊 Dataset Structure
|
| 41 |
+
|
| 42 |
+
Each row in the dataset represents a single bug-fix commit. The data is formatted for immediate use in SFT pipelines (like Unsloth, QLoRA, Axolotl).
|
| 43 |
+
|
| 44 |
+
**Example Instance:**
|
| 45 |
+
```json
|
| 46 |
+
{
|
| 47 |
+
"id": "a1b2c3d4e5f6...",
|
| 48 |
+
"instruction": "Analyze and fix the following issue in the Linux kernel code: net: sched: fix memory leak in tc_action",
|
| 49 |
+
"input": "Problem Details:\nWhen a filter action fails to initialize, the memory allocated for option parameters is not properly freed, resulting in a memory leak under high load.",
|
| 50 |
+
"output": "```diff\n--- a/net/sched/act_api.c\n+++ b/net/sched/act_api.c\n@@ -120,6 +120,7 @@ static int tcf_action_init(struct net *net...\n+ kfree(opt);\n```"
|
| 51 |
+
}
|