Text Generation
Transformers
Safetensors
English
mixtral
mathematics
reasoning
algebra
arithmetic
geometry
calculus
statistics
number-theory
ai
adaption-labs
autoscientist
lora
education
stem
conversational
text-generation-inference
Instructions to use Charley890/AdaptiveMath with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Charley890/AdaptiveMath with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Charley890/AdaptiveMath") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Charley890/AdaptiveMath") model = AutoModelForCausalLM.from_pretrained("Charley890/AdaptiveMath", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Charley890/AdaptiveMath with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Charley890/AdaptiveMath" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Charley890/AdaptiveMath", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Charley890/AdaptiveMath
- SGLang
How to use Charley890/AdaptiveMath with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Charley890/AdaptiveMath" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Charley890/AdaptiveMath", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Charley890/AdaptiveMath" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Charley890/AdaptiveMath", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Charley890/AdaptiveMath with Docker Model Runner:
docker model run hf.co/Charley890/AdaptiveMath
Update README.md
Browse files
README.md
CHANGED
|
@@ -162,8 +162,6 @@ It performs best when explaining every intermediate step before arriving at the
|
|
| 162 |
|-----------|----------|
|
| 163 |
| Arithmetic | Addition, Subtraction, Multiplication, Division |
|
| 164 |
| Algebra | Linear Equations, Quadratic Equations, Polynomial Factorization |
|
| 165 |
-
| Geometry | Angles, Triangles, Circles, Coordinate Geometry |
|
| 166 |
-
| Calculus | Differentiation, Integration, Limits |
|
| 167 |
| Statistics | Mean, Median, Mode, Variance, Standard Deviation,etc.|
|
| 168 |
|
| 169 |
## Fundamental Mathematical Formulae
|
|
@@ -172,8 +170,6 @@ It performs best when explaining every intermediate step before arriving at the
|
|
| 172 |
|---------|----------|
|
| 173 |
| Quadratic Formula | $x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$ |
|
| 174 |
| Pythagorean Theorem | $a^2+b^2=c^2$ |
|
| 175 |
-
| Distance Formula | $d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$ |
|
| 176 |
-
| Midpoint Formula | $M=\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right)$ |
|
| 177 |
| Slope Formula | $m=\frac{y_2-y_1}{x_2-x_1}$,etc. |
|
| 178 |
|
| 179 |
---
|
|
@@ -270,4 +266,175 @@ outputs = model.generate(
|
|
| 270 |
)
|
| 271 |
print(t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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 273 |
|
|
|
|
|
|
| 162 |
|-----------|----------|
|
| 163 |
| Arithmetic | Addition, Subtraction, Multiplication, Division |
|
| 164 |
| Algebra | Linear Equations, Quadratic Equations, Polynomial Factorization |
|
|
|
|
|
|
|
| 165 |
| Statistics | Mean, Median, Mode, Variance, Standard Deviation,etc.|
|
| 166 |
|
| 167 |
## Fundamental Mathematical Formulae
|
|
|
|
| 170 |
|---------|----------|
|
| 171 |
| Quadratic Formula | $x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$ |
|
| 172 |
| Pythagorean Theorem | $a^2+b^2=c^2$ |
|
|
|
|
|
|
|
| 173 |
| Slope Formula | $m=\frac{y_2-y_1}{x_2-x_1}$,etc. |
|
| 174 |
|
| 175 |
---
|
|
|
|
| 266 |
)
|
| 267 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 268 |
```
|
| 269 |
+
---
|
| 270 |
+
|
| 271 |
+
# π Applications
|
| 272 |
+
|
| 273 |
+
This model is designed for a wide variety of mathematical and scientific applications.
|
| 274 |
+
|
| 275 |
+
- π AI Tutors
|
| 276 |
+
- π STEM Education
|
| 277 |
+
- π€ Mathematics Chatbots
|
| 278 |
+
- π¬ Scientific Computing
|
| 279 |
+
- π Homework Assistance
|
| 280 |
+
- π§ͺ Research
|
| 281 |
+
- π» Educational Software and more.
|
| 282 |
+
|
| 283 |
+
---
|
| 284 |
+
# Limitations
|
| 285 |
+
|
| 286 |
+
Although highly capable, the model has several limitations.
|
| 287 |
+
|
| 288 |
+
- May occasionally make arithmetic mistakes on extremely long calculations.
|
| 289 |
+
- Complex symbolic manipulations should always be verified.
|
| 290 |
+
- Does not replace professional Computer Algebra Systems (CAS) such as Mathematica or Maple.
|
| 291 |
+
- Performance depends heavily on prompt quality.
|
| 292 |
+
- Mathematical proofs may require human verification.
|
| 293 |
+
- May hallucinate unsupported mathematical identities if prompted incorrectly.
|
| 294 |
+
- Numerical approximations can accumulate rounding errors.
|
| 295 |
+
- High-stakes scientific applications should always be independently validated.
|
| 296 |
+
- Performance may decrease on very large expressions or lengthy derivations.
|
| 297 |
+
|
| 298 |
+
---
|
| 299 |
+
# Future Improvements
|
| 300 |
+
|
| 301 |
+
Future releases may include:
|
| 302 |
+
|
| 303 |
+
- Better symbolic reasoning
|
| 304 |
+
- Olympiad-level mathematics
|
| 305 |
+
- Interactive tutoring
|
| 306 |
+
- Diagram understanding
|
| 307 |
+
- Mathematical OCR support
|
| 308 |
+
- Scientific equation solving and more.
|
| 309 |
+
---
|
| 310 |
+
|
| 311 |
+
# Acknowledgements
|
| 312 |
+
|
| 313 |
+
Special thanks to:
|
| 314 |
+
|
| 315 |
+
- Adaption Labs
|
| 316 |
+
- Mixtral Team
|
| 317 |
+
- Hugging Face and Kaggle
|
| 318 |
+
- Transformers Community
|
| 319 |
+
- Open-source AI Community
|
| 320 |
+
- Mathematical research contributors
|
| 321 |
+
|
| 322 |
+
---
|
| 323 |
+
|
| 324 |
+
# Citation
|
| 325 |
+
|
| 326 |
+
If you use this model in your research, please cite:
|
| 327 |
+
|
| 328 |
+
```bibtex
|
| 329 |
+
@misc{adaptive_math_reasoner,
|
| 330 |
+
title = {Adaptive Math Reasoner},
|
| 331 |
+
author = {Edidiong Charlie},
|
| 332 |
+
year = {2026},
|
| 333 |
+
publisher = {Hugging Face},
|
| 334 |
+
model = {Mixtral-8x7B-Instruct},
|
| 335 |
+
framework = {Adaption Labs + AutoScientist},
|
| 336 |
+
license = {Apache-2.0},
|
| 337 |
+
url = {https://huggingface.co/Charlie890/Adaptive-Math-Reasoner-Mixtral-8x7B}
|
| 338 |
+
}
|
| 339 |
+
```
|
| 340 |
+
---
|
| 341 |
+
|
| 342 |
+
# License
|
| 343 |
+
|
| 344 |
+
This project is released under the **Apache License 2.0**.
|
| 345 |
+
|
| 346 |
+
You are free to:
|
| 347 |
+
|
| 348 |
+
- β
Use commercially
|
| 349 |
+
- β
Modify
|
| 350 |
+
- β
Distribute
|
| 351 |
+
- β
Private use
|
| 352 |
+
- β
Research
|
| 353 |
+
- β
Education
|
| 354 |
+
|
| 355 |
+
Subject to the terms and conditions of the Apache License 2.0.
|
| 356 |
+
|
| 357 |
+
---
|
| 358 |
+
# Performance Goals
|
| 359 |
+
|
| 360 |
+
The model is optimized to:
|
| 361 |
+
|
| 362 |
+
- Produce step-by-step mathematical reasoning.
|
| 363 |
+
- Solve algebraic equations accurately.
|
| 364 |
+
- Handle advanced calculus problems.
|
| 365 |
+
- Solve geometry and trigonometry questions.
|
| 366 |
+
- Perform statistical computations.
|
| 367 |
+
- Explain mathematical concepts clearly.
|
| 368 |
+
- Generate clean LaTeX mathematical expressions.
|
| 369 |
+
- Assist students, educators, engineers, and researchers.
|
| 370 |
+
|
| 371 |
+
---
|
| 372 |
+
|
| 373 |
+
# Example Prompt Ideas
|
| 374 |
+
|
| 375 |
+
```text
|
| 376 |
+
Solve:
|
| 377 |
+
3xΒ² + 7x - 10 = 0
|
| 378 |
+
```
|
| 379 |
+
```text
|
| 380 |
+
Differentiate:
|
| 381 |
+
|
| 382 |
+
f(x)=sin(x)e^x
|
| 383 |
+
```
|
| 384 |
+
```text
|
| 385 |
+
Integrate:
|
| 386 |
+
|
| 387 |
+
β«xΒ²cos(x)dx
|
| 388 |
+
```
|
| 389 |
+
```text
|
| 390 |
+
Find the determinant of
|
| 391 |
+
|
| 392 |
+
|2 4|
|
| 393 |
+
|1 5|
|
| 394 |
+
```
|
| 395 |
+
```text
|
| 396 |
+
Prove the Binomial Theorem.
|
| 397 |
+
```
|
| 398 |
+
```text
|
| 399 |
+
Explain Bayes' Theorem with a practical example.
|
| 400 |
+
```
|
| 401 |
+
```text
|
| 402 |
+
Find the eigenvalues of the matrix:
|
| 403 |
+
|
| 404 |
+
[[4,2],
|
| 405 |
+
[1,3]]
|
| 406 |
+
```
|
| 407 |
+
|
| 408 |
+
---
|
| 409 |
+
|
| 410 |
+
# Mission
|
| 411 |
+
|
| 412 |
+
The goal of **Adaptive Math Reasoner** is to provide accurate, explainable, and accessible mathematical reasoning powered by modern Large Language Models.
|
| 413 |
+
|
| 414 |
+
The project aims to make advanced mathematics easier to learn, explore, and apply across education, engineering, science, finance, and research.
|
| 415 |
+
|
| 416 |
+
---
|
| 417 |
+
|
| 418 |
+
## Version
|
| 419 |
+
|
| 420 |
+
**Version:** 1.0.0
|
| 421 |
+
|
| 422 |
+
**Base Model:** Mixtral-8x7B-Instruct
|
| 423 |
+
|
| 424 |
+
**Framework:** Transformers
|
| 425 |
+
|
| 426 |
+
**License:** Apache-2.0
|
| 427 |
+
|
| 428 |
+
**Primary Domain:** Mathematical Reasoning
|
| 429 |
+
|
| 430 |
+
**Author:** Edidiong Charlie
|
| 431 |
+
|
| 432 |
+
---
|
| 433 |
+
|
| 434 |
+
# Thank You
|
| 435 |
+
|
| 436 |
+
Thank you for using **Adaptive Math Reasoner**.
|
| 437 |
+
|
| 438 |
+
We hope this model helps students, educators, researchers, developers, engineers, and the open-source community solve mathematical problems more effectively.
|
| 439 |
|
| 440 |
+
Happy building with AI and Mathematics! π
|