zyz123code daichira commited on
Commit
e54dc84
·
0 Parent(s):

Duplicate from daichira/structured-hard-sft-4k

Browse files

Co-authored-by: Tsuji Daichi <daichira@users.noreply.huggingface.co>

Files changed (4) hide show
  1. .gitattributes +61 -0
  2. LICENSE +10 -0
  3. README.md +58 -0
  4. synthetic_hard_structured_v1.jsonl +3 -0
.gitattributes ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp filter=lfs diff=lfs merge=lfs -text
57
+ # Video files - compressed
58
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ *.webm filter=lfs diff=lfs merge=lfs -text
60
+ synthetic_hard_structured_v1.jsonl filter=lfs diff=lfs merge=lfs -text
61
+ synthetic_5k_mix.jsonl filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
9
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
10
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity.
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - structured-data
9
+ - sft
10
+ - synthetic
11
+ - json
12
+ - xml
13
+ - yaml
14
+ - toml
15
+ size_categories:
16
+ - 1K<n<10K
17
+ ---
18
+
19
+ # Hard Synthetic Dataset for Structured Data Tasks (v1)
20
+
21
+ This dataset contains **4,000 high-difficulty synthetic samples** designed to improve LLM performance on complex structured data conversion, extraction, and formatting tasks.
22
+
23
+ The data is fully synthetic, generated using deterministic serialization to ensure syntax validity while maintaining high structural complexity (deep nesting and varied types).
24
+
25
+ ## Dataset Summary
26
+
27
+ The dataset addresses four "hard" areas typically encountered in structured data processing:
28
+
29
+ | Task Subcategory | Task Type | Description | Count |
30
+ | :--- | :--- | :--- | :--- |
31
+ | **json_to_xml** | Transformation | Nested JSON to XML without attributes, preserving case. | 1,000 |
32
+ | **xml_to_yaml** | Transformation | Deeply nested XML to YAML, preserving tag names and structure. | 1,000 |
33
+ | **text_to_toml** | Extraction | Extracting attributes from text into TOML dotted tables/AOT. | 1,000 |
34
+ | **text_to_yaml** | Extraction | Extracting attributes from text into nested YAML structures. | 1,000 |
35
+
36
+ ## Data Format
37
+
38
+ Each sample is in JSONL format with the following structure:
39
+ - `id`: A unique hash derived from the content.
40
+ - `category`: The high-level task category (e.g., `C_XML`, `C_TOML`, `C_YAML`).
41
+ - `subcategory`: Specific conversion/extraction type.
42
+ - `task`: Action (e.g., `transform`, `extract`).
43
+ - `seed`: Marker for generation source (`dummy_hard`).
44
+ - `messages`: Conversation format (User prompt and Assistant response).
45
+
46
+ ## Features
47
+
48
+ - **Structural Complexity**: Objects are built with random depths, including nested arrays of dictionaries and mixed scalar types.
49
+ - **Strict Validity**: Every sample has been verified against standard parsers (PyYAML, tomllib/tomli, ElementTree).
50
+ - **Deterministic Serialization**: Assistant responses follow strict formatting rules (e.g., 2-space indentation, specific XML tag sanitization) to serve as a reliable ground truth.
51
+
52
+ ## License
53
+
54
+ This dataset is licensed under **CC-BY-4.0** as it is a purely synthetic collection.
55
+
56
+ ## Usage Note
57
+
58
+ This dataset is intended for supervised fine-tuning (SFT) of LLMs to improve their structural reasoning and formatting capabilities across various formats including XML, YAML, and TOML.
synthetic_hard_structured_v1.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c055175e8d3df31d5604cfc820d8aeb8329d61aeb0e2c5e94c8fb6f9244aa4ba
3
+ size 11824280