zerofata commited on
Commit
81ba90c
·
verified ·
1 Parent(s): 5298b65

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +432 -0
README.md ADDED
@@ -0,0 +1,432 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - zerofata/L3.3-GeneticLemonade-Unleashed-v3-70B
4
+ library_name: transformers
5
+ license: llama3
6
+ ---
7
+ <!DOCTYPE html>
8
+ <style>
9
+ /* Base styling for cyberpunk theme */
10
+ body {font-family: sans-serif; background-color: #080c14; color: #e1e9f0; line-height: 1.6; margin: 0; padding: 0;}
11
+
12
+ .lemonade-text {
13
+ color: #33ff99;
14
+ position: relative; /* Keep relative positioning */
15
+ z-index: 2;
16
+ margin-left: 0.2em;
17
+ text-shadow: 0 0 10px #33ff99; /* Add static glow */
18
+ }
19
+
20
+ /* Section styling */
21
+ .section-container {background-color: rgba(8, 12, 20, 0.7); margin-bottom: 30px; position: relative; overflow: hidden; border-bottom: 1px solid #33ff99;}
22
+ .section-header {display: flex; align-items: center; background-color: rgba(0, 195, 255, 0.1); padding: 10px 20px;}
23
+ .section-indicator {width: 8px; height: 20px; background-color: #33ff99; margin-right: 15px;}
24
+ .section-title {font-family: 'Orbitron', sans-serif; color: #e1e9f0; font-size: 1.3rem; margin: 0; letter-spacing: 2px; text-transform: uppercase; font-weight: 500;}
25
+ .section-content {padding: 20px; font-family: sans-serif; color: #e1e9f0; line-height: 1.6;}
26
+
27
+ /* Title styling */
28
+ .title-container {
29
+ background-color: #080c14;
30
+ position: relative;
31
+ overflow: hidden;
32
+ margin-bottom: 40px;
33
+ border-left: 3px solid #33ff99;
34
+ }
35
+
36
+ .title-wrapper {
37
+ position: relative;
38
+ z-index: 2;
39
+ padding: 25px 20px 30px 30px;
40
+ font-family: 'Orbitron', sans-serif;
41
+ }
42
+
43
+ .title-main {
44
+ color: #e1e9f0;
45
+ font-size: 2.5rem; /* Reduced font size */
46
+ font-weight: 700;
47
+ margin: 0;
48
+ letter-spacing: 2px;
49
+ display: inline-block;
50
+ position: relative;
51
+ text-transform: uppercase;
52
+ }
53
+
54
+ .title-prefix {
55
+ position: relative;
56
+ z-index: 2;
57
+ }
58
+
59
+ .title-subtitle {
60
+ padding-left: 15px;
61
+ margin-top: 5px;
62
+ margin-left: 5px;
63
+ }
64
+
65
+ .subtitle-text {
66
+ color: #00c3ff;
67
+ font-size: 1.2rem; /* Reduced font size */
68
+ font-family: 'Orbitron', sans-serif;
69
+ font-weight: 300;
70
+ letter-spacing: 3px;
71
+ text-transform: uppercase;
72
+ display: inline-block;
73
+ }
74
+
75
+ .glitchy-overlay {
76
+ position: absolute;
77
+ top: 0;
78
+ left: 0;
79
+ width: 100%;
80
+ height: 100%;
81
+ background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0.1) 1px, rgba(0,0,0,0) 2px);
82
+ z-index: 1;
83
+ }
84
+
85
+ /* Data box styling */
86
+ .data-box {background-color: rgba(0, 0, 0, 0.2); padding: 15px; border-left: 2px solid #33ff99; margin-bottom: 20px;}
87
+ .data-row {display: flex; margin-bottom: 8px;}
88
+ .data-arrow {color: #33ff99; width: 20px; display: inline-block;}
89
+ .data-label {color: #00c3ff; width: 80px; display: inline-block;}
90
+
91
+ /* Subheading styling */
92
+ .subheading {color: #00c3ff; font-size: 1.1rem; margin-top: 20px; margin-bottom: 15px; font-weight: 400; border-bottom: 1px dashed rgba(0, 195, 255, 0.3); display: inline-block; text-transform: uppercase; letter-spacing: 1px; font-family: 'Orbitron', sans-serif;}
93
+
94
+ /* Links */
95
+ a {color: #00c3ff; text-decoration: none;}
96
+ a:hover {text-decoration: underline;}
97
+
98
+ /* Container */
99
+ .container {max-width: 1200px; margin: 0 auto; padding: 40px 20px;}
100
+
101
+ /* Cyberpunk grid background */
102
+ .cyber-grid-bg {position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: #05071b; background-image: linear-gradient(rgba(0, 194, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 194, 255, 0.03) 1px, transparent 1px); background-size: 20px 20px; z-index: -1;}
103
+ </style>
104
+ <html lang="en">
105
+ <head>
106
+ <meta charset="UTF-8">
107
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
108
+ <title>GENETIC LEMONADE UNLEASHED v3</title>
109
+ <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=JetBrains+Mono:wght@100;300;400;700&display=swap" rel="stylesheet">
110
+ </head>
111
+ <body>
112
+ <div class="cyber-grid-bg"></div>
113
+
114
+ <div class="container">
115
+ <div class="title-container">
116
+ <!-- Glitchy overlay -->
117
+ <div class="glitchy-overlay"></div>
118
+ <!-- Main title -->
119
+ <div class="title-wrapper">
120
+ <h1 class="title-main">
121
+ <span class="title-prefix">GENETIC</span>
122
+ <span class="lemonade-text">LEMONADE</span> <!-- Static text with glow -->
123
+ </h1>
124
+ <div class="title-subtitle">
125
+ <span class="subtitle-text">UNLEASHED v3</span>
126
+ </div>
127
+ </div>
128
+ </div>
129
+
130
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/65b19c6c638328850e12d38c/_XKaHDAVin1ZkdlHyh09q.png)
131
+
132
+ <div class="section-container">
133
+ <div class="section-header">
134
+ <div class="section-indicator"></div>
135
+ <h2 class="section-title">01 // OVERVIEW</h2>
136
+ </div>
137
+ <div class="section-content">
138
+ <p>An experimental release.</p>
139
+ <p><a href="https://huggingface.co/zerofata/L3.3-GeneticLemonade-Unleashed-70B">zerofata/GeneticLemonade-Unleashed</a> SFT+DPO QLora finetune.</p>
140
+ <p>This is a creative model intended to excel at character driven RP / ERP. It has not been tested or trained on adventure stories or any large amounts of creative writing.</p>
141
+ <p>This model is designed to provide longer, narrative heavy responses where characters are portrayed accurately and proactively.</p>
142
+ </div>
143
+ </div>
144
+
145
+ <div class="section-container">
146
+ <div class="section-header">
147
+ <div class="section-indicator"></div>
148
+ <h2 class="section-title">02 // SILLYTAVERN SETTINGS</h2>
149
+ </div>
150
+ <div class="section-content">
151
+ <p>Play with these, they are not the 'best' settings just a stable baseline.</p>
152
+ <h3 class="subheading">Recommended Samplers</h3>
153
+ <div class="data-box">
154
+ <div class="data-row">
155
+ <span class="data-arrow">></span>
156
+ <span class="data-label">Temp:</span>
157
+ <span>0.9 - 1.0</span>
158
+ </div>
159
+ <div class="data-row">
160
+ <span class="data-arrow">></span>
161
+ <span class="data-label">MinP:</span>
162
+ <span>0.03 - 0.04</span>
163
+ </div>
164
+ <div class="data-row">
165
+ <span class="data-arrow">></span>
166
+ <span class="data-label">TopP:</span>
167
+ <span>0.9 - 1.0</span>
168
+ </div>
169
+ <div class="data-row">
170
+ <span class="data-arrow">></span>
171
+ <span class="data-label">Dry:</span>
172
+ <span>0.8, 1.75, 4</span>
173
+ </div>
174
+ </div>
175
+ <h3 class="subheading">Instruct</h3>
176
+ <div class="data-box">
177
+ <p style="margin: 0;">Llama-3-Instruct-Names but you will need to uncheck "System same as user".</p>
178
+ </div>
179
+ </div>
180
+ </div>
181
+
182
+ <div class="section-container">
183
+ <div class="section-header">
184
+ <div class="section-indicator"></div>
185
+ <h2 class="section-title">03 // QUANTIZATIONS</h2>
186
+ </div>
187
+ <div class="section-content">
188
+ <div style="margin-bottom: 20px;">
189
+ <h3 class="subheading">GGUF</h3>
190
+ <div style="margin-left: 20px;">
191
+ <span style="color: #33ff99; display: inline-block; margin-right: 10px;">> </span><a href="">iMatrix</a><br>
192
+ </div>
193
+ </div>
194
+ <div>
195
+ <h3 class="subheading">EXL2</h3>
196
+ <div style="margin-left: 20px;">
197
+ <span style="color: #33ff99; display: inline-block; margin-right: 10px;">> </span><a href="https://huggingface.co/zerofata/L3.3-GeneticLemonade-Unleashed-v3-70B_4bpw-hb6-exl2">4bpw</a><br>
198
+ <span style="color: #33ff99; display: inline-block; margin-right: 10px;">> </span><a href="https://huggingface.co/zerofata/L3.3-GeneticLemonade-Unleashed-v3-70B_4.5bpw-hb6-exl2">4.5bpw</a><br>
199
+ <span style="color: #33ff99; display: inline-block; margin-right: 10px;">> </span><a href="https://huggingface.co/zerofata/L3.3-GeneticLemonade-Unleashed-v3-70B_6bpw-hb8-exl2">6bpw</a>
200
+ </div>
201
+ </div>
202
+ </div>
203
+ </div>
204
+
205
+ <div class="section-container">
206
+ <div class="section-header">
207
+ <div class="section-indicator"></div>
208
+ <h2 class="section-title">04 // TRAINING PROCESS</h2>
209
+ </div>
210
+ <div class="section-content">
211
+ <p>The model first went through SFT with a small synthetic dataset of 2.9 million tokens, approximately 750 conversations. Primarily RP data with small amounts of random instruct / assistant data and creative writing.</p>
212
+ <p>The model then went through DPO training using approx 1100 chosen examples from the SFT dataset that were of exceptional quality or showed verifiable instruction following. Rejected samples were generated using another Llama 3.3 finetune that is known for poor instruction following.</p>
213
+ </div>
214
+ </div>
215
+ </div>
216
+ <h3 class="subheading">Axolotl configs</h3>
217
+ <p>Neither are optimized for cost / performance efficiency, YMMV.</p>
218
+ <h3>SFT 1*H200</h3>
219
+
220
+ ```yml
221
+ # ====================
222
+ # MODEL CONFIGURATION
223
+ # ====================
224
+ base_model: zerofata/L3.3-GeneticLemonade-Unleashed-70B
225
+ model_type: AutoModelForCausalLM
226
+ tokenizer_type: AutoTokenizer
227
+ special_tokens:
228
+ pad_token: "<|finetune_right_pad_id|>"
229
+ chat_template: llama3
230
+
231
+ # ====================
232
+ # DATASET CONFIGURATION
233
+ # ====================
234
+ datasets:
235
+ - path: ./dataset.jsonl
236
+ type: chat_template
237
+ split: train
238
+ chat_template_strategy: tokenizer
239
+ field_messages: messages
240
+ message_property_mappings:
241
+ role: role
242
+ content: content
243
+ roles:
244
+ user: ["user"]
245
+ assistant: ["assistant"]
246
+ system: ["system"]
247
+
248
+ test_datasets:
249
+ - path: ./validate_dataset.jsonl
250
+ type: chat_template
251
+ split: train
252
+ chat_template_strategy: tokenizer
253
+ field_messages: messages
254
+ message_property_mappings:
255
+ role: role
256
+ content: content
257
+ roles:
258
+ user: ["user"]
259
+ assistant: ["assistant"]
260
+ system: ["system"]
261
+
262
+ dataset_prepared_path:
263
+ train_on_inputs: false # Only train on assistant responses
264
+
265
+ # ====================
266
+ # QLORA CONFIGURATION
267
+ # ====================
268
+ adapter: qlora
269
+ load_in_4bit: true
270
+ lora_r: 64
271
+ lora_alpha: 128
272
+ lora_dropout: 0.1
273
+ lora_target_linear: true
274
+ # lora_modules_to_save: # Uncomment only if you added NEW tokens
275
+
276
+ # ====================
277
+ # TRAINING PARAMETERS
278
+ # ====================
279
+ num_epochs: 2
280
+ micro_batch_size: 4
281
+ gradient_accumulation_steps: 2
282
+ learning_rate: 1.5e-5
283
+ optimizer: paged_adamw_8bit
284
+ lr_scheduler: rex
285
+ warmup_ratio: 0.05
286
+ weight_decay: 0.01
287
+ max_grad_norm: 1.0
288
+
289
+ # ====================
290
+ # SEQUENCE & PACKING
291
+ # ====================
292
+ sequence_len: 8192
293
+ sample_packing: true
294
+ eval_sample_packing: false
295
+ pad_to_sequence_len: true
296
+
297
+ # ====================
298
+ # HARDWARE OPTIMIZATIONS
299
+ # ====================
300
+ bf16: auto
301
+ flash_attention: true
302
+ gradient_checkpointing: true
303
+
304
+ # ====================
305
+ # EVALUATION & CHECKPOINTING
306
+ # ====================
307
+ evaluation_strategy: steps
308
+ eval_steps: 5
309
+ save_strategy: steps
310
+ save_steps: 5
311
+ save_total_limit: 5 # Keep best + last few checkpoints
312
+ load_best_model_at_end: true
313
+ metric_for_best_model: eval_loss
314
+ greater_is_better: false
315
+ early_stopping_patience: 5
316
+
317
+ # ====================
318
+ # LOGGING & OUTPUT
319
+ # ====================
320
+ output_dir: ./output_model
321
+ logging_steps: 2
322
+ save_safetensors: true
323
+
324
+ # ====================
325
+ # WANDB TRACKING
326
+ # ====================
327
+ wandb_project: project_name
328
+ # wandb_entity: your_entity
329
+ # wandb_name: your_run_name
330
+
331
+ ```
332
+ <h3>DPO 2*H200</h3>
333
+
334
+ ```yml
335
+ # ====================
336
+ # MODEL CONFIGURATION
337
+ # ====================
338
+ base_model: ApocalypseParty/unleashed-fulldata30
339
+ model_type: AutoModelForCausalLM
340
+ tokenizer_type: AutoTokenizer
341
+ special_tokens: {}
342
+ chat_template: tokenizer_default
343
+
344
+ # ====================
345
+ # RL/DPO CONFIGURATION
346
+ # ====================
347
+ rl: dpo
348
+ rl_beta: 0.07
349
+
350
+ # ====================
351
+ # DATASET CONFIGURATION
352
+ # ====================
353
+ datasets:
354
+ - path: ./dpo_cleaned-v3_deduplicated.jsonl
355
+ type: chat_template.default
356
+ field_messages: conversation
357
+ field_chosen: chosen
358
+ field_rejected: rejected
359
+ message_property_mappings:
360
+ role: role
361
+ content: content
362
+ roles:
363
+ system: ["system"]
364
+ user: ["user"]
365
+ assistant: ["assistant"]
366
+ dataset_prepared_path:
367
+ train_on_inputs: false # Only train on assistant responses
368
+
369
+ # ====================
370
+ # QLORA CONFIGURATION
371
+ # ====================
372
+ adapter: qlora
373
+ load_in_4bit: true
374
+ lora_r: 32
375
+ lora_alpha: 64
376
+ lora_dropout: 0.05
377
+ lora_target_linear: true
378
+ # lora_modules_to_save: # Uncomment only if you added NEW tokens
379
+
380
+ # ====================
381
+ # TRAINING PARAMETERS
382
+ # ====================
383
+ num_epochs: 1
384
+ micro_batch_size: 4
385
+ gradient_accumulation_steps: 2
386
+ learning_rate: 2e-6
387
+ optimizer: adamw_8bit
388
+ lr_scheduler: cosine
389
+ warmup_steps: 5
390
+ weight_decay: 0.01
391
+ max_grad_norm: 1.0
392
+
393
+ # ====================
394
+ # SEQUENCE CONFIGURATION
395
+ # ====================
396
+ sequence_len: 4096
397
+ pad_to_sequence_len: true
398
+
399
+ # ====================
400
+ # HARDWARE OPTIMIZATIONS
401
+ # ====================
402
+ bf16: auto
403
+ tf32: false
404
+ flash_attention: true
405
+ gradient_checkpointing: offload
406
+ deepspeed: deepspeed_configs/zero1.json
407
+
408
+ # ====================
409
+ # CHECKPOINTING
410
+ # ====================
411
+ save_steps: 10
412
+ save_total_limit: 10
413
+ load_best_model_at_end: true
414
+ metric_for_best_model: eval_loss
415
+ greater_is_better: false
416
+
417
+ # ====================
418
+ # LOGGING & OUTPUT
419
+ # ====================
420
+ output_dir: ./dpo_model
421
+ logging_steps: 2
422
+ save_safetensors: true
423
+
424
+ # ====================
425
+ # WANDB TRACKING
426
+ # ====================
427
+ wandb_project: project_name
428
+ # wandb_entity: your_entity
429
+ # wandb_name: your_run_name
430
+ ```
431
+ </body>
432
+ </html>