switlydev commited on
Commit
9127334
·
verified ·
1 Parent(s): 9a4d2ed

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -21
README.md CHANGED
@@ -1,23 +1,51 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: id
5
- dtype: string
6
- - name: instruction
7
- dtype: string
8
- - name: input
9
- dtype: string
10
- - name: output
11
- dtype: string
12
- splits:
13
- - name: train
14
- num_bytes: 1237858832
15
- num_examples: 413466
16
- download_size: 539936581
17
- dataset_size: 1237858832
18
- configs:
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
+ }