EleutherAI/llemma_7b

Model

113

stars

21

commits

8

repos using this model

4

linked in READMEs

Feb 19, 2024

updated

endpoints_compatible
eval-results
llama
math
pytorch
reasoning
text-generation
text-generation-inference
transformers
Browse cluster: Math, Code, and Reasoning in LLMs

README

ArXiv | Models | Data | Code | Blog | Sample Explorer

Zhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos, Stephen McAleer, Albert Q. Jiang, Jia Deng, Stella Biderman, Sean Welleck

Llemma 7B is a language model for mathematics. It was initialized with Code Llama 7B weights, and trained on the Proof-Pile-2 for 200B tokens.

This model also comes in a 34B parameter version: Llemma 34B.

Evaluations

Llemma models are particularly strong at chain-of-thought mathematical reasoning and using computational tools for mathematics, such as Python and formal theorem provers.

Chain-of-thought Math

On chain-of-thought mathematics tasks, Llemma models outperform Llama-2, Code Llama, and when controlled for model size, outperform Minerva.

ModelSizeGSM8kOCWMMLU-STEMSATMATH
Llama 27B11.8%3.7%29.9%25%3.2%
Code Llama7B10.5%4.4%25.1%9.4%4.5%
LLEMMA7B36.4%7.7%37.7%53.1%18.0%
Minerva8B16.2%7.7%35.6%-14.1%
----------------------------------------------------------
Code Llama34B29.6%7.0%40.5%40.6%12.2%
LLEMMA34B51.5%11.8%49.0%71.9%25.0%
----------------------------------------------------------
Minerva62B52.4%12.0%53.9%-27.6%
Minerva540B58.8%17.6%63.9%-33.6%

Further performance can be extracted by using majority voting:

ModelSizeGSM8k maj@100OCW maj@100MMLU-STEM maj@16SAT maj@16MATH maj@256
LLEMMA7B54.0%14.3%49.9%78.1%33.5
Minerva8B28.4%12.5%43.4%-25.4%
-------------------------------------------------------------------------------
LLEMMA34B69.3%18.4%59.7%81.3%43.1%
-------------------------------------------------------------------------------
Minerva62B68.5%23.5%63.5%-43.4%
Minerva540B78.5%30.8%75.0%-50.3%

Tool Use and Theorem Proving

In addition to chain-of-thought reasoning, Llemma has strong capabilities in computational mathematics tasks. For tool use and formal theorem proving evaluations, see our paper.

Citation

@misc{azerbayev2023llemma,
      title={Llemma: An Open Language Model For Mathematics}, 
      author={Zhangir Azerbayev and Hailey Schoelkopf and Keiran Paster and Marco Dos Santos and Stephen McAleer and Albert Q. Jiang and Jia Deng and Stella Biderman and Sean Welleck},
      year={2023},
      eprint={2310.10631},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Contributors

EleutherAI/llemma_7b

Model

113

stars

21

commits

8

repos using this model

4

linked in READMEs

Feb 19, 2024

updated

endpoints_compatible
eval-results
llama
math
pytorch
reasoning
text-generation
text-generation-inference
transformers
Browse cluster: Math, Code, and Reasoning in LLMs

README

ArXiv | Models | Data | Code | Blog | Sample Explorer

Zhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos, Stephen McAleer, Albert Q. Jiang, Jia Deng, Stella Biderman, Sean Welleck

Llemma 7B is a language model for mathematics. It was initialized with Code Llama 7B weights, and trained on the Proof-Pile-2 for 200B tokens.

This model also comes in a 34B parameter version: Llemma 34B.

Evaluations

Llemma models are particularly strong at chain-of-thought mathematical reasoning and using computational tools for mathematics, such as Python and formal theorem provers.

Chain-of-thought Math

On chain-of-thought mathematics tasks, Llemma models outperform Llama-2, Code Llama, and when controlled for model size, outperform Minerva.

ModelSizeGSM8kOCWMMLU-STEMSATMATH
Llama 27B11.8%3.7%29.9%25%3.2%
Code Llama7B10.5%4.4%25.1%9.4%4.5%
LLEMMA7B36.4%7.7%37.7%53.1%18.0%
Minerva8B16.2%7.7%35.6%-14.1%
----------------------------------------------------------
Code Llama34B29.6%7.0%40.5%40.6%12.2%
LLEMMA34B51.5%11.8%49.0%71.9%25.0%
----------------------------------------------------------
Minerva62B52.4%12.0%53.9%-27.6%
Minerva540B58.8%17.6%63.9%-33.6%

Further performance can be extracted by using majority voting:

ModelSizeGSM8k maj@100OCW maj@100MMLU-STEM maj@16SAT maj@16MATH maj@256
LLEMMA7B54.0%14.3%49.9%78.1%33.5
Minerva8B28.4%12.5%43.4%-25.4%
-------------------------------------------------------------------------------
LLEMMA34B69.3%18.4%59.7%81.3%43.1%
-------------------------------------------------------------------------------
Minerva62B68.5%23.5%63.5%-43.4%
Minerva540B78.5%30.8%75.0%-50.3%

Tool Use and Theorem Proving

In addition to chain-of-thought reasoning, Llemma has strong capabilities in computational mathematics tasks. For tool use and formal theorem proving evaluations, see our paper.

Citation

@misc{azerbayev2023llemma,
      title={Llemma: An Open Language Model For Mathematics}, 
      author={Zhangir Azerbayev and Hailey Schoelkopf and Keiran Paster and Marco Dos Santos and Stephen McAleer and Albert Q. Jiang and Jia Deng and Stella Biderman and Sean Welleck},
      year={2023},
      eprint={2310.10631},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Contributors