FlameF0X / MathGPT2

huggingface.co
Total runs: 50
24-hour runs: 0
7-day runs: 45
30-day runs: 47
Model's Last Updated: June 29 2025
text-generation

Introduction of MathGPT2

Model Details of MathGPT2

MathGPT-2 (distilgpt2 Fine-Tuned for Arithmetic)

This model is a fine-tuned version of DistilGPT-2 on a custom dataset consisting exclusively of arithmetic problems and their answers. The goal of this model is to act as a calculator that can solve basic arithmetic problems.

Benchmark

Link here .

Model Description

The model was trained using a dataset of simple arithmetic expressions, including addition, subtraction, multiplication, and division. The training data was generated using Python and ensured to have no duplicate expressions .

Key Features:
  • Solves basic arithmetic (addition, subtraction, multiplication, division)
  • Can handle simple problems like 12 + 5 =
  • Fine-tuned version of distilgpt2 on a math-specific dataset
  • Trained for 10 epochs (further improvements can be made by training for more epochs)
Model Details
  • Model architecture : DistilGPT-2
  • Training duration : 10 epochs (could be improved further)
  • Dataset : Generated math expressions like 12 + 5 = 17
  • Tokenization : Standard GPT-2 tokenizer
  • Fine-tuned on : Simple arithmetic operations
Intended Use

This model is designed to:

  • Answer basic arithmetic problems (addition, subtraction, multiplication, division).
  • It can generate answers for simple problems like 12 * 6 = ? .
Example:

Input :

13 + 47 =

Output :

60
Benchmark Results

We evaluated the model using a set of 10000 randomly generated math expressions to assess its performance. Here are the results:

  • Accuracy : 76.3%
  • Average Inference Time : 0.1448 seconds per question

Training Data

The training dataset was generated using Python, consisting of random arithmetic expressions (addition, subtraction, multiplication, division) between numbers from 1 to 100. The expressions were formatted as:

2 + 3 = 5
100 - 25 = 75
45 * 5 = 225
100 / 25 = 4

No duplicate expressions were used, ensuring the model learns unique patterns.

Fine-Tuning

This model was fine-tuned from the distilgpt2 base model for 100 epochs.


Limitations
  • Basic Arithmetic Only : The model can only handle basic arithmetic problems like addition, subtraction, multiplication, and division. It does not handle more complex operations like exponentiation, logarithms, or advanced algebra.
  • Limited Training Duration : While trained for 10 epochs, more epochs or data diversity may improve the model's performance further.
  • No real-time validation : The model's performance varies, and there are still inaccuracies in answers for some problems.

Runs of FlameF0X MathGPT2 on huggingface.co

50
Total runs
0
24-hour runs
0
3-day runs
45
7-day runs
47
30-day runs

More Information About MathGPT2 huggingface.co Model

More MathGPT2 license Visit here:

https://choosealicense.com/licenses/mit

MathGPT2 huggingface.co

MathGPT2 huggingface.co is an AI model on huggingface.co that provides MathGPT2's model effect (), which can be used instantly with this FlameF0X MathGPT2 model. huggingface.co supports a free trial of the MathGPT2 model, and also provides paid use of the MathGPT2. Support call MathGPT2 model through api, including Node.js, Python, http.

FlameF0X MathGPT2 online free

MathGPT2 huggingface.co is an online trial and call api platform, which integrates MathGPT2's modeling effects, including api services, and provides a free online trial of MathGPT2, you can try MathGPT2 online for free by clicking the link below.

FlameF0X MathGPT2 online free url in huggingface.co:

https://huggingface.co/FlameF0X/MathGPT2

MathGPT2 install

MathGPT2 is an open source model from GitHub that offers a free installation service, and any user can find MathGPT2 on GitHub to install. At the same time, huggingface.co provides the effect of MathGPT2 install, users can directly use MathGPT2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

MathGPT2 install url in huggingface.co:

https://huggingface.co/FlameF0X/MathGPT2

Url of MathGPT2

MathGPT2 huggingface.co Url

Provider of MathGPT2 huggingface.co

FlameF0X
ORGANIZATIONS

Other API from FlameF0X

huggingface.co

Total runs: 164
Run Growth: 138
Growth Rate: 84.15%
Updated:July 17 2026
huggingface.co

Total runs: 144
Run Growth: 49
Growth Rate: 34.03%
Updated:May 26 2026
huggingface.co

Total runs: 114
Run Growth: -76
Growth Rate: -66.67%
Updated:December 01 2025
huggingface.co

Total runs: 112
Run Growth: 16
Growth Rate: 14.29%
Updated:October 31 2025
huggingface.co

Total runs: 109
Run Growth: 0
Growth Rate: 0.00%
Updated:July 25 2026
huggingface.co

Total runs: 70
Run Growth: 70
Growth Rate: 100.00%
Updated:December 03 2025
huggingface.co

Total runs: 62
Run Growth: 12
Growth Rate: 19.35%
Updated:November 29 2025
huggingface.co

Total runs: 44
Run Growth: 11
Growth Rate: 25.00%
Updated:November 25 2025
huggingface.co

Total runs: 39
Run Growth: -135
Growth Rate: -346.15%
Updated:October 23 2025
huggingface.co

Total runs: 36
Run Growth: 20
Growth Rate: 55.56%
Updated:February 23 2026
huggingface.co

Total runs: 30
Run Growth: -254
Growth Rate: -846.67%
Updated:May 20 2026
huggingface.co

Total runs: 21
Run Growth: -10
Growth Rate: -47.62%
Updated:October 17 2025
huggingface.co

Total runs: 16
Run Growth: 0
Growth Rate: 0.00%
Updated:December 19 2025
huggingface.co

Total runs: 14
Run Growth: -272
Growth Rate: -1942.86%
Updated:May 15 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 06 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 29 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 15 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 31 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 17 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 07 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 15 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 31 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 19 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 25 2026