tinybiggames commited on
Commit
4a0f04b
·
verified ·
1 Parent(s): 5a04ac8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +90 -27
README.md CHANGED
@@ -26,42 +26,105 @@ tags:
26
  This model was converted to GGUF format from [`cognitivecomputations/Dolphin3.0-Llama3.1-8B`](https://huggingface.co/cognitivecomputations/Dolphin3.0-Llama3.1-8B) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
27
  Refer to the [original model card](https://huggingface.co/cognitivecomputations/Dolphin3.0-Llama3.1-8B) for more details on the model.
28
 
29
- ## Use with llama.cpp
30
- Install llama.cpp through brew (works on Mac and Linux)
31
 
32
- ```bash
33
- brew install llama.cpp
34
 
35
- ```
36
- Invoke the llama.cpp server or the CLI.
37
 
38
- ### CLI:
39
- ```bash
40
- llama-cli --hf-repo tinybiggames/Dolphin3.0-Llama3.1-8B-Q4_K_M-GGUF --hf-file dolphin3.0-llama3.1-8b-q4_k_m.gguf -p "The meaning to life and the universe is"
41
- ```
42
 
43
- ### Server:
44
- ```bash
45
- llama-server --hf-repo tinybiggames/Dolphin3.0-Llama3.1-8B-Q4_K_M-GGUF --hf-file dolphin3.0-llama3.1-8b-q4_k_m.gguf -c 2048
46
- ```
 
 
 
47
 
48
- Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
49
 
50
- Step 1: Clone llama.cpp from GitHub.
51
- ```
52
- git clone https://github.com/ggerganov/llama.cpp
53
- ```
54
 
55
- Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
56
- ```
57
- cd llama.cpp && LLAMA_CURL=1 make
58
- ```
 
 
 
 
 
 
 
 
 
 
 
59
 
60
- Step 3: Run inference through the main binary.
61
  ```
62
- ./llama-cli --hf-repo tinybiggames/Dolphin3.0-Llama3.1-8B-Q4_K_M-GGUF --hf-file dolphin3.0-llama3.1-8b-q4_k_m.gguf -p "The meaning to life and the universe is"
 
 
 
 
63
  ```
64
- or
 
 
 
 
 
 
 
 
65
  ```
66
- ./llama-server --hf-repo tinybiggames/Dolphin3.0-Llama3.1-8B-Q4_K_M-GGUF --hf-file dolphin3.0-llama3.1-8b-q4_k_m.gguf -c 2048
 
 
 
 
67
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  This model was converted to GGUF format from [`cognitivecomputations/Dolphin3.0-Llama3.1-8B`](https://huggingface.co/cognitivecomputations/Dolphin3.0-Llama3.1-8B) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
27
  Refer to the [original model card](https://huggingface.co/cognitivecomputations/Dolphin3.0-Llama3.1-8B) for more details on the model.
28
 
29
+ # Dolphin 3.0 Llama 3.1 8B 🐬
30
+ Part of the [Dolphin 3.0 Collection](https://huggingface.co/collections/cognitivecomputations/dolphin-30-677ab47f73d7ff66743979a3)
31
 
32
+ 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)
 
33
 
34
+ [![Discord](https://img.shields.io/discord/1156064224225808488?logo=Discord&logoColor=%23ffffff&label=Discord&link=https%3A%2F%2Fdiscord.gg%2FtCMkMDDHwm)](https://discord.gg/cognitivecomputations)
35
+ Discord: https://discord.gg/cognitivecomputations
36
 
37
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/cNCs1TBD3FelWCJGkZ3cd.png" width="600" />
 
 
 
38
 
39
+ ## Sponsors
40
+ Our appreciation for the generous sponsors of Dolphin 3.0:
41
+ - [Crusoe Cloud](https://crusoe.ai/) - provided 16x L40s for training and evals
42
+ - [Akash](https://akash.network/) - provided on-demand 8x H100 for training
43
+ - [Lazarus](https://www.lazarusai.com/) - provided 16x H100 for training
44
+ - [Cerebras](https://cerebras.ai/) - provided excellent and fast inference services for data labeling
45
+ - [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
46
 
47
+ ## What is Dolphin?
48
 
49
+ 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.
 
 
 
50
 
51
+ 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.
52
+ 1) They maintain control of the system prompt, deprecating and changing things as they wish, often causing software to break.
53
+ 2) They maintain control of the model versions, sometimes changing things silently, or deprecating older models that your business relies on.
54
+ 3) They maintain control of the alignment, and in particular the alignment is one-size-fits all, not tailored to the application.
55
+ 4) They can see all your queries and they can potentially use that data in ways you wouldn't want.
56
+ 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.
57
+
58
+ Dolphin belongs to YOU, it is your tool, an extension of your will.
59
+ 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.
60
+
61
+ https://erichartford.com/uncensored-models
62
+
63
+ ## Chat Template
64
+
65
+ We use ChatML for the chat template.
66
 
 
67
  ```
68
+ <|im_start|>system
69
+ You are Dolphin, a helpful AI assistant.<|im_end|>
70
+ <|im_start|>user
71
+ {prompt}<|im_end|>
72
+ <|im_start|>assistant
73
  ```
74
+
75
+ ## System Prompt
76
+
77
+ 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.
78
+
79
+ 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.
80
+
81
+ Example use of system prompt:
82
+
83
  ```
84
+ <|im_start|>system
85
+ 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|>
86
+ <|im_start|>user
87
+ Please implement A* using python<|im_end|>
88
+ <|im_start|>assistant
89
  ```
90
+
91
+ ## Sample Outputs
92
+
93
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/C-r1X13UBjnUUNb0q2JLV.png" width="600" />
94
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/4l3KAZiKej2ON7i35PsOa.png" width="600" />
95
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/1ZalmR66LnwhEQQEFttlu.png" width="600" />
96
+
97
+ ## How to use
98
+
99
+ There are many ways to use a huggingface model including:
100
+ - ollama
101
+ - LM Studio
102
+ - Huggingface Transformers library
103
+ - vllm
104
+ - sglang
105
+ - tgi
106
+
107
+ ### ollama
108
+ - [Install ollama](https://ollama.com/download)
109
+ - ```ollama run hf.co/cognitivecomputations/Dolphin3.0-Llama3.1-8B-GGUF:Q4_0```
110
+ - ```/set system <your system prompt>```
111
+
112
+ ## Evals
113
+
114
+ TBD
115
+
116
+ ## Appreciation
117
+
118
+ Respect and thanks to the creators of the open source datasets that were used:
119
+ - [OpenCoder-LLM](https://huggingface.co/OpenCoder-LLM) (opc-sft-stage1, opc-sft-stage2)
120
+ - [microsoft](https://huggingface.co/OpenCoder-LLM) (orca-agentinstruct-1M-v1, orca-math-word-problems-200k)
121
+ - [NousResearch](https://huggingface.co/NousResearch) (hermes-function-calling-v1)
122
+ - [AI-MO](https://huggingface.co/AI-MO) (NuminaMath-CoT, NuminaMath-TIR)
123
+ - [allenai](https://huggingface.co/allenai) (tulu-3-sft-mixture)
124
+ - [HuggingFaceTB](https://huggingface.co/HuggingFaceTB) (smoltalk)
125
+ - [m-a-p](https://huggingface.co/m-a-p) (CodeFeedback-Filtered-Instruction, Code-Feedback)
126
+
127
+ Special thanks to
128
+ - Meta, Qwen, and OpenCoder, who wrote papers and published models that were instrumental in creating Dolphin 3.0.
129
+ - [RLHFlow](https://huggingface.co/RLHFlow) for the excellent reward model used to filter the datasets
130
+ - Deepseek, for the ridiculously fast Deepseek-V3 that we used to augment the data.