TheBloke commited on
Commit
5c39c95
1 Parent(s): a755ece

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +425 -0
README.md ADDED
@@ -0,0 +1,425 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: ajibawa-2023/Python-Code-33B
3
+ datasets:
4
+ - ajibawa-2023/Python-Code-23k-ShareGPT
5
+ inference: false
6
+ language:
7
+ - en
8
+ license: other
9
+ model_creator: Feynman Innovations
10
+ model_name: Python Code 33B
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 33B - GPTQ
50
+ - Model creator: [Feynman Innovations](https://huggingface.co/ajibawa-2023)
51
+ - Original model: [Python Code 33B](https://huggingface.co/ajibawa-2023/Python-Code-33B)
52
+
53
+ <!-- description start -->
54
+ # Description
55
+
56
+ This repo contains GPTQ model files for [Feynman Innovations's Python Code 33B](https://huggingface.co/ajibawa-2023/Python-Code-33B).
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-33B-AWQ)
67
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Python-Code-33B-GPTQ)
68
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Python-Code-33B-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-33B)
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
+
88
+
89
+
90
+ <!-- README_GPTQ.md-compatible clients start -->
91
+ ## Known compatible clients / servers
92
+
93
+ These GPTQ models are known to work in the following inference servers/webuis.
94
+
95
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
96
+ - [KoboldAI United](https://github.com/henk717/koboldai)
97
+ - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
98
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
99
+
100
+ This may not be a complete list; if you know of others, please let me know!
101
+ <!-- README_GPTQ.md-compatible clients end -->
102
+
103
+ <!-- README_GPTQ.md-provided-files start -->
104
+ ## Provided files, and GPTQ parameters
105
+
106
+ Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
107
+
108
+ Each separate quant is in a different branch. See below for instructions on fetching from different branches.
109
+
110
+ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
111
+
112
+ <details>
113
+ <summary>Explanation of GPTQ parameters</summary>
114
+
115
+ - Bits: The bit size of the quantised model.
116
+ - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
117
+ - 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.
118
+ - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
119
+ - 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).
120
+ - 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.
121
+ - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
122
+
123
+ </details>
124
+
125
+ | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
126
+ | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
127
+ | [main](https://huggingface.co/TheBloke/Python-Code-33B-GPTQ/tree/main) | 4 | None | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 2048 | 16.94 GB | Yes | 4-bit, with Act Order. No group size, to lower VRAM requirements. |
128
+ | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/Python-Code-33B-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 2048 | 17.55 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
129
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Python-Code-33B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 2048 | 19.44 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
130
+ | [gptq-3bit-128g-actorder_True](https://huggingface.co/TheBloke/Python-Code-33B-GPTQ/tree/gptq-3bit-128g-actorder_True) | 3 | 128 | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 2048 | 13.51 GB | No | 3-bit, with group size 128g and act-order. Higher quality than 128g-False. |
131
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/Python-Code-33B-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 2048 | 32.99 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
132
+ | [gptq-3bit-32g-actorder_True](https://huggingface.co/TheBloke/Python-Code-33B-GPTQ/tree/gptq-3bit-32g-actorder_True) | 3 | 32 | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 2048 | 15.30 GB | No | 3-bit, with group size 64g and act-order. Highest quality 3-bit option. |
133
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/Python-Code-33B-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1/viewer/) | 2048 | 33.73 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
134
+
135
+ <!-- README_GPTQ.md-provided-files end -->
136
+
137
+ <!-- README_GPTQ.md-download-from-branches start -->
138
+ ## How to download, including from branches
139
+
140
+ ### In text-generation-webui
141
+
142
+ To download from the `main` branch, enter `TheBloke/Python-Code-33B-GPTQ` in the "Download model" box.
143
+
144
+ To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/Python-Code-33B-GPTQ:gptq-4bit-128g-actorder_True`
145
+
146
+ ### From the command line
147
+
148
+ I recommend using the `huggingface-hub` Python library:
149
+
150
+ ```shell
151
+ pip3 install huggingface-hub
152
+ ```
153
+
154
+ To download the `main` branch to a folder called `Python-Code-33B-GPTQ`:
155
+
156
+ ```shell
157
+ mkdir Python-Code-33B-GPTQ
158
+ huggingface-cli download TheBloke/Python-Code-33B-GPTQ --local-dir Python-Code-33B-GPTQ --local-dir-use-symlinks False
159
+ ```
160
+
161
+ To download from a different branch, add the `--revision` parameter:
162
+
163
+ ```shell
164
+ mkdir Python-Code-33B-GPTQ
165
+ huggingface-cli download TheBloke/Python-Code-33B-GPTQ --revision gptq-4bit-128g-actorder_True --local-dir Python-Code-33B-GPTQ --local-dir-use-symlinks False
166
+ ```
167
+
168
+ <details>
169
+ <summary>More advanced huggingface-cli download usage</summary>
170
+
171
+ 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.
172
+
173
+ The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
174
+
175
+ 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).
176
+
177
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
178
+
179
+ ```shell
180
+ pip3 install hf_transfer
181
+ ```
182
+
183
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
184
+
185
+ ```shell
186
+ mkdir Python-Code-33B-GPTQ
187
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Python-Code-33B-GPTQ --local-dir Python-Code-33B-GPTQ --local-dir-use-symlinks False
188
+ ```
189
+
190
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
191
+ </details>
192
+
193
+ ### With `git` (**not** recommended)
194
+
195
+ To clone a specific branch with `git`, use a command like this:
196
+
197
+ ```shell
198
+ git clone --single-branch --branch gptq-4bit-128g-actorder_True https://huggingface.co/TheBloke/Python-Code-33B-GPTQ
199
+ ```
200
+
201
+ 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.)
202
+
203
+ <!-- README_GPTQ.md-download-from-branches end -->
204
+ <!-- README_GPTQ.md-text-generation-webui start -->
205
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
206
+
207
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
208
+
209
+ 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.
210
+
211
+ 1. Click the **Model tab**.
212
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/Python-Code-33B-GPTQ`.
213
+
214
+ - To download from a specific branch, enter for example `TheBloke/Python-Code-33B-GPTQ:gptq-4bit-128g-actorder_True`
215
+ - see Provided Files above for the list of branches for each option.
216
+
217
+ 3. Click **Download**.
218
+ 4. The model will start downloading. Once it's finished it will say "Done".
219
+ 5. In the top left, click the refresh icon next to **Model**.
220
+ 6. In the **Model** dropdown, choose the model you just downloaded: `Python-Code-33B-GPTQ`
221
+ 7. The model will automatically load, and is now ready for use!
222
+ 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.
223
+
224
+ - 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`.
225
+
226
+ 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
227
+
228
+ <!-- README_GPTQ.md-text-generation-webui end -->
229
+
230
+ <!-- README_GPTQ.md-use-from-tgi start -->
231
+ ## Serving this model from Text Generation Inference (TGI)
232
+
233
+ 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`
234
+
235
+ Example Docker parameters:
236
+
237
+ ```shell
238
+ --model-id TheBloke/Python-Code-33B-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
239
+ ```
240
+
241
+ Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
242
+
243
+ ```shell
244
+ pip3 install huggingface-hub
245
+ ```
246
+
247
+ ```python
248
+ from huggingface_hub import InferenceClient
249
+
250
+ endpoint_url = "https://your-endpoint-url-here"
251
+
252
+ prompt = "Tell me about AI"
253
+ prompt_template=f'''This is a conversation with your helpful AI assistant. AI assistant can generate Python Code along with necessary explanation.
254
+
255
+ Context
256
+ You are a helpful AI assistant.
257
+
258
+ USER: {prompt}
259
+ ASSISTANT:
260
+ '''
261
+
262
+ client = InferenceClient(endpoint_url)
263
+ response = client.text_generation(prompt,
264
+ max_new_tokens=128,
265
+ do_sample=True,
266
+ temperature=0.7,
267
+ top_p=0.95,
268
+ top_k=40,
269
+ repetition_penalty=1.1)
270
+
271
+ print(f"Model output: {response}")
272
+ ```
273
+ <!-- README_GPTQ.md-use-from-tgi end -->
274
+ <!-- README_GPTQ.md-use-from-python start -->
275
+ ## Python code example: inference from this GPTQ model
276
+
277
+ ### Install the necessary packages
278
+
279
+ Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
280
+
281
+ ```shell
282
+ pip3 install --upgrade transformers optimum
283
+ # If using PyTorch 2.1 + CUDA 12.x:
284
+ pip3 install --upgrade auto-gptq
285
+ # or, if using PyTorch 2.1 + CUDA 11.x:
286
+ pip3 install --upgrade auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
287
+ ```
288
+
289
+ 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:
290
+
291
+ ```shell
292
+ pip3 uninstall -y auto-gptq
293
+ git clone https://github.com/PanQiWei/AutoGPTQ
294
+ cd AutoGPTQ
295
+ git checkout v0.5.1
296
+ pip3 install .
297
+ ```
298
+
299
+ ### Example Python code
300
+
301
+ ```python
302
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
303
+
304
+ model_name_or_path = "TheBloke/Python-Code-33B-GPTQ"
305
+ # To use a different branch, change revision
306
+ # For example: revision="gptq-4bit-128g-actorder_True"
307
+ model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
308
+ device_map="auto",
309
+ trust_remote_code=False,
310
+ revision="main")
311
+
312
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
313
+
314
+ prompt = "Tell me about AI"
315
+ prompt_template=f'''This is a conversation with your helpful AI assistant. AI assistant can generate Python Code along with necessary explanation.
316
+
317
+ Context
318
+ You are a helpful AI assistant.
319
+
320
+ USER: {prompt}
321
+ ASSISTANT:
322
+ '''
323
+
324
+ print("\n\n*** Generate:")
325
+
326
+ input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
327
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
328
+ print(tokenizer.decode(output[0]))
329
+
330
+ # Inference can also be done using transformers' pipeline
331
+
332
+ print("*** Pipeline:")
333
+ pipe = pipeline(
334
+ "text-generation",
335
+ model=model,
336
+ tokenizer=tokenizer,
337
+ max_new_tokens=512,
338
+ do_sample=True,
339
+ temperature=0.7,
340
+ top_p=0.95,
341
+ top_k=40,
342
+ repetition_penalty=1.1
343
+ )
344
+
345
+ print(pipe(prompt_template)[0]['generated_text'])
346
+ ```
347
+ <!-- README_GPTQ.md-use-from-python end -->
348
+
349
+ <!-- README_GPTQ.md-compatibility start -->
350
+ ## Compatibility
351
+
352
+ The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
353
+
354
+ [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.
355
+
356
+ For a list of clients/servers, please see "Known compatible clients / servers", above.
357
+ <!-- README_GPTQ.md-compatibility end -->
358
+
359
+ <!-- footer start -->
360
+ <!-- 200823 -->
361
+ ## Discord
362
+
363
+ For further support, and discussions on these models and AI in general, join us at:
364
+
365
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
366
+
367
+ ## Thanks, and how to contribute
368
+
369
+ Thanks to the [chirper.ai](https://chirper.ai) team!
370
+
371
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
372
+
373
+ 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.
374
+
375
+ 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.
376
+
377
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
378
+
379
+ * Patreon: https://patreon.com/TheBlokeAI
380
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
381
+
382
+ **Special thanks to**: Aemon Algiz.
383
+
384
+ **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
385
+
386
+
387
+ Thank you to all my generous patrons and donaters!
388
+
389
+ And thank you again to a16z for their generous grant.
390
+
391
+ <!-- footer end -->
392
+
393
+ # Original model card: Feynman Innovations's Python Code 33B
394
+
395
+
396
+ **Python-Code-33B**
397
+
398
+ 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.
399
+ 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.
400
+ 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.
401
+ I have released the [data](https://huggingface.co/datasets/ajibawa-2023/Python-Code-23k-ShareGPT).
402
+
403
+ **Training:**
404
+ Entire dataset was trained on Azure 4 x A100 80GB. For 3 epoch, training took 42 hours. DeepSpeed codebase was used for training purpose. This was trained on Llama-1 by Meta.
405
+
406
+
407
+ **GPTQ GGML & AWQ**
408
+
409
+ GPTQ: TBA
410
+
411
+ GGUF: TBA
412
+
413
+ AWQ: TBA
414
+
415
+
416
+ **Example Prompt:**
417
+ ```
418
+ This is a conversation with your helpful AI assistant. AI assistant can generate Python Code along with necessary explanation.
419
+
420
+ Context
421
+ You are a helpful AI assistant.
422
+
423
+ USER: <prompt>
424
+ ASSISTANT:
425
+ ```