LLM Reference

Llemma Models by EleutherAI

EleutherAILlama 2 CommunityOpen weightsMathematics
2 models2023Up to 4k ctx

Last refreshed 2026-05-19. Next refresh: weekly.

Details

ResearcherEleutherAI
Commercial useCommercial use: conditional
Models2
Released2023
Max context4k

Capabilities

Structured Outputs1 of 2 models

About

Llemma is a family of open-access large language models (LLMs) designed to specialize in mathematical reasoning. Developed by EleutherAI, these models were initialized using Code Llama weights and trained on the Proof-Pile-2 dataset, comprising a vast 55 billion unique tokens of mathematical and scientific documents. This extensive training allows Llemma models to excel in chain-of-thought mathematical reasoning and effectively use computational tools like Python and formal theorem provers. Available in both 7-billion and 34-billion parameter variants, the Llemma models, particularly the larger one, outperform other LLMs of similar size on a range of mathematical benchmarks. The Llemma project's open-source approach facilitates ongoing research and advancements in mathematical reasoning with LLMs 23.

Decision facts

Best fit
mathematicsstructured outputscoding
Capability starting point
Llemma 7B with 4k context and structured outputs
Lowest tracked input
Not tracked
Closest related family
InternLM2-Math

Current Variants

Use-when guidance is based on each model's tracked capabilities, context window, release date, and replacement status.

2 in view
Llemma 34BCurrent

Use when the workload needs 4k context and 34B parameters.

2023-094k context34B parameters
Llemma 7BCurrent

Use when the workload needs 4k context, 7B parameters, and structured outputs.

2023-094k context7B parametersstructured outputs

Release Timeline

1 release group
2023-09
2 current
Llemma 34B
4k context34B parameters
Current
Llemma 7B
4k context7B parametersstructured outputs
Current

Specifications(2 models)

Llemma model specifications comparison
ModelReleasedContextParametersStructured Outputs
Llemma 34B2023-094k34BNo
Llemma 7B2023-094k7BYes