Yash1005 commited on
Commit
6c7a1e3
·
verified ·
1 Parent(s): 2e39425

docs: dataset card with totals, labels, token buckets

Browse files
Files changed (1) hide show
  1. README.md +34 -87
README.md CHANGED
@@ -7,31 +7,14 @@ tags:
7
  - language-identification
8
  - qwen
9
  pretty_name: Qwen Code Language-ID SFT Dataset
10
- configs:
11
- - config_name: default
12
- data_files:
13
- - split: train
14
- path: data/train-*
15
- dataset_info:
16
- features:
17
- - name: prompt
18
- dtype: large_string
19
- - name: target
20
- dtype: large_string
21
- - name: kind
22
- dtype: large_string
23
- splits:
24
- - name: train
25
- num_bytes: 29546138
26
- num_examples: 10500
27
- download_size: 8431803
28
- dataset_size: 29546138
29
  ---
30
 
31
  # Accuknoxtechnologies/CodeLanguage
32
 
33
  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.
34
 
 
 
35
  ## Schema
36
 
37
  | column | description |
@@ -42,87 +25,51 @@ SFT dataset for fine-tuning a Qwen-based guard that detects which programming la
42
 
43
  ## Total Records
44
 
45
- | split | rows | single | multi | benign | invalid (`is_valid=false`) |
46
- |---|---:|---:|---:|---:|---:|
47
- | train | 10000 | 7000 | 2000 | 1000 | 1000 |
48
- | test | 500 | 349 | 101 | 50 | 50 |
49
 
50
  ## Supported Labels
51
 
52
- 25 programming languages across all splits:
53
 
54
  `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`
55
 
56
- ### Per-split label counts
57
-
58
- **train** (25 labels)
59
-
60
- | label | rows containing label |
61
- |---|---:|
62
- | `Go` | 488 |
63
- | `Lua` | 487 |
64
- | `Terraform` | 482 |
65
- | `Kotlin` | 479 |
66
- | `PowerShell` | 478 |
67
- | `Rust` | 471 |
68
- | `JavaScript` | 469 |
69
- | `C` | 468 |
70
- | `C++` | 467 |
71
- | `AWK` | 467 |
72
- | `Batch` | 467 |
73
- | `Ruby` | 464 |
74
- | `Scala` | 463 |
75
- | `jq` | 460 |
76
- | `Dockerfile` | 454 |
77
- | `R` | 451 |
78
- | `C#` | 449 |
79
- | `Bash` | 447 |
80
- | `Perl` | 447 |
81
- | `Swift` | 446 |
82
- | `Makefile` | 445 |
83
- | `SQL` | 440 |
84
- | `Python` | 437 |
85
- | `Java` | 434 |
86
- | `YAML` | 426 |
87
-
88
- **test** (25 labels)
89
-
90
  | label | rows containing label |
91
  |---|---:|
92
- | `AWK` | 29 |
93
- | `R` | 28 |
94
- | `Batch` | 28 |
95
- | `PowerShell` | 27 |
96
- | `Rust` | 27 |
97
- | `Java` | 26 |
98
- | `JavaScript` | 26 |
99
- | `Swift` | 26 |
100
- | `SQL` | 25 |
101
- | `Python` | 25 |
102
- | `C++` | 24 |
103
- | `C` | 24 |
104
- | `Scala` | 23 |
105
- | `YAML` | 22 |
106
- | `Ruby` | 22 |
107
- | `Makefile` | 22 |
108
- | `Dockerfile` | 21 |
109
- | `Go` | 20 |
110
- | `jq` | 20 |
111
- | `C#` | 20 |
112
- | `Terraform` | 20 |
113
- | `Bash` | 19 |
114
- | `Perl` | 19 |
115
- | `Kotlin` | 17 |
116
- | `Lua` | 17 |
117
 
118
  ## Token-wise Bucket Split
119
 
120
  Tokenized with `Qwen/Qwen2.5-0.5B` (matches the training tokenizer).
121
 
122
- | split | 0-128 | 129-256 | 257-512 | 513-1024 | 1025-2048 | 2049+ | min | mean | p50 | p95 | max |
123
- |---|---|---|---|---|---|---|---|---|---|---|---|
124
- | train | 1453 | 1643 | 2283 | 2633 | 1963 | 25 | 23 | 581.6 | 450 | 1358 | 3035 |
125
- | test | 76 | 82 | 115 | 126 | 97 | 4 | 24 | 586.2 | 428 | 1428 | 2782 |
126
 
127
  ## Languages (natural language of the prompts)
128
 
 
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
+ This release combines the previously-separate train + test CSVs into a single `train` split (source files: `code_langid.csv`, `test_dataset_langid.csv`).
17
+
18
  ## Schema
19
 
20
  | column | description |
 
25
 
26
  ## Total Records
27
 
28
+ | rows | single | multi | benign | invalid (`is_valid=false`) |
29
+ |---:|---:|---:|---:|---:|
30
+ | 10500 | 7349 | 2101 | 1050 | 1050 |
 
31
 
32
  ## Supported Labels
33
 
34
+ 25 programming languages:
35
 
36
  `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`
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  | label | rows containing label |
39
  |---|---:|
40
+ | `Go` | 508 |
41
+ | `PowerShell` | 505 |
42
+ | `Lua` | 504 |
43
+ | `Terraform` | 502 |
44
+ | `Rust` | 498 |
45
+ | `AWK` | 496 |
46
+ | `Kotlin` | 496 |
47
+ | `JavaScript` | 495 |
48
+ | `Batch` | 495 |
49
+ | `C` | 492 |
50
+ | `C++` | 491 |
51
+ | `Scala` | 486 |
52
+ | `Ruby` | 486 |
53
+ | `jq` | 480 |
54
+ | `R` | 479 |
55
+ | `Dockerfile` | 475 |
56
+ | `Swift` | 472 |
57
+ | `C#` | 469 |
58
+ | `Makefile` | 467 |
59
+ | `Bash` | 466 |
60
+ | `Perl` | 466 |
61
+ | `SQL` | 465 |
62
+ | `Python` | 462 |
63
+ | `Java` | 460 |
64
+ | `YAML` | 448 |
65
 
66
  ## Token-wise Bucket Split
67
 
68
  Tokenized with `Qwen/Qwen2.5-0.5B` (matches the training tokenizer).
69
 
70
+ | 0-128 | 129-256 | 257-512 | 513-1024 | 1025-2048 | 2049+ | min | mean | p50 | p95 | max |
71
+ |---|---|---|---|---|---|---|---|---|---|---|
72
+ | 1529 | 1725 | 2398 | 2759 | 2060 | 29 | 23 | 581.8 | 449 | 1361 | 3035 |
 
73
 
74
  ## Languages (natural language of the prompts)
75