TheBloke commited on
Commit
501dce7
1 Parent(s): 99dd33b

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +431 -0
README.md ADDED
@@ -0,0 +1,431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: ajibawa-2023/Python-Code-13B
3
+ datasets:
4
+ - ajibawa-2023/Python-Code-23k-ShareGPT
5
+ inference: false
6
+ language:
7
+ - en
8
+ license: cc-by-nc-nd-4.0
9
+ model_creator: Feynman Innovations
10
+ model_name: Python Code 13B
11
+ model_type: llama
12
+ prompt_template: 'This is a conversation with your helpful AI assistant. AI assistant
13
+ can generate Python Code along with necessary explanation.
14
+
15
+
16
+ Context
17
+
18
+ You are a helpful AI assistant.
19
+
20
+
21
+ USER: {prompt}
22
+
23
+ ASSISTANT:
24
+
25
+ '
26
+ quantized_by: TheBloke
27
+ tags:
28
+ - code
29
+ ---
30
+ <!-- markdownlint-disable MD041 -->
31
+
32
+ <!-- header start -->
33
+ <!-- 200823 -->
34
+ <div style="width: auto; margin-left: auto; margin-right: auto">
35
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
36
+ </div>
37
+ <div style="display: flex; justify-content: space-between; width: 100%;">
38
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
39
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
40
+ </div>
41
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
42
+ <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>
43
+ </div>
44
+ </div>
45
+ <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>
46
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
47
+ <!-- header end -->
48
+
49
+ # Python Code 13B - GPTQ
50
+ - Model creator: [Feynman Innovations](https://huggingface.co/ajibawa-2023)
51
+ - Original model: [Python Code 13B](https://huggingface.co/ajibawa-2023/Python-Code-13B)
52
+
53
+ <!-- description start -->
54
+ # Description
55
+
56
+ This repo contains GPTQ model files for [Feynman Innovations's Python Code 13B](https://huggingface.co/ajibawa-2023/Python-Code-13B).
57
+
58
+ Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
59
+
60
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
61
+
62
+ <!-- description end -->
63
+ <!-- repositories-available start -->
64
+ ## Repositories available
65
+
66
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Python-Code-13B-AWQ)
67
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Python-Code-13B-GPTQ)
68
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Python-Code-13B-GGUF)
69
+ * [Feynman Innovations's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/ajibawa-2023/Python-Code-13B)
70
+ <!-- repositories-available end -->
71
+
72
+ <!-- prompt-template start -->
73
+ ## Prompt template: Ajibawa-Python-Code
74
+
75
+ ```
76
+ This is a conversation with your helpful AI assistant. AI assistant can generate Python Code along with necessary explanation.
77
+
78
+ Context
79
+ You are a helpful AI assistant.
80
+
81
+ USER: {prompt}
82
+ ASSISTANT:
83
+
84
+ ```
85
+
86
+ <!-- prompt-template end -->
87
+ <!-- licensing start -->
88
+ ## Licensing
89
+
90
+ The creator of the source model has listed its license as `cc-by-nc-nd-4.0`, and this quantization has therefore used that same license.
91
+
92
+ As this model is based on Llama 2, it is also subject to the Meta Llama 2 license terms, and the license files for that are additionally included. It should therefore be considered as being claimed to be licensed under both licenses. I contacted Hugging Face for clarification on dual licensing but they do not yet have an official position. Should this change, or should Meta provide any feedback on this situation, I will update this section accordingly.
93
+
94
+ In the meantime, any questions regarding licensing, and in particular how these two licenses might interact, should be directed to the original model repository: [Feynman Innovations's Python Code 13B](https://huggingface.co/ajibawa-2023/Python-Code-13B).
95
+ <!-- licensing end -->
96
+
97
+ <!-- README_GPTQ.md-compatible clients start -->
98
+ ## Known compatible clients / servers
99
+
100
+ These GPTQ models are known to work in the following inference servers/webuis.
101
+
102
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
103
+ - [KoboldAI United](https://github.com/henk717/koboldai)
104
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
105
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
106
+
107
+ This may not be a complete list; if you know of others, please let me know!
108
+ <!-- README_GPTQ.md-compatible clients end -->
109
+
110
+ <!-- README_GPTQ.md-provided-files start -->
111
+ ## Provided files, and GPTQ parameters
112
+
113
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
114
+
115
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
116
+
117
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
118
+
119
+ <details>
120
+ <summary>Explanation of GPTQ parameters</summary>
121
+
122
+ - Bits: The bit size of the quantised model.
123
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
124
+ - Act Order: True or False. Also known as `desc_act`. True results in better quantisation accuracy. Some GPTQ clients have had issues with models that use Act Order plus Group Size, but this is generally resolved now.
125
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
126
+ - GPTQ dataset: The calibration dataset used during quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ calibration dataset is not the same as the dataset used to train the model - please refer to the original model repo for details of the training dataset(s).
127
+ - Sequence Length: The length of the dataset sequences used for quantisation. Ideally this is the same as the model sequence length. For some very long sequence models (16+K), a lower sequence length may have to be used. Note that a lower sequence length does not limit the sequence length of the quantised model. It only impacts the quantisation accuracy on longer inference sequences.
128
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
129
+
130
+ </details>
131
+
132
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
133
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
134
+ | [main](https://huggingface.co/TheBloke/Python-Code-13B-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 4096 | 7.26 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
135
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Python-Code-13B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 4096 | 8.00 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
136
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/Python-Code-13B-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 4096 | 13.36 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
137
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/Python-Code-13B-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 4096 | 13.65 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
138
+ | [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/Python-Code-13B-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 4096 | 14.54 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. |
139
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/Python-Code-13B-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 4096 | 7.51 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
140
+
141
+ <!-- README_GPTQ.md-provided-files end -->
142
+
143
+ <!-- README_GPTQ.md-download-from-branches start -->
144
+ ## How to download, including from branches
145
+
146
+ ### In text-generation-webui
147
+
148
+ To download from the `main` branch, enter `TheBloke/Python-Code-13B-GPTQ` in the "Download model" box.
149
+
150
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/Python-Code-13B-GPTQ:gptq-4bit-32g-actorder_True`
151
+
152
+ ### From the command line
153
+
154
+ I recommend using the `huggingface-hub` Python library:
155
+
156
+ ```shell
157
+ pip3 install huggingface-hub
158
+ ```
159
+
160
+ To download the `main` branch to a folder called `Python-Code-13B-GPTQ`:
161
+
162
+ ```shell
163
+ mkdir Python-Code-13B-GPTQ
164
+ huggingface-cli download TheBloke/Python-Code-13B-GPTQ --local-dir Python-Code-13B-GPTQ --local-dir-use-symlinks False
165
+ ```
166
+
167
+ To download from a different branch, add the `--revision` parameter:
168
+
169
+ ```shell
170
+ mkdir Python-Code-13B-GPTQ
171
+ huggingface-cli download TheBloke/Python-Code-13B-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir Python-Code-13B-GPTQ --local-dir-use-symlinks False
172
+ ```
173
+
174
+ <details>
175
+ <summary>More advanced huggingface-cli download usage</summary>
176
+
177
+ If you remove the `--local-dir-use-symlinks False` parameter, the files will instead be stored in the central Hugging Face cache directory (default location on Linux is: `~/.cache/huggingface`), and symlinks will be added to the specified `--local-dir`, pointing to their real location in the cache. This allows for interrupted downloads to be resumed, and allows you to quickly clone the repo to multiple places on disk without triggering a download again. The downside, and the reason why I don't list that as the default option, is that the files are then hidden away in a cache folder and it's harder to know where your disk space is being used, and to clear it up if/when you want to remove a download model.
178
+
179
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
180
+
181
+ 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).
182
+
183
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
184
+
185
+ ```shell
186
+ pip3 install hf_transfer
187
+ ```
188
+
189
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
190
+
191
+ ```shell
192
+ mkdir Python-Code-13B-GPTQ
193
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Python-Code-13B-GPTQ --local-dir Python-Code-13B-GPTQ --local-dir-use-symlinks False
194
+ ```
195
+
196
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
197
+ </details>
198
+
199
+ ### With `git` (**not** recommended)
200
+
201
+ To clone a specific branch with `git`, use a command like this:
202
+
203
+ ```shell
204
+ git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/Python-Code-13B-GPTQ
205
+ ```
206
+
207
+ Note that using Git with HF repos is strongly discouraged. It will be much slower than using `huggingface-hub`, and will use twice as much disk space as it has to store the model files twice (it stores every byte both in the intended target folder, and again in the `.git` folder as a blob.)
208
+
209
+ <!-- README_GPTQ.md-download-from-branches end -->
210
+ <!-- README_GPTQ.md-text-generation-webui start -->
211
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
212
+
213
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
214
+
215
+ It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
216
+
217
+ 1. Click the **Model tab**.
218
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/Python-Code-13B-GPTQ`.
219
+
220
+ - To download from a specific branch, enter for example `TheBloke/Python-Code-13B-GPTQ:gptq-4bit-32g-actorder_True`
221
+ - see Provided Files above for the list of branches for each option.
222
+
223
+ 3. Click **Download**.
224
+ 4. The model will start downloading. Once it's finished it will say "Done".
225
+ 5. In the top left, click the refresh icon next to **Model**.
226
+ 6. In the **Model** dropdown, choose the model you just downloaded: `Python-Code-13B-GPTQ`
227
+ 7. The model will automatically load, and is now ready for use!
228
+ 8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
229
+
230
+ - Note that you do not need to and should not set manual GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
231
+
232
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
233
+
234
+ <!-- README_GPTQ.md-text-generation-webui end -->
235
+
236
+ <!-- README_GPTQ.md-use-from-tgi start -->
237
+ ## Serving this model from Text Generation Inference (TGI)
238
+
239
+ It's recommended to use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
240
+
241
+ Example Docker parameters:
242
+
243
+ ```shell
244
+ --model-id TheBloke/Python-Code-13B-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
245
+ ```
246
+
247
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
248
+
249
+ ```shell
250
+ pip3 install huggingface-hub
251
+ ```
252
+
253
+ ```python
254
+ from huggingface_hub import InferenceClient
255
+
256
+ endpoint_url = "https://your-endpoint-url-here"
257
+
258
+ prompt = "Tell me about AI"
259
+ prompt_template=f'''This is a conversation with your helpful AI assistant. AI assistant can generate Python Code along with necessary explanation.
260
+
261
+ Context
262
+ You are a helpful AI assistant.
263
+
264
+ USER: {prompt}
265
+ ASSISTANT:
266
+ '''
267
+
268
+ client = InferenceClient(endpoint_url)
269
+ response = client.text_generation(prompt,
270
+ max_new_tokens=128,
271
+ do_sample=True,
272
+ temperature=0.7,
273
+ top_p=0.95,
274
+ top_k=40,
275
+ repetition_penalty=1.1)
276
+
277
+ print(f"Model output: {response}")
278
+ ```
279
+ <!-- README_GPTQ.md-use-from-tgi end -->
280
+ <!-- README_GPTQ.md-use-from-python start -->
281
+ ## Python code example: inference from this GPTQ model
282
+
283
+ ### Install the necessary packages
284
+
285
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
286
+
287
+ ```shell
288
+ pip3 install --upgrade transformers optimum
289
+ # If using PyTorch 2.1 + CUDA 12.x:
290
+ pip3 install --upgrade auto-gptq
291
+ # or, if using PyTorch 2.1 + CUDA 11.x:
292
+ pip3 install --upgrade auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
293
+ ```
294
+
295
+ If you are using PyTorch 2.0, you will need to install AutoGPTQ from source. Likewise if you have problems with the pre-built wheels, you should try building from source:
296
+
297
+ ```shell
298
+ pip3 uninstall -y auto-gptq
299
+ git clone https://github.com/PanQiWei/AutoGPTQ
300
+ cd AutoGPTQ
301
+ git checkout v0.5.1
302
+ pip3 install .
303
+ ```
304
+
305
+ ### Example Python code
306
+
307
+ ```python
308
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
309
+
310
+ model_name_or_path = "TheBloke/Python-Code-13B-GPTQ"
311
+ # To use a different branch, change revision
312
+ # For example: revision="gptq-4bit-32g-actorder_True"
313
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
314
+ device_map="auto",
315
+ trust_remote_code=False,
316
+ revision="main")
317
+
318
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
319
+
320
+ prompt = "Tell me about AI"
321
+ prompt_template=f'''This is a conversation with your helpful AI assistant. AI assistant can generate Python Code along with necessary explanation.
322
+
323
+ Context
324
+ You are a helpful AI assistant.
325
+
326
+ USER: {prompt}
327
+ ASSISTANT:
328
+ '''
329
+
330
+ print("\n\n*** Generate:")
331
+
332
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
333
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
334
+ print(tokenizer.decode(output[0]))
335
+
336
+ # Inference can also be done using transformers' pipeline
337
+
338
+ print("*** Pipeline:")
339
+ pipe = pipeline(
340
+ "text-generation",
341
+ model=model,
342
+ tokenizer=tokenizer,
343
+ max_new_tokens=512,
344
+ do_sample=True,
345
+ temperature=0.7,
346
+ top_p=0.95,
347
+ top_k=40,
348
+ repetition_penalty=1.1
349
+ )
350
+
351
+ print(pipe(prompt_template)[0]['generated_text'])
352
+ ```
353
+ <!-- README_GPTQ.md-use-from-python end -->
354
+
355
+ <!-- README_GPTQ.md-compatibility start -->
356
+ ## Compatibility
357
+
358
+ The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
359
+
360
+ [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama and Mistral models in 4-bit. Please see the Provided Files table above for per-file compatibility.
361
+
362
+ For a list of clients/servers, please see "Known compatible clients / servers", above.
363
+ <!-- README_GPTQ.md-compatibility end -->
364
+
365
+ <!-- footer start -->
366
+ <!-- 200823 -->
367
+ ## Discord
368
+
369
+ For further support, and discussions on these models and AI in general, join us at:
370
+
371
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
372
+
373
+ ## Thanks, and how to contribute
374
+
375
+ Thanks to the [chirper.ai](https://chirper.ai) team!
376
+
377
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
378
+
379
+ 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.
380
+
381
+ 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.
382
+
383
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
384
+
385
+ * Patreon: https://patreon.com/TheBlokeAI
386
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
387
+
388
+ **Special thanks to**: Aemon Algiz.
389
+
390
+ **Patreon special mentions**: Brandon Frisco, LangChain4j, Spiking Neurons AB, transmissions 11, Joseph William Delisle, Nitin Borwankar, Willem Michiel, Michael Dempsey, vamX, Jeffrey Morgan, zynix, jjj, Omer Bin Jawed, Sean Connelly, jinyuan sun, Jeromy Smith, Shadi, Pawan Osman, Chadd, Elijah Stavena, Illia Dulskyi, Sebastain Graf, Stephen Murray, terasurfer, Edmond Seymore, Celu Ramasamy, Mandus, Alex, biorpg, Ajan Kanaga, Clay Pascal, Raven Klaugh, 阿明, K, ya boyyy, usrbinkat, Alicia Loh, John Villwock, ReadyPlayerEmma, Chris Smitley, Cap'n Zoog, fincy, GodLy, S_X, sidney chen, Cory Kujawski, OG, Mano Prime, AzureBlack, Pieter, Kalila, Spencer Kim, Tom X Nguyen, Stanislav Ovsiannikov, Michael Levine, Andrey, Trailburnt, Vadim, Enrico Ros, Talal Aujan, Brandon Phillips, Jack West, Eugene Pentland, Michael Davis, Will Dee, webtim, Jonathan Leane, Alps Aficionado, Rooh Singh, Tiffany J. Kim, theTransient, Luke @flexchar, Elle, Caitlyn Gatomon, Ari Malik, subjectnull, Johann-Peter Hartmann, Trenton Dambrowitz, Imad Khwaja, Asp the Wyvern, Emad Mostaque, Rainer Wilmers, Alexandros Triantafyllidis, Nicholas, Pedro Madruga, SuperWojo, Harry Royden McLaughlin, James Bentley, Olakabola, David Ziegler, Ai Maven, Jeff Scroggin, Nikolai Manek, Deo Leter, Matthew Berman, Fen Risland, Ken Nordquist, Manuel Alberto Morcote, Luke Pendergrass, TL, Fred von Graf, Randy H, Dan Guido, NimbleBox.ai, Vitor Caleffi, Gabriel Tamborski, knownsqashed, Lone Striker, Erik Bjäreholt, John Detwiler, Leonard Tan, Iucharbius
391
+
392
+
393
+ Thank you to all my generous patrons and donaters!
394
+
395
+ And thank you again to a16z for their generous grant.
396
+
397
+ <!-- footer end -->
398
+
399
+ # Original model card: Feynman Innovations's Python Code 13B
400
+
401
+
402
+ **Python-Code-13B**
403
+
404
+ Large Language Models (LLMs) are good with code generations. Sometimes LLMs do make mistakes in code generation. How about if they can give detailed explanation along with the code.
405
+ This is what I have tried over here. The base Llama-2 model was used for training purpose. It is trained on around 23000+ set of codes. Each set having 2 conversations.
406
+ This data was generated using GPT-3.5, GPT-4 etc. This conversation is in Vicuna/ShareGPT format. Each set, along with code, has detailed explanation.
407
+ I have released the [data](https://huggingface.co/datasets/ajibawa-2023/Python-Code-23k-ShareGPT).
408
+
409
+ **Training:**
410
+ Entire dataset was trained on Azure 4 x A100 80GB. For 3 epoch, training took 13 hours. DeepSpeed codebase was used for training purpose. This was trained on Llama-2 by Meta.
411
+
412
+
413
+ **GPTQ GGML & AWQ**
414
+
415
+ GPTQ: TBA
416
+
417
+ GGUF: TBA
418
+
419
+ AWQ: TBA
420
+
421
+
422
+ **Example Prompt:**
423
+ ```
424
+ This is a conversation with your helpful AI assistant. AI assistant can generate Python Code along with necessary explanation.
425
+
426
+ Context
427
+ You are a helpful AI assistant.
428
+
429
+ USER: <prompt>
430
+ ASSISTANT:
431
+ ```