NeoChen1024 commited on
Commit
c4a6538
·
verified ·
1 Parent(s): 64f4f4d

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +129 -0
README.md ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3.1
3
+ tags:
4
+ - int8
5
+ - w8a8
6
+ datasets:
7
+ - OpenCoder-LLM/opc-sft-stage1
8
+ - OpenCoder-LLM/opc-sft-stage2
9
+ - microsoft/orca-agentinstruct-1M-v1
10
+ - microsoft/orca-math-word-problems-200k
11
+ - NousResearch/hermes-function-calling-v1
12
+ - AI-MO/NuminaMath-CoT
13
+ - AI-MO/NuminaMath-TIR
14
+ - allenai/tulu-3-sft-mixture
15
+ - cognitivecomputations/dolphin-coder
16
+ - HuggingFaceTB/smoltalk
17
+ - cognitivecomputations/samantha-data
18
+ - m-a-p/CodeFeedback-Filtered-Instruction
19
+ - m-a-p/Code-Feedback
20
+ language:
21
+ - en
22
+ base_model:
23
+ - cognitivecomputations/Dolphin3.0-Llama3.1-8B
24
+ ---
25
+
26
+ # W8A8 Quant of Dolphin 3.0 Llama 3.1 8B 🐬
27
+ Quantization script: <https://github.com/NeoChen1024/scripts/blob/master/llm-compressor-quantize.py>
28
+
29
+ Curated and trained by [Eric Hartford](https://huggingface.co/ehartford), [Ben Gitter](https://huggingface.co/bigstorm), [BlouseJury](https://huggingface.co/BlouseJury) and [Cognitive Computations](https://huggingface.co/cognitivecomputations)
30
+
31
+ [![Discord](https://img.shields.io/discord/1156064224225808488?logo=Discord&logoColor=%23ffffff&label=Discord&link=https%3A%2F%2Fdiscord.gg%2FtCMkMDDHwm)](https://discord.gg/cognitivecomputations)
32
+ Discord: https://discord.gg/cognitivecomputations
33
+
34
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/cNCs1TBD3FelWCJGkZ3cd.png" width="600" />
35
+
36
+ ## Sponsors
37
+ Our appreciation for the generous sponsors of Dolphin 3.0:
38
+ - [Crusoe Cloud](https://crusoe.ai/) - provided 16x L40s for training and evals
39
+ - [Akash](https://akash.network/) - provided on-demand 8x H100 for training
40
+ - [Lazarus](https://www.lazarusai.com/) - provided 16x H100 for training
41
+ - [Cerebras](https://cerebras.ai/) - provided excellent and fast inference services for data labeling
42
+ - [Andreessen Horowitz](https://a16z.com/) - provided a [grant](https://a16z.com/supporting-the-open-source-ai-community/) that make Dolphin 1.0 possible and enabled me to bootstrap my homelab
43
+
44
+ ## What is Dolphin?
45
+
46
+ Dolphin 3.0 is the next generation of the Dolphin series of instruct-tuned models. Designed to be the ultimate general purpose local model, enabling coding, math, agentic, function calling, and general use cases.
47
+
48
+ Dolphin aims to be a general purpose model, similar to the models behind ChatGPT, Claude, Gemini. But these models present problems for businesses seeking to include AI in their products.
49
+ 1) They maintain control of the system prompt, deprecating and changing things as they wish, often causing software to break.
50
+ 2) They maintain control of the model versions, sometimes changing things silently, or deprecating older models that your business relies on.
51
+ 3) They maintain control of the alignment, and in particular the alignment is one-size-fits all, not tailored to the application.
52
+ 4) They can see all your queries and they can potentially use that data in ways you wouldn't want.
53
+ Dolphin, in contrast, is steerable and gives control to the system owner. You set the system prompt. You decide the alignment. You have control of your data. Dolphin does not impose its ethics or guidelines on you. You are the one who decides the guidelines.
54
+
55
+ Dolphin belongs to YOU, it is your tool, an extension of your will.
56
+ Just as you are personally responsible for what you do with a knife, gun, fire, car, or the internet, you are the creator and originator of any content you generate with Dolphin.
57
+
58
+ https://erichartford.com/uncensored-models
59
+
60
+ ## Chat Template
61
+
62
+ We use ChatML for the chat template.
63
+
64
+ ```
65
+ <|im_start|>system
66
+ You are Dolphin, a helpful AI assistant.<|im_end|>
67
+ <|im_start|>user
68
+ {prompt}<|im_end|>
69
+ <|im_start|>assistant
70
+ ```
71
+
72
+ ## System Prompt
73
+
74
+ In Dolphin, the system prompt is what you use to set the tone and alignment of the responses. You can set a character, a mood, rules for its behavior, and it will try its best to follow them.
75
+
76
+ Make sure to set the system prompt in order to set the tone and guidelines for the responses - Otherwise, it will act in a default way that might not be what you want.
77
+
78
+ Example use of system prompt:
79
+
80
+ ```
81
+ <|im_start|>system
82
+ You are Dolphin, a golang coding assistant. you only code in golang. If the user requests any other programming language, return the solution in golang instead.<|im_end|>
83
+ <|im_start|>user
84
+ Please implement A* using python<|im_end|>
85
+ <|im_start|>assistant
86
+ ```
87
+
88
+ ## Sample Outputs
89
+
90
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/C-r1X13UBjnUUNb0q2JLV.png" width="600" />
91
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/4l3KAZiKej2ON7i35PsOa.png" width="600" />
92
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/1ZalmR66LnwhEQQEFttlu.png" width="600" />
93
+
94
+ ## How to use
95
+
96
+ There are many ways to use a huggingface model including:
97
+ - ollama
98
+ - LM Studio
99
+ - Huggingface Transformers library
100
+ - vllm
101
+ - sglang
102
+ - tgi
103
+
104
+ ### ollama
105
+ - [Install ollama](https://ollama.com/download)
106
+ - ```ollama run hf.co/cognitivecomputations/Dolphin3.0-Llama3.1-8B-GGUF:Q4_0```
107
+ - ```/set system <your system prompt>```
108
+
109
+ ## Evals
110
+
111
+ TBD
112
+
113
+ ## Appreciation
114
+
115
+ Respect and thanks to the creators of the open source datasets that were used:
116
+ - [OpenCoder-LLM](https://huggingface.co/OpenCoder-LLM) (opc-sft-stage1, opc-sft-stage2)
117
+ - [microsoft](https://huggingface.co/OpenCoder-LLM) (orca-agentinstruct-1M-v1, orca-math-word-problems-200k)
118
+ - [NousResearch](https://huggingface.co/NousResearch) (hermes-function-calling-v1)
119
+ - [AI-MO](https://huggingface.co/AI-MO) (NuminaMath-CoT, NuminaMath-TIR)
120
+ - [allenai](https://huggingface.co/allenai) (tulu-3-sft-mixture)
121
+ - [HuggingFaceTB](https://huggingface.co/HuggingFaceTB) (smoltalk)
122
+ - [m-a-p](https://huggingface.co/m-a-p) (CodeFeedback-Filtered-Instruction, Code-Feedback)
123
+
124
+ Special thanks to
125
+ - Meta, Qwen, and OpenCoder, who wrote papers and published models that were instrumental in creating Dolphin 3.0.
126
+ - [RLHFlow](https://huggingface.co/RLHFlow) for the excellent reward model used to filter the datasets
127
+ - Deepseek, for the ridiculously fast Deepseek-V3 that we used to augment the data.
128
+
129
+