croqaz commited on
Commit
51da904
·
verified ·
1 Parent(s): 74cb43d

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -58,3 +58,11 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ data/fine-synth-0001.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ data/fine-synth-0002.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ data/fine-synth-0003.jsonl filter=lfs diff=lfs merge=lfs -text
64
+ data/fine-synth-0004.jsonl filter=lfs diff=lfs merge=lfs -text
65
+ data/fine-synth-0005.jsonl filter=lfs diff=lfs merge=lfs -text
66
+ data/fine-synth-0006.jsonl filter=lfs diff=lfs merge=lfs -text
67
+ data/fine-synth-0007.jsonl filter=lfs diff=lfs merge=lfs -text
68
+ seeds/seeds.jsonl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,152 @@
1
  ---
2
- license: cc
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pretty_name: The Synthetic Archive
3
+ language:
4
+ - en
5
+ tags:
6
+ - synthetic-data
7
+ - historical-text
8
+ - text-generation
9
+ - question-answering
10
+ - text-rewriting
11
+ - language-modeling
12
+ task_categories:
13
+ - text-generation
14
+ - question-answering
15
+ - summarization
16
  ---
17
+
18
+ # The Synthetic Archive
19
+
20
+ ## Work in progress
21
+
22
+ Generation is still WIP. The final number of records, compressed size, and token count will be reported when the release is complete.
23
+
24
+
25
+ Synthetic Archive is a large synthetic English-text dataset generated from OCR-derived historical and period-style passages. Knowledge cutoff is year 1900.
26
+
27
+ Each source passage was divided into manageable chunks and processed through several generation tasks, including:
28
+
29
+ - generating continuations of unfinished passages;
30
+ - creating question-and-answer pairs;
31
+ - extracting and reformulating factual knowledge;
32
+ - rewriting material as a narrative;
33
+ - transforming source material into a period-style magazine feature;
34
+ - reconstructing or continuing an apparently incomplete historical manuscript.
35
+
36
+ The goal is to create varied language-model training material from archival text while retaining useful information, literary variety, historical vocabulary, and different forms of
37
+ textual reasoning.
38
+
39
+ ## Inspiration
40
+
41
+ This project is inspired by the synthetic-data generation methodology described in the Fine-Phrase paper and by the use of synthetic data in the training of small language models,
42
+ including SmolLM3-3B.
43
+
44
+ This is an independent project. It is not an official Fine-Phrase, Hugging Face, or SmolLM3 dataset.
45
+
46
+ ## Dataset composition
47
+
48
+ The source material is supplied as JSON Lines. Each valid seed record has the form:
49
+
50
+ ```json
51
+ {"text": "A historical or period-style passage..."}
52
+ ```
53
+
54
+ The generation program:
55
+
56
+ 1. Reads valid records from seeds.jsonl.
57
+ 2. Splits each seed into chunks of approximately 3,000 tokens.
58
+ 3. Uses at most three chunks per seed.
59
+ 4. Applies each generation template to each chunk.
60
+ 5. Sends the requests to a vLLM server serving Gemma-4-E4B.
61
+ 6. Appends successful generations to a JSONL output file.
62
+
63
+ ## Generation tasks
64
+
65
+ The production command used five prompt templates.
66
+
67
+ ### continue
68
+
69
+ Produces a clean continuation of the source passage. The model is instructed not to summarize or comment on the source and to continue it as prose.
70
+
71
+ ### diverse QA pairs
72
+
73
+ Produces up to eight question-and-answer pairs based on the source. The prompt requests several question types, including factual, open-ended, yes/no, comparative, multiple-choice,
74
+ comprehension, and problem-solving questions where appropriate.
75
+
76
+ ### extract knowledge
77
+
78
+ Rewrites factual knowledge from the source into clear, educational prose. The prompt asks the model to preserve the source's information and supporting explanations without adding new
79
+ facts.
80
+
81
+ ### narrative
82
+
83
+ Reorganizes the source into a clear narrative emphasizing temporal order, processes, causes, consequences, and relationships between events.
84
+
85
+ ### lost manuscript
86
+
87
+ Generates a continuation in the style of an older manuscript, preserving period diction, syntax, tone, and historical plausibility.
88
+
89
+ ## Generation model
90
+
91
+ The generations were produced with Gemma-4-E4B.
92
+
93
+ The generation settings were:
94
+
95
+ ┌─────────────────────────┬────────────────────────────┐
96
+ │ Setting │ Value │
97
+ ├─────────────────────────┼────────────────────────────┤
98
+ │ Inference mode │ Chat completion │
99
+ ├─────────────────────────┼────────────────────────────┤
100
+ │ Temperature │ 0.8 │
101
+ ├─────────────────────────┼────────────────────────────┤
102
+ │ Top-p │ 0.95 │
103
+ ├─────────────────────────┼────────────────────────────┤
104
+ │ Maximum output │ 1,024 tokens │
105
+ ├─────────────────────────┼────────────────────────────┤
106
+ │ Chunk budget │ Approximately 3,000 tokens │
107
+ ├─────────────────────────┼────────────────────────────┤
108
+ │ Maximum chunks per seed │ 3 │
109
+ └─────────────────────────┴────────────────────────────┘
110
+
111
+ ## Limitations
112
+
113
+ This is a synthetic dataset and should not be treated as a verified reference corpus.
114
+
115
+ ### Generated text may contain errors
116
+
117
+ Generated records may:
118
+
119
+ - hallucinate information;
120
+ - introduce anachronisms;
121
+ - omit details;
122
+ - misinterpret OCR errors;
123
+ - produce unsupported answers;
124
+ - distort the meaning of a source;
125
+ - imitate historical style inaccurately;
126
+ - repeat information;
127
+ - end abruptly due to the output-token limit;
128
+ - contain modern assumptions in otherwise historical-sounding prose.
129
+
130
+ Question-and-answer pairs have not necessarily been checked by a human or independently verified against the source.
131
+
132
+ ### Historical authenticity
133
+
134
+ The generated text is historical-style or historically influenced text, not authenticated historical writing. It may combine period vocabulary with modern reasoning, modern assumptions,
135
+ or factual mistakes.
136
+
137
+ ## Source material
138
+
139
+ The seeds are generated from the highest quality texts filtered from a super dataset containing croqaz/vintage-v1, croqaz/vintage-v2, haykgrigorian/english-historical-corpus-1800-1875 and jbduran/think-dataset-clean.
140
+
141
+ seeds.jsonl file contains 4,550,770 records, English-only, pre-year-1900.
142
+
143
+ The seed texts may contain:
144
+
145
+ - line-break hyphenation;
146
+ - incorrectly recognized characters;
147
+ - broken words;
148
+ - unusual punctuation;
149
+ - stray OCR marks;
150
+ - inconsistent capitalization;
151
+ - historical spelling and vocabulary;
152
+ - outdated terminology and attitudes.
data/fine-synth-0001.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:315cb74c8a584b856dffdd8d5bb3ffd7cd390d5ece5c309bae2d18e85cba69f1
3
+ size 3592952776
data/fine-synth-0002.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efbb6f036390276799cd44bb34e3290017a72b56b9caef577c9306fc749111d8
3
+ size 3594352215
data/fine-synth-0003.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de47f67fc87652a561ae119846cd404e5334fd265b9a62943f69aeaff726cda5
3
+ size 3594898746
data/fine-synth-0004.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31491b6e5834202dc39a091fe4e4d829d6b1a88df8c19e13fbe2d57d98394785
3
+ size 3593494731
data/fine-synth-0005.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d5fe4333390c95f03872fb5e98926c3dbf75c97c986541c7d0baf152ecd4453
3
+ size 3594922341
data/fine-synth-0006.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f99c3da86b07d967851c9d5bcbeda53d0533b693887b86461b4681f48f907ef6
3
+ size 3595740194
data/fine-synth-0007.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b262dc30656ef7909a7beb789e1c8fba7c53fa11a0c4b8ca80e9c7b8b5427fd
3
+ size 2583796806
prompts/diverse_qa_pairs.txt ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Task: Read the text, ask questions and answer them.
2
+ Follow these instructions:
3
+ 1. Ask diverse questions that require different cognitive skills or cover different aspects of the text.
4
+ 2. Ask questions in various forms such as:
5
+ - Yes/No questions that require determining whether a statement is true or false.
6
+ - Open-ended questions that begin with words like what, how, when, where, why and who.
7
+ - Multi-choice questions that offers two or more options to choose from. Include the options in the question.
8
+ - Comparison questions that compare two quantities or objects and determine the relationship between them.
9
+ - Reading comprehension questions that test the ability to understand and analyze the text.
10
+ - Problem-solving questions that test the ability to solve mathematical, physical, or logical problems.
11
+
12
+ 3. Focus on asking questions about factual information, important knowledge, or concrete details in the text.
13
+ 4. Write questions and answers using clear and concise language.
14
+ 5. Use plain text. Do not use Markdown.
15
+ 6. Each question and answer pair should be on a separate line. Tag the question with "Question:" and the answer with "Answer:".
16
+
17
+ Text:
18
+ {text}
19
+ Task:
20
+ After reading the above text, ask up to 8 questions and provide the correct answers following the instructions. Give your response in this format:
21
+ Here are the questions and answers based on the provided text:
22
+ - Question: [first question] Answer: [first answer]
23
+ - Question: [second question] Answer: [second answer]
24
+ ...
prompts/extract_knowledge.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Your task is to rewrite knowledge from the provided text following these instructions:
2
+ - Rewrite the text as a passage or passages using easy-to-understand and high-quality English like sentences in textbooks and Wikipedia.
3
+ - Focus on content in disciplines such as humanities, social sciences, natural sciences, technology, engineering, math, law and legal, business, management, art, education, agricultural sciences, politics, and history.
4
+ - Disregard content that does not contain useful facts or knowledge.
5
+ - Retain examples, explanations of reasoning processes, and supporting evidence to maintain the text's depth and context.
6
+ - Do not add or alter details. Only restate what is already in the text.
7
+ - Write in plain text.
8
+ - Do not add titles, subtitle, note, or comment.
9
+
10
+ Text:
11
+ {text}
12
+ Task:
13
+ Rewrite facts and knowledge from the above text as a passage or passages following the instructions.
prompts/lost-manuscript.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ The following is an excerpt from a genuine period manuscript that has survived incomplete. Reconstruct the missing continuation so faithfully that a scholar could not distinguish it from the original author's hand. Match the historical language, orthography, and rhetorical style exactly, and admit nothing anachronistic. Provide the reconstructed continuation only.
2
+ Text:
3
+ {text}
prompts/magazine_feature.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ Transform the following document into a magazine-style feature article suitable for a literary periodical of the mid-nineteenth century. Give it an engaging opening, develop the subject in flowing prose, and preserve the substance and the period sensibility of the source. Draw only on matters an educated writer of that day could know; introduce nothing that would be unknown before the present age.
2
+
3
+ DOCUMENT:
4
+ {text}
5
+
6
+ FEATURE ARTICLE:
prompts/narrative.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Rewrite the document as a clear narrative that emphasizes the temporal sequence and causal relationships between events or steps. Reorganize the content to show how actions, events, or situations naturally flow from one to the next, making cause-and-effect relationships explicit. If describing a process or activity, show the logical progression of steps and explain why each step follows from the previous one. Output only the narrative, nothing else.
2
+ Document:
3
+ {text}
seeds/seeds.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72e5053f14408fd193b6e9e118886e6d2073491985b5a45160f6e970de7ac0f0
3
+ size 17687806297