Charley890 commited on
Commit
0041cb2
·
verified ·
1 Parent(s): c9983e6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +142 -39
README.md CHANGED
@@ -56,19 +56,19 @@ Adaptive Math 2 focuses on educational mathematical reasoning rather than simple
56
 
57
  ### Characteristics
58
 
59
- Structured instruction format
60
 
61
- Educational explanations
62
 
63
- Curriculum-oriented questions
64
 
65
- Reasoning-aware responses
66
 
67
- Clean supervised fine-tuning format
68
 
69
  ## Example Dataset Samples
70
 
71
- ### Example 1
72
 
73
  **Instruction**
74
 
@@ -86,24 +86,6 @@ x = 7
86
  ```
87
 
88
  ---
89
-
90
- ### Example 2
91
-
92
- **Instruction**
93
-
94
- ```
95
- A triangle has angles of 45° and 65°.
96
-
97
- Find the third angle.
98
- ```
99
-
100
- **Expected Response**
101
-
102
- ```
103
- 180° − (45° + 65°)
104
-
105
- = 70°
106
- ```
107
  ## Educational Impact
108
 
109
  Adaptive Math 2 is intended for:
@@ -118,22 +100,143 @@ Adaptive Math 2 is intended for:
118
 
119
  The dataset emphasizes transparent reasoning instead of answer memorization.
120
 
121
- ## Credit
122
-
123
- Adaptive data by Adaption.
124
-
125
- ## Acknowledgement
126
-
127
- Adaptive Math 2 was developed using the **Adaption Lab AutoScientist** pipeline with **Meta Llama 4 Scout 17B** as the foundation model.
128
-
129
- Special thanks to:
130
-
131
- - **Adaption Lab** for the AutoScientist training and evaluation platform.
132
- - **Meta AI** for the Llama 4 Scout base model.
133
- - **Hugging Face** for open model hosting and distribution.
134
- - **Kaggle** for dataset publication and community accessibility.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
 
136
- This project demonstrates how adaptive instruction datasets can improve mathematical reasoning, instruction following, and educational AI through efficient LoRA fine-tuning.
137
 
138
  ## 📊 Model Performance
139
 
 
56
 
57
  ### Characteristics
58
 
59
+ Structured instruction format
60
 
61
+ Educational explanations
62
 
63
+ Curriculum-oriented questions
64
 
65
+ Reasoning-aware responses
66
 
67
+ Clean supervised fine-tuning format
68
 
69
  ## Example Dataset Samples
70
 
71
+ ### Example
72
 
73
  **Instruction**
74
 
 
86
  ```
87
 
88
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  ## Educational Impact
90
 
91
  Adaptive Math 2 is intended for:
 
100
 
101
  The dataset emphasizes transparent reasoning instead of answer memorization.
102
 
103
+ ## Mathematical Training Specification
104
+
105
+ model:
106
+ base_model: "meta-llama/Llama-4-Scout-17B-16E-Instruct"
107
+ approximate_model_size: "109B parameters"
108
+ training_method: "Supervised Fine-Tuning (SFT)"
109
+ adaptation_method: "LoRA"
110
+ data_format: "Chat"
111
+
112
+ mathematical_formulation:
113
+
114
+ objective:
115
+ description: "The adapted model minimizes the supervised language-modeling loss over the Adaptive Math 2 dataset."
116
+ equation: |
117
+ θ* = argmin_θ L(θ)
118
+
119
+ language_model_loss:
120
+ equation: |
121
+ L(θ) = -Σᵢ log Pθ(yᵢ | xᵢ)
122
+
123
+ lora:
124
+ description: "Instead of updating the full model weights, LoRA learns a low-rank update."
125
+ equation: |
126
+ W' = W + ΔW
127
+ ΔW = (α/r)BA
128
+
129
+ parameters:
130
+ rank_r: 16
131
+ alpha: 32
132
+ dropout: 0
133
+ scaling_factor: |
134
+ α/r = 32/16 = 2
135
+
136
+ effective_update:
137
+ equation: |
138
+ ΔW = 2BA
139
+
140
+ optimization:
141
+ learning_rate: 0.00005
142
+ weight_decay: 0
143
+ max_gradient_norm: 2
144
+ optimizer_constraint: |
145
+ ||g||₂ ≤ 2
146
+
147
+ training_schedule:
148
+ epochs: 5
149
+ evaluations: 5
150
+ evaluation_frequency: |
151
+ 5 evaluations / 5 epochs = 1 evaluation per epoch
152
+
153
+ scheduler:
154
+ type: "Linear"
155
+ num_cycles: 0.5
156
+ warmup_ratio: 0.03
157
+
158
+ warmup:
159
+ equation: |
160
+ T_warmup = 0.03T
161
+
162
+ batch:
163
+ batch_size: "max"
164
+
165
+ target_modules:
166
+ count: 10
167
+ modules:
168
+ - "k_proj"
169
+ - "o_proj"
170
+ - "q_proj"
171
+ - "v_proj"
172
+ - "shared_expert.gate"
173
+ - "shared_expert.up_proj"
174
+ - "shared_expert.down_proj"
175
+ - "feed_forward.gate_proj"
176
+ - "feed_forward.up_proj"
177
+ - "feed_forward.down_proj"
178
+
179
+ training_objective:
180
+ equation: |
181
+ θ_LoRA* = argmin_{A,B} L(W + (α/r)BA)
182
+
183
+ interpretation:
184
+ rank: "r = 16 controls the low-rank adaptation capacity."
185
+ scaling: "α/r = 2 controls the magnitude of the LoRA update."
186
+ regularization: "LoRA dropout = 0 and weight decay = 0."
187
+ stability: "Gradient norm is clipped at 2."
188
+ schedule: "Learning rate follows a linear schedule after a 3% warmup."
189
+
190
+ ## Training Interpretation
191
+
192
+ benchmark:
193
+ adaptation_strategy: "Parameter-efficient fine-tuning"
194
+ objective: "Improve mathematical reasoning while preserving the pretrained model."
195
+ full_parameter_update: false
196
+ low_rank_update: true
197
+
198
+ key_result:
199
+ statement: |
200
+ Adaptive Math 2 applies a low-rank parameter update rather than
201
+ retraining the complete 109B-parameter model.
202
+
203
+ mathematical_summary: |
204
+ W_adapted = W_base + 2BA
205
+
206
+ meaning:
207
+ - "W_base represents the pretrained model."
208
+ - "A and B are learned low-rank matrices."
209
+ - "r = 16 defines the adaptation rank."
210
+ - "α = 32 gives a scaling factor of 2."
211
+ - "Only the selected target modules receive LoRA updates."
212
+
213
+ ## Reproducibility
214
+
215
+ configuration:
216
+ training_method: "SFT"
217
+ training_type: "LoRA"
218
+ epochs: 5
219
+ learning_rate: 0.00005
220
+ warmup_ratio: 0.03
221
+ weight_decay: 0
222
+ max_grad_norm: 2
223
+ lora_rank: 16
224
+ lora_alpha: 32
225
+ lora_dropout: 0
226
+ scheduler: "linear"
227
+ scheduler_cycles: 0.5
228
+ evaluations: 5
229
+ batch_size: "max"
230
+
231
+ credit:
232
+ adaptive_data: "Adaptive Data by Adaption Labs"
233
+ training_evaluation: "AutoScientist"
234
+
235
+
236
+
237
+
238
+ Adaptive Math 2 was developed using the **Adaption Lab AutoScientist** pipe
239
 
 
240
 
241
  ## 📊 Model Performance
242