TheBloke commited on
Commit
d1f11b0
1 Parent(s): 639df76

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +408 -0
README.md ADDED
@@ -0,0 +1,408 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: deepseek-ai/deepseek-coder-6.7b-instruct
3
+ inference: false
4
+ license: other
5
+ license_link: LICENSE
6
+ license_name: deepseek
7
+ model_creator: DeepSeek
8
+ model_name: Deepseek Coder 6.7B Instruct
9
+ model_type: llama
10
+ prompt_template: 'You are an AI programming assistant, utilizing the Deepseek Coder
11
+ model, developed by Deepseek Company, and you only answer questions related to computer
12
+ science. For politically sensitive questions, security and privacy issues, and other
13
+ non-computer science questions, you will refuse to answer.
14
+
15
+ ### Instruction:
16
+
17
+ {prompt}
18
+
19
+ ### Response:
20
+
21
+ '
22
+ quantized_by: TheBloke
23
+ ---
24
+ <!-- markdownlint-disable MD041 -->
25
+
26
+ <!-- header start -->
27
+ <!-- 200823 -->
28
+ <div style="width: auto; margin-left: auto; margin-right: auto">
29
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
30
+ </div>
31
+ <div style="display: flex; justify-content: space-between; width: 100%;">
32
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
33
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
34
+ </div>
35
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
36
+ <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>
37
+ </div>
38
+ </div>
39
+ <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>
40
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
41
+ <!-- header end -->
42
+
43
+ # Deepseek Coder 6.7B Instruct - AWQ
44
+ - Model creator: [DeepSeek](https://huggingface.co/deepseek-ai)
45
+ - Original model: [Deepseek Coder 6.7B Instruct](https://huggingface.co/deepseek-ai/deepseek-coder-6.7b-instruct)
46
+
47
+ <!-- description start -->
48
+ ## Description
49
+
50
+ This repo contains AWQ model files for [DeepSeek's Deepseek Coder 6.7B Instruct](https://huggingface.co/deepseek-ai/deepseek-coder-6.7b-instruct).
51
+
52
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
53
+
54
+
55
+ ### About AWQ
56
+
57
+ AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference with equivalent or better quality compared to the most commonly used GPTQ settings.
58
+
59
+ It is supported by:
60
+
61
+ - [Text Generation Webui](https://github.com/oobabooga/text-generation-webui) - using Loader: AutoAWQ
62
+ - [vLLM](https://github.com/vllm-project/vllm) - Llama and Mistral models only
63
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
64
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) - for use from Python code
65
+
66
+ <!-- description end -->
67
+ <!-- repositories-available start -->
68
+ ## Repositories available
69
+
70
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/deepseek-coder-6.7B-instruct-AWQ)
71
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/deepseek-coder-6.7B-instruct-GPTQ)
72
+ * [DeepSeek's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/deepseek-ai/deepseek-coder-6.7b-instruct)
73
+ <!-- repositories-available end -->
74
+
75
+ <!-- prompt-template start -->
76
+ ## Prompt template: DeepSeek
77
+
78
+ ```
79
+ You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.
80
+ ### Instruction:
81
+ {prompt}
82
+ ### Response:
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 `other`, 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: [DeepSeek's Deepseek Coder 6.7B Instruct](https://huggingface.co/deepseek-ai/deepseek-coder-6.7b-instruct).
95
+ <!-- licensing end -->
96
+ <!-- README_AWQ.md-provided-files start -->
97
+ ## Provided files, and AWQ parameters
98
+
99
+ For my first release of AWQ models, I am releasing 128g models only. I will consider adding 32g as well if there is interest, and once I have done perplexity and evaluation comparisons, but at this time 32g models are still not fully tested with AutoAWQ and vLLM.
100
+
101
+ Models are released as sharded safetensors files.
102
+
103
+ | Branch | Bits | GS | AWQ Dataset | Seq Len | Size |
104
+ | ------ | ---- | -- | ----------- | ------- | ---- |
105
+ | [main](https://huggingface.co/TheBloke/deepseek-coder-6.7B-instruct-AWQ/tree/main) | 4 | 128 | [Evol Instruct Code](https://huggingface.co/datasets/nickrosh/Evol-Instruct-Code-80k-v1) | 16384 | 3.89 GB
106
+
107
+ <!-- README_AWQ.md-provided-files end -->
108
+
109
+ <!-- README_AWQ.md-text-generation-webui start -->
110
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
111
+
112
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
113
+
114
+ 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.
115
+
116
+ 1. Click the **Model tab**.
117
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/deepseek-coder-6.7B-instruct-AWQ`.
118
+ 3. Click **Download**.
119
+ 4. The model will start downloading. Once it's finished it will say "Done".
120
+ 5. In the top left, click the refresh icon next to **Model**.
121
+ 6. In the **Model** dropdown, choose the model you just downloaded: `deepseek-coder-6.7B-instruct-AWQ`
122
+ 7. Select **Loader: AutoAWQ**.
123
+ 8. Click Load, and the model will load and is now ready for use.
124
+ 9. 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.
125
+ 10. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
126
+ <!-- README_AWQ.md-text-generation-webui end -->
127
+
128
+ <!-- README_AWQ.md-use-from-vllm start -->
129
+ ## Multi-user inference server: vLLM
130
+
131
+ Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/).
132
+
133
+ - Please ensure you are using vLLM version 0.2 or later.
134
+ - When using vLLM as a server, pass the `--quantization awq` parameter.
135
+
136
+ For example:
137
+
138
+ ```shell
139
+ python3 python -m vllm.entrypoints.api_server --model TheBloke/deepseek-coder-6.7B-instruct-AWQ --quantization awq
140
+ ```
141
+
142
+ - When using vLLM from Python code, again set `quantization=awq`.
143
+
144
+ For example:
145
+
146
+ ```python
147
+ from vllm import LLM, SamplingParams
148
+
149
+ prompts = [
150
+ "Tell me about AI",
151
+ "Write a story about llamas",
152
+ "What is 291 - 150?",
153
+ "How much wood would a woodchuck chuck if a woodchuck could chuck wood?",
154
+ ]
155
+ prompt_template=f'''You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.
156
+ ### Instruction:
157
+ {prompt}
158
+ ### Response:
159
+ '''
160
+
161
+ prompts = [prompt_template.format(prompt=prompt) for prompt in prompts]
162
+
163
+ sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
164
+
165
+ llm = LLM(model="TheBloke/deepseek-coder-6.7B-instruct-AWQ", quantization="awq", dtype="auto")
166
+
167
+ outputs = llm.generate(prompts, sampling_params)
168
+
169
+ # Print the outputs.
170
+ for output in outputs:
171
+ prompt = output.prompt
172
+ generated_text = output.outputs[0].text
173
+ print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
174
+ ```
175
+ <!-- README_AWQ.md-use-from-vllm start -->
176
+
177
+ <!-- README_AWQ.md-use-from-tgi start -->
178
+ ## Multi-user inference server: Hugging Face Text Generation Inference (TGI)
179
+
180
+ Use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
181
+
182
+ Example Docker parameters:
183
+
184
+ ```shell
185
+ --model-id TheBloke/deepseek-coder-6.7B-instruct-AWQ --port 3000 --quantize awq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
186
+ ```
187
+
188
+ Example Python code for interfacing with TGI (requires [huggingface-hub](https://github.com/huggingface/huggingface_hub) 0.17.0 or later):
189
+
190
+ ```shell
191
+ pip3 install huggingface-hub
192
+ ```
193
+
194
+ ```python
195
+ from huggingface_hub import InferenceClient
196
+
197
+ endpoint_url = "https://your-endpoint-url-here"
198
+
199
+ prompt = "Tell me about AI"
200
+ prompt_template=f'''You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.
201
+ ### Instruction:
202
+ {prompt}
203
+ ### Response:
204
+ '''
205
+
206
+ client = InferenceClient(endpoint_url)
207
+ response = client.text_generation(prompt,
208
+ max_new_tokens=128,
209
+ do_sample=True,
210
+ temperature=0.7,
211
+ top_p=0.95,
212
+ top_k=40,
213
+ repetition_penalty=1.1)
214
+
215
+ print(f"Model output: ", response)
216
+ ```
217
+ <!-- README_AWQ.md-use-from-tgi end -->
218
+
219
+ <!-- README_AWQ.md-use-from-python start -->
220
+ ## Inference from Python code using AutoAWQ
221
+
222
+ ### Install the AutoAWQ package
223
+
224
+ Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.1.1 or later.
225
+
226
+ ```shell
227
+ pip3 install autoawq
228
+ ```
229
+
230
+ If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead:
231
+
232
+ ```shell
233
+ pip3 uninstall -y autoawq
234
+ git clone https://github.com/casper-hansen/AutoAWQ
235
+ cd AutoAWQ
236
+ pip3 install .
237
+ ```
238
+
239
+ ### AutoAWQ example code
240
+
241
+ ```python
242
+ from awq import AutoAWQForCausalLM
243
+ from transformers import AutoTokenizer
244
+
245
+ model_name_or_path = "TheBloke/deepseek-coder-6.7B-instruct-AWQ"
246
+
247
+ # Load tokenizer
248
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=False)
249
+ # Load model
250
+ model = AutoAWQForCausalLM.from_quantized(model_name_or_path, fuse_layers=True,
251
+ trust_remote_code=False, safetensors=True)
252
+
253
+ prompt = "Tell me about AI"
254
+ prompt_template=f'''You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.
255
+ ### Instruction:
256
+ {prompt}
257
+ ### Response:
258
+ '''
259
+
260
+ print("*** Running model.generate:")
261
+
262
+ token_input = tokenizer(
263
+ prompt_template,
264
+ return_tensors='pt'
265
+ ).input_ids.cuda()
266
+
267
+ # Generate output
268
+ generation_output = model.generate(
269
+ token_input,
270
+ do_sample=True,
271
+ temperature=0.7,
272
+ top_p=0.95,
273
+ top_k=40,
274
+ max_new_tokens=512
275
+ )
276
+
277
+ # Get the tokens from the output, decode them, print them
278
+ token_output = generation_output[0]
279
+ text_output = tokenizer.decode(token_output)
280
+ print("LLM output: ", text_output)
281
+
282
+ """
283
+ # Inference should be possible with transformers pipeline as well in future
284
+ # But currently this is not yet supported by AutoAWQ (correct as of September 25th 2023)
285
+ from transformers import pipeline
286
+
287
+ print("*** Pipeline:")
288
+ pipe = pipeline(
289
+ "text-generation",
290
+ model=model,
291
+ tokenizer=tokenizer,
292
+ max_new_tokens=512,
293
+ do_sample=True,
294
+ temperature=0.7,
295
+ top_p=0.95,
296
+ top_k=40,
297
+ repetition_penalty=1.1
298
+ )
299
+
300
+ print(pipe(prompt_template)[0]['generated_text'])
301
+ """
302
+ ```
303
+ <!-- README_AWQ.md-use-from-python end -->
304
+
305
+ <!-- README_AWQ.md-compatibility start -->
306
+ ## Compatibility
307
+
308
+ The files provided are tested to work with:
309
+
310
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui) using `Loader: AutoAWQ`.
311
+ - [vLLM](https://github.com/vllm-project/vllm) version 0.2.0 and later.
312
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) version 1.1.0 and later.
313
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) version 0.1.1 and later.
314
+
315
+ <!-- README_AWQ.md-compatibility end -->
316
+
317
+ <!-- footer start -->
318
+ <!-- 200823 -->
319
+ ## Discord
320
+
321
+ For further support, and discussions on these models and AI in general, join us at:
322
+
323
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
324
+
325
+ ## Thanks, and how to contribute
326
+
327
+ Thanks to the [chirper.ai](https://chirper.ai) team!
328
+
329
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
330
+
331
+ 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.
332
+
333
+ 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.
334
+
335
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
336
+
337
+ * Patreon: https://patreon.com/TheBlokeAI
338
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
339
+
340
+ **Special thanks to**: Aemon Algiz.
341
+
342
+ **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
343
+
344
+
345
+ Thank you to all my generous patrons and donaters!
346
+
347
+ And thank you again to a16z for their generous grant.
348
+
349
+ <!-- footer end -->
350
+
351
+ # Original model card: DeepSeek's Deepseek Coder 6.7B Instruct
352
+
353
+
354
+ <p align="center">
355
+ <img width="1000px" alt="DeepSeek Coder" src="https://github.com/deepseek-ai/DeepSeek-Coder/blob/main/pictures/logo.png?raw=true">
356
+ </p>
357
+ <p align="center"><a href="https://www.deepseek.com/">[🏠Homepage]</a> | <a href="https://coder.deepseek.com/">[🤖 Chat with DeepSeek Coder]</a> | <a href="https://discord.gg/Tc7c45Zzu5">[Discord]</a> | <a href="https://github.com/guoday/assert/blob/main/QR.png?raw=true">[Wechat(微信)]</a> </p>
358
+ <hr>
359
+
360
+
361
+
362
+
363
+ ### 1. Introduction of Deepseek Coder
364
+
365
+ Deepseek Coder comprises a series of code language models trained on both 87% code and 13% natural language in English and Chinese, with each model pre-trained on 2T tokens. We provide various sizes of the code model, ranging from 1B to 33B versions. Each model is pre-trained on project-level code corpus by employing a window size of 16K and a extra fill-in-the-blank task, to support project-level code completion and infilling. For coding capabilities, Deepseek Coder achieves state-of-the-art performance among open-source code models on multiple programming languages and various benchmarks.
366
+
367
+ - **Massive Training Data**: Trained on 2T tokens, including 87% code and 13% linguistic data in both English and Chinese languages.
368
+
369
+ - **Highly Flexible & Scalable**: Offered in model sizes of 1.3B, 5.7B, 6.7B, and 33B, enabling users to choose the setup most suitable for their requirements.
370
+
371
+ - **Superior Model Performance**: State-of-the-art performance among publicly available code models on HumanEval, MultiPL-E, MBPP, DS-1000, and APPS benchmarks.
372
+
373
+ - **Advanced Code Completion Capabilities**: A window size of 16K and a fill-in-the-blank task, supporting project-level code completion and infilling tasks.
374
+
375
+
376
+
377
+ ### 2. Model Summary
378
+ deepseek-coder-6.7b-instruct is a 6.7B parameter model initialized from deepseek-coder-6.7b-base and fine-tuned on 2B tokens of instruction data.
379
+ - **Home Page:** [DeepSeek](https://deepseek.com/)
380
+ - **Repository:** [deepseek-ai/deepseek-coder](https://github.com/deepseek-ai/deepseek-coder)
381
+ - **Chat With DeepSeek Coder:** [DeepSeek-Coder](https://coder.deepseek.com/)
382
+
383
+
384
+ ### 3. How to Use
385
+ Here give some examples of how to use our model.
386
+ #### Chat Model Inference
387
+ ```python
388
+ from transformers import AutoTokenizer, AutoModelForCausalLM
389
+ tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/deepseek-coder-6.7b-instruct", trust_remote_code=True)
390
+ model = AutoModelForCausalLM.from_pretrained("deepseek-ai/deepseek-coder-6.7b-instruct", trust_remote_code=True).cuda()
391
+ messages=[
392
+ { 'role': 'user', 'content': "write a quick sort algorithm in python."}
393
+ ]
394
+ inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
395
+ # 32021 is the id of <|EOT|> token
396
+ outputs = model.generate(inputs, max_new_tokens=512, do_sample=False, top_k=50, top_p=0.95, num_return_sequences=1, eos_token_id=32021)
397
+ print(tokenizer.decode(outputs[0][len(inputs[0]):], skip_special_tokens=True))
398
+ ```
399
+
400
+ ### 4. License
401
+ This code repository is licensed under the MIT License. The use of DeepSeek Coder models is subject to the Model License. DeepSeek Coder supports commercial use.
402
+
403
+ See the [LICENSE-MODEL](https://github.com/deepseek-ai/deepseek-coder/blob/main/LICENSE-MODEL) for more details.
404
+
405
+ ### 5. Contact
406
+
407
+ If you have any questions, please raise an issue or contact us at [agi_code@deepseek.com](mailto:agi_code@deepseek.com).
408
+