File size: 9,124 Bytes
9dfcdee
138a9fb
19d1bbe
138a9fb
 
19d1bbe
138a9fb
 
 
 
 
 
 
 
19d1bbe
138a9fb
 
 
 
 
 
19d1bbe
138a9fb
 
 
 
19d1bbe
138a9fb
19d1bbe
 
138a9fb
 
5d3bb62
b908914
138a9fb
b908914
 
298fbca
5d3bb62
19d1bbe
5d3bb62
138a9fb
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
 
 
 
 
 
 
 
 
 
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
 
 
 
 
 
 
 
5d3bb62
138a9fb
5d3bb62
19d1bbe
5d3bb62
19d1bbe
 
 
 
 
 
 
 
 
 
5d3bb62
138a9fb
5d3bb62
19d1bbe
5d3bb62
138a9fb
19d1bbe
 
 
 
138a9fb
5d3bb62
138a9fb
9048dc7
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
 
 
 
 
 
 
5d3bb62
138a9fb
5d3bb62
19d1bbe
5d3bb62
19d1bbe
 
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
5d3bb62
19d1bbe
 
f6bfd42
 
 
30e935b
 
c8120b1
30e935b
 
 
 
 
 
 
 
 
 
 
 
 
565b3dd
30e935b
c8120b1
 
 
 
 
 
565b3dd
9593102
 
565b3dd
9593102
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5392fef
9048dc7
b7b3005
 
 
 
 
 
 
 
 
 
 
9593102
5392fef
9593102
 
b7b3005
 
 
 
 
 
 
 
 
 
 
 
 
 
9593102
b7b3005
9593102
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8becd5e
 
b4064cf
8becd5e
 
 
b4064cf
 
 
 
 
 
 
8becd5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9593102
8becd5e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
---
license: apache-2.0
base_model: mistralai/Mixtral-8x7B-Instruct-v0.1
library_name: transformers
pipeline_tag: text-generation

tags:
- mathematics
- reasoning
- algebra
- arithmetic
- geometry
- calculus
- statistics
- number-theory
- ai
- adaption-labs
- autoscientist
- lora
- education
- stem

language:
- en



metrics:
- Grade
- Overall Win Rate
- Math Win Rate
- Percentile


---
![Adaptive Math Demo](adaptive-math-demo.gif)

# Adaptive Math β€” Mixtral-8x7B

> A PEFT (LoRA) fine-tuned **Mixtral-8x7B-Instruct-v0.1** model specialized for mathematical reasoning, arithmetic, algebra, geometry, statistics and logical problem solving using the **Adaption Labs AutoScientist** workflow.

---

# Overview

Adaptive Math is a domain-adapted language model developed for mathematical reasoning and instruction following.

The model was fine-tuned using the **Adaption Labs AutoScientist** workflow on a mathematics reasoning dataset containing thousands of mathematical instruction-completion pairs.

Unlike a general language model, this model focuses on structured mathematical reasoning, symbolic manipulation and logical step-by-step solutions.

---

# Quick Facts

| Item | Value |
|------|-------|
| Domain | Mathematics |
| Task | Mathematical Reasoning |
| Base Model | Mixtral-8x7B-Instruct-v0.1 |
| Fine-tuning Method | PEFT (LoRA) |
| Training Framework | Adaption Labs AutoScientist |
| Dataset | adaption-single-integer-samples |
| Language | English |
| License | Apache-2.0 |

---

# Training Dataset

Dataset Repository

https://huggingface.co/datasets/Charley890/adaption-single-integer-samples

The training dataset contains mathematical reasoning examples covering:

- Arithmetic
- Algebra
- Number Theory
- Geometry
- Statistics
- Logical Reasoning
- Symbolic Mathematics
- Mathematical Word Problems

---

# Key Features

