Upload 2 files
Browse files- .gitattributes +1 -0
- README.md +223 -2
- dolphin-2.9-llama3-8b-q3_K_M.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
dolphin-2.9-llama3-8b-q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,5 +1,226 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
+
base_model: meta-llama/Meta-Llama-3-8B
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
model-index:
|
| 7 |
+
- name: out
|
| 8 |
+
results: []
|
| 9 |
+
datasets:
|
| 10 |
+
- cognitivecomputations/Dolphin-2.9
|
| 11 |
+
- teknium/OpenHermes-2.5
|
| 12 |
+
- m-a-p/CodeFeedback-Filtered-Instruction
|
| 13 |
+
- cognitivecomputations/dolphin-coder
|
| 14 |
+
- cognitivecomputations/samantha-data
|
| 15 |
+
- HuggingFaceH4/ultrachat_200k
|
| 16 |
+
- microsoft/orca-math-word-problems-200k
|
| 17 |
+
- abacusai/SystemChat-1.1
|
| 18 |
+
- Locutusque/function-calling-chatml
|
| 19 |
+
- internlm/Agent-FLAN
|
| 20 |
---
|
| 21 |
+
|
| 22 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 23 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 24 |
+
|
| 25 |
+
# Dolphin 2.9 Llama 3 8b 🐬
|
| 26 |
+
|
| 27 |
+
Curated and trained by Eric Hartford, Lucas Atkins, and Fernando Fernandes, and Cognitive Computations
|
| 28 |
+
|
| 29 |
+
Discord: https://discord.gg/8fbBeC7ZGx
|
| 30 |
+
|
| 31 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/63111b2d88942700629f5771/ldkN1J0WIDQwU4vutGYiD.png" width="600" />
|
| 32 |
+
|
| 33 |
+
My appreciation for the sponsors of Dolphin 2.9:
|
| 34 |
+
- [Crusoe Cloud](https://crusoe.ai/) - provided excellent on-demand 10xL40S node
|
| 35 |
+
|
| 36 |
+
This model is based on Llama-3-8b, and is governed by [META LLAMA 3 COMMUNITY LICENSE AGREEMENT](LICENSE)
|
| 37 |
+
|
| 38 |
+
The base model has 8k context, and the full-weight fine-tuning was with 4k sequence length.
|
| 39 |
+
|
| 40 |
+
It took 2.5 days on 8x L40S provided by Crusoe Cloud
|
| 41 |
+
|
| 42 |
+
This model was trained FFT on all parameters, using ChatML prompt template format.
|
| 43 |
+
|
| 44 |
+
example:
|
| 45 |
+
|
| 46 |
+
```
|
| 47 |
+
<|im_start|>system
|
| 48 |
+
You are Dolphin, a helpful AI assistant.<|im_end|>
|
| 49 |
+
<|im_start|>user
|
| 50 |
+
{prompt}<|im_end|>
|
| 51 |
+
<|im_start|>assistant
|
| 52 |
+
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
Dolphin-2.9 has a variety of instruction, conversational, and coding skills. It also has initial agentic abilities and supports function calling.
|
| 56 |
+
|
| 57 |
+
Dolphin is uncensored. I have filtered the dataset to remove alignment and bias. This makes the model more compliant. You are advised to implement your own alignment layer before exposing the model as a service. It will be highly compliant with any requests, even unethical ones. Please read my blog post about uncensored models. https://erichartford.com/uncensored-models You are responsible for any content you create using this model. Enjoy responsibly.
|
| 58 |
+
|
| 59 |
+
Dolphin is licensed according to Meta's Llama license. I grant permission for any use, including commercial, that falls within accordance with Meta's Llama-3 license. Dolphin was trained on data generated from GPT4, among other models.
|
| 60 |
+
|
| 61 |
+
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
| 62 |
+
<details><summary>See axolotl config</summary>
|
| 63 |
+
|
| 64 |
+
axolotl version: `0.4.0`
|
| 65 |
+
```yaml
|
| 66 |
+
base_model: meta-llama/Meta-Llama-3-8B
|
| 67 |
+
model_type: AutoModelForCausalLM
|
| 68 |
+
tokenizer_type: AutoTokenizer
|
| 69 |
+
tokenizer_use_fast: false
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
load_in_8bit: false
|
| 73 |
+
load_in_4bit: false
|
| 74 |
+
strict: false
|
| 75 |
+
model_config:
|
| 76 |
+
|
| 77 |
+
datasets:
|
| 78 |
+
- path: /workspace/datasets/dolphin-2.9/dolphin201-sharegpt2.jsonl
|
| 79 |
+
type: sharegpt
|
| 80 |
+
conversation: chatml
|
| 81 |
+
- path: /workspace/datasets/dolphin-2.9/Ultrachat200kunfiltered.jsonl
|
| 82 |
+
type: sharegpt
|
| 83 |
+
conversation: chatml
|
| 84 |
+
- path: /workspace/datasets/dolphin-2.9/dolphin-coder-translate-sharegpt2.jsonl
|
| 85 |
+
type: sharegpt
|
| 86 |
+
conversation: chatml
|
| 87 |
+
- path: /workspace/datasets/dolphin-2.9/dolphin-coder-codegen-sharegpt2.jsonl
|
| 88 |
+
type: sharegpt
|
| 89 |
+
conversation: chatml
|
| 90 |
+
- path: /workspace/datasets/dolphin-2.9/m-a-p_Code-Feedback-sharegpt-unfiltered.jsonl
|
| 91 |
+
type: sharegpt
|
| 92 |
+
conversation: chatml
|
| 93 |
+
- path: /workspace/datasets/dolphin-2.9/m-a-p_CodeFeedback-Filtered-Instruction-sharegpt-unfiltered.jsonl
|
| 94 |
+
type: sharegpt
|
| 95 |
+
conversation: chatml
|
| 96 |
+
- path: /workspace/datasets/dolphin-2.9/not_samantha_norefusals.jsonl
|
| 97 |
+
type: sharegpt
|
| 98 |
+
conversation: chatml
|
| 99 |
+
- path: /workspace/datasets/dolphin-2.9/Orca-Math-resort-unfiltered.jsonl
|
| 100 |
+
type: sharegpt
|
| 101 |
+
conversation: chatml
|
| 102 |
+
- path: /workspace/datasets/dolphin-2.9/agent_instruct_react_unfiltered.jsonl
|
| 103 |
+
type: sharegpt
|
| 104 |
+
conversation: chatml
|
| 105 |
+
- path: /workspace/datasets/dolphin-2.9/toolbench_instruct_j1s1_3k_unfiltered.jsonl
|
| 106 |
+
type: sharegpt
|
| 107 |
+
conversation: chatml
|
| 108 |
+
- path: /workspace/datasets/dolphin-2.9/toolbench_negative_unfiltered.jsonl
|
| 109 |
+
type: sharegpt
|
| 110 |
+
conversation: chatml
|
| 111 |
+
- path: /workspace/datasets/dolphin-2.9/toolbench_react_10p_unfiltered.jsonl
|
| 112 |
+
type: sharegpt
|
| 113 |
+
conversation: chatml
|
| 114 |
+
- path: /workspace/datasets/dolphin-2.9/toolbench_tflan_cot_30p_unfiltered.jsonl
|
| 115 |
+
type: sharegpt
|
| 116 |
+
conversation: chatml
|
| 117 |
+
- path: /workspace/datasets/dolphin-2.9/openhermes200k_unfiltered.jsonl
|
| 118 |
+
type: sharegpt
|
| 119 |
+
conversation: chatml
|
| 120 |
+
- path: /workspace/datasets/dolphin-2.9/SystemConversations.jsonl
|
| 121 |
+
type: sharegpt
|
| 122 |
+
conversation: chatml
|
| 123 |
+
|
| 124 |
+
chat_template: chatml
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
dataset_prepared_path: /workspace/datasets/dolphin-2.9/thingy
|
| 128 |
+
val_set_size: 0.0002
|
| 129 |
+
output_dir: ./out
|
| 130 |
+
|
| 131 |
+
sequence_len: 4096
|
| 132 |
+
sample_packing: true
|
| 133 |
+
pad_to_sequence_len: true
|
| 134 |
+
|
| 135 |
+
gradient_accumulation_steps: 4
|
| 136 |
+
micro_batch_size: 3
|
| 137 |
+
num_epochs: 3
|
| 138 |
+
logging_steps: 1
|
| 139 |
+
optimizer: adamw_8bit
|
| 140 |
+
lr_scheduler: cosine
|
| 141 |
+
learning_rate: 2e-5
|
| 142 |
+
|
| 143 |
+
wandb_project: dolphin-2.9-mixtral-8x22b
|
| 144 |
+
wandb_watch:
|
| 145 |
+
wandb_run_id:
|
| 146 |
+
wandb_log_model:
|
| 147 |
+
|
| 148 |
+
train_on_inputs: false
|
| 149 |
+
group_by_length: false
|
| 150 |
+
bf16: auto
|
| 151 |
+
fp16:
|
| 152 |
+
tf32: false
|
| 153 |
+
|
| 154 |
+
gradient_checkpointing: true
|
| 155 |
+
gradient_checkpointing_kwargs:
|
| 156 |
+
use_reentrant: false
|
| 157 |
+
early_stopping_patience:
|
| 158 |
+
resume_from_checkpoint:
|
| 159 |
+
local_rank:
|
| 160 |
+
logging_steps: 1
|
| 161 |
+
xformers_attention:
|
| 162 |
+
flash_attention: true
|
| 163 |
+
saves_per_epoch: 4
|
| 164 |
+
save_total_limit: 2
|
| 165 |
+
save_steps:
|
| 166 |
+
evals_per_epoch: 4
|
| 167 |
+
eval_sample_packing: false
|
| 168 |
+
debug:
|
| 169 |
+
deepspeed: deepspeed_configs/zero3_bf16.json
|
| 170 |
+
weight_decay: 0.05
|
| 171 |
+
fsdp:
|
| 172 |
+
fsdp_config:
|
| 173 |
+
special_tokens:
|
| 174 |
+
eos_token: "<|im_end|>"
|
| 175 |
+
pad_token: "<|end_of_text|>"
|
| 176 |
+
tokens:
|
| 177 |
+
- "<|im_start|>"
|
| 178 |
+
- "<|im_end|>"
|
| 179 |
+
|
| 180 |
+
```
|
| 181 |
+
|
| 182 |
+
</details><br>
|
| 183 |
+
|
| 184 |
+
## Training procedure
|
| 185 |
+
|
| 186 |
+
### Training hyperparameters
|
| 187 |
+
|
| 188 |
+
The following hyperparameters were used during training:
|
| 189 |
+
- learning_rate: 2e-05
|
| 190 |
+
- train_batch_size: 3
|
| 191 |
+
- eval_batch_size: 3
|
| 192 |
+
- seed: 42
|
| 193 |
+
- distributed_type: multi-GPU
|
| 194 |
+
- num_devices: 8
|
| 195 |
+
- gradient_accumulation_steps: 4
|
| 196 |
+
- total_train_batch_size: 96
|
| 197 |
+
- total_eval_batch_size: 24
|
| 198 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 199 |
+
- lr_scheduler_type: cosine
|
| 200 |
+
- lr_scheduler_warmup_steps: 7
|
| 201 |
+
- num_epochs: 3
|
| 202 |
+
|
| 203 |
+
### Training results
|
| 204 |
+
|
| 205 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 206 |
+
|:-------------:|:------:|:----:|:---------------:|
|
| 207 |
+
| 1.146 | 0.0005 | 1 | 1.1064 |
|
| 208 |
+
| 0.6962 | 0.2501 | 555 | 0.6636 |
|
| 209 |
+
| 0.6857 | 0.5001 | 1110 | 0.6503 |
|
| 210 |
+
| 0.6592 | 0.7502 | 1665 | 0.6419 |
|
| 211 |
+
| 0.6465 | 1.0002 | 2220 | 0.6317 |
|
| 212 |
+
| 0.5295 | 1.2395 | 2775 | 0.6408 |
|
| 213 |
+
| 0.5302 | 1.4895 | 3330 | 0.6351 |
|
| 214 |
+
| 0.5188 | 1.7396 | 3885 | 0.6227 |
|
| 215 |
+
| 0.521 | 1.9896 | 4440 | 0.6168 |
|
| 216 |
+
| 0.3968 | 2.2289 | 4995 | 0.6646 |
|
| 217 |
+
| 0.3776 | 2.4789 | 5550 | 0.6619 |
|
| 218 |
+
| 0.3983 | 2.7290 | 6105 | 0.6602 |
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
### Framework versions
|
| 222 |
+
|
| 223 |
+
- Transformers 4.40.0
|
| 224 |
+
- Pytorch 2.2.2+cu121
|
| 225 |
+
- Datasets 2.18.0
|
| 226 |
+
- Tokenizers 0.19.1
|
dolphin-2.9-llama3-8b-q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f738a4d69c1f65f0174f38615826f10edcb91776e485b4213c1dbadf6918cf8
|
| 3 |
+
size 4019440960
|