How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "IFM/MegaMath-Llama-3.2-3B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "IFM/MegaMath-Llama-3.2-3B",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Use Docker
docker model run hf.co/IFM/MegaMath-Llama-3.2-3B
Quick Links

MegaMath-Llama-3.2-3B

Arxiv | Datasets

A proof-of-concept model train on MegaMath dataset, capable of both Chain-of-Thought and Program-Aided-Language problem solving.

image/png

Performance

image/png

Citation

If you find our work useful, please cite

@article{zhou2025megamath,
  title     = {MegaMath: Pushing the Limits of Open Math Corpora},
  author    = {Zhou, Fan and Wang, Zengzhi and Ranjan, Nikhil and Cheng, Zhoujun and Tang, Liping and He, Guowei and Liu, Zhengzhong and Xing, Eric P.},
  journal   = {arXiv preprint arXiv:2504.02807},
  year      = {2025},
  note      = {Preprint}
}
Downloads last month
97
Safetensors
Model size
3B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for IFM/MegaMath-Llama-3.2-3B

Quantizations
1 model

Dataset used to train IFM/MegaMath-Llama-3.2-3B

Collection including IFM/MegaMath-Llama-3.2-3B

Paper for IFM/MegaMath-Llama-3.2-3B

Free AI Image Generator No sign-up. Instant results. Open Now