TheBloke commited on
Commit
7df5d38
1 Parent(s): b217695

Initial GGUF model commit

Browse files
Files changed (1) hide show
  1. README.md +301 -0
README.md ADDED
@@ -0,0 +1,301 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ inference: false
3
+ license: llama2
4
+ model_creator: Meta
5
+ model_link: https://ai.meta.com/resources/models-and-libraries/llama-downloads
6
+ model_name: CodeLlama 34B Instruct
7
+ model_type: llama
8
+ quantized_by: TheBloke
9
+ tags:
10
+ - llama-2
11
+ - codellama
12
+ ---
13
+
14
+ <!-- header start -->
15
+ <!-- 200823 -->
16
+ <div style="width: auto; margin-left: auto; margin-right: auto">
17
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
18
+ </div>
19
+ <div style="display: flex; justify-content: space-between; width: 100%;">
20
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
21
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
22
+ </div>
23
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
24
+ <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>
25
+ </div>
26
+ </div>
27
+ <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>
28
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
29
+ <!-- header end -->
30
+
31
+ # CodeLlama 34B Instruct - GGUF
32
+ - Model creator: [Meta](https://huggingface.co/meta-llama)
33
+ - Original model: [CodeLlama 34B Instruct](https://ai.meta.com/resources/models-and-libraries/llama-downloads)
34
+
35
+ ## Description
36
+
37
+ This repo contains GGUF format model files for [Meta's CodeLlama 34B Instruct](https://ai.meta.com/resources/models-and-libraries/llama-downloads).
38
+
39
+ <!-- README_GGUF.md-about-gguf start -->
40
+ ### About GGUF
41
+
42
+ 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.
43
+
44
+ The key benefit of GGUF is that it is a extensible, future-proof format which stores more information about the model as metadata. It also includes significantly improved tokenization code, including for the first time full support for special tokens. This should improve performance, especially with models that use new special tokens and implement custom prompt templates.
45
+
46
+ As of August 24th 2023, llama.cpp and KoboldCpp support GGUF. Other third-party clients and libraries are expected to add support very soon.
47
+
48
+ Here is a list of clients and libraries that are known to support GGUF:
49
+ * [llama.cpp](https://github.com/ggerganov/llama.cpp)
50
+ * [KoboldCpp](https://github.com/LostRuins/koboldcpp), now supports GGUF as of release 1.41!
51
+
52
+ Here is a list of clients and libraries, along with their expected timeline for GGUF support. Where possible a link to the relevant issue or PR is provided:
53
+ * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), awaiting llama-cpp-python support.
54
+ * [LM Studio](https://lmstudio.ai/), in active development - hoped to be ready by August 25th-26th.
55
+ * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), will work as soon as ctransformers or llama-cpp-python is updated.
56
+ * [ctransformers](https://github.com/marella/ctransformers), [development will start soon](https://github.com/marella/ctransformers/issues/102).
57
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), [in active development](https://github.com/abetlen/llama-cpp-python/issues/628).
58
+ <!-- README_GGUF.md-about-gguf end -->
59
+
60
+ <!-- repositories-available start -->
61
+ ## Repositories available
62
+
63
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GPTQ)
64
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF)
65
+ * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGML)
66
+ * [Meta's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-fp16)
67
+ <!-- repositories-available end -->
68
+
69
+ <!-- prompt-template start -->
70
+ ## Prompt template: TBC
71
+
72
+ ```
73
+ Info on prompt template will be added shortly.
74
+ ```
75
+
76
+ <!-- prompt-template end -->
77
+ <!-- compatibility_gguf start -->
78
+ ## Compatibility
79
+
80
+ These quantised GGUF files are compatible with llama.cpp from August 21st 2023 onwards, as of commit [6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9](https://github.com/ggerganov/llama.cpp/commit/6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9)
81
+
82
+ As of August 24th 2023 they are now compatible with KoboldCpp, release 1.41 and later.
83
+
84
+ They are are not yet compatible with any other third-party UIS, libraries or utilities but this is expected to change very soon.
85
+
86
+ ## Explanation of quantisation methods
87
+ <details>
88
+ <summary>Click to see details</summary>
89
+
90
+ The new methods available are:
91
+ * 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)
92
+ * 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.
93
+ * 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.
94
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
95
+ * 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
96
+
97
+ Refer to the Provided Files table below to see what files use which methods, and how.
98
+ </details>
99
+ <!-- compatibility_gguf end -->
100
+
101
+ <!-- README_GGUF.md-provided-files start -->
102
+ ## Provided files
103
+
104
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
105
+ | ---- | ---- | ---- | ---- | ---- | ----- |
106
+ | [codellama-34b-instruct.Q2_K.gguf](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF/blob/main/codellama-34b-instruct.Q2_K.gguf) | Q2_K | 2 | 14.21 GB| 16.71 GB | smallest, significant quality loss - not recommended for most purposes |
107
+ | [codellama-34b-instruct.Q3_K_S.gguf](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF/blob/main/codellama-34b-instruct.Q3_K_S.gguf) | Q3_K_S | 3 | 14.61 GB| 17.11 GB | very small, high quality loss |
108
+ | [codellama-34b-instruct.Q3_K_M.gguf](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF/blob/main/codellama-34b-instruct.Q3_K_M.gguf) | Q3_K_M | 3 | 16.28 GB| 18.78 GB | very small, high quality loss |
109
+ | [codellama-34b-instruct.Q3_K_L.gguf](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF/blob/main/codellama-34b-instruct.Q3_K_L.gguf) | Q3_K_L | 3 | 17.77 GB| 20.27 GB | small, substantial quality loss |
110
+ | [codellama-34b-instruct.Q4_K_S.gguf](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF/blob/main/codellama-34b-instruct.Q4_K_S.gguf) | Q4_K_S | 4 | 19.15 GB| 21.65 GB | small, greater quality loss |
111
+ | [codellama-34b-instruct.Q4_K_M.gguf](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF/blob/main/codellama-34b-instruct.Q4_K_M.gguf) | Q4_K_M | 4 | 20.22 GB| 22.72 GB | medium, balanced quality - recommended |
112
+ | [codellama-34b-instruct.Q5_K_S.gguf](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF/blob/main/codellama-34b-instruct.Q5_K_S.gguf) | Q5_K_S | 5 | 23.24 GB| 25.74 GB | large, low quality loss - recommended |
113
+ | [codellama-34b-instruct.Q5_K_M.gguf](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF/blob/main/codellama-34b-instruct.Q5_K_M.gguf) | Q5_K_M | 5 | 23.84 GB| 26.34 GB | large, very low quality loss - recommended |
114
+ | [codellama-34b-instruct.Q6_K.gguf](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF/blob/main/codellama-34b-instruct.Q6_K.gguf) | Q6_K | 6 | 27.68 GB| 30.18 GB | very large, extremely low quality loss |
115
+ | [codellama-34b-instruct.Q8_0.gguf](https://huggingface.co/TheBloke/CodeLlama-34B-Instruct-GGUF/blob/main/codellama-34b-instruct.Q8_0.gguf) | Q8_0 | 8 | 35.79 GB| 38.29 GB | very large, extremely low quality loss - not recommended |
116
+
117
+ **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.
118
+ <!-- README_GGUF.md-provided-files end -->
119
+
120
+ <!-- README_GGUF.md-how-to-run start -->
121
+ ## How to run in `llama.cpp`
122
+
123
+ Make sure you are using `llama.cpp` from commit [6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9](https://github.com/ggerganov/llama.cpp/commit/6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9) or later.
124
+
125
+ For compatibility with older versions of llama.cpp, or for use with third-party clients and libaries, please use GGML files instead.
126
+
127
+ ```
128
+ ./main -t 10 -ngl 32 -m codellama-34b-instruct.q4_K_M.gguf --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "### Instruction: Write a story about llamas\n### Response:"
129
+ ```
130
+ Change `-t 10` to the number of physical CPU cores you have. For example if your system has 8 cores/16 threads, use `-t 8`.
131
+
132
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
133
+
134
+ Change `-c 4096` to the desired sequence length for this model. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters should be set by llama.cpp automatically. If they are not, or if you need to change them manually, you can use `--rope-freq-base 10000 --rope-freq-scale 0.5` for doubled context, or `--rope-freq-base 10000 --rope-freq-scale 0.25` for 4x context.
135
+
136
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
137
+
138
+ 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)
139
+
140
+ ## How to run in `text-generation-webui`
141
+
142
+ Further instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).
143
+ <!-- README_GGUF.md-how-to-run end -->
144
+
145
+ <!-- footer start -->
146
+ <!-- 200823 -->
147
+ ## Discord
148
+
149
+ For further support, and discussions on these models and AI in general, join us at:
150
+
151
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
152
+
153
+ ## Thanks, and how to contribute.
154
+
155
+ Thanks to the [chirper.ai](https://chirper.ai) team!
156
+
157
+ 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.
158
+
159
+ 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.
160
+
161
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
162
+
163
+ * Patreon: https://patreon.com/TheBlokeAI
164
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
165
+
166
+ **Special thanks to**: Aemon Algiz.
167
+
168
+ **Patreon special mentions**: Sam, theTransient, Jonathan Leane, Steven Wood, webtim, Johann-Peter Hartmann, Geoffrey Montalvo, Gabriel Tamborski, Willem Michiel, John Villwock, Derek Yates, Mesiah Bishop, Eugene Pentland, Pieter, Chadd, Stephen Murray, Daniel P. Andersen, terasurfer, Brandon Frisco, Thomas Belote, Sid, Nathan LeClaire, Magnesian, Alps Aficionado, Stanislav Ovsiannikov, Alex, Joseph William Delisle, Nikolai Manek, Michael Davis, Junyu Yang, K, J, Spencer Kim, Stefan Sabev, Olusegun Samson, transmissions 11, Michael Levine, Cory Kujawski, Rainer Wilmers, zynix, Kalila, Luke @flexchar, Ajan Kanaga, Mandus, vamX, Ai Maven, Mano Prime, Matthew Berman, subjectnull, Vitor Caleffi, Clay Pascal, biorpg, alfie_i, 阿明, Jeffrey Morgan, ya boyyy, Raymond Fosdick, knownsqashed, Olakabola, Leonard Tan, ReadyPlayerEmma, Enrico Ros, Dave, Talal Aujan, Illia Dulskyi, Sean Connelly, senxiiz, Artur Olbinski, Elle, Raven Klaugh, Fen Risland, Deep Realms, Imad Khwaja, Fred von Graf, Will Dee, usrbinkat, SuperWojo, Alexandros Triantafyllidis, Swaroop Kallakuri, Dan Guido, John Detwiler, Pedro Madruga, Iucharbius, Viktor Bowallius, Asp the Wyvern, Edmond Seymore, Trenton Dambrowitz, Space Cruiser, Spiking Neurons AB, Pyrater, LangChain4j, Tony Hughes, Kacper Wikieł, Rishabh Srivastava, David Ziegler, Luke Pendergrass, Andrey, Gabriel Puliatti, Lone Striker, Sebastain Graf, Pierre Kircher, Randy H, NimbleBox.ai, Vadim, danny, Deo Leter
169
+
170
+
171
+ Thank you to all my generous patrons and donaters!
172
+
173
+ And thank you again to a16z for their generous grant.
174
+
175
+ <!-- footer end -->
176
+
177
+ <!-- original-model-card start -->
178
+ # Original model card: Meta's CodeLlama 34B Instruct
179
+
180
+
181
+ <!-- header start -->
182
+ <!-- 200823 -->
183
+ <div style="width: auto; margin-left: auto; margin-right: auto">
184
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
185
+ </div>
186
+ <div style="display: flex; justify-content: space-between; width: 100%;">
187
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
188
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
189
+ </div>
190
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
191
+ <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>
192
+ </div>
193
+ </div>
194
+ <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>
195
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
196
+ <!-- header end -->
197
+
198
+ # CodeLlama 34B-Instruct fp16
199
+ - Model creator: [Meta](https://ai.meta.com/llama/)
200
+
201
+ ## Description
202
+
203
+ This is Transformers/HF format fp16 weights for CodeLlama 34B-Instruct. It is the result of downloading CodeLlama 34B-Instruct from [Meta](https://ai.meta.com/blog/code-llama-large-language-model-coding/) and converting to HF using `convert_llama_weights_to_hf.py`.
204
+
205
+ Quantisations will be coming shortly.
206
+
207
+ Please note that due to a change in the RoPE Theta value, for correct results you must load these FP16 models with `trust_remote_code=True`
208
+
209
+ Credit to @emozilla for creating the necessary modelling code to achieve this!
210
+
211
+ ## Prompt template: TBC
212
+
213
+
214
+ <!-- footer start -->
215
+ <!-- 200823 -->
216
+ ## Discord
217
+
218
+ For further support, and discussions on these models and AI in general, join us at:
219
+
220
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
221
+
222
+ ## Thanks, and how to contribute.
223
+
224
+ Thanks to the [chirper.ai](https://chirper.ai) team!
225
+
226
+ 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.
227
+
228
+ 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.
229
+
230
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
231
+
232
+ * Patreon: https://patreon.com/TheBlokeAI
233
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
234
+
235
+ **Special thanks to**: Aemon Algiz.
236
+
237
+ **Patreon special mentions**: Sam, theTransient, Jonathan Leane, Steven Wood, webtim, Johann-Peter Hartmann, Geoffrey Montalvo, Gabriel Tamborski, Willem Michiel, John Villwock, Derek Yates, Mesiah Bishop, Eugene Pentland, Pieter, Chadd, Stephen Murray, Daniel P. Andersen, terasurfer, Brandon Frisco, Thomas Belote, Sid, Nathan LeClaire, Magnesian, Alps Aficionado, Stanislav Ovsiannikov, Alex, Joseph William Delisle, Nikolai Manek, Michael Davis, Junyu Yang, K, J, Spencer Kim, Stefan Sabev, Olusegun Samson, transmissions 11, Michael Levine, Cory Kujawski, Rainer Wilmers, zynix, Kalila, Luke @flexchar, Ajan Kanaga, Mandus, vamX, Ai Maven, Mano Prime, Matthew Berman, subjectnull, Vitor Caleffi, Clay Pascal, biorpg, alfie_i, 阿明, Jeffrey Morgan, ya boyyy, Raymond Fosdick, knownsqashed, Olakabola, Leonard Tan, ReadyPlayerEmma, Enrico Ros, Dave, Talal Aujan, Illia Dulskyi, Sean Connelly, senxiiz, Artur Olbinski, Elle, Raven Klaugh, Fen Risland, Deep Realms, Imad Khwaja, Fred von Graf, Will Dee, usrbinkat, SuperWojo, Alexandros Triantafyllidis, Swaroop Kallakuri, Dan Guido, John Detwiler, Pedro Madruga, Iucharbius, Viktor Bowallius, Asp the Wyvern, Edmond Seymore, Trenton Dambrowitz, Space Cruiser, Spiking Neurons AB, Pyrater, LangChain4j, Tony Hughes, Kacper Wikieł, Rishabh Srivastava, David Ziegler, Luke Pendergrass, Andrey, Gabriel Puliatti, Lone Striker, Sebastain Graf, Pierre Kircher, Randy H, NimbleBox.ai, Vadim, danny, Deo Leter
238
+
239
+
240
+ Thank you to all my generous patrons and donaters!
241
+
242
+ And thank you again to a16z for their generous grant.
243
+
244
+ <!-- footer end -->
245
+
246
+ # Original model card
247
+
248
+ # Code Llama
249
+
250
+ ## **Model Details**
251
+
252
+ **Model Developers** Meta AI
253
+
254
+ **Variations** Code Llama comes in three model sizes, and three variants:
255
+ 1) Code Llama: our base models designed for general code synthesis and understanding
256
+ 2) Code Llama - Python: designed specifically for Python
257
+ 3) Code Llama - Instruct: for instruction following and safer deployment
258
+
259
+ All variants are available in sizes of 7B, 13B and 34B parameters.
260
+
261
+ **Input** Models input text only.
262
+
263
+ **Output** Models output text only.
264
+
265
+ **Model Architecture** Code Llama and its variants are autoregressive language models using optimized transformer architectures. Code Llama 7B and 13B additionally support infilling text generation. All models were fine-tuned with up to 16K tokens, and support up to 100K tokens at inference time.
266
+
267
+ **Model Dates** Code Llama and its variants have been trained between January 2023 and July 2023.
268
+
269
+ **Status** This is a static model trained on an offline dataset. Future versions of Code Llama - Instruct will be released as we improve model safety with community feedback.
270
+
271
+ **Licence** A custom commercial license is available at: [https://ai.meta.com/resources/models-and-libraries/llama-downloads/](https://ai.meta.com/resources/models-and-libraries/llama-downloads/).
272
+
273
+ **Research Paper** More information can be found in the paper "[Code Llama: Open Foundation Models for Code](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/)".
274
+
275
+ **Where to send comments** Instructions on how to provide feedback or comments on the model can be found in the model [README](README.md), or by opening an issue in the GitHub repository ([https://github.com/facebookresearch/codellama/](https://github.com/facebookresearch/codellama/)).
276
+
277
+ ## **Intended Use**
278
+ **Intended Use Cases** Code Llama and its variants is intended for commercial and research use in English and relevant programming languages. The base model Code Llama can be adapted for a variety of code synthesis and understanding tasks, Code Llama - Python is designed specifically to handle the Python programming language, and Code Llama - Instruct is intended to be safer to use for code assistant and generation applications.
279
+
280
+ **Out-of-Scope Uses** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in languages other than English. Use in any other way that is prohibited by the Acceptable Use Policy and Licensing Agreement for Code Llama and its variants.
281
+
282
+ ## **Hardware and Software**
283
+ **Training Factors**
284
+ We used custom training libraries. The training and fine-tuning of the released models have been performed Meta’s Research Super Cluster.
285
+
286
+ **Carbon Footprint** In aggregate, training all 9 Code Llama models required 400K GPU hours of computation on hardware of type A100-80GB (TDP of 350-400W). Estimated total emissions were 65.3 tCO2eq, 100% of which were offset by Meta’s sustainability program.
287
+
288
+ **Training data**
289
+ All experiments reported here and the released models have been trained and fine-tuned using the same data as Llama 2 with different weights (see Section 2 and Table 1 in the [research paper](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/) for details).
290
+ Code Llama - Instruct uses additional instruction fine-tuning data.
291
+
292
+ **Evaluation Results**
293
+ See evaluations for the main models and detailed ablations in Section 3 and safety evaluations in Section 4 of the research paper.
294
+
295
+ ## **Ethical Considerations and Limitations**
296
+ Code Llama and its variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Code Llama’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate or objectionable responses to user prompts. Therefore, before deploying any applications of Code Llama, developers should perform safety testing and tuning tailored to their specific applications of the model.
297
+
298
+ Please see the Responsible Use Guide available available at [https://ai.meta.com/llama/responsible-user-guide](https://ai.meta.com/llama/responsible-user-guide).
299
+
300
+
301
+ <!-- original-model-card end -->