Transformers
GGUF
English
llama
math
reasoning
TheBloke commited on
Commit
b2e243c
1 Parent(s): 1e723cd

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +349 -0
README.md ADDED
@@ -0,0 +1,349 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: EleutherAI/llemma_7b
3
+ datasets:
4
+ - EleutherAI/proof-pile-2
5
+ inference: false
6
+ language:
7
+ - en
8
+ license: llama2
9
+ model_creator: EleutherAI
10
+ model_name: Llemma 7B
11
+ model_type: llama
12
+ prompt_template: '{prompt}
13
+
14
+ '
15
+ quantized_by: TheBloke
16
+ tags:
17
+ - math
18
+ - reasoning
19
+ ---
20
+
21
+ <!-- header start -->
22
+ <!-- 200823 -->
23
+ <div style="width: auto; margin-left: auto; margin-right: auto">
24
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
25
+ </div>
26
+ <div style="display: flex; justify-content: space-between; width: 100%;">
27
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
28
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
29
+ </div>
30
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
31
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
32
+ </div>
33
+ </div>
34
+ <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
35
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
36
+ <!-- header end -->
37
+
38
+ # Llemma 7B - GGUF
39
+ - Model creator: [EleutherAI](https://huggingface.co/EleutherAI)
40
+ - Original model: [Llemma 7B](https://huggingface.co/EleutherAI/llemma_7b)
41
+
42
+ <!-- description start -->
43
+ ## Description
44
+
45
+ This repo contains GGUF format model files for [EleutherAI's Llemma 7B](https://huggingface.co/EleutherAI/llemma_7b).
46
+
47
+ <!-- description end -->
48
+ <!-- README_GGUF.md-about-gguf start -->
49
+ ### About GGUF
50
+
51
+ GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
52
+
53
+ Here is an incomplate list of clients and libraries that are known to support GGUF:
54
+
55
+ * [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
56
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
57
+ * [KoboldCpp](https://github.com/LostRuins/koboldcpp), a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
58
+ * [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration.
59
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with many interesting and unique features, including a full model library for easy model selection.
60
+ * [Faraday.dev](https://faraday.dev/), an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
61
+ * [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
62
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
63
+ * [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
64
+
65
+ <!-- README_GGUF.md-about-gguf end -->
66
+ <!-- repositories-available start -->
67
+ ## Repositories available
68
+
69
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/llemma_7b-AWQ)
70
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/llemma_7b-GPTQ)
71
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/llemma_7b-GGUF)
72
+ * [EleutherAI's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/EleutherAI/llemma_7b)
73
+ <!-- repositories-available end -->
74
+
75
+ <!-- prompt-template start -->
76
+ ## Prompt template: Unknown
77
+
78
+ ```
79
+ {prompt}
80
+
81
+ ```
82
+
83
+ <!-- prompt-template end -->
84
+
85
+
86
+ <!-- compatibility_gguf start -->
87
+ ## Compatibility
88
+
89
+ These quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221)
90
+
91
+ They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
92
+
93
+ ## Explanation of quantisation methods
94
+ <details>
95
+ <summary>Click to see details</summary>
96
+
97
+ The new methods available are:
98
+ * GGML_TYPE_Q2_K - "type-1" 2-bit quantization in super-blocks containing 16 blocks, each block having 16 weight. Block scales and mins are quantized with 4 bits. This ends up effectively using 2.5625 bits per weight (bpw)
99
+ * GGML_TYPE_Q3_K - "type-0" 3-bit quantization in super-blocks containing 16 blocks, each block having 16 weights. Scales are quantized with 6 bits. This end up using 3.4375 bpw.
100
+ * GGML_TYPE_Q4_K - "type-1" 4-bit quantization in super-blocks containing 8 blocks, each block having 32 weights. Scales and mins are quantized with 6 bits. This ends up using 4.5 bpw.
101
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
102
+ * GGML_TYPE_Q6_K - "type-0" 6-bit quantization. Super-blocks with 16 blocks, each block having 16 weights. Scales are quantized with 8 bits. This ends up using 6.5625 bpw
103
+
104
+ Refer to the Provided Files table below to see what files use which methods, and how.
105
+ </details>
106
+ <!-- compatibility_gguf end -->
107
+
108
+ <!-- README_GGUF.md-provided-files start -->
109
+ ## Provided files
110
+
111
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
112
+ | ---- | ---- | ---- | ---- | ---- | ----- |
113
+ | [llemma_7b.Q2_K.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q2_K.gguf) | Q2_K | 2 | 2.83 GB| 5.33 GB | smallest, significant quality loss - not recommended for most purposes |
114
+ | [llemma_7b.Q3_K_S.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q3_K_S.gguf) | Q3_K_S | 3 | 2.95 GB| 5.45 GB | very small, high quality loss |
115
+ | [llemma_7b.Q3_K_M.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q3_K_M.gguf) | Q3_K_M | 3 | 3.30 GB| 5.80 GB | very small, high quality loss |
116
+ | [llemma_7b.Q3_K_L.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q3_K_L.gguf) | Q3_K_L | 3 | 3.60 GB| 6.10 GB | small, substantial quality loss |
117
+ | [llemma_7b.Q4_0.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q4_0.gguf) | Q4_0 | 4 | 3.83 GB| 6.33 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
118
+ | [llemma_7b.Q4_K_S.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q4_K_S.gguf) | Q4_K_S | 4 | 3.86 GB| 6.36 GB | small, greater quality loss |
119
+ | [llemma_7b.Q4_K_M.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q4_K_M.gguf) | Q4_K_M | 4 | 4.08 GB| 6.58 GB | medium, balanced quality - recommended |
120
+ | [llemma_7b.Q5_0.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q5_0.gguf) | Q5_0 | 5 | 4.65 GB| 7.15 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
121
+ | [llemma_7b.Q5_K_S.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q5_K_S.gguf) | Q5_K_S | 5 | 4.65 GB| 7.15 GB | large, low quality loss - recommended |
122
+ | [llemma_7b.Q5_K_M.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q5_K_M.gguf) | Q5_K_M | 5 | 4.78 GB| 7.28 GB | large, very low quality loss - recommended |
123
+ | [llemma_7b.Q6_K.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q6_K.gguf) | Q6_K | 6 | 5.53 GB| 8.03 GB | very large, extremely low quality loss |
124
+ | [llemma_7b.Q8_0.gguf](https://huggingface.co/TheBloke/llemma_7b-GGUF/blob/main/llemma_7b.Q8_0.gguf) | Q8_0 | 8 | 7.16 GB| 9.66 GB | very large, extremely low quality loss - not recommended |
125
+
126
+ **Note**: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
127
+
128
+
129
+
130
+ <!-- README_GGUF.md-provided-files end -->
131
+
132
+ <!-- README_GGUF.md-how-to-download start -->
133
+ ## How to download GGUF files
134
+
135
+ **Note for manual downloaders:** You almost never want to clone the entire repo! Multiple different quantisation formats are provided, and most users only want to pick and download a single file.
136
+
137
+ The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
138
+ - LM Studio
139
+ - LoLLMS Web UI
140
+ - Faraday.dev
141
+
142
+ ### In `text-generation-webui`
143
+
144
+ Under Download Model, you can enter the model repo: TheBloke/llemma_7b-GGUF and below it, a specific filename to download, such as: llemma_7b.Q4_K_M.gguf.
145
+
146
+ Then click Download.
147
+
148
+ ### On the command line, including multiple files at once
149
+
150
+ I recommend using the `huggingface-hub` Python library:
151
+
152
+ ```shell
153
+ pip3 install huggingface-hub
154
+ ```
155
+
156
+ Then you can download any individual model file to the current directory, at high speed, with a command like this:
157
+
158
+ ```shell
159
+ huggingface-cli download TheBloke/llemma_7b-GGUF llemma_7b.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
160
+ ```
161
+
162
+ <details>
163
+ <summary>More advanced huggingface-cli download usage</summary>
164
+
165
+ You can also download multiple files at once with a pattern:
166
+
167
+ ```shell
168
+ huggingface-cli download TheBloke/llemma_7b-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
169
+ ```
170
+
171
+ For more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli).
172
+
173
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
174
+
175
+ ```shell
176
+ pip3 install hf_transfer
177
+ ```
178
+
179
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
180
+
181
+ ```shell
182
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/llemma_7b-GGUF llemma_7b.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
183
+ ```
184
+
185
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
186
+ </details>
187
+ <!-- README_GGUF.md-how-to-download end -->
188
+
189
+ <!-- README_GGUF.md-how-to-run start -->
190
+ ## Example `llama.cpp` command
191
+
192
+ Make sure you are using `llama.cpp` from commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
193
+
194
+ ```shell
195
+ ./main -ngl 32 -m llemma_7b.Q4_K_M.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "{prompt}"
196
+ ```
197
+
198
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
199
+
200
+ Change `-c 4096` to the desired sequence length. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters are read from the GGUF file and set by llama.cpp automatically.
201
+
202
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
203
+
204
+ For other parameters and how to use them, please refer to [the llama.cpp documentation](https://github.com/ggerganov/llama.cpp/blob/master/examples/main/README.md)
205
+
206
+ ## How to run in `text-generation-webui`
207
+
208
+ Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
209
+
210
+ ## How to run from Python code
211
+
212
+ You can use GGUF models from Python using the [llama-cpp-python](https://github.com/abetlen/llama-cpp-python) or [ctransformers](https://github.com/marella/ctransformers) libraries.
213
+
214
+ ### How to load this model in Python code, using ctransformers
215
+
216
+ #### First install the package
217
+
218
+ Run one of the following commands, according to your system:
219
+
220
+ ```shell
221
+ # Base ctransformers with no GPU acceleration
222
+ pip install ctransformers
223
+ # Or with CUDA GPU acceleration
224
+ pip install ctransformers[cuda]
225
+ # Or with AMD ROCm GPU acceleration (Linux only)
226
+ CT_HIPBLAS=1 pip install ctransformers --no-binary ctransformers
227
+ # Or with Metal GPU acceleration for macOS systems only
228
+ CT_METAL=1 pip install ctransformers --no-binary ctransformers
229
+ ```
230
+
231
+ #### Simple ctransformers example code
232
+
233
+ ```python
234
+ from ctransformers import AutoModelForCausalLM
235
+
236
+ # Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
237
+ llm = AutoModelForCausalLM.from_pretrained("TheBloke/llemma_7b-GGUF", model_file="llemma_7b.Q4_K_M.gguf", model_type="llama", gpu_layers=50)
238
+
239
+ print(llm("AI is going to"))
240
+ ```
241
+
242
+ ## How to use with LangChain
243
+
244
+ Here are guides on using llama-cpp-python and ctransformers with LangChain:
245
+
246
+ * [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
247
+ * [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
248
+
249
+ <!-- README_GGUF.md-how-to-run end -->
250
+
251
+ <!-- footer start -->
252
+ <!-- 200823 -->
253
+ ## Discord
254
+
255
+ For further support, and discussions on these models and AI in general, join us at:
256
+
257
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
258
+
259
+ ## Thanks, and how to contribute
260
+
261
+ Thanks to the [chirper.ai](https://chirper.ai) team!
262
+
263
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
264
+
265
+ I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
266
+
267
+ If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
268
+
269
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
270
+
271
+ * Patreon: https://patreon.com/TheBlokeAI
272
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
273
+
274
+ **Special thanks to**: Aemon Algiz.
275
+
276
+ **Patreon special mentions**: Pierre Kircher, Stanislav Ovsiannikov, Michael Levine, Eugene Pentland, Andrey, 준교 김, Randy H, Fred von Graf, Artur Olbinski, Caitlyn Gatomon, terasurfer, Jeff Scroggin, James Bentley, Vadim, Gabriel Puliatti, Harry Royden McLaughlin, Sean Connelly, Dan Guido, Edmond Seymore, Alicia Loh, subjectnull, AzureBlack, Manuel Alberto Morcote, Thomas Belote, Lone Striker, Chris Smitley, Vitor Caleffi, Johann-Peter Hartmann, Clay Pascal, biorpg, Brandon Frisco, sidney chen, transmissions 11, Pedro Madruga, jinyuan sun, Ajan Kanaga, Emad Mostaque, Trenton Dambrowitz, Jonathan Leane, Iucharbius, usrbinkat, vamX, George Stoitzev, Luke Pendergrass, theTransient, Olakabola, Swaroop Kallakuri, Cap'n Zoog, Brandon Phillips, Michael Dempsey, Nikolai Manek, danny, Matthew Berman, Gabriel Tamborski, alfie_i, Raymond Fosdick, Tom X Nguyen, Raven Klaugh, LangChain4j, Magnesian, Illia Dulskyi, David Ziegler, Mano Prime, Luis Javier Navarrete Lozano, Erik Bjäreholt, 阿明, Nathan Dryer, Alex, Rainer Wilmers, zynix, TL, Joseph William Delisle, John Villwock, Nathan LeClaire, Willem Michiel, Joguhyik, GodLy, OG, Alps Aficionado, Jeffrey Morgan, ReadyPlayerEmma, Tiffany J. Kim, Sebastain Graf, Spencer Kim, Michael Davis, webtim, Talal Aujan, knownsqashed, John Detwiler, Imad Khwaja, Deo Leter, Jerry Meng, Elijah Stavena, Rooh Singh, Pieter, SuperWojo, Alexandros Triantafyllidis, Stephen Murray, Ai Maven, ya boyyy, Enrico Ros, Ken Nordquist, Deep Realms, Nicholas, Spiking Neurons AB, Elle, Will Dee, Jack West, RoA, Luke @flexchar, Viktor Bowallius, Derek Yates, Subspace Studios, jjj, Toran Billups, Asp the Wyvern, Fen Risland, Ilya, NimbleBox.ai, Chadd, Nitin Borwankar, Emre, Mandus, Leonard Tan, Kalila, K, Trailburnt, S_X, Cory Kujawski
277
+
278
+
279
+ Thank you to all my generous patrons and donaters!
280
+
281
+ And thank you again to a16z for their generous grant.
282
+
283
+ <!-- footer end -->
284
+
285
+ <!-- original-model-card start -->
286
+ # Original model card: EleutherAI's Llemma 7B
287
+
288
+ <img src="llemma.png" width="400">
289
+
290
+ [ArXiv](http://arxiv.org/abs/2310.10631) | [Models](https://huggingface.co/EleutherAI/llemma_34b) | [Data](https://huggingface.co/datasets/EleutherAI/proof-pile-2) | [Code](https://github.com/EleutherAI/math-lm) | [Blog](https://blog.eleuther.ai/llemma/) | [Sample Explorer](https://llemma-demo.github.io/)
291
+
292
+ [Zhangir Azerbayev](https://zhangir-azerbayev.github.io/), [Hailey Schoelkopf](https://github.com/haileyschoelkopf), [Keiran Paster](https://keirp.com), [Marco Dos Santos](https://github.com/dsantosmarco), [Stephen McAleer](https://www.andrew.cmu.edu/user/smcaleer/), [Albert Q. Jiang](https://albertqjiang.github.io/), [Jia Deng](https://www.cs.princeton.edu/~jiadeng/), [Stella Biderman](https://www.stellabiderman.com/), [Sean Welleck](https://wellecks.com/)
293
+
294
+ **Llemma 7B** is a language model for mathematics. It was initialized with [Code Llama 7B](https://github.com/facebookresearch/codellama) weights, and trained on the [Proof-Pile-2](https://huggingface.co/datasets/EleutherAI/proof-pile-2) for 200B tokens.
295
+
296
+ This model also comes in a 34B parameter version: [Llemma 34B](https://huggingface.co/EleutherAI/llemma_34b).
297
+
298
+ ## Evaluations
299
+
300
+ Llemma models are particularly strong at chain-of-thought mathematical reasoning and using computational tools for mathematics, such as Python and formal theorem provers.
301
+
302
+
303
+ ### Chain-of-thought Math
304
+ On chain-of-thought mathematics tasks, Llemma models outperform Llama-2, Code Llama, and when controlled for model size, outperform Minerva.
305
+
306
+ | Model | Size | GSM8k | [OCW](https://openreview.net/forum?id=IFXTZERXdM7) | MMLU-STEM | [SAT](https://huggingface.co/datasets/mcaleste/sat_multiple_choice_math_may_23) | MATH |
307
+ |------------|------|--------|-------|-----------|-------|-------|
308
+ | Llama 2 | 7B | 11.8% | 3.7% | 29.9% | 25% | 3.2% |
309
+ | Code Llama | 7B | 10.5% | 4.4% | 25.1% | 9.4% | 4.5% |
310
+ | LLEMMA | 7B | **36.4%** | **7.7%** | **37.7%** | **53.1%** | **18.0%** |
311
+ | Minerva | 8B | 16.2% | **7.7%** | 35.6% | - | 14.1% |
312
+ |------------|------|--------|-------|-----------|-------|-------|
313
+ | Code Llama | 34B | 29.6% | 7.0% | 40.5% | 40.6% | 12.2% |
314
+ | LLEMMA | 34B | **51.5%** | **11.8%** | **49.0%** | **71.9%** | **25.0%** |
315
+ |------------|------|--------|-------|-----------|-------|-------|
316
+ | Minerva | 62B | 52.4% | 12.0% | 53.9% | - | 27.6% |
317
+ | Minerva | 540B | 58.8% | 17.6% | 63.9% | - | 33.6% |
318
+
319
+
320
+ Further performance can be extracted by using majority voting:
321
+
322
+ | Model | Size | GSM8k maj@100 | OCW maj@100 | MMLU-STEM maj@16 | SAT maj@16 | MATH maj@256 |
323
+ |---------|------|-------------|-----------|-----------------|-----------|------------|
324
+ | LLEMMA | 7B | 54.0% | 14.3% | 49.9% | 78.1% | **33.5** |
325
+ | Minerva | 8B | 28.4% | 12.5% | 43.4% | - | 25.4% |
326
+ |---------|------|-------------|-----------|-----------------|-----------|------------|
327
+ | LLEMMA | 34B | 69.3% | 18.4% | 59.7% | 81.3% | **43.1%** |
328
+ |---------|------|-------------|-----------|-----------------|-----------|------------|
329
+ | Minerva | 62B | 68.5% | 23.5% | 63.5% | - | 43.4% |
330
+ | Minerva | 540B | 78.5% | 30.8% | 75.0% | - | 50.3% |
331
+
332
+ ### Tool Use and Theorem Proving
333
+ 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](http://arxiv.org/abs/2310.10631).
334
+
335
+ ### Citation
336
+ ```
337
+ @misc{azerbayev2023llemma,
338
+ title={Llemma: An Open Language Model For Mathematics},
339
+ 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},
340
+ year={2023},
341
+ eprint={2310.10631},
342
+ archivePrefix={arXiv},
343
+ primaryClass={cs.CL}
344
+ }
345
+ ```
346
+
347
+
348
+
349
+ <!-- original-model-card end -->