TheBloke commited on
Commit
e0175f8
1 Parent(s): e11932a

Initial GGML model commit

Browse files
Files changed (1) hide show
  1. README.md +49 -92
README.md CHANGED
@@ -1,14 +1,16 @@
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 13B Python
7
  model_type: llama
 
8
  quantized_by: TheBloke
9
  tags:
10
  - llama-2
11
- - codellama
12
  ---
13
 
14
  <!-- header start -->
@@ -30,11 +32,11 @@ tags:
30
 
31
  # CodeLlama 13B Python - GGML
32
  - Model creator: [Meta](https://huggingface.co/meta-llama)
33
- - Original model: [CodeLlama 13B Python](https://ai.meta.com/resources/models-and-libraries/llama-downloads)
34
 
35
  ## Description
36
 
37
- This repo contains GGML format model files for [Meta's CodeLlama 13B Python](https://ai.meta.com/resources/models-and-libraries/llama-downloads).
38
 
39
  ### Important note regarding GGML files.
40
 
@@ -55,14 +57,12 @@ GGML files are for CPU + GPU inference using [llama.cpp](https://github.com/gger
55
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/CodeLlama-13B-Python-GPTQ)
56
  * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/CodeLlama-13B-Python-GGUF)
57
  * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/CodeLlama-13B-Python-GGML)
58
- * [Meta's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/TheBloke/CodeLlama-13B-Python-fp16)
59
 
60
- ## Prompt template: CodeLlama
61
 
62
  ```
63
- [INST] Write code to solve the following coding problem that obeys the constraints and passes the example test cases. Please wrap your code answer using ```:
64
- {prompt}
65
- [/INST]
66
  ```
67
 
68
  <!-- compatibility_ggml start -->
@@ -170,123 +170,80 @@ And thank you again to a16z for their generous grant.
170
 
171
  # Original model card: Meta's CodeLlama 13B Python
172
 
 
 
173
 
174
- <!-- header start -->
175
- <!-- 200823 -->
176
- <div style="width: auto; margin-left: auto; margin-right: auto">
177
- <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
178
- </div>
179
- <div style="display: flex; justify-content: space-between; width: 100%;">
180
- <div style="display: flex; flex-direction: column; align-items: flex-start;">
181
- <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
182
- </div>
183
- <div style="display: flex; flex-direction: column; align-items: flex-end;">
184
- <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>
185
- </div>
186
- </div>
187
- <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>
188
- <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
189
- <!-- header end -->
190
-
191
- # CodeLlama 13B-Python fp16
192
- - Model creator: [Meta](https://ai.meta.com/llama/)
193
-
194
- ## Description
195
 
196
- This is Transformers/HF format fp16 weights for CodeLlama 13B-Python. It is the result of downloading CodeLlama 13B-Python from [Meta](https://ai.meta.com/blog/code-llama-large-language-model-coding/) and converting to HF using `convert_llama_weights_to_hf.py`.
197
 
198
- Quantisations will be coming shortly.
199
-
200
- 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`
201
-
202
- Credit to @emozilla for creating the necessary modelling code to achieve this!
203
-
204
- ## Prompt template: TBC
205
-
206
-
207
- <!-- footer start -->
208
- <!-- 200823 -->
209
- ## Discord
210
-
211
- For further support, and discussions on these models and AI in general, join us at:
212
 
213
- [TheBloke AI's Discord server](https://discord.gg/theblokeai)
214
-
215
- ## Thanks, and how to contribute.
216
-
217
- Thanks to the [chirper.ai](https://chirper.ai) team!
218
-
219
- 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.
220
-
221
- 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.
222
-
223
- Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
224
-
225
- * Patreon: https://patreon.com/TheBlokeAI
226
- * Ko-Fi: https://ko-fi.com/TheBlokeAI
227
-
228
- **Special thanks to**: Aemon Algiz.
229
-
230
- **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
231
-
232
-
233
- Thank you to all my generous patrons and donaters!
234
 
235
- And thank you again to a16z for their generous grant.
236
 
237
- <!-- footer end -->
 
 
 
238
 
239
- # Original model card
 
240
 
241
- # Code Llama
242
 
243
- ## **Model Details**
244
 
245
- **Model Developers** Meta AI
 
 
246
 
247
- **Variations** Code Llama comes in three model sizes, and three variants:
248
- 1) Code Llama: our base models designed for general code synthesis and understanding
249
- 2) Code Llama - Python: designed specifically for Python
250
- 3) Code Llama - Instruct: for instruction following and safer deployment
251
-
252
  All variants are available in sizes of 7B, 13B and 34B parameters.
253
 
 
 
254
  **Input** Models input text only.
255
 
256
- **Output** Models output text only.
257
 
258
- **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.
259
 
260
  **Model Dates** Code Llama and its variants have been trained between January 2023 and July 2023.
261
 
262
- **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.
263
 
264
- **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/).
265
 
266
  **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/)".
267
 
268
- **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/)).
269
-
270
- ## **Intended Use**
271
  **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.
272
 
273
  **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.
274
 
275
- ## **Hardware and Software**
276
- **Training Factors**
277
- We used custom training libraries. The training and fine-tuning of the released models have been performed Meta’s Research Super Cluster.
278
 
279
  **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.
280
 
281
- **Training data**
 
282
  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).
283
- Code Llama - Instruct uses additional instruction fine-tuning data.
284
 
