Nanhang commited on
Commit
b1e93d6
·
verified ·
1 Parent(s): 9c4101e

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +41 -3
  2. ctf-dataset.jsonl +0 -0
README.md CHANGED
@@ -1,3 +1,41 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## ctf-dataset
2
+
3
+ CTF 与网络安全知识的 ShareGPT/ChatML 风格 SFT 数据集,可用于 LoRA 微调。
4
+
5
+ ### 数据格式
6
+
7
+ 每行是一个 JSON 对象,核心字段如下:
8
+
9
+ | 字段 | 说明 |
10
+ |---|---|
11
+ | `id` | 样本唯一 ID |
12
+ | `dataset` | 数据集名称,当前为 `ctf-dataset` |
13
+ | `category` | 来源主题或 CTF/安全类别 |
14
+ | `ctf_task_type` | 任务类型标签 |
15
+ | `messages` | ShareGPT 消息数组,包含 `system` / `user` / `assistant` |
16
+ | `metadata` | 来源路径、章节、字符数、chunk 等溯源信息 |
17
+
18
+ ### LLaMA-Factory 接入
19
+
20
+ 将 `ctf-dataset.jsonl` 放入 LLaMA-Factory 的 `data/` 目录后,在 `data/dataset_info.json` 中添加:
21
+
22
+ ```json
23
+ {
24
+ "ctf_dataset": {
25
+ "file_name": "ctf-dataset.jsonl",
26
+ "formatting": "sharegpt",
27
+ "columns": {
28
+ "messages": "messages"
29
+ },
30
+ "tags": {
31
+ "role_tag": "role",
32
+ "content_tag": "content",
33
+ "user_tag": "user",
34
+ "assistant_tag": "assistant",
35
+ "system_tag": "system"
36
+ }
37
+ }
38
+ }
39
+ ```
40
+
41
+
ctf-dataset.jsonl ADDED
The diff for this file is too large to render. See raw diff