GGUF
aashish1904 commited on
Commit
fbfd62e
·
verified ·
1 Parent(s): 3674c89

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +70 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ license: other
5
+ license_name: deepseek
6
+ license_link: LICENSE
7
+
8
+ ---
9
+
10
+ [![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
11
+
12
+
13
+ # QuantFactory/deepseek-llm-7b-base-GGUF
14
+ This is quantized version of [deepseek-ai/deepseek-llm-7b-base](https://huggingface.co/deepseek-ai/deepseek-llm-7b-base) created using llama.cpp
15
+
16
+ # Original Model Card
17
+
18
+
19
+ <p align="center">
20
+ <img width="500px" alt="DeepSeek Chat" src="https://github.com/deepseek-ai/DeepSeek-LLM/blob/main/images/logo.png?raw=true">
21
+ </p>
22
+ <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/deepseek-ai/DeepSeek-LLM/blob/main/images/qr.jpeg">[Wechat(微信)]</a> </p>
23
+ <hr>
24
+
25
+
26
+
27
+
28
+ ### 1. Introduction of Deepseek LLM
29
+
30
+ Introducing DeepSeek LLM, an advanced language model comprising 7 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.
31
+
32
+
33
+ ### 2. Model Summary
34
+ `deepseek-llm-7b-base` is a 7B parameter model with Multi-Head Attention trained on 2 trillion tokens from scratch.
35
+ - **Home Page:** [DeepSeek](https://deepseek.com/)
36
+ - **Repository:** [deepseek-ai/deepseek-LLM](https://github.com/deepseek-ai/deepseek-LLM)
37
+ - **Chat With DeepSeek LLM:** [DeepSeek-LLM](https://chat.deepseek.com/)
38
+
39
+
40
+ ### 3. How to Use
41
+ Here give some examples of how to use our model.
42
+ #### Text Completion
43
+ ```python
44
+ import torch
45
+ from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
46
+
47
+ model_name = "deepseek-ai/deepseek-llm-7b-base"
48
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
49
+ model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
50
+ model.generation_config = GenerationConfig.from_pretrained(model_name)
51
+ model.generation_config.pad_token_id = model.generation_config.eos_token_id
52
+
53
+ 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"
54
+ inputs = tokenizer(text, return_tensors="pt")
55
+ outputs = model.generate(**inputs.to(model.device), max_new_tokens=100)
56
+
57
+ result = tokenizer.decode(outputs[0], skip_special_tokens=True)
58
+ print(result)
59
+ ```
60
+
61
+ ### 4. License
62
+ This code repository is licensed under the MIT License. The use of DeepSeek LLM models is subject to the Model License. DeepSeek LLM supports commercial use.
63
+
64
+ See the [LICENSE-MODEL](https://github.com/deepseek-ai/deepseek-LLM/blob/main/LICENSE-MODEL) for more details.
65
+
66
+ ### 5. Contact
67
+
68
+ If you have any questions, please raise an issue or contact us at [[email protected]](mailto:[email protected]).
69
+
70
+