285
- **Evaluation Results**
 
286
  See evaluations for the main models and detailed ablations in Section 3 and safety evaluations in Section 4 of the research paper.
287
 
288
- ## **Ethical Considerations and Limitations**
 
 
289
  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.
290
 
291
  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).
292
-
 
1
  ---
2
  inference: false
3
+ language:
4
+ - code
5
  license: llama2
6
  model_creator: Meta
7
+ model_link: https://huggingface.co/codellama/CodeLlama-13b-python-hf
8
  model_name: CodeLlama 13B Python
9
  model_type: llama
10
+ pipeline_tag: text-generation
11
  quantized_by: TheBloke
12
  tags:
13
  - llama-2
 
14
  ---
15
 
16
  <!-- header start -->
 
32
 
33
  # CodeLlama 13B Python - GGML
34
  - Model creator: [Meta](https://huggingface.co/meta-llama)
35
+ - Original model: [CodeLlama 13B Python](https://huggingface.co/codellama/CodeLlama-13b-python-hf)
36
 
37
  ## Description
38
 
39
+ This repo contains GGML format model files for [Meta's CodeLlama 13B Python](https://huggingface.co/codellama/CodeLlama-13b-python-hf).
40
 
41
  ### Important note regarding GGML files.
42
 
 
57
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/CodeLlama-13B-Python-GPTQ)
58
  * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/CodeLlama-13B-Python-GGUF)
59
  * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/CodeLlama-13B-Python-GGML)
60
+ * [Meta's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/codellama/CodeLlama-13b-python-hf)
61
 
62
+ ## Prompt template: TBC
63
 
64
  ```
65
+ Info on prompt template will be added shortly.
 
 
66
  ```
67
 
68
  <!-- compatibility_ggml start -->
 
170
 
171
  # Original model card: Meta's CodeLlama 13B Python
172
 
173
+ # **Code Llama**
174
+ Code Llama is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 34 billion parameters. This is the repository for the 13B Python specialist version in the Hugging Face Transformers format. This model is designed for general code synthesis and understanding. Links to other models can be found in the index at the bottom.
175
 
176
+ | | Base Model | Python | Instruct |
177
+ | --- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
178
+ | 7B | [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf) | [codellama/CodeLlama-7b-Python-hf](https://huggingface.co/codellama/CodeLlama-7b-Python-hf) | [codellama/CodeLlama-7b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-7b-Instruct-hf) |
179
+ | 13B | [codellama/CodeLlama-13b-hf](https://huggingface.co/codellama/CodeLlama-13b-hf) | [codellama/CodeLlama-13b-Python-hf](https://huggingface.co/codellama/CodeLlama-13b-Python-hf) | [codellama/CodeLlama-13b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-13b-Instruct-hf) |
180
+ | 34B | [codellama/CodeLlama-34b-hf](https://huggingface.co/codellama/CodeLlama-34b-hf) | [codellama/CodeLlama-34b-Python-hf](https://huggingface.co/codellama/CodeLlama-34b-Python-hf) | [codellama/CodeLlama-34b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf) |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
 
182
+ ## Model Use
183
 
184
+ To use this model, please make sure to install transformers from `main` until the next version is released:
 
 
 
 
 
 
 
 
 
 
 
 
 
185
 
186
+ ```bash
187
+ pip install git+https://github.com/huggingface/transformers.git@main accelerate
188
+ ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
 
190
+ Model capabilities:
191
 
192
+ - [x] Code completion.
193
+ - [ ] Infilling.
194
+ - [ ] Instructions / chat.
195
+ - [x] Python specialist.
196
 
197
+ ## Model Details
198
+ *Note: Use of this model is governed by the Meta license. Meta developed and publicly released the Code Llama family of large language models (LLMs).
199
 
200
+ **Model Developers** Meta
201
 
202
+ **Variations** Code Llama comes in three model sizes, and three variants:
203
 
204
+ * Code Llama: base models designed for general code synthesis and understanding
205
+ * Code Llama - Python: designed specifically for Python
206
+ * Code Llama - Instruct: for instruction following and safer deployment
207
 
 
 
 
 
 
208
  All variants are available in sizes of 7B, 13B and 34B parameters.
209
 
210
+ **This repository contains the Python version of the 13B parameters model.**
211
+
212
  **Input** Models input text only.
213
 
214
+ **Output** Models generate text only.
215
 
216
+ **Model Architecture** Code Llama is an auto-regressive language model that uses an optimized transformer architecture.
217
 
218
  **Model Dates** Code Llama and its variants have been trained between January 2023 and July 2023.
219
 
220
+ **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.
221
 
222
+ **License** 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/)
223
 
224
  **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/)".
225
 
226
+ ## Intended Use
 
 
227
  **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.
228
 
229
  **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.
230
 
231
+ ## Hardware and Software
232
+ **Training Factors** We used custom training libraries. The training and fine-tuning of the released models have been performed Meta’s Research Super Cluster.
 
233
 
234
  **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.
235
 
236
+ ## Training Data
237
+
238
  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).
 
239
 
240
+ ## Evaluation Results
241
+
242
  See evaluations for the main models and detailed ablations in Section 3 and safety evaluations in Section 4 of the research paper.
243
 
244
+
245
+ ## Ethical Considerations and Limitations
246
+
247
  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.
248
 
249
  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).