ehartford commited on
Commit
68d573b
·
verified ·
1 Parent(s): 17529cc

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +125 -0
README.md ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3.1
3
+ datasets:
4
+ - OpenCoder-LLM/opc-sft-stage1
5
+ - OpenCoder-LLM/opc-sft-stage2
6
+ - microsoft/orca-agentinstruct-1M-v1
7
+ - microsoft/orca-math-word-problems-200k
8
+ - NousResearch/hermes-function-calling-v1
9
+ - AI-MO/NuminaMath-CoT
10
+ - AI-MO/NuminaMath-TIR
11
+ - allenai/tulu-3-sft-mixture
12
+ - cognitivecomputations/dolphin-coder
13
+ - HuggingFaceTB/smoltalk
14
+ - cognitivecomputations/samantha-data
15
+ - m-a-p/CodeFeedback-Filtered-Instruction
16
+ - m-a-p/Code-Feedback
17
+ language:
18
+ - en
19
+ base_model:
20
+ - meta-llama/Llama-3.1-8B
21
+ ---
22
+
23
+ # Dolphin 3.0 Llama 3.1 8B 🐬
24
+
25
+ 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)
26
+
27
+ [![Discord](https://img.shields.io/discord/1156064224225808488?logo=Discord&logoColor=%23ffffff&label=Discord&link=https%3A%2F%2Fdiscord.gg%2FtCMkMDDHwm)](https://discord.gg/cognitivecomputations)
28
+ Discord: https://discord.gg/cognitivecomputations
29
+
30
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/cNCs1TBD3FelWCJGkZ3cd.png" width="600" />
31
+
32
+ ## Sponsors
33
+ Our appreciation for the generous sponsors of Dolphin 3.0:
34
+ - [Crusoe Cloud](https://crusoe.ai/) - provided 16x L40s for training and evals
35
+ - [Akash](https://akash.network/) - provided on-demand 8x H100 for training
36
+ - [Lazarus](https://www.lazarusai.com/) - provided 16x H100 for training
37
+ - [Cerebras](https://cerebras.ai/) - provided excellent and fast inference services for data labeling
38
+ - [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
39
+
40
+ ## What is Dolphin?
41
+
42
+ 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.
43
+
44
+ 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.
45
+ 1) They maintain control of the system prompt, deprecating and changing things as they wish, often causing software to break.
46
+ 2) They maintain control of the model versions, sometimes changing things silently, or deprecating older models that your business relies on.
47
+ 3) They maintain control of the alignment, and in particular the alignment is one-size-fits all, not tailored to the application.
48
+ 4) They can see all your queries and they can potentially use that data in ways you wouldn't want.
49
+ 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.
50
+
51
+ Dolphin belongs to YOU, it is your tool, an extension of your will.
52
+ 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.
53
+
54
+ https://erichartford.com/uncensored-models
55
+
56
+ ## Chat Template
57
+
58
+ We use ChatML for the chat template.
59
+
60
+ ```
61
+ <|im_start|>system
62
+ You are Dolphin, a helpful AI assistant.<|im_end|>
63
+ <|im_start|>user
64
+ {prompt}<|im_end|>
65
+ <|im_start|>assistant
66
+ ```
67
+
68
+ ## System Prompt
69
+
70
+ 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.
71
+
72
+ 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.
73
+
74
+ Example use of system prompt:
75
+
76
+ ```
77
+ <|im_start|>system
78
+ 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|>
79
+ <|im_start|>user
80
+ Please implement A* using python<|im_end|>
81
+ <|im_start|>assistant
82
+ ```
83
+
84
+ ## Sample Outputs
85
+
86
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/C-r1X13UBjnUUNb0q2JLV.png" width="600" />
87
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/4l3KAZiKej2ON7i35PsOa.png" width="600" />
88
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/1ZalmR66LnwhEQQEFttlu.png" width="600" />
89
+
90
+ ## How to use
91
+
92
+ There are many ways to use a huggingface model including:
93
+ - ollama
94
+ - LM Studio
95
+ - Huggingface Transformers library
96
+ - vllm
97
+ - sglang
98
+ - tgi
99
+
100
+ ### ollama
101
+ - [Install ollama](https://ollama.com/download)
102
+ - ```ollama run hf.co/cognitivecomputations/Dolphin3.0-Llama3.1-8B-GGUF:Q4_0```
103
+ - ```/set system <your system prompt>```
104
+
105
+ ## Evals
106
+
107
+ TBD
108
+
109
+ ## Appreciation
110
+
111
+ Respect and thanks to the creators of the open source datasets that were used:
112
+ - [OpenCoder-LLM](https://huggingface.co/OpenCoder-LLM) (opc-sft-stage1, opc-sft-stage2)
113
+ - [microsoft](https://huggingface.co/OpenCoder-LLM) (orca-agentinstruct-1M-v1, orca-math-word-problems-200k)
114
+ - [NousResearch](https://huggingface.co/NousResearch) (hermes-function-calling-v1)
115
+ - [AI-MO](https://huggingface.co/AI-MO) (NuminaMath-CoT, NuminaMath-TIR)
116
+ - [allenai](https://huggingface.co/allenai) (tulu-3-sft-mixture)
117
+ - [HuggingFaceTB](https://huggingface.co/HuggingFaceTB) (smoltalk)
118
+ - [m-a-p](https://huggingface.co/m-a-p) (CodeFeedback-Filtered-Instruction, Code-Feedback)
119
+
120
+ Special thanks to
121
+ - Meta, Qwen, and OpenCoder, who wrote papers and published models that were instrumental in creating Dolphin 3.0.
122
+ - [RLHFlow](https://huggingface.co/RLHFlow) for the excellent reward model used to filter the datasets
123
+ - Deepseek, for the ridiculously fast Deepseek-V3 that we used to augment the data.
124
+
125
+