Downloads · 30 days
15
3% of all-time downloads
anmoldhandhania93/ANMOLGPT-4B-v0.5
ANMOLGPT-4B-v0.5 is a text generation model from anmoldhandhania93. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
ANMOLGPT-4B-v0.5 is the fifth experimental release of the ANMOLGPT family of small language models.
Downloads · 30 days
15
3% of all-time downloads
All-time downloads
469
Public
Parameters
4.7B
9.3 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors9.3 GB · 100%
How the weights are stored.
BF164.7B · 100%
From the Hugging Face model README
ANMOLGPT-4B-v0.5 is the fifth experimental release of the ANMOLGPT family of small language models.
This version is based on Qwen3.5-4B and was further fine-tuned with a focus on mathematical reasoning using GSM8K.
The primary objective of v0.5 was to investigate whether targeted mathematical fine-tuning could improve reasoning performance while preserving the model's broader capabilities.
The main change in v0.5 is targeted training on GSM8K to improve mathematical reasoning.
Compared with ANMOLGPT-4B-v0.4, v0.5 shows a substantial improvement on GSM8K while largely preserving performance across several general-purpose benchmarks.
| Metric | v0.4 | v0.5 | Change |
|---|---|---|---|
| GSM8K Flexible Extract | 54.36% | 60.42% | +6.06 pp |
| GSM8K Strict Match | 46.85% | 56.18% | +9.33 pp |
The improvement in strict-match accuracy is particularly notable, suggesting that the model became better at producing answers in the expected mathematical format.
All evaluations below were performed using lm-evaluation-harness.
5-shot evaluation.
| Metric | Score |
|---|---|
| Flexible Extract | 60.42% ± 1.35% |
| Strict Match | 56.18% ± 1.37% |
0-shot evaluation.
| Metric | Score |
|---|---|
| Accuracy | 55.32% ± 0.50% |
| Normalized Accuracy | 73.30% ± 0.44% |
0-shot evaluation.
| Metric | Score |
|---|---|
| Accuracy | 78.24% ± 0.96% |
| Normalized Accuracy | 78.94% ± 0.95% |
0-shot evaluation.
| Metric | Score |
|---|---|
| Accuracy | 84.30% ± 0.75% |
| Normalized Accuracy | 80.98% ± 0.81% |
0-shot evaluation.
| Metric | Score |
|---|---|
| Accuracy | 71.03% ± 1.27% |
0-shot evaluation.
| Metric | Score |
|---|---|
| MC2 Accuracy | 49.01% ± 1.49% |
Note: TruthfulQA decreased compared with v0.4. This is an observed trade-off following the GSM8K-focused fine-tuning and is reported transparently.
0-shot evaluation.
73.78% ± 0.35%
| Category | Accuracy |
|---|---|
| Humanities | 66.16% |
| Other | 77.57% |
| Social Sciences | 83.13% |
| STEM | 72.28% |
| Subject | Accuracy |
|---|---|
| Abstract Algebra | 52.00% |
| College Mathematics | 62.00% |
| Elementary Mathematics | 67.72% |
| High School Mathematics | 47.78% |
| High School Statistics | **70.37% |
| Benchmark | v0.4 | v0.5 | Change |
|---|---|---|---|
| GSM8K Flexible | 54.36% | 60.42% | +6.06 pp |
| GSM8K Strict | 46.85% | 56.18% | +9.33 pp |
| HellaSwag | 55.06% | 55.32% | +0.26 pp |
| PIQA | 77.86% | 78.24% | +0.38 pp |
| PIQA Normalized | 78.29% | 78.94% | +0.65 pp |
| ARC-Easy | 83.75% | 84.30% | +0.55 pp |
| ARC-Easy Normalized | 79.21% | 80.98% | +1.77 pp |
| Winogrande | 70.64% | 71.03% | +0.39 pp |
| TruthfulQA | 54.61% | 49.01% | -5.60 pp |
| MMLU | 73.58% | 73.78% | +0.20 pp |
The results suggest that GSM8K-focused fine-tuning substantially improved mathematical reasoning without causing a broad degradation across the evaluated general-purpose benchmarks.
The largest improvement was observed on GSM8K:
54.36% → 60.42%
while MMLU, ARC-Easy, PIQA, HellaSwag and Winogrande remained broadly stable or improved.
However, TruthfulQA decreased:
54.61% → 49.01%
This highlights an important trade-off in targeted fine-tuning of smaller language models: improving a specific capability can affect other capabilities.
Future versions of ANMOLGPT will investigate methods for improving mathematical reasoning while preserving factuality and general reasoning performance.
ANMOLGPT-4B-v0.5 is intended primarily for:
It can also be used as a general-purpose text-generation model, although it should not be considered a replacement for significantly larger frontier models.
ANMOLGPT-4B-v0.5 is an experimental research model.
Known limitations include:
Outputs should therefore be independently verified, especially for financial, medical, legal, scientific or other high-impact applications.
The model was developed through iterative experimentation.
The ANMOLGPT development process has focused on understanding how targeted datasets affect the capabilities of a relatively small language model.
v0.5 specifically investigates:
Can targeted mathematical reasoning training significantly improve a ~4B parameter model without causing widespread capability degradation?
The results indicate that the answer is partially yes.
Evaluation was performed using:
EleutherAI LM Evaluation Harness
The model was evaluated using the following tasks:
Unless otherwise specified, evaluations used 0-shot settings.
GSM8K was evaluated using 5-shot evaluation.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "anmoldhandhania93/ANMOLGPT-4B-v0.5"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
device_map="auto",
torch_dtype="auto"
)
prompt = "Solve this step by step: If a train travels 60 km in 1.5 hours, what is its average speed?"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))