初始化项目,由ModelHub XC社区提供模型
Model: dphn/Dolphin3.0-R1-Mistral-24B Source: Original Platform
This commit is contained in:
36
.gitattributes
vendored
Normal file
36
.gitattributes
vendored
Normal file
@@ -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
|
||||
3
Modelfile
Normal file
3
Modelfile
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bb1a46501016962617cae7d1c3c22e7a2bd0709c6cecd5922306142f1ba11565
|
||||
size 1752
|
||||
157
README.md
Normal file
157
README.md
Normal file
@@ -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)
|
||||
|
||||
[](https://discord.gg/cognitivecomputations)
|
||||
Discord: https://discord.gg/cognitivecomputations
|
||||
|
||||
<img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/hdAvdwZiJaLbGmvSZ3wTT.png" width="600" />
|
||||
|
||||
## 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 \<think\>\</think\> section is your scratch space for your internal thought process - it is not shared with the user.
|
||||
> - If the answer requires minimal thought, the \<think\>\</think\> 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 \</think\> and proceed to address the user.
|
||||
> - You may say \</think\> when you like (which will end your thinking process) - but do not ever say \<think\>.
|
||||
>
|
||||
> 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.
|
||||
27
config.json
Normal file
27
config.json
Normal file
@@ -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
|
||||
}
|
||||
1
configuration.json
Normal file
1
configuration.json
Normal file
@@ -0,0 +1 @@
|
||||
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}
|
||||
11
generation_config.json
Normal file
11
generation_config.json
Normal file
@@ -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"
|
||||
}
|
||||
3
model-00001-of-00010.safetensors
Normal file
3
model-00001-of-00010.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:741673f7aeb350a93d917bbf5e140be1d46eba95a48cc4c5cbff5348835d72f1
|
||||
size 4781592216
|
||||
3
model-00002-of-00010.safetensors
Normal file
3
model-00002-of-00010.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5db0e252d019ead94dd23aeffc3fb7f4437f5408f76900b40677eab9b833dbad
|
||||
size 4781592784
|
||||
3
model-00003-of-00010.safetensors
Normal file
3
model-00003-of-00010.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:364202bd4db30ab5bf8147858217962b9af51366c0741c41c2ee651bb281f019
|
||||
size 4781592800
|
||||
3
model-00004-of-00010.safetensors
Normal file
3
model-00004-of-00010.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:593355b8dac30f42d2a1bdf34460ff3330850aad2b2cc35b7fd53449e6c0a25a
|
||||
size 4886471600
|
||||
3
model-00005-of-00010.safetensors
Normal file
3
model-00005-of-00010.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f194eeb26f3dc5209058ce3567421adb3d7c7500c843b4be20a42e4a44f4d2e2
|
||||
size 4781592824
|
||||
3
model-00006-of-00010.safetensors
Normal file
3
model-00006-of-00010.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:809eb8ef8e5ea03e03bcbc9c045c3a3263d91ce1b310e27b548d000bf1ba9c8c
|
||||
size 4781592816
|
||||
3
model-00007-of-00010.safetensors
Normal file
3
model-00007-of-00010.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:afdcbb5476d9eb2609f729e74af11b144ada8c2bf2d2788f682c31e778b7598a
|
||||
size 4886471600
|
||||
3
model-00008-of-00010.safetensors
Normal file
3
model-00008-of-00010.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:30a1bc3621452ceea452814fe6e11d4ca5d88ced7e50e2fb2aec66e7d1c66643
|
||||
size 4781592824
|
||||
3
model-00009-of-00010.safetensors
Normal file
3
model-00009-of-00010.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cc2708e74308299e28a74bfd042496c0c6f1ffa5a23fd4d41c9915c6627b8f64
|
||||
size 4781592816
|
||||
3
model-00010-of-00010.safetensors
Normal file
3
model-00010-of-00010.safetensors
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d48e2e4e9bd3532b7de029ed15133f8c1c8584927b9a0b42c40a3842b0c7dfd6
|
||||
size 3900797552
|
||||
3
model.safetensors.index.json
Normal file
3
model.safetensors.index.json
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e7b0f5de56ef508ff84113e613fefe3700b91efab570b1def6bfe7445f15636a
|
||||
size 29894
|
||||
3
special_tokens_map.json
Normal file
3
special_tokens_map.json
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7f433972242dff7d8371557f3816e32ea64e6d90e49cb6b8f3b96f42be91a740
|
||||
size 21455
|
||||
3
tokenizer.json
Normal file
3
tokenizer.json
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d272e2518247a1d572131387580a2f6269e295616bc32dab17bbd886b55672d2
|
||||
size 17078415
|
||||
3
tokenizer_config.json
Normal file
3
tokenizer_config.json
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f63789fff1e61f819911a3f0013b380a95e57091501c2cdd46e36e4029fa975b
|
||||
size 201069
|
||||
3
trainer_state.json
Normal file
3
trainer_state.json
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7316093a255c538ea1f6a2a4dcbb01e3e4d9c30fcf4860acbffa237832e29fe1
|
||||
size 1772180
|
||||
Reference in New Issue
Block a user