Skip to content
llmmodels
Code modelOpen weights

Llemma 7B

by EleutherAI · Oct 16, 2023

Llemma 7B is an open-weight code model from EleutherAI, released Oct 16, 2023. It has 7B parameters.

Provider
EleutherAI
Released
Oct 16, 2023
Type
Code model
Parameters
7B
Context window
—
Max output
—
Input
text
Output
text
Weights
Open weights
License
llama2
Knowledge cutoff
—
Status
Open weights
Training compute
1.2e+23 FLOP
Training data
55B tokens/words
HF downloads (30d)
1.1K

About Llemma 7B

We present Llemma, a large language model for mathematics. We continue pretraining Code Llama on the Proof-Pile-2, a mixture of scientific papers, web data containing mathematics, and mathematical code, yielding Llemma. On the MATH benchmark Llemma outperforms all known open base models, as well as the unreleased Minerva model suite on an equi-parameter basis. Moreover, Llemma is capable of tool use and formal theorem proving without any further finetuning.

How to run Llemma 7B

Llemma 7B is an open-weight model published on Hugging Face as EleutherAI/llemma_7b. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 7B parameters it needs roughly 4 GB of memory at 4-bit quantization.

Llemma 7B vs alternatives

Alternatives to Llemma 7B
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
DeepSeek Coder 6.7BopenDeepSeekNov 20236.7B———67.5
Code Llama-7BopenMetaAug 20236.7B————
Qwen2.5-Coder (7B)openAlibaba (Qwen)Sep 20247.6B———107.4
Phi-2openMicrosoftDec 20232.8B———96.2
Code Llama-13BopenMetaAug 202313B————
Falcon3-7BopenTechnology Innovation InstituteDec 20247.5B————
Granite 3.0 8BopenIBMOct 20248.2B————
DeepSeek Coder 33BopenDeepSeekNov 202333B———76.3

More models from EleutherAI

All EleutherAI models →
ModelReleasedParamsContextInput $/1MOutput $/1M
pythia-14mopenFeb 202614M———
pythia-31mopenFeb 202630M———
pythia-70m-dedupedopenFeb 202396M———
pythia-160m-dedupedopenFeb 2023213M———
GPT-NeoX-20BopenFeb 202221B———
pythia-410m-dedupedopenFeb 2023506M———
pythia-160m-seed1openFeb 2023213M———
pythia-410m-seed3openJan 2024————

Frequently asked questions

Who made Llemma 7B?

Llemma 7B was developed by EleutherAI (United States of America,United States of America,Canada,Canada,United Kingdom,United States of America,United States of America). It was released on Oct 16, 2023.

Is Llemma 7B open source?

Yes. Llemma 7B's weights are publicly available under the llama2 license on Hugging Face (EleutherAI/llemma_7b), so you can download and run it yourself.

How many parameters does Llemma 7B have?

Llemma 7B has 7B parameters.

Sources: epoch, huggingface · paper · huggingface. Last updated 2026-11-22.