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|
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- GGUF 🐬
|
26 |
+
|
27 |
+
- This is GGUF quantized evrsion of [cognitivecomputations/dolphin-2.9-llama3-8b](https://huggingface.co/cognitivecomputations/dolphin-2.9-llama3-8b) created using llama.cpp
|
28 |
+
- Curated and trained by Eric Hartford, Lucas Atkins, and Fernando Fernandes, and Cognitive Computations
|
29 |
+
|
30 |
+
# Model Description
|
31 |
+
My appreciation for the sponsors of Dolphin 2.9:
|
32 |
+
- [Crusoe Cloud](https://crusoe.ai/) - provided excellent on-demand 10xL40S node
|
33 |
+
|
34 |
+
This model is based on Llama-3-8b, and is governed by [META LLAMA 3 COMMUNITY LICENSE AGREEMENT](LICENSE)
|
35 |
+
|
36 |
+
The base model has 8k context, and the full-weight fine-tuning was with 4k sequence length.
|
37 |
+
|
38 |
+
It took 2.5 days on 8x L40S provided by Crusoe Cloud
|
39 |
+
|
40 |
+
This model was trained FFT on all parameters, using ChatML prompt template format.
|
41 |
+
|
42 |
+
example:
|
43 |
+
|
44 |
+
```
|
45 |
+
<|im_start|>system
|
46 |
+
You are Dolphin, a helpful AI assistant.<|im_end|>
|
47 |
+
<|im_start|>user
|
48 |
+
{prompt}<|im_end|>
|
49 |
+
<|im_start|>assistant
|
50 |
+
|
51 |
+
```
|
52 |
+
|
53 |
+
Dolphin-2.9 has a variety of instruction, conversational, and coding skills. It also has initial agentic abilities and supports function calling.
|
54 |
+
|
55 |
+
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.
|
56 |
+
|
57 |
+
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.
|
58 |
+
|
59 |
+
[<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)
|
60 |
+
<details><summary>See axolotl config</summary>
|
61 |
+
|
62 |
+
axolotl version: `0.4.0`
|
63 |
+
```yaml
|
64 |
+
base_model: meta-llama/Meta-Llama-3-8B
|
65 |
+
model_type: AutoModelForCausalLM
|
66 |
+
tokenizer_type: AutoTokenizer
|
67 |
+
tokenizer_use_fast: false
|
68 |
+
|
69 |
+
|
70 |
+
load_in_8bit: false
|
71 |
+
load_in_4bit: false
|
72 |
+
strict: false
|
73 |
+
model_config:
|
74 |
+
|
75 |
+
datasets:
|
76 |
+
- path: /workspace/datasets/dolphin-2.9/dolphin201-sharegpt2.jsonl
|
77 |
+
type: sharegpt
|
78 |
+
conversation: chatml
|
79 |
+
- path: /workspace/datasets/dolphin-2.9/Ultrachat200kunfiltered.jsonl
|
80 |
+
type: sharegpt
|
81 |
+
conversation: chatml
|
82 |
+
- path: /workspace/datasets/dolphin-2.9/dolphin-coder-translate-sharegpt2.jsonl
|
83 |
+
type: sharegpt
|
84 |
+
conversation: chatml
|
85 |
+
- path: /workspace/datasets/dolphin-2.9/dolphin-coder-codegen-sharegpt2.jsonl
|
86 |
+
type: sharegpt
|
87 |
+
conversation: chatml
|
88 |
+
- path: /workspace/datasets/dolphin-2.9/m-a-p_Code-Feedback-sharegpt-unfiltered.jsonl
|
89 |
+
type: sharegpt
|
90 |
+
conversation: chatml
|
91 |
+
- path: /workspace/datasets/dolphin-2.9/m-a-p_CodeFeedback-Filtered-Instruction-sharegpt-unfiltered.jsonl
|
92 |
+
type: sharegpt
|
93 |
+
conversation: chatml
|
94 |
+
- path: /workspace/datasets/dolphin-2.9/not_samantha_norefusals.jsonl
|
95 |
+
type: sharegpt
|
96 |
+
conversation: chatml
|
97 |
+
- path: /workspace/datasets/dolphin-2.9/Orca-Math-resort-unfiltered.jsonl
|
98 |
+
type: sharegpt
|
99 |
+
conversation: chatml
|
100 |
+
- path: /workspace/datasets/dolphin-2.9/agent_instruct_react_unfiltered.jsonl
|
101 |
+
type: sharegpt
|
102 |
+
conversation: chatml
|
103 |
+
- path: /workspace/datasets/dolphin-2.9/toolbench_instruct_j1s1_3k_unfiltered.jsonl
|
104 |
+
type: sharegpt
|
105 |
+
conversation: chatml
|
106 |
+
- path: /workspace/datasets/dolphin-2.9/toolbench_negative_unfiltered.jsonl
|
107 |
+
type: sharegpt
|
108 |
+
conversation: chatml
|
109 |
+
- path: /workspace/datasets/dolphin-2.9/toolbench_react_10p_unfiltered.jsonl
|
110 |
+
type: sharegpt
|
111 |
+
conversation: chatml
|
112 |
+
- path: /workspace/datasets/dolphin-2.9/toolbench_tflan_cot_30p_unfiltered.jsonl
|
113 |
+
type: sharegpt
|
114 |
+
conversation: chatml
|
115 |
+
- path: /workspace/datasets/dolphin-2.9/openhermes200k_unfiltered.jsonl
|
116 |
+
type: sharegpt
|
117 |
+
conversation: chatml
|
118 |
+
- path: /workspace/datasets/dolphin-2.9/SystemConversations.jsonl
|
119 |
+
type: sharegpt
|
120 |
+
conversation: chatml
|
121 |
+
|
122 |
+
chat_template: chatml
|
123 |
+
|
124 |
+
|
125 |
+
dataset_prepared_path: /workspace/datasets/dolphin-2.9/thingy
|
126 |
+
val_set_size: 0.0002
|
127 |
+
output_dir: ./out
|
128 |
+
|
129 |
+
sequence_len: 4096
|
130 |
+
sample_packing: true
|
131 |
+
pad_to_sequence_len: true
|
132 |
+
|
133 |
+
gradient_accumulation_steps: 4
|
134 |
+
micro_batch_size: 3
|
135 |
+
num_epochs: 3
|
136 |
+
logging_steps: 1
|
137 |
+
optimizer: adamw_8bit
|
138 |
+
lr_scheduler: cosine
|
139 |
+
learning_rate: 2e-5
|
140 |
+
|
141 |
+
wandb_project: dolphin-2.9-mixtral-8x22b
|
142 |
+
wandb_watch:
|
143 |
+
wandb_run_id:
|
144 |
+
wandb_log_model:
|
145 |
+
|
146 |
+
train_on_inputs: false
|
147 |
+
group_by_length: false
|
148 |
+
bf16: auto
|
149 |
+
fp16:
|
150 |
+
tf32: false
|
151 |
+
|
152 |
+
gradient_checkpointing: true
|
153 |
+
gradient_checkpointing_kwargs:
|
154 |
+
use_reentrant: false
|
155 |
+
early_stopping_patience:
|
156 |
+
resume_from_checkpoint:
|
157 |
+
local_rank:
|
158 |
+
logging_steps: 1
|
159 |
+
xformers_attention:
|
160 |
+
flash_attention: true
|
161 |
+
saves_per_epoch: 4
|
162 |
+
save_total_limit: 2
|
163 |
+
save_steps:
|
164 |
+
evals_per_epoch: 4
|
165 |
+
eval_sample_packing: false
|
166 |
+
debug:
|
167 |
+
deepspeed: deepspeed_configs/zero3_bf16.json
|
168 |
+
weight_decay: 0.05
|
169 |
+
fsdp:
|
170 |
+
fsdp_config:
|
171 |
+
special_tokens:
|
172 |
+
eos_token: "<|im_end|>"
|
173 |
+
pad_token: "<|end_of_text|>"
|
174 |
+
tokens:
|
175 |
+
- "<|im_start|>"
|
176 |
+
- "<|im_end|>"
|
177 |
+
|
178 |
+
```
|
179 |
+
|
180 |
+
</details><br>
|
181 |
+
|
182 |
+
## Training procedure
|
183 |
+
|
184 |
+
### Training hyperparameters
|
185 |
+
|
186 |
+
The following hyperparameters were used during training:
|
187 |
+
- learning_rate: 2e-05
|
188 |
+
- train_batch_size: 3
|
189 |
+
- eval_batch_size: 3
|
190 |
+
- seed: 42
|
191 |
+
- distributed_type: multi-GPU
|
192 |
+
- num_devices: 8
|
193 |
+
- gradient_accumulation_steps: 4
|
194 |
+
- total_train_batch_size: 96
|
195 |
+
- total_eval_batch_size: 24
|
196 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
197 |
+
- lr_scheduler_type: cosine
|
198 |
+
- lr_scheduler_warmup_steps: 7
|
199 |
+
- num_epochs: 3
|
200 |
+
|
201 |
+
### Training results
|
202 |
+
|
203 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
204 |
+
|:-------------:|:------:|:----:|:---------------:|
|
205 |
+
| 1.146 | 0.0005 | 1 | 1.1064 |
|
206 |
+
| 0.6962 | 0.2501 | 555 | 0.6636 |
|
207 |
+
| 0.6857 | 0.5001 | 1110 | 0.6503 |
|
208 |
+
| 0.6592 | 0.7502 | 1665 | 0.6419 |
|
209 |
+
| 0.6465 | 1.0002 | 2220 | 0.6317 |
|
210 |
+
| 0.5295 | 1.2395 | 2775 | 0.6408 |
|
211 |
+
| 0.5302 | 1.4895 | 3330 | 0.6351 |
|
212 |
+
| 0.5188 | 1.7396 | 3885 | 0.6227 |
|
213 |
+
| 0.521 | 1.9896 | 4440 | 0.6168 |
|
214 |
+
| 0.3968 | 2.2289 | 4995 | 0.6646 |
|
215 |
+
| 0.3776 | 2.4789 | 5550 | 0.6619 |
|
216 |
+
| 0.3983 | 2.7290 | 6105 | 0.6602 |
|
217 |
+
|
218 |
+
|
219 |
+
### Framework versions
|
220 |
+
|
221 |
+
- Transformers 4.40.0
|
222 |
+
- Pytorch 2.2.2+cu121
|
223 |
+
- Datasets 2.18.0
|
224 |
+
- Tokenizers 0.19.1
|