luofuli commited on
Commit
0d30833
1 Parent(s): c6ccb0e

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +67 -0
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: deepseek
4
+ license_link: LICENSE
5
+ ---
6
+
7
+ <p align="center">
8
+ <img width="1000px" alt="DeepSeek Chat" src="https://github.com/deepseek-ai/DeepSeek-Chat/blob/main/pictures/logo.png?raw=true">
9
+ </p>
10
+ <p align="center"><a href="https://www.deepseek.com/">[🏠Homepage]</a> | <a href="https://chat.deepseek.com/">[🤖 Chat with DeepSeek LLM]</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
+
15
+
16
+ ### 1. Introduction of Deepseek LLM
17
+
18
+ Introducing DeepSeek LLM, an advanced language model comprising 67 billion parameters. It has been trained from scratch on a vast dataset of 2 trillion tokens in both English and Chinese. In order to foster research, we have made DeepSeek LLM 7B/67B Base and DeepSeek LLM 7B/67B Chat open source for the research community.
19
+
20
+ <div align="center">
21
+ <img src="images/llm_radar.png" alt="result" width="70%">
22
+ </div>
23
+
24
+ - **Superior General Capabilities:** DeepSeek LLM 67B Base outperforms Llama2 70B Base in areas such as reasoning, coding, math, and Chinese comprehension.
25
+
26
+ - **Proficient in Coding and Math:** DeepSeek LLM 67B Chat exhibits outstanding performance in coding (HumanEval Pass@1: 73.78) and mathematics (GSM8K 0-shot: 84.1, Math 4-shot: 32.6). It also demonstrates remarkable generalization abilities, as evidenced by its exceptional score of 65 on the Hungarian National High School Exam.
27
+
28
+ - **Mastery in Chinese Language:** Based on our evaluation, DeepSeek LLM 67B Chat surpasses GPT-3.5 in Chinese.
29
+
30
+
31
+ ### 2. Model Summary
32
+ deepseek-llm-7b-base is a 7B parameter model with Multi-Head Attention trained on 2 trillion tokens from scratch.
33
+ - **Home Page:** [DeepSeek](https://deepseek.com/)
34
+ - **Repository:** [deepseek-ai/deepseek-coder](https://github.com/deepseek-ai/deepseek-coder)
35
+ - **Chat With DeepSeek Coder:** [DeepSeek-Coder](https://coder.deepseek.com/)
36
+
37
+
38
+ ### 3. How to Use
39
+ Here give some examples of how to use our model.
40
+ #### Chat Model Inference
41
+ ```python
42
+ import torch
43
+ from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
44
+
45
+ model_name = "deepseek-ai/deepseek-llm-7b-base"
46
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
47
+ model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
48
+ model.generation_config = GenerationConfig.from_pretrained(model_name)
49
+ model.generation_config.pad_token_id = model.generation_config.eos_token_id
50
+
51
+ text = "An attention function can be described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is"
52
+ inputs = tokenizer(text, return_tensors="pt")
53
+ outputs = model.generate(**inputs.to(model.device), max_new_tokens=100)
54
+
55
+ result = tokenizer.decode(outputs[0], skip_special_tokens=True)
56
+ print(result)
57
+ ```
58
+
59
+ ### 4. License
60
+ This code repository is licensed under the MIT License. The use of DeepSeek LLM models is subject to the Model License. DeepSeek Coder supports commercial use.
61
+
62
+ See the [LICENSE-MODEL](https://github.com/deepseek-ai/deepseek-LLM/blob/main/LICENSE-MODEL) for more details.
63
+
64
+ ### 5. Contact
65
+
66
+ If you have any questions, please raise an issue or contact us at [[email protected]](mailto:[email protected]).
67
+