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
- Llemma 7B vs DeepSeek Coder 6.7B
- Llemma 7B vs Code Llama-7B
- Llemma 7B vs Qwen2.5-Coder (7B)
- Llemma 7B vs Phi-2
- Llemma 7B vs Code Llama-13B
- Llemma 7B vs Falcon3-7B
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| DeepSeek Coder 6.7Bopen | DeepSeek | Nov 2023 | 6.7B | — | — | — | 67.5 |
| Code Llama-7Bopen | Meta | Aug 2023 | 6.7B | — | — | — | — |
| Qwen2.5-Coder (7B)open | Alibaba (Qwen) | Sep 2024 | 7.6B | — | — | — | 107.4 |
| Phi-2open | Microsoft | Dec 2023 | 2.8B | — | — | — | 96.2 |
| Code Llama-13Bopen | Meta | Aug 2023 | 13B | — | — | — | — |
| Falcon3-7Bopen | Technology Innovation Institute | Dec 2024 | 7.5B | — | — | — | — |
| Granite 3.0 8Bopen | IBM | Oct 2024 | 8.2B | — | — | — | — |
| DeepSeek Coder 33Bopen | DeepSeek | Nov 2023 | 33B | — | — | — | 76.3 |
More models from EleutherAI
All EleutherAI models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| pythia-14mopen | Feb 2026 | 14M | — | — | — |
| pythia-31mopen | Feb 2026 | 30M | — | — | — |
| pythia-70m-dedupedopen | Feb 2023 | 96M | — | — | — |
| pythia-160m-dedupedopen | Feb 2023 | 213M | — | — | — |
| GPT-NeoX-20Bopen | Feb 2022 | 21B | — | — | — |
| pythia-410m-dedupedopen | Feb 2023 | 506M | — | — | — |
| pythia-160m-seed1open | Feb 2023 | 213M | — | — | — |
| pythia-410m-seed3open | Jan 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.