Yash1005 commited on
Commit
5396e0f
·
verified ·
1 Parent(s): 9cbe48c

docs: dataset card with totals, labels, token buckets

Browse files
Files changed (1) hide show
  1. README.md +112 -24
README.md CHANGED
@@ -1,26 +1,114 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: prompt
5
- dtype: large_string
6
- - name: target
7
- dtype: large_string
8
- - name: kind
9
- dtype: large_string
10
- splits:
11
- - name: train
12
- num_bytes: 28142954
13
- num_examples: 10000
14
- - name: test
15
- num_bytes: 1403184
16
- num_examples: 500
17
- download_size: 8444720
18
- dataset_size: 29546138
19
- configs:
20
- - config_name: default
21
- data_files:
22
- - split: train
23
- path: data/train-*
24
- - split: test
25
- path: data/test-*
26
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - text-classification
5
+ tags:
6
+ - code
7
+ - language-identification
8
+ - qwen
9
+ pretty_name: Qwen Code Language-ID SFT Dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  ---
11
+
12
+ # Accuknoxtechnologies/CodeLanguage
13
+
14
+ SFT dataset for fine-tuning a Qwen-based guard that detects which programming languages appear in a user prompt. Each row pairs a natural-language + code prompt with a JSON `target` enumerating the detected languages.
15
+
16
+ ## Schema
17
+
18
+ | column | description |
19
+ |---|---|
20
+ | `prompt` | user message, possibly containing one or more code snippets |
21
+ | `target` | JSON: `{"is_valid": bool, "category": {"<Lang>": true, ...}}` |
22
+ | `kind` | one of `single`, `multi`, `benign` |
23
+
24
+ ## Total Records
25
+
26
+ | split | rows | single | multi | benign | invalid (`is_valid=false`) |
27
+ |---|---:|---:|---:|---:|---:|
28
+ | train | 10000 | 7000 | 2000 | 1000 | 1000 |
29
+ | test | 500 | 349 | 101 | 50 | 50 |
30
+
31
+ ## Supported Labels
32
+
33
+ 25 programming languages across all splits:
34
+
35
+ `AWK`, `Bash`, `Batch`, `C`, `C#`, `C++`, `Dockerfile`, `Go`, `Java`, `JavaScript`, `Kotlin`, `Lua`, `Makefile`, `Perl`, `PowerShell`, `Python`, `R`, `Ruby`, `Rust`, `SQL`, `Scala`, `Swift`, `Terraform`, `YAML`, `jq`
36
+
37
+ ### Per-split label counts
38
+
39
+ **train** (25 labels)
40
+
41
+ | label | rows containing label |
42
+ |---|---:|
43
+ | `Go` | 488 |
44
+ | `Lua` | 487 |
45
+ | `Terraform` | 482 |
46
+ | `Kotlin` | 479 |
47
+ | `PowerShell` | 478 |
48
+ | `Rust` | 471 |
49
+ | `JavaScript` | 469 |
50
+ | `C` | 468 |
51
+ | `C++` | 467 |
52
+ | `AWK` | 467 |
53
+ | `Batch` | 467 |
54
+ | `Ruby` | 464 |
55
+ | `Scala` | 463 |
56
+ | `jq` | 460 |
57
+ | `Dockerfile` | 454 |
58
+ | `R` | 451 |
59
+ | `C#` | 449 |
60
+ | `Bash` | 447 |
61
+ | `Perl` | 447 |
62
+ | `Swift` | 446 |
63
+ | `Makefile` | 445 |
64
+ | `SQL` | 440 |
65
+ | `Python` | 437 |
66
+ | `Java` | 434 |
67
+ | `YAML` | 426 |
68
+
69
+ **test** (25 labels)
70
+
71
+ | label | rows containing label |
72
+ |---|---:|
73
+ | `AWK` | 29 |
74
+ | `R` | 28 |
75
+ | `Batch` | 28 |
76
+ | `PowerShell` | 27 |
77
+ | `Rust` | 27 |
78
+ | `Java` | 26 |
79
+ | `JavaScript` | 26 |
80
+ | `Swift` | 26 |
81
+ | `SQL` | 25 |
82
+ | `Python` | 25 |
83
+ | `C++` | 24 |
84
+ | `C` | 24 |
85
+ | `Scala` | 23 |
86
+ | `YAML` | 22 |
87
+ | `Ruby` | 22 |
88
+ | `Makefile` | 22 |
89
+ | `Dockerfile` | 21 |
90
+ | `Go` | 20 |
91
+ | `jq` | 20 |
92
+ | `C#` | 20 |
93
+ | `Terraform` | 20 |
94
+ | `Bash` | 19 |
95
+ | `Perl` | 19 |
96
+ | `Kotlin` | 17 |
97
+ | `Lua` | 17 |
98
+
99
+ ## Token-wise Bucket Split
100
+
101
+ Tokenized with `Qwen/Qwen2.5-0.5B` (matches the training tokenizer).
102
+
103
+ | split | 0-128 | 129-256 | 257-512 | 513-1024 | 1025-2048 | 2049+ | min | mean | p50 | p95 | max |
104
+ |---|---|---|---|---|---|---|---|---|---|---|---|
105
+ | train | 1453 | 1643 | 2283 | 2633 | 1963 | 25 | 23 | 581.6 | 450 | 1358 | 3035 |
106
+ | test | 76 | 82 | 115 | 126 | 97 | 4 | 24 | 586.2 | 428 | 1428 | 2782 |
107
+
108
+ ## Languages (natural language of the prompts)
109
+
110
+ _Per-prompt natural-language detection (English/Korean/etc.) is not computed in this card revision. Prompts are predominantly English by construction (see `build_dataset.py`)._
111
+
112
+ ## Reproduction
113
+
114
+ Generated by `gpu-vm-training-langid/build_dataset.py` and pushed by `gpu-vm-training-langid/hf_dataset_push/push_dataset.py`.