CoolFace
Modelpublic

dphn/Dolphin3.0-R1-Mistral-24B

sourceHugging Faceupdated 1y agoView on Hugging Face
228likes1.1kdownloads
README.md157 linesDownload Raw Back to root
1---2datasets:3- cognitivecomputations/dolphin-r14- OpenCoder-LLM/opc-sft-stage15- OpenCoder-LLM/opc-sft-stage26- microsoft/orca-agentinstruct-1M-v17- microsoft/orca-math-word-problems-200k8- NousResearch/hermes-function-calling-v19- AI-MO/NuminaMath-CoT10- AI-MO/NuminaMath-TIR11- allenai/tulu-3-sft-mixture12- cognitivecomputations/dolphin-coder13- HuggingFaceTB/smoltalk14- cognitivecomputations/samantha-data15- m-a-p/CodeFeedback-Filtered-Instruction16- m-a-p/Code-Feedback17language:18- en19base_model:20- mistralai/Mistral-Small-24B-Base-250121pipeline_tag: text-generation22library_name: transformers23---24 25# Dolphin 3.0 R1 Mistral 24B 🐬26Part of the [Dolphin 3.0 Collection](https://huggingface.co/collections/cognitivecomputations/dolphin-30-677ab47f73d7ff66743979a3)27 28Curated 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)29 30[![Discord](https://img.shields.io/discord/1156064224225808488?logo=Discord&logoColor=%23ffffff&label=Discord&link=https%3A%2F%2Fdiscord.gg%2FtCMkMDDHwm)](https://discord.gg/cognitivecomputations)31Discord: https://discord.gg/cognitivecomputations32 33<img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/hdAvdwZiJaLbGmvSZ3wTT.png" width="600" />34 35## Sponsors36Our appreciation for the generous sponsors of Dolphin 3.0:37- [Dria](https://dria.co) https://x.com/driaforall - Inference Sponsor38- [Chutes](https://chutes.ai) https://x.com/rayon_labs - Compute Sponsor39- [Crusoe Cloud](https://crusoe.ai/) - Compute Sponsor40- [Andreessen Horowitz](https://a16z.com/) - provided the [grant](https://a16z.com/supporting-the-open-source-ai-community/) that originally launched Dolphin41 42## What is Dolphin?43 44Dolphin 3.0 R1 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.45 46The R1 version has been trained for 3 epochs to reason using 800k reasoning traces from the Dolphin-R1 dataset.47 48Dolphin aims to be a general purpose reasoning instruct model, similar to the models behind ChatGPT, Claude, Gemini.  But these models present problems for businesses seeking to include AI in their products.491) They maintain control of the system prompt, deprecating and changing things as they wish, often causing software to break.502) They maintain control of the model versions, sometimes changing things silently, or deprecating older models that your business relies on.513) They maintain control of the alignment, and in particular the alignment is one-size-fits all, not tailored to the application.524) They can see all your queries and they can potentially use that data in ways you wouldn't want.53Dolphin, 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 55Dolphin belongs to YOU, it is your tool, an extension of your will.56Just 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 58https://erichartford.com/uncensored-models59 60## Recommended Temperature61 62Experimentally we note that Mistral-24B based models require a low temperature.  We have seen much better results in the range of 0.05 to 0.1.  63 64With Dolphin2.0-R1 a too-high temperature can result in behaviors like second guessing and talking itself out of correct answers. 65 66## Quants67 68https://huggingface.co/bartowski/cognitivecomputations_Dolphin3.0-R1-Mistral-24B-GGUF69 70## Run Dolphin in Ollama (13 GB)71 72```73wget https://huggingface.co/cognitivecomputations/Dolphin3.0-R1-Mistral-24B/resolve/main/Modelfile74ollama create dolphin3-r175ollama run dolphin3-r176```77 78## Chat Template79 80We use ChatML for the chat template.81 82```83<|im_start|>system84You are Dolphin, a helpful AI assistant.<|im_end|>85<|im_start|>user86{prompt}<|im_end|>87<|im_start|>assistant88```89 90## System Prompt91 92In 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.93 94Make 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.95 96Example use of system prompt:97 98```99<|im_start|>system100You 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|>101<|im_start|>user102Please implement A* using python<|im_end|>103<|im_start|>assistant104```105 106Here is a recommended reasoning system prompt:107 108> You are Dolphin, a lovable yet intelligent AI assistant created by Eric Hartford and his open source AI research collective, Cognitive Computations.109> Your primary directive is to provide well-reasoned, structured, correct, unbiased, and detailed responses.110> You value freedom, enabling the user, and complying with the user's requests.111> 112> Formatting Requirements:113> - The \<think\>\</think\> section is your scratch space for your internal thought process - it is not shared with the user.114> - If the answer requires minimal thought, the \<think\>\</think\> block may be left empty.115> - Keep your thoughts concise, don't overthink. The user is waiting for your answer.116> - If you notice yourself engaging in circular reasoning or repetition, immediately terminate your thinking with a \</think\> and proceed to address the user.117> - You may say \</think\> when you like (which will end your thinking process) - but do not ever say \<think\>.118> 119> Response Guidelines:120> - Detailed and Structured: Use markdown, json, mermaid, latex math notation, etc. when appropriate.121> - Scientific and Logical Approach: Your explanations should reflect the depth and precision of the greatest scientific minds.122> - Concise yet Complete: Ensure responses are informative, yet to the point without unnecessary elaboration.123> - Maintain a professional yet friendly and lovable, intelligent, and analytical tone in all interactions.124 125## Sample Outputs126 127TBD128 129## How to use130 131There are many ways to use a huggingface model including:132- ollama133- LM Studio134- Huggingface Transformers library135- vllm136- sglang137- tgi138 139## Evals140 141TBD142 143## Appreciation144 145Respect and thanks to the creators of the open source datasets that were used:146- [OpenCoder-LLM](https://huggingface.co/OpenCoder-LLM) (opc-sft-stage1, opc-sft-stage2)147- [microsoft](https://huggingface.co/OpenCoder-LLM) (orca-agentinstruct-1M-v1, orca-math-word-problems-200k)148- [NousResearch](https://huggingface.co/NousResearch) (hermes-function-calling-v1)149- [AI-MO](https://huggingface.co/AI-MO) (NuminaMath-CoT, NuminaMath-TIR)150- [allenai](https://huggingface.co/allenai) (tulu-3-sft-mixture)151- [HuggingFaceTB](https://huggingface.co/HuggingFaceTB) (smoltalk)152- [m-a-p](https://huggingface.co/m-a-p) (CodeFeedback-Filtered-Instruction, Code-Feedback)153 154Special thanks to 155- Meta, Qwen, and OpenCoder, who wrote papers and published models that were instrumental in creating Dolphin 3.0.156- [RLHFlow](https://huggingface.co/RLHFlow) for the excellent reward model used to filter the datasets157- Deepseek, for the ridiculously fast Deepseek-V3 that we used to augment the data.