- Mathematical Question Answering
- Step-by-Step Reasoning
- Arithmetic Computation
- Algebraic Manipulation
- Geometry Reasoning
- Number Theory
- Statistics
- Symbolic Reasoning
- STEM Education
- AI Tutoring

---

# Base Model

| Property | Value |
|-----------|-------|
| Base Model | Mixtral-8x7B-Instruct-v0.1 |
| Fine-tuning | PEFT (LoRA) |
| Framework | Adaption Labs AutoScientist |
| Language | English |

---
![Adaptive Math Demo](adaptive-math-demo-2.gif)

# Evaluation Results

Evaluation performed using **Adaption Labs AutoScientist**

| Metric | Base Model | Adapted Model | Improvement |
|--------|-----------:|--------------:|------------:|
| Grade | E | A | Excellent |
| Overall Win Rate | 19 | 81 | +62 |
| Math Win Rate | 38 | 63 | +25 |
| Percentile | 0.0 | 57.7 | +57.7 |
| Relative Improvement | β€” | β€” | 82% |

---

# Performance Summary

```
βœ“ Training Completed Successfully

βœ“ Stable Optimization

βœ“ Mathematical Reasoning Improved

βœ“ Grade Improved from E β†’ A

βœ“ Overall Win Rate Improved from 19 β†’ 81

βœ“ Math Win Rate Improved from 38 β†’ 63

βœ“ Percentile Improved from 0.0 β†’ 57.7

βœ“ Relative Quality Improvement: 82%
```


![Adaptive Math Demo](output.gif)
---

# Mathematical Knowledge

This model is optimized to solve a broad range of mathematical problems through logical reasoning instead of memorization.

It performs best when explaining every intermediate step before arriving at the final answer.

---

## Supported Topics

| Category | Examples |
|-----------|----------|
| Arithmetic | Addition, Subtraction, Multiplication, Division |
| Algebra | Linear Equations, Quadratic Equations, Polynomial Factorization |
| Statistics | Mean, Median, Mode, Variance, Standard Deviation,etc.|

##  Fundamental Mathematical Formulae

| Formula | Equation |
|---------|----------|
| Quadratic Formula | $x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$ |
| Pythagorean Theorem | $a^2+b^2=c^2$ |
| Slope Formula | $m=\frac{y_2-y_1}{x_2-x_1}$,etc. |

---
# Example Usage

## Example 1

**Input**
```text
Solve:
2x+7=19
```
**Output**
```text
Subtract 7 from both sides.
2x=12
Divide both sides by 2.
x=6
```
---

## Example 2

**Input**
```text
Find the derivative of
f(x)=xΒ²+5x+2
```
**Output**
```text
Using the power rule,
f'(x)=2x+5
```
---
## Example 3

**Input**
```text
Find the area of a circle with radius 7.
```
**Output**
```text
A=\pi r^2
A=49\pi
β‰ˆ153.94


y
10 |                          ●
 9 |                      ●
 8 |                  ●
 7 |              ●
 6 |          ●
 5 |      ●
 4 |   ●
 3 | ●
   +--------------------------------β†’ x
     1   2   3   4   5   6   7   8
```

---
```text
Frequency

10 |                    β–ˆ
 9 |                    β–ˆ
 8 |               β–ˆ    β–ˆ
 7 |               β–ˆ    β–ˆ
 6 |          β–ˆ    β–ˆ    β–ˆ
 5 |     β–ˆ    β–ˆ    β–ˆ    β–ˆ
 4 |     β–ˆ    β–ˆ    β–ˆ    β–ˆ
 3 | β–ˆ   β–ˆ    β–ˆ    β–ˆ    β–ˆ
 2 | β–ˆ   β–ˆ    β–ˆ    β–ˆ    β–ˆ
 1 | β–ˆ   β–ˆ    β–ˆ    β–ˆ    β–ˆ
   +----------------------------
      A    B    C    D    E
```

---

#  Inference with Transformers

