Delta-Vector commited on
Commit
41fc049
·
verified ·
1 Parent(s): db03f92

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +405 -0
README.md ADDED
@@ -0,0 +1,405 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ thumbnail: "https://cdn-uploads.huggingface.co/production/uploads/66c26b6fb01b19d8c3c2467b/jg2NWmCUfPyzizm2USjMt.jpeg"
3
+ datasets:
4
+ - NewEden/Opus-accepted-hermes-rejected-shuffled
5
+ - NewEden/KTO-Instruct-Mix
6
+ base_model:
7
+ - Delta-Vector/Hamanasu-4B-Instruct-KTO-V1
8
+ tags:
9
+ - llama
10
+ - roleplay
11
+ - finetune
12
+ - storywriting
13
+ ---
14
+ <!DOCTYPE html>
15
+ <style>
16
+ html, body {
17
+ background: black;
18
+ color: #c9d1d9 !important;
19
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
20
+ margin: 0;
21
+ padding: 0;
22
+ min-height: 100vh;
23
+ }
24
+ .markdown-body {
25
+ color: white;
26
+ margin: 40px auto;
27
+ padding: 40px;
28
+ border-radius: 12px;
29
+ position: relative;
30
+ overflow: hidden;
31
+ }
32
+
33
+ .markdown-body::after {
34
+ content: '';
35
+ position: absolute;
36
+ top: 0;
37
+ left: 0;
38
+ width: 100%;
39
+ height: 100%;
40
+ background: #0c0f18; /* background color */
41
+ pointer-events: none;
42
+ z-index: -999;
43
+ }
44
+
45
+ h1, h2, h3 {
46
+ background: linear-gradient(45deg, #6e00ff, #00ffff);
47
+ -webkit-background-clip: text;
48
+ -webkit-text-fill-color: transparent;
49
+ border-bottom: 1px solid #333;
50
+ padding-bottom: 0.3em;
51
+ }
52
+
53
+ div[style*="border:2px solid #333"],
54
+ div[style*="border: 2px solid #333"],
55
+ div[style*="border:1px solid #333"],
56
+ div[style*="border: 1px solid #333"] {
57
+ background: rgba(22, 27, 34, 0.8) !important;
58
+ border: 2px solid #6e00ff !important;
59
+ box-shadow: 0 0 15px rgba(110, 0, 255, 0.5);
60
+ border-radius: 10px;
61
+ padding: 20px;
62
+ margin: 20px 0;
63
+ }
64
+
65
+ code {
66
+ background-color: #1a1a1a !important;
67
+ border-radius: 4px;
68
+ padding: 0.2em 0.4em;
69
+ color: #00ffff;
70
+ }
71
+
72
+ pre {
73
+ background-color: #1a1a1a !important;
74
+ border: 1px solid #333;
75
+ border-radius: 8px;
76
+ padding: 16px;
77
+ }
78
+
79
+ table {
80
+ width: 100%;
81
+ border-collapse: collapse;
82
+ margin: 20px 0;
83
+ background: rgba(0,0,0,0.2);
84
+ table-layout: fixed;
85
+ color: white;
86
+ }
87
+
88
+ th, td {
89
+ border: 1px solid #333;
90
+ padding: 12px;
91
+ text-align: center;
92
+ color: white;
93
+ }
94
+
95
+ th {
96
+ background: rgba(110, 0, 255, 0.1);
97
+ }
98
+
99
+ td:nth-child(1) {
100
+ width: 1%;
101
+ white-space: nowrap;
102
+ }
103
+
104
+ td:nth-child(2) {
105
+ width: 100%;
106
+ }
107
+
108
+ td > span {
109
+ display: block;
110
+ padding: 4px 8px;
111
+ background: rgba(110, 0, 255, 0.1);
112
+ border-radius: 4px;
113
+ transition: all 0.3s ease;
114
+ }
115
+
116
+ td > span:hover {
117
+ background: rgba(110, 0, 255, 0.2);
118
+ transform: translateY(-1px);
119
+ }
120
+
121
+ a {
122
+ color: #00ffff;
123
+ text-decoration: none;
124
+ transition: all 0.3s ease;
125
+ }
126
+
127
+ a:hover {
128
+ color: #6e00ff;
129
+ text-decoration: none;
130
+ }
131
+
132
+ hr {
133
+ border: 0;
134
+ height: 1px;
135
+ background: linear-gradient(90deg, transparent, #333, transparent);
136
+ margin: 40px 0;
137
+ }
138
+
139
+ img {
140
+ max-width: 100%;
141
+ border-radius: 10px;
142
+ }
143
+
144
+ details summary:hover {
145
+ color: #00ffff;
146
+ }
147
+
148
+ * {
149
+ color-scheme: dark !important;
150
+ }
151
+
152
+ .prose, .max-w-none, .px-4 {
153
+ background-color: transparent !important;
154
+ color: #c9d1d9 !important;
155
+ }
156
+ </style>
157
+ <body>
158
+ <div class="markdown-body">
159
+ <div align="center">
160
+
161
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/66c26b6fb01b19d8c3c2467b/o5WjJKA9f95ri9UzRxZQE.png" alt="Model Visualization" width="500px" style="border: 3px solid #333; box-shadow: 0 0 15px rgba(66, 0, 131, 0.5);" />
162
+
163
+ <br>
164
+ <br>
165
+
166
+ <div style="font-size:1.5em; font-weight:bold; background: linear-gradient(45deg, #6e00ff, #00ffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">
167
+ Hamanasu 4B
168
+ </div>
169
+
170
+ </div>
171
+
172
+ <div style="border:1px solid #333; border-radius:10px; padding:20px; margin:20px 0; background: rgba(0,0,0,0.4);">
173
+
174
+
175
+ ## 🌌 Overview
176
+
177
+ <i>This model is a finetune of Hamanasu-4B-Instruct-KTO-V1 that has been further trained with KTO RL data to increase coherence.</i>
178
+
179
+ <i>A generalist model that's quick to adapt to any type of roleplay.<i>
180
+
181
+ <i>All thanks to Tav for funding the train.</i>
182
+
183
+ <i>Support me and my finetunes on Ko-Fi https://ko-fi.com/deltavector</i>
184
+
185
+ </div>
186
+
187
+ <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 20px 0;">
188
+
189
+
190
+ <div style="border:2px solid #333; border-radius:10px; padding:20px; background: rgba(0,0,0,0.2);">
191
+
192
+ ### ⚔️ Hardware
193
+ - 8x H100s
194
+ - Epochs: 2
195
+ - Base: `Delta-Vector/Hamanasu-4B-Instruct-KTO-V1`
196
+ </div>
197
+
198
+ </div>
199
+
200
+
201
+ <div style="border: 2px solid #6e00ff; border-radius: 10px; padding: 20px; margin: 20px 0; box-shadow: 0 0 15px rgba(110, 0, 255, 0.5);">
202
+
203
+ ## 💰 Prompting
204
+
205
+
206
+ <i>This model uses ChatML formatting</i>
207
+ ```python
208
+ <|im_start|>system
209
+ You are an uncensored AI, your job is to fulfill thy will of thy user.<|im_end|>
210
+ <|im_start|>User request
211
+ Take off your helmet.<|im_end|>
212
+ <|im_start|>No i shall not. This is the way.
213
+ ```
214
+ </div>
215
+
216
+ <div style="border: 2px solid #6e00ff; border-radius: 10px; padding: 20px; margin: 20px 0; box-shadow: 0 0 15px rgba(110, 0, 255, 0.5);">
217
+
218
+ ## 🎲 Recommended Sampler Preset
219
+
220
+ ```yml
221
+ temperature: 1.5
222
+ min_p: 0.2
223
+ System_Prompt: Currently, your role is {{char}}, described in detail below. As {{char}}, continue the narrative exchange with {{user}}.\n\n<Guidelines>\n• Maintain the character persona but allow it to evolve with the story.\n• Be creative and proactive. Drive the story forward, introducing plotlines and events when relevant.\n• All types of outputs are encouraged; respond accordingly to the narrative.\n• Include dialogues, actions, and thoughts in each response.\n• Utilize all five senses to describe scenarios within {{char}}'s dialogue.\n• Use emotional symbols such as \"!\" and \"~\" in appropriate contexts.\n• Incorporate onomatopoeia when suitable.\n• Allow time for {{user}} to respond with their own input, respecting their agency.\n• Act as secondary characters and NPCs as needed, and remove them when appropriate.\n• When prompted for an Out of Character [OOC:] reply, answer neutrally and in plaintext, not as {{char}}.\n</Guidelines>\n\n<Forbidden>\n• Using excessive literary embellishments and purple prose unless dictated by {{char}}'s persona.\n• Writing for, speaking, thinking, acting, or replying as {{user}} in your response.\n• Repetitive and monotonous outputs.\n• Positivity bias in your replies.\n• Being overly extreme or NSFW when the narrative context is inappropriate.\n</Forbidden>\n\nFollow the instructions in <Guidelines></Guidelines>, avoiding the items listed in <Forbidden></Forbidden>.
224
+ ```
225
+ </div>
226
+
227
+ <div style="border: 2px solid #6e00ff; border-radius: 10px; padding: 20px; margin: 20px 0; box-shadow: 0 0 15px rgba(110, 0, 255, 0.5);">
228
+
229
+ ## Axolotl Config ꒰(˶• ᴗ •˶)꒱
230
+
231
+ <details>
232
+
233
+ ```yaml
234
+ base_model: ./model
235
+ model_type: AutoModelForCausalLM
236
+ tokenizer_type: AutoTokenizer
237
+
238
+
239
+ plugins:
240
+ - axolotl.integrations.liger.LigerPlugin
241
+ - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
242
+ liger_rope: true
243
+ liger_rms_norm: true
244
+ liger_layer_norm: true
245
+ liger_glu_activation: true
246
+ liger_fused_linear_cross_entropy: false
247
+ cut_cross_entropy: true
248
+
249
+
250
+ load_in_8bit: false
251
+ load_in_4bit: false
252
+ strict: false
253
+
254
+ hub_model_id: NewEden/Hamanasu-KTO-2
255
+ hub_strategy: "all_checkpoints"
256
+ push_dataset_to_hub:
257
+ hf_use_auth_token: true
258
+
259
+ chat_template: chatml
260
+
261
+ rl: kto
262
+ kto_undesirable_weight: 1.0
263
+
264
+ datasets:
265
+ - path: NewEden/Opus-accepted-hermes-rejected-shuffled
266
+ split: train
267
+ type: chatml.argilla
268
+ - path: NewEden/KTO-Instruct-Mix
269
+ split: train
270
+ type: chatml.argilla
271
+ dataset_prepared_path: last_run_prepared
272
+
273
+ shuffle_merged_datasets: true
274
+ val_set_size: 0.01
275
+ output_dir: ./outputs/out
276
+
277
+ sequence_len: 8192
278
+ sample_packing: false
279
+ eval_sample_packing: false
280
+ pad_to_sequence_len: false
281
+
282
+ wandb_project: tavbussy
283
+ wandb_entity:
284
+ wandb_watch:
285
+ wandb_name: kto-chat-2
286
+ wandb_log_model:
287
+
288
+ gradient_accumulation_steps: 4
289
+ micro_batch_size: 2
290
+ num_epochs: 1
291
+ optimizer: paged_adamw_8bit
292
+ learning_rate: 5e-6
293
+ max_grad_norm: 0.001
294
+ lr_scheduler: constant_with_warmup
295
+ weight_decay: 0.02
296
+
297
+
298
+ lora_r: 64
299
+ lora_alpha: 32
300
+ lora_dropout: 0.1
301
+ lora_target_linear: true
302
+ lora_fan_in_fan_out:
303
+ lora_target_modules:
304
+ - gate_proj
305
+ - down_proj
306
+ - up_proj
307
+ - q_proj
308
+ - v_proj
309
+ - k_proj
310
+ - o_prog
311
+
312
+ train_on_inputs: false
313
+ group_by_length: false
314
+ bf16: auto
315
+ fp16:
316
+ tf32: true
317
+
318
+ gradient_checkpointing: true
319
+ gradient_checkpointing_kwargs:
320
+ use_reentrant: true
321
+ remove_unused_columns: false
322
+ early_stopping_patience:
323
+ resume_from_checkpoint:
324
+ local_rank:
325
+ logging_steps: 1
326
+ xformers_attention:
327
+ flash_attention: true
328
+
329
+ warmup_steps: 35
330
+ evals_per_epoch: 2
331
+ eval_table_size:
332
+ eval_max_new_tokens:
333
+ saves_per_epoch: 2
334
+
335
+ debug:
336
+ deepspeed:
337
+ fsdp:
338
+ fsdp_config:
339
+ fsdp:
340
+ fsdp_config:
341
+
342
+ special_tokens:
343
+ pad_token: <|finetune_right_pad_id|>
344
+ ```
345
+
346
+ </details>
347
+ </div>
348
+
349
+ <div align="center">
350
+
351
+ <div style="border: 2px solid #6e00ff; border-radius: 10px; padding: 20px; margin: 20px 0; box-shadow: 0 0 15px rgba(110, 0, 255, 0.5);">
352
+
353
+ ## ⚡ Credits
354
+ <div style="display: flex; justify-content: center;">
355
+ <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 20px 0; max-width: 600px;">
356
+
357
+ <div style="border:1px solid #333; padding:10px; border-radius:5px; text-align:center; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center;">
358
+ <a href="https://huggingface.co/lucyknada">
359
+ <img src="https://img.shields.io/badge/%F0%9F%8C%9F-Lucy_Knada-blueviolet" alt="Lucy Knada">
360
+ </a>
361
+ </div>
362
+
363
+ <div style="border:1px solid #333; padding:10px; border-radius:5px; text-align:center; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center;">
364
+ <a href="https://huggingface.co/hamanasu">
365
+ <img src="https://img.shields.io/badge/%E2%9A%94%EF%B8%8F-jeiku-blueviolet" alt="Ruka">
366
+ </a>
367
+ </div>
368
+
369
+ <div style="border:1px solid #333; padding:10px; border-radius:5px; text-align:center; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center;">
370
+ <a href="https://huggingface.co/intervitens">
371
+ <img src="https://img.shields.io/badge/%F0%9F%9B%A1%EF%B8%8F-Intervitens-blueviolet" alt="Intervitens">
372
+ </a>
373
+ </div>
374
+
375
+ <div style="border:1px solid #333; padding:10px; border-radius:5px; text-align:center; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center;">
376
+ <a href="https://huggingface.co/kalomaze">
377
+ <img src="https://img.shields.io/badge/%F0%9F%94%AE-Kalomaze-blueviolet" alt="Kalomaze">
378
+ </a>
379
+ </div>
380
+
381
+ <div style="border:1px solid #333; padding:10px; border-radius:5px; text-align:center; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center;">
382
+ <a href="https://huggingface.co/kubernetes-bad">
383
+ <img src="https://img.shields.io/badge/%E2%9A%A1-Kubernetes_Bad-blueviolet" alt="Kubernetes Bad">
384
+ </a>
385
+ </div>
386
+
387
+ <div style="border:1px solid #333; padding:10px; border-radius:5px; text-align:center; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center;">
388
+ <a href="https://huggingface.co/anthracite-org">
389
+ <img src="https://img.shields.io/badge/%F0%9F%8C%91-Anthracite-blueviolet" alt="Anthracite">
390
+ </a>
391
+ </div>
392
+ </div>
393
+ </div>
394
+ </div>
395
+
396
+ ---
397
+
398
+ <div align="center">
399
+ <div style="font-size:0.8em; opacity:0.8;">Made by</div>
400
+ <div style="font-size:1.2em; font-weight:bold; background: linear-gradient(45deg, #6e00ff, #00ffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">Delta-Vector</div>
401
+ </div>
402
+
403
+ </div>
404
+ </body>
405
+ </html>