Update README.md
Browse files
README.md
CHANGED
@@ -1,5 +1,43 @@
|
|
1 |
---
|
2 |
license: other
|
3 |
-
license_name: deepseek
|
4 |
license_link: LICENSE
|
5 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: other
|
3 |
+
license_name: deepseek-license
|
4 |
license_link: LICENSE
|
5 |
---
|
6 |
+
|
7 |
+
<p align="center">
|
8 |
+
<img width="1000px" alt="DeepSeek Coder" src="https://github.com/deepseek-ai/DeepSeek-Coder/blob/main/pictures/logo.png?raw=true">
|
9 |
+
</p>
|
10 |
+
<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>
|
11 |
+
<hr>
|
12 |
+
|
13 |
+
|
14 |
+
### 1. Introduction of Deepseek-Coder-7B-Base-v1.5
|
15 |
+
|
16 |
+
Deepseek-Coder-7B-Base-v1.5 is continue pre-trained from Deepseek-LLM 7B on 2T tokens by employing a window size of 4K and next token prediction objective.
|
17 |
+
|
18 |
+
- **Home Page:** [DeepSeek](https://deepseek.com/)
|
19 |
+
- **Repository:** [deepseek-ai/deepseek-coder](https://github.com/deepseek-ai/deepseek-coder)
|
20 |
+
- **Chat With DeepSeek Coder:** [DeepSeek-Coder](https://coder.deepseek.com/)
|
21 |
+
|
22 |
+
|
23 |
+
### 2. How to Use
|
24 |
+
Here give an example of how to use our model.
|
25 |
+
```python
|
26 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
27 |
+
import torch
|
28 |
+
tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/deepseek-coder-6.7b-base", trust_remote_code=True)
|
29 |
+
model = AutoModelForCausalLM.from_pretrained("deepseek-ai/deepseek-coder-6.7b-base", trust_remote_code=True).cuda()
|
30 |
+
input_text = "#write a quick sort algorithm"
|
31 |
+
inputs = tokenizer(input_text, return_tensors="pt").cuda()
|
32 |
+
outputs = model.generate(**inputs, max_length=128)
|
33 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
34 |
+
```
|
35 |
+
|
36 |
+
### 3. License
|
37 |
+
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.
|
38 |
+
|
39 |
+
See the [LICENSE-MODEL](https://github.com/deepseek-ai/deepseek-coder/blob/main/LICENSE-MODEL) for more details.
|
40 |
+
|
41 |
+
### 4. Contact
|
42 |
+
|
43 |
+
If you have any questions, please raise an issue or contact us at [[email protected]](mailto:[email protected]).
|