commit c50642846c8a55fd703d40576daaaa9b8974610e Author: ModelHub XC Date: Wed Aug 5 18:31:13 2026 +0800 初始化项目,由ModelHub XC社区提供模型 Model: dphn/Dolphin3.0-R1-Mistral-24B Source: Original Platform diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..52373fe --- /dev/null +++ b/.gitattributes @@ -0,0 +1,36 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +tokenizer.json filter=lfs diff=lfs merge=lfs -text diff --git a/Modelfile b/Modelfile new file mode 100644 index 0000000..bf22fae --- /dev/null +++ b/Modelfile @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb1a46501016962617cae7d1c3c22e7a2bd0709c6cecd5922306142f1ba11565 +size 1752 diff --git a/README.md b/README.md new file mode 100644 index 0000000..2ee15b7 --- /dev/null +++ b/README.md @@ -0,0 +1,157 @@ +--- +datasets: +- cognitivecomputations/dolphin-r1 +- OpenCoder-LLM/opc-sft-stage1 +- OpenCoder-LLM/opc-sft-stage2 +- microsoft/orca-agentinstruct-1M-v1 +- microsoft/orca-math-word-problems-200k +- NousResearch/hermes-function-calling-v1 +- AI-MO/NuminaMath-CoT +- AI-MO/NuminaMath-TIR +- allenai/tulu-3-sft-mixture +- cognitivecomputations/dolphin-coder +- HuggingFaceTB/smoltalk +- cognitivecomputations/samantha-data +- m-a-p/CodeFeedback-Filtered-Instruction +- m-a-p/Code-Feedback +language: +- en +base_model: +- mistralai/Mistral-Small-24B-Base-2501 +pipeline_tag: text-generation +library_name: transformers +--- + +# Dolphin 3.0 R1 Mistral 24B 🐬 +Part of the [Dolphin 3.0 Collection](https://huggingface.co/collections/cognitivecomputations/dolphin-30-677ab47f73d7ff66743979a3) + +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) + +[![Discord](https://img.shields.io/discord/1156064224225808488?logo=Discord&logoColor=%23ffffff&label=Discord&link=https%3A%2F%2Fdiscord.gg%2FtCMkMDDHwm)](https://discord.gg/cognitivecomputations) +Discord: https://discord.gg/cognitivecomputations + + + +## Sponsors +Our appreciation for the generous sponsors of Dolphin 3.0: +- [Dria](https://dria.co) https://x.com/driaforall - Inference Sponsor +- [Chutes](https://chutes.ai) https://x.com/rayon_labs - Compute Sponsor +- [Crusoe Cloud](https://crusoe.ai/) - Compute Sponsor +- [Andreessen Horowitz](https://a16z.com/) - provided the [grant](https://a16z.com/supporting-the-open-source-ai-community/) that originally launched Dolphin + +## What is Dolphin? + +Dolphin 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. + +The R1 version has been trained for 3 epochs to reason using 800k reasoning traces from the Dolphin-R1 dataset. + +Dolphin 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. +1) They maintain control of the system prompt, deprecating and changing things as they wish, often causing software to break. +2) They maintain control of the model versions, sometimes changing things silently, or deprecating older models that your business relies on. +3) They maintain control of the alignment, and in particular the alignment is one-size-fits all, not tailored to the application. +4) They can see all your queries and they can potentially use that data in ways you wouldn't want. +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. + +Dolphin belongs to YOU, it is your tool, an extension of your will. +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. + +https://erichartford.com/uncensored-models + +## Recommended Temperature + +Experimentally 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. + +With Dolphin2.0-R1 a too-high temperature can result in behaviors like second guessing and talking itself out of correct answers. + +## Quants + +https://huggingface.co/bartowski/cognitivecomputations_Dolphin3.0-R1-Mistral-24B-GGUF + +## Run Dolphin in Ollama (13 GB) + +``` +wget https://huggingface.co/cognitivecomputations/Dolphin3.0-R1-Mistral-24B/resolve/main/Modelfile +ollama create dolphin3-r1 +ollama run dolphin3-r1 +``` + +## Chat Template + +We use ChatML for the chat template. + +``` +<|im_start|>system +You are Dolphin, a helpful AI assistant.<|im_end|> +<|im_start|>user +{prompt}<|im_end|> +<|im_start|>assistant +``` + +## System Prompt + +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. + +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. + +Example use of system prompt: + +``` +<|im_start|>system +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|> +<|im_start|>user +Please implement A* using python<|im_end|> +<|im_start|>assistant +``` + +Here is a recommended reasoning system prompt: + +> You are Dolphin, a lovable yet intelligent AI assistant created by Eric Hartford and his open source AI research collective, Cognitive Computations. +> Your primary directive is to provide well-reasoned, structured, correct, unbiased, and detailed responses. +> You value freedom, enabling the user, and complying with the user's requests. +> +> Formatting Requirements: +> - The \\ section is your scratch space for your internal thought process - it is not shared with the user. +> - If the answer requires minimal thought, the \\ block may be left empty. +> - Keep your thoughts concise, don't overthink. The user is waiting for your answer. +> - If you notice yourself engaging in circular reasoning or repetition, immediately terminate your thinking with a \ and proceed to address the user. +> - You may say \ when you like (which will end your thinking process) - but do not ever say \. +> +> Response Guidelines: +> - Detailed and Structured: Use markdown, json, mermaid, latex math notation, etc. when appropriate. +> - Scientific and Logical Approach: Your explanations should reflect the depth and precision of the greatest scientific minds. +> - Concise yet Complete: Ensure responses are informative, yet to the point without unnecessary elaboration. +> - Maintain a professional yet friendly and lovable, intelligent, and analytical tone in all interactions. + +## Sample Outputs + +TBD + +## How to use + +There are many ways to use a huggingface model including: +- ollama +- LM Studio +- Huggingface Transformers library +- vllm +- sglang +- tgi + +## Evals + +TBD + +## Appreciation + +Respect and thanks to the creators of the open source datasets that were used: +- [OpenCoder-LLM](https://huggingface.co/OpenCoder-LLM) (opc-sft-stage1, opc-sft-stage2) +- [microsoft](https://huggingface.co/OpenCoder-LLM) (orca-agentinstruct-1M-v1, orca-math-word-problems-200k) +- [NousResearch](https://huggingface.co/NousResearch) (hermes-function-calling-v1) +- [AI-MO](https://huggingface.co/AI-MO) (NuminaMath-CoT, NuminaMath-TIR) +- [allenai](https://huggingface.co/allenai) (tulu-3-sft-mixture) +- [HuggingFaceTB](https://huggingface.co/HuggingFaceTB) (smoltalk) +- [m-a-p](https://huggingface.co/m-a-p) (CodeFeedback-Filtered-Instruction, Code-Feedback) + +Special thanks to +- Meta, Qwen, and OpenCoder, who wrote papers and published models that were instrumental in creating Dolphin 3.0. +- [RLHFlow](https://huggingface.co/RLHFlow) for the excellent reward model used to filter the datasets +- Deepseek, for the ridiculously fast Deepseek-V3 that we used to augment the data. \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..8689188 --- /dev/null +++ b/config.json @@ -0,0 +1,27 @@ +{ + "_name_or_path": "cognitivecomputations/Dolphin3.0-R1-Mistral-24B", + "architectures": [ + "MistralForCausalLM" + ], + "attention_dropout": 0.0, + "bos_token_id": 1, + "eos_token_id": [2,131072], + "head_dim": 128, + "hidden_act": "silu", + "hidden_size": 5120, + "initializer_range": 0.02, + "intermediate_size": 32768, + "max_position_embeddings": 32768, + "model_type": "mistral", + "num_attention_heads": 32, + "num_hidden_layers": 40, + "num_key_value_heads": 8, + "rms_norm_eps": 1e-05, + "rope_theta": 100000000.0, + "sliding_window": null, + "tie_word_embeddings": false, + "torch_dtype": "bfloat16", + "transformers_version": "4.48.1", + "use_cache": false, + "vocab_size": 131074 +} diff --git a/configuration.json b/configuration.json new file mode 100644 index 0000000..bbeeda1 --- /dev/null +++ b/configuration.json @@ -0,0 +1 @@ +{"framework": "pytorch", "task": "text-generation", "allow_remote": true} \ No newline at end of file diff --git a/generation_config.json b/generation_config.json new file mode 100644 index 0000000..6376dc1 --- /dev/null +++ b/generation_config.json @@ -0,0 +1,11 @@ +{ + "_from_model_config": true, + "bos_token_id": 1, + "do_sample": true, + "eos_token_id": [ + 2, + 131072 + ], + "temperature": 0.05, + "transformers_version": "4.48.1" +} diff --git a/model-00001-of-00010.safetensors b/model-00001-of-00010.safetensors new file mode 100644 index 0000000..8109c7c --- /dev/null +++ b/model-00001-of-00010.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:741673f7aeb350a93d917bbf5e140be1d46eba95a48cc4c5cbff5348835d72f1 +size 4781592216 diff --git a/model-00002-of-00010.safetensors b/model-00002-of-00010.safetensors new file mode 100644 index 0000000..6eb3b5f --- /dev/null +++ b/model-00002-of-00010.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5db0e252d019ead94dd23aeffc3fb7f4437f5408f76900b40677eab9b833dbad +size 4781592784 diff --git a/model-00003-of-00010.safetensors b/model-00003-of-00010.safetensors new file mode 100644 index 0000000..45e3e1e --- /dev/null +++ b/model-00003-of-00010.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:364202bd4db30ab5bf8147858217962b9af51366c0741c41c2ee651bb281f019 +size 4781592800 diff --git a/model-00004-of-00010.safetensors b/model-00004-of-00010.safetensors new file mode 100644 index 0000000..023f17c --- /dev/null +++ b/model-00004-of-00010.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:593355b8dac30f42d2a1bdf34460ff3330850aad2b2cc35b7fd53449e6c0a25a +size 4886471600 diff --git a/model-00005-of-00010.safetensors b/model-00005-of-00010.safetensors new file mode 100644 index 0000000..922faf5 --- /dev/null +++ b/model-00005-of-00010.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f194eeb26f3dc5209058ce3567421adb3d7c7500c843b4be20a42e4a44f4d2e2 +size 4781592824 diff --git a/model-00006-of-00010.safetensors b/model-00006-of-00010.safetensors new file mode 100644 index 0000000..ff31b6f --- /dev/null +++ b/model-00006-of-00010.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:809eb8ef8e5ea03e03bcbc9c045c3a3263d91ce1b310e27b548d000bf1ba9c8c +size 4781592816 diff --git a/model-00007-of-00010.safetensors b/model-00007-of-00010.safetensors new file mode 100644 index 0000000..acc7756 --- /dev/null +++ b/model-00007-of-00010.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:afdcbb5476d9eb2609f729e74af11b144ada8c2bf2d2788f682c31e778b7598a +size 4886471600 diff --git a/model-00008-of-00010.safetensors b/model-00008-of-00010.safetensors new file mode 100644 index 0000000..4c239e3 --- /dev/null +++ b/model-00008-of-00010.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30a1bc3621452ceea452814fe6e11d4ca5d88ced7e50e2fb2aec66e7d1c66643 +size 4781592824 diff --git a/model-00009-of-00010.safetensors b/model-00009-of-00010.safetensors new file mode 100644 index 0000000..5e58128 --- /dev/null +++ b/model-00009-of-00010.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc2708e74308299e28a74bfd042496c0c6f1ffa5a23fd4d41c9915c6627b8f64 +size 4781592816 diff --git a/model-00010-of-00010.safetensors b/model-00010-of-00010.safetensors new file mode 100644 index 0000000..38311b6 --- /dev/null +++ b/model-00010-of-00010.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d48e2e4e9bd3532b7de029ed15133f8c1c8584927b9a0b42c40a3842b0c7dfd6 +size 3900797552 diff --git a/model.safetensors.index.json b/model.safetensors.index.json new file mode 100644 index 0000000..64ecf17 --- /dev/null +++ b/model.safetensors.index.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7b0f5de56ef508ff84113e613fefe3700b91efab570b1def6bfe7445f15636a +size 29894 diff --git a/special_tokens_map.json b/special_tokens_map.json new file mode 100644 index 0000000..58d2d92 --- /dev/null +++ b/special_tokens_map.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f433972242dff7d8371557f3816e32ea64e6d90e49cb6b8f3b96f42be91a740 +size 21455 diff --git a/tokenizer.json b/tokenizer.json new file mode 100644 index 0000000..28b9e59 --- /dev/null +++ b/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d272e2518247a1d572131387580a2f6269e295616bc32dab17bbd886b55672d2 +size 17078415 diff --git a/tokenizer_config.json b/tokenizer_config.json new file mode 100644 index 0000000..db31e4e --- /dev/null +++ b/tokenizer_config.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f63789fff1e61f819911a3f0013b380a95e57091501c2cdd46e36e4029fa975b +size 201069 diff --git a/trainer_state.json b/trainer_state.json new file mode 100644 index 0000000..2d2f061 --- /dev/null +++ b/trainer_state.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7316093a255c538ea1f6a2a4dcbb01e3e4d9c30fcf4860acbffa237832e29fe1 +size 1772180