You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(WIP) docs: Fix for some of the documentation formatting issues (#381)
* Add blank lines for improved readability in format.md
* Fix: (docs) blanks-around-lists and blanks-around-headings errors in format.md
* Fix: (docs) add missing newlines at the end of file, and added blanked spaces after headings and fences for improved formatting in built-in-reference.md and overview.md
* Reverting the description of GRPO formatter
* Update docs/formatters/built-in-reference.md
Added comments describing ```standardize_data_formats``` and ```formatting_prompts_func```.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Fix: (docs) add missing newlines at the end of files and ensure consistent formatting in multiple documentation files for improved readability
---------
Co-authored-by: Jyotirmay Chakraborty <93432859+UltimatePlutoC@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
The command expects a JSONL file where each line is a JSON object. Supported formats include:
110
113
111
114
1. **Question-Answer format:**
115
+
112
116
```json
113
117
{
114
118
"question": "What is recursion?",
@@ -117,6 +121,7 @@ The command expects a JSONL file where each line is a JSON object. Supported for
117
121
```
118
122
119
123
2.**Messages format:**
124
+
120
125
```json
121
126
{
122
127
"messages": [
@@ -127,6 +132,7 @@ The command expects a JSONL file where each line is a JSON object. Supported for
127
132
```
128
133
129
134
3.**Instruction format:**
135
+
130
136
```json
131
137
{
132
138
"instruction": "Write a function to calculate factorial",
@@ -140,6 +146,7 @@ The command expects a JSONL file where each line is a JSON object. Supported for
140
146
You can now format datasets directly from the Hugging Face Hub using `--repo`, or continue using local JSONL files. Many HF datasets come in compatible formats:
141
147
142
148
**Format directly from a Hub repo:**
149
+
143
150
```bash
144
151
# Pull from Hub, format to Harmony, write to formatted.jsonl
145
152
deepfabric format --repo "org/dataset-name" --format harmony
@@ -153,6 +160,7 @@ PY
153
160
```
154
161
155
162
**For datasets with `messages` field (e.g., chat datasets):**
This validation ensures the generation process completed successfully and produced properly formatted output ready for use in training or evaluation pipelines.
165
+
This validation ensures the generation process completed successfully and produced properly formatted output ready for use in training or evaluation pipelines.
Copy file name to clipboardExpand all lines: docs/cli/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,4 +86,4 @@ Detailed documentation for each command covers syntax, options, examples, and co
86
86
[**visualize**](visualize.md) - Topic graph visualization and analysis
87
87
[**upload**](upload.md) - Hugging Face Hub integration and publishing
88
88
89
-
Each command section includes practical examples, common usage patterns, and troubleshooting guidance for typical issues encountered during synthetic data generation workflows.
89
+
Each command section includes practical examples, common usage patterns, and troubleshooting guidance for typical issues encountered during synthetic data generation workflows.
Copy file name to clipboardExpand all lines: docs/cli/upload.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,4 +150,4 @@ Subsequent uploads to existing repositories update both data and metadata:
150
150
**Change Documentation** automatically updates dataset cards to reflect changes in generation methodology or content characteristics.
151
151
152
152
??? tip "Publication Best Practices"
153
-
Review generated dataset cards before publication and consider adding domain-specific usage notes or limitations. Use descriptive repository names and comprehensive tagging to maximize appropriate discovery and usage of your synthetic datasets.
153
+
Review generated dataset cards before publication and consider adding domain-specific usage notes or limitations. Use descriptive repository names and comprehensive tagging to maximize appropriate discovery and usage of your synthetic datasets.
@@ -66,7 +66,7 @@ Beyond basic validation, the command provides insights into your configuration c
66
66
deepfabric validate config.yaml
67
67
```
68
68
69
-
```
69
+
```bash
70
70
Configuration Analysis:
71
71
Estimated generation time: 15-25 minutes
72
72
Estimated API costs: $2.50-4.00 (OpenAI GPT-4)
@@ -87,7 +87,7 @@ For OpenAI configurations, it verifies model name formats and availability. For
87
87
deepfabric validate config.yaml
88
88
```
89
89
90
-
```
90
+
```bash
91
91
Provider Validation:
92
92
OpenAI API key detected (OPENAI_API_KEY)
93
93
Model gpt-4 is available
@@ -141,4 +141,4 @@ The validate command uses standard exit codes for scripting integration:
141
141
These exit codes enable reliable automation and continuous integration workflows where configuration validation is part of the build process.
142
142
143
143
??? tip "Continuous Validation Strategy"
144
-
Consider adding configuration validation to your version control hooks or continuous integration pipeline. This practice catches configuration regressions and ensures that all committed configurations are functional and ready for use.
144
+
Consider adding configuration validation to your version control hooks or continuous integration pipeline. This practice catches configuration regressions and ensures that all committed configurations are functional and ready for use.
- Use standard web colors and fonts for maximum compatibility
113
113
114
114
??? tip "Visualization Best Practices"
115
-
Generate visualizations after topic graph creation but before dataset generation to validate topic coverage and relationships. Use visualizations to identify overly dense or sparse areas in your domain coverage, then adjust generation parameters accordingly.
115
+
Generate visualizations after topic graph creation but before dataset generation to validate topic coverage and relationships. Use visualizations to identify overly dense or sparse areas in your domain coverage, then adjust generation parameters accordingly.
"text": "<|im_start|>system\nYou are a helpful assistant.\n<|im_end|>\n<|im_start|>user\nHello!\n<|im_end|>\n<|im_start|>assistant\nHi there! How can I help you today?\n<|im_end|>"
@@ -788,31 +807,36 @@ formatters:
788
807
## Choosing the Right Formatter
789
808
790
809
### For Mathematical Reasoning Training
810
+
791
811
- **GRPO**: When training models to show step-by-step reasoning with extractable answers
792
812
- **Harmony**: For models that need to show internal reasoning (analysis channel) separate from final answers
793
813
- **Alpaca**: For instruction-following with math problems
794
814
- **ChatML**: For conversational math tutoring scenarios
795
815
796
816
### For General Instruction Following
817
+
797
818
- **Alpaca**: Standard instruction-following format
798
819
- **ChatML**: When you need conversation context and role clarity
799
820
- **Harmony**: For gpt-oss models with developer instructions and role hierarchy
800
821
- **Conversations**: For Unsloth, Axolotl, or HF TRL training with conversations format
801
822
802
823
### For Chat and Dialogue
824
+
803
825
- **Harmony**: Advanced format with channels, tool support, and role hierarchy for gpt-oss models
804
826
- **ChatML**: ChatML-compatible format with `<|im_start|>/<|im_end|>` delimiters
805
827
- **Conversations**: Standard conversations format for multiple frameworks
0 commit comments