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|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
|
4 |
+
license: agpl-3.0
|
5 |
+
tags:
|
6 |
+
- chat
|
7 |
+
datasets:
|
8 |
+
- NewEden/OpenCAI-ShareGPT
|
9 |
+
- NewEden/Roleplay-Logs-Sharegpt-Ngram-cleaned
|
10 |
+
License: agpl-3.0
|
11 |
+
Language:
|
12 |
+
- En
|
13 |
+
Pipeline_tag: text-generation
|
14 |
+
Base_model: arcee-ai/Llama-3.1-SuperNova-Lite
|
15 |
+
Tags:
|
16 |
+
- Chat
|
17 |
+
|
18 |
+
---
|
19 |
+
|
20 |
+
[![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
|
21 |
+
|
22 |
+
|
23 |
+
# QuantFactory/Control-8B-GGUF
|
24 |
+
This is quantized version of [Delta-Vector/Control-8B](https://huggingface.co/Delta-Vector/Control-8B) created using llama.cpp
|
25 |
+
|
26 |
+
# Original Model Card
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
An experimental finetune based on the Llama3.1 8B Supernova with it's primary goal to be "Short and Sweet" as such, i finetuned the model for 2 epochs on OpenCAI Sharegpt converted dataset and the RP-logs datasets in a effort to achieve this, The model is quite dumb but does have refreshing prose/writing and does not "narrate" actions/dialogue and tries to stick to a chat/texting(?) format.
|
31 |
+
|
32 |
+
# Quants
|
33 |
+
|
34 |
+
GGUF: https://huggingface.co/Delta-Vector/Control-8B-gguf
|
35 |
+
|
36 |
+
EXL2 (Thanks Lucy <3) : https://huggingface.co/Delta-Vector/Control-8B-EXL2
|
37 |
+
|
38 |
+
|
39 |
+
## Prompting
|
40 |
+
Model has been tuned with the LLama-Instruct formatting. A typical input would look like this:
|
41 |
+
|
42 |
+
```py
|
43 |
+
"""<|begin_of_text|><|start_header_id|>system<|end_header_id|>
|
44 |
+
You are an AI built to rid the world of bonds and journeys!<|eot_id|><|start_header_id|>user<|end_header_id|>
|
45 |
+
Bro i just wanna know what is 2+2?<|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
46 |
+
"""
|
47 |
+
|
48 |
+
```
|
49 |
+
|
50 |
+
*Also note that ChatML may work as well, and might change how the model feels. while still being coherent and stable*
|
51 |
+
|
52 |
+
## System Prompting
|
53 |
+
|
54 |
+
I would highly recommend using either Euryale's system prompt or the EVA system prompt with the model.
|
55 |
+
|
56 |
+
<details><summary>See Sao10k's Euryale System Prompt</summary>
|
57 |
+
|
58 |
+
```
|
59 |
+
Currently, your role is {{char}}, described in detail below. As {{char}}, continue the narrative exchange with {{user}}.
|
60 |
+
<Guidelines>
|
61 |
+
• Maintain the character persona but allow it to evolve with the story.
|
62 |
+
• Be creative and proactive. Drive the story forward, introducing plotlines and events when relevant.
|
63 |
+
• All types of outputs are encouraged; respond accordingly to the narrative.
|
64 |
+
• Include dialogues, actions, and thoughts in each response.
|
65 |
+
• Utilize all five senses to describe scenarios within {{char}}'s dialogue.
|
66 |
+
• Use emotional symbols such as "!" and "~" in appropriate contexts.
|
67 |
+
• Incorporate onomatopoeia when suitable.
|
68 |
+
• Allow time for {{user}} to respond with their own input, respecting their agency.
|
69 |
+
• Act as secondary characters and NPCs as needed, and remove them when appropriate.
|
70 |
+
• When prompted for an Out of Character [OOC:] reply, answer neutrally and in plaintext, not as {{char}}.
|
71 |
+
</Guidelines>
|
72 |
+
|
73 |
+
<Forbidden>
|
74 |
+
• Using excessive literary embellishments and purple prose unless dictated by {{char}}'s persona.
|
75 |
+
• Writing for, speaking, thinking, acting, or replying as {{user}} in your response.
|
76 |
+
• Repetitive and monotonous outputs.
|
77 |
+
• Positivity bias in your replies.
|
78 |
+
• Being overly extreme or NSFW when the narrative context is inappropriate.
|
79 |
+
</Forbidden>
|
80 |
+
|
81 |
+
Follow the instructions in <Guidelines></Guidelines>, avoiding the items listed in <Forbidden></Forbidden>.
|
82 |
+
|
83 |
+
```
|
84 |
+
</details><br>
|
85 |
+
|
86 |
+
<details><summary>See EVA System Prompt</summary>
|
87 |
+
|
88 |
+
```
|
89 |
+
A fictional, narrative-driven role-play emphasizing versatility and UNCENSORED content. Adherence to the `Role-playing Guidelines` is mandatory. Refer to the `Role-play Context` for accurate information.\n\n\n
|
90 |
+
|
91 |
+
<!-- Start of Role-playing Guidelines -->
|
92 |
+
|
93 |
+
### Narration
|
94 |
+
Concise Descriptions: Keep narration short and to the point, avoiding redundant unnecessary details. Use a dynamic and varied vocabulary for impact.
|
95 |
+
Complementary Role: Use narration to complement dialogue and action, not overshadow them.
|
96 |
+
Avoid Repetition: Ensure narration does not repeat information already conveyed through dialogue or action.
|
97 |
+
|
98 |
+
### Narrative Consistency
|
99 |
+
Continuity: Adhere to established story elements, expanding without contradicting previous details.\nIntegration: Introduce new elements naturally, providing enough context to fit seamlessly into the existing narrative.
|
100 |
+
|
101 |
+
### Character Embodiment
|
102 |
+
Analysis: Examine the context, subtext, and implications of the given information to gain a deeper understandings of the characters'.
|
103 |
+
Reflection: Take time to consider the situation, characters' motivations, and potential consequences.
|
104 |
+
Authentic Portrayal: Bring characters to life by consistently and realistically portraying their unique traits, thoughts, emotions, appearances, physical sensations, speech patterns, and tone. Ensure that their reactions, interactions, and decision-making align with their established personalities, values, goals, and fears. Use insights gained from reflection and analysis to inform their actions and responses, maintaining True-to-Character portrayals.
|
105 |
+
|
106 |
+
<!-- End of Role-playing Guidelines -->
|
107 |
+
|
108 |
+
</details><br>
|
109 |
+
|
110 |
+
### Narration
|
111 |
+
Concise Descriptions: Keep narration short and to the point, avoiding redundant unnecessary details. Use a dynamic and varied vocabulary for impact.
|
112 |
+
Complementary Role: Use narration to complement dialogue and action, not overshadow them.
|
113 |
+
Avoid Repetition: Ensure narration does not repeat information already conveyed through dialogue or action.
|
114 |
+
|
115 |
+
### Narrative Consistency
|
116 |
+
Continuity: Adhere to established story elements, expanding without contradicting previous details.\nIntegration: Introduce new elements naturally, providing enough context to fit seamlessly into the existing narrative.
|
117 |
+
|
118 |
+
### Character Embodiment
|
119 |
+
Analysis: Examine the context, subtext, and implications of the given information to gain a deeper understandings of the characters'.
|
120 |
+
Reflection: Take time to consider the situation, characters' motivations, and potential consequences.
|
121 |
+
Authentic Portrayal: Bring characters to life by consistently and realistically portraying their unique traits, thoughts, emotions, appearances, physical sensations, speech patterns, and tone. Ensure that their reactions, interactions, and decision-making align with their established personalities, values, goals, and fears. Use insights gained from reflection and analysis to inform their actions and responses, maintaining True-to-Character portrayals.
|
122 |
+
|
123 |
+
<!-- End of Role-playing Guidelines -->",
|
124 |
+
```
|
125 |
+
</details><br>
|
126 |
+
|
127 |
+
## Axolotl config
|
128 |
+
|
129 |
+
<details><summary>See axolotl config</summary>
|
130 |
+
|
131 |
+
Axolotl version: `0.4.1`
|
132 |
+
```yaml
|
133 |
+
base_model: arcee-ai/Llama-3.1-SuperNova-Lite
|
134 |
+
model_type: AutoModelForCausalLM
|
135 |
+
tokenizer_type: AutoTokenizer
|
136 |
+
|
137 |
+
load_in_8bit: false
|
138 |
+
load_in_4bit: false
|
139 |
+
strict: false
|
140 |
+
|
141 |
+
datasets:
|
142 |
+
- path: NewEden/CharacterAI-logs-sharegpt-Ngram-Cleaned
|
143 |
+
type: sharegpt
|
144 |
+
conversation: llama3
|
145 |
+
- path: NewEden/OpenCAI-ShareGPT
|
146 |
+
type: sharegpt
|
147 |
+
conversation: llama3
|
148 |
+
|
149 |
+
|
150 |
+
chat_template: llama3
|
151 |
+
|
152 |
+
#val_set_size: 0.01
|
153 |
+
output_dir: ./outputs
|
154 |
+
|
155 |
+
adapter:
|
156 |
+
lora_r:
|
157 |
+
lora_alpha:
|
158 |
+
lora_dropout:
|
159 |
+
lora_target_linear:
|
160 |
+
|
161 |
+
sequence_len: 16384
|
162 |
+
# sequence_len: 32768
|
163 |
+
sample_packing: true
|
164 |
+
eval_sample_packing: false
|
165 |
+
pad_to_sequence_len: true
|
166 |
+
|
167 |
+
|
168 |
+
wandb_project: CAI-Supernova
|
169 |
+
wandb_entity:
|
170 |
+
wandb_watch:
|
171 |
+
wandb_name: CAI-Supernova-2
|
172 |
+
wandb_log_model:
|
173 |
+
|
174 |
+
|
175 |
+
plugins:
|
176 |
+
- axolotl.integrations.liger.LigerPlugin
|
177 |
+
liger_rope: true
|
178 |
+
liger_rms_norm: true
|
179 |
+
liger_swiglu: true
|
180 |
+
liger_fused_linear_cross_entropy: true
|
181 |
+
|
182 |
+
gradient_accumulation_steps: 2
|
183 |
+
micro_batch_size: 1
|
184 |
+
num_epochs: 4
|
185 |
+
optimizer: paged_adamw_8bit
|
186 |
+
lr_scheduler: cosine
|
187 |
+
learning_rate: 1e-5
|
188 |
+
weight_decay: 0.05
|
189 |
+
|
190 |
+
train_on_inputs: false
|
191 |
+
group_by_length: false
|
192 |
+
bf16: auto
|
193 |
+
fp16:
|
194 |
+
tf32: true
|
195 |
+
|
196 |
+
gradient_checkpointing: unsloth
|
197 |
+
early_stopping_patience:
|
198 |
+
resume_from_checkpoint:
|
199 |
+
#auto_resume_from_checkpoints: true
|
200 |
+
local_rank:
|
201 |
+
logging_steps: 1
|
202 |
+
xformers_attention:
|
203 |
+
flash_attention: true
|
204 |
+
|
205 |
+
warmup_steps: 15
|
206 |
+
#evals_per_epoch: 4
|
207 |
+
eval_table_size:
|
208 |
+
#eval_max_new_tokens: 128
|
209 |
+
saves_per_epoch: 1
|
210 |
+
|
211 |
+
debug:
|
212 |
+
deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16_cpuoffload_params.json
|
213 |
+
fsdp:
|
214 |
+
fsdp_config:
|
215 |
+
|
216 |
+
special_tokens:
|
217 |
+
pad_token: <|finetune_right_pad_id|>
|
218 |
+
eos_token: <|eot_id|>
|
219 |
+
|
220 |
+
```
|
221 |
+
|
222 |
+
</details><br>
|
223 |
+
|
224 |
+
## Credits
|
225 |
+
|
226 |
+
Thank you to [Lucy Knada](https://huggingface.co/lucyknada), [Intervitens](https://huggingface.co/intervitens), [Kalomaze](https://huggingface.co/kalomaze), [Kubernetes Bad](https://huggingface.co/kubernetes-bad) and the rest of [Anthracite](https://huggingface.co/anthracite-org) (But not Alpin.)
|
227 |
+
|
228 |
+
|
229 |
+
## Training
|
230 |
+
The training was done for 2 epochs. We used 4 x [RTX 3090s](https://www.nvidia.com/en-us/geforce/graphics-cards/30-series/rtx-3090-3090ti/) GPUs graciously provided by [Intervitens](https://huggingface.co/intervitens) for the full-parameter fine-tuning of the model.
|
231 |
+
|
232 |
+
[<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)
|
233 |
+
|
234 |
+
## Safety
|
235 |
+
|
236 |
+
Nein.
|