aashish1904
commited on
Commit
•
c9c26c3
1
Parent(s):
1a6cf85
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
- HuggingFaceH4/ultrafeedback_binarized
|
11 |
+
License: agpl-3.0
|
12 |
+
Language:
|
13 |
+
- En
|
14 |
+
Pipeline_tag: text-generation
|
15 |
+
Base_model: arcee-ai/Llama-3.1-SuperNova-Lite
|
16 |
+
Tags:
|
17 |
+
- Chat
|
18 |
+
|
19 |
+
---
|
20 |
+
|
21 |
+
[![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
|
22 |
+
|
23 |
+
|
24 |
+
# QuantFactory/Control-8B-V1.1-GGUF
|
25 |
+
This is quantized version of [Delta-Vector/Control-8B-V1.1](https://huggingface.co/Delta-Vector/Control-8B-V1.1) created using llama.cpp
|
26 |
+
|
27 |
+
# Original Model Card
|
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, This version of Control has been finetuned with DPO to help improve the smart's and coherency which was a flaw i noticed in the previous model.
|
31 |
+
|
32 |
+
# Quants
|
33 |
+
|
34 |
+
GGUF: https://huggingface.co/Delta-Vector/Control-8B-V1.1-GGUF/
|
35 |
+
|
36 |
+
EXL2 (Thanks Lucy <3) : https://huggingface.co/Delta-Vector/Control-8B-V1.1-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 |
+
## Unsloth config
|
128 |
+
|
129 |
+
<details><summary>See Unsloth Trainer config</summary>
|
130 |
+
|
131 |
+
```yaml
|
132 |
+
dpo_trainer = DPOTrainer(
|
133 |
+
model = model,
|
134 |
+
ref_model = None,
|
135 |
+
args = DPOConfig(
|
136 |
+
per_device_train_batch_size = 1,
|
137 |
+
gradient_accumulation_steps = 8,
|
138 |
+
warmup_ratio = 0.1,
|
139 |
+
num_train_epochs = 2,
|
140 |
+
learning_rate = 5e-6,
|
141 |
+
fp16 = not is_bfloat16_supported(),
|
142 |
+
bf16 = is_bfloat16_supported(),
|
143 |
+
logging_steps = 1,
|
144 |
+
optim = "adamw_8bit",
|
145 |
+
weight_decay = 0.02,
|
146 |
+
lr_scheduler_type = "linear",
|
147 |
+
seed = 42,
|
148 |
+
output_dir = "outputs",
|
149 |
+
report_to = "none", # Use this for WandB etc
|
150 |
+
),
|
151 |
+
beta = 0.1,
|
152 |
+
train_dataset = raw_datasets["train"],
|
153 |
+
# eval_dataset = raw_datasets["test"],
|
154 |
+
tokenizer = tokenizer,
|
155 |
+
max_length = 1024,
|
156 |
+
max_prompt_length = 512,
|
157 |
+
)
|
158 |
+
```
|
159 |
+
|
160 |
+
</details><br>
|
161 |
+
|
162 |
+
## Credits
|
163 |
+
|
164 |
+
Thank you to [Lucy Knada](https://huggingface.co/lucyknada), [CelineDion](https://huggingface.co/CelineDion), [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.)
|
165 |
+
|
166 |
+
|
167 |
+
## Training
|
168 |
+
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, After which DPO tuning was on 1 x [Nvidia T4 GPU](https://www.nvidia.com/en-us/data-center/tesla-t4/)
|
169 |
+
|
170 |
+
[<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)
|
171 |
+
|
172 |
+
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/made%20with%20unsloth.png" alt="Made with Unsloth" width="200" height="32"/>](https://github.com/unslothai/unsloth)
|
173 |
+
|
174 |
+
## Safety
|
175 |
+
|
176 |
+
Nein.
|