```python
from transformers import AutoTokenizer
from transformers import AutoModelForCausalLM
model_name = "Charlie890/Adaptive-Math-Reasoner-Mixtral-8x7B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "Solve: 3x + 5 = 20"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
    **inputs,
    max_new_tokens=256
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```
---

#  Applications

This model is designed for a wide variety of mathematical and scientific applications.

-  AI Tutors
-  STEM Education
-  Mathematics Chatbots
-  Scientific Computing
-  Homework Assistance
-  Research
-  Educational Software and more.

---
# Limitations

Although highly capable, the model has several limitations.

- May occasionally make arithmetic mistakes on extremely long calculations.
- Complex symbolic manipulations should always be verified.
- Does not replace professional Computer Algebra Systems (CAS) such as Mathematica or Maple.
- Performance depends heavily on prompt quality.
- Mathematical proofs may require human verification.
- May hallucinate unsupported mathematical identities if prompted incorrectly.
- Numerical approximations can accumulate rounding errors.
- High-stakes scientific applications should always be independently validated.
- Performance may decrease on very large expressions or lengthy derivations.

---
#  Future Improvements

Future releases may include:

- Better symbolic reasoning
- Olympiad-level mathematics
- Interactive tutoring
- Diagram understanding
- Mathematical OCR support
- Scientific equation solving and more.
---

#  Acknowledgements

Special thanks to:

- Adaption Labs
- Mixtral Team
- Hugging Face and Kaggle 
- Transformers Community
- Open-source AI Community
- Mathematical research contributors
 
---

#  Citation

If you use this model in your research, please cite:

```bibtex
@misc{adaptive_math_reasoner,
  title        = {Adaptive Math Reasoner},
  author       = {Edidiong Charlie},
  year         = {2026},
  publisher    = {Hugging Face},
  model        = {Mixtral-8x7B-Instruct},
  framework    = {Adaption Labs + AutoScientist},
  license      = {Apache-2.0},
  url          = {https://huggingface.co/Charlie890/Adaptive-Math-Reasoner-Mixtral-8x7B}
}
```
---

#  License

This project is released under the **Apache License 2.0**.

You are free to:

- βœ… Use commercially
- βœ… Modify
- βœ… Distribute
- βœ… Private use
- βœ… Research
- βœ… Education

Subject to the terms and conditions of the Apache License 2.0.

---
# Performance Goals

The model is optimized to:

- Produce step-by-step mathematical reasoning.
- Solve algebraic equations accurately.
- Handle advanced calculus problems.
- Solve geometry and trigonometry questions.
- Perform statistical computations.
- Explain mathematical concepts clearly.
- Generate clean LaTeX mathematical expressions.
- Assist students, educators, engineers, and researchers.

---

#  Example Prompt Ideas

```text
Solve:
3xΒ² + 7x - 10 = 0
```
```text
Differentiate:

f(x)=sin(x)e^x
```
```text
Integrate:

∫x²cos(x)dx
```
```text
Find the determinant of

|2 4|
|1 5|
```
```text
Prove the Binomial Theorem.
```
```text
Explain Bayes' Theorem with a practical example.
```
```text
Find the eigenvalues of the matrix:

[[4,2],
 [1,3]]
```

---

# Mission

The goal of **Adaptive Math Reasoner** is to provide accurate, explainable, and accessible mathematical reasoning powered by modern Large Language Models.

The project aims to make advanced mathematics easier to learn, explore, and apply across education, engineering, science, finance, and research.

---

## Version

**Version:** 1.0.0

**Base Model:** Mixtral-8x7B-Instruct

**Framework:** Transformers

**License:** Apache-2.0

**Primary Domain:** Mathematical Reasoning

**Author:** Edidiong Charlie

---

# Thank You

Thank you for using **Adaptive Math Reasoner**.

We hope this model helps students, educators, researchers, developers, engineers, and the open-source community solve mathematical problems more effectively.

Happy building with AI and Mathematics! πŸš€