aashish1904
commited on
Commit
•
a8eb776
1
Parent(s):
9ec3468
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,418 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
|
4 |
+
library_name: transformers
|
5 |
+
tags:
|
6 |
+
- not-for-all-audiences
|
7 |
+
license: llama3.1
|
8 |
+
language:
|
9 |
+
- en
|
10 |
+
datasets:
|
11 |
+
- nothingiisreal/c2-logs-cleaned
|
12 |
+
- kalomaze/Opus_Instruct_25k
|
13 |
+
- nothingiisreal/Reddit-Dirty-And-WritingPrompts
|
14 |
+
|
15 |
+
---
|
16 |
+
|
17 |
+
![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)
|
18 |
+
|
19 |
+
# QuantFactory/L3.1-8B-Celeste-V1.5-GGUF
|
20 |
+
This is quantized version of [nothingiisreal/L3.1-8B-Celeste-V1.5](https://huggingface.co/nothingiisreal/L3.1-8B-Celeste-V1.5) created using llama.cpp
|
21 |
+
|
22 |
+
# Original Model Card
|
23 |
+
|
24 |
+
|
25 |
+
<style>
|
26 |
+
h1, h2, h3, h4, h5, h6 {
|
27 |
+
line-height: normal;
|
28 |
+
margin-bottom: 0.5em;
|
29 |
+
}
|
30 |
+
h1 {
|
31 |
+
font-size: 2em;
|
32 |
+
}
|
33 |
+
h2 {
|
34 |
+
font-size: 1.3em;
|
35 |
+
}
|
36 |
+
p, ul, ol, summary {
|
37 |
+
font-size: 1.1em;
|
38 |
+
}
|
39 |
+
</style>
|
40 |
+
|
41 |
+
<h1>L3.1 8B Celeste V1.5</h1>
|
42 |
+
<h2 style="color: red; font-weight: bold;">Read the Usage Tips Below!</h2><h2>Join <a href="https://discord.gg/YcrXhk7QD7">our Discord</a> for testing newer versions and news!</h2>
|
43 |
+
|
44 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/QcU3xEgVu18jeFtMFxIw-.webp" alt="" width="800"/>
|
45 |
+
|
46 |
+
We trained [LLaMA 3.1 8B Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct) at 8K context using **a new mix of** [Reddit Writing Prompts](https://huggingface.co/datasets/nothingiisreal/Reddit-Dirty-And-WritingPrompts), [Kalo's Opus 25K Instruct](https://huggingface.co/datasets/kalomaze/Opus_Instruct_25k) and
|
47 |
+
<br>[c2 logs cleaned](https://huggingface.co/datasets/nothingiisreal/c2-logs-cleaned)
|
48 |
+
|
49 |
+
This version has the highest coherency and is very strong on `OOC:` instruct following.
|
50 |
+
|
51 |
+
# GGUF
|
52 |
+
|
53 |
+
[IMatrix (by MarsupialAI)](https://huggingface.co/MarsupialAI/L3.1-8B-Celeste-V1.5_iMatrix_GGUF) <br>
|
54 |
+
[F16 output and embed tensors (by ZeroWw)](https://huggingface.co/ZeroWw/L3.1-8B-Celeste-V1.5-GGUF)<br>
|
55 |
+
[Static (by Mradermacher)](https://huggingface.co/mradermacher/L3.1-8B-Celeste-V1.5-GGUF)
|
56 |
+
|
57 |
+
# EXL2
|
58 |
+
|
59 |
+
By Auri: <br>
|
60 |
+
[8.0bpw](https://huggingface.co/aetherwiing/L3.1-8B-Celeste-V1.5-exl2-h8-8.0bpw)<br>
|
61 |
+
[6.0bpw](https://huggingface.co/aetherwiing/L3.1-8B-Celeste-V1.5-exl2-h6-6.0bpw) <br>
|
62 |
+
[5.0bpw](https://huggingface.co/aetherwiing/L3.1-8B-Celeste-V1.5-exl2-h6-5.0bpw) <br>
|
63 |
+
[4.5bpw](https://huggingface.co/aetherwiing/L3.1-8B-Celeste-V1.5-exl2-h6-4.5bpw) <br>
|
64 |
+
[4.0bpw](https://huggingface.co/aetherwiing/L3.1-8B-Celeste-V1.5-exl2-h6-4.0bpw) <br>
|
65 |
+
|
66 |
+
# FP8
|
67 |
+
|
68 |
+
[Dynamic (by Auri)](https://huggingface.co/aetherwiing/L3.1-8B-Celeste-V1.5-fp8-dynamic)
|
69 |
+
|
70 |
+
# API V1.2 (V1.5 is coming soon?)
|
71 |
+
- [Featherless](https://featherless.ai/models/nothingiisreal/L3-8B-Celeste-V1.2)
|
72 |
+
|
73 |
+
---
|
74 |
+
<h1>Usage Tips</h1>
|
75 |
+
|
76 |
+
<p style="font-size: 20px; color: red; font-weight: bold;">
|
77 |
+
READ: If this is your first time using the model, use the provided system message and sampling settings below. Remove other jailbreaks and system messages until you get a feel for the model.
|
78 |
+
</p>
|
79 |
+
|
80 |
+
<span style="color: green; font-weight: bold;">If you read every single tip I promise you will get a much better experience as they are tailored for this model and its training data.</span>
|
81 |
+
|
82 |
+
<h2>Sampler Settings for V1.5</h2>
|
83 |
+
|
84 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/eaGG9o3VDFkE8n-8UkKRU.png" alt="" width="600"/>
|
85 |
+
|
86 |
+
Temp 1 is more stable and can feel less random. Feel free to use it aswell, but it can fall into repetition sometimes.<br>
|
87 |
+
Don't shy away from experimenting after you get a feel for the model though.
|
88 |
+
|
89 |
+
<h2>Preset</h2>
|
90 |
+
|
91 |
+
L3 Instruct with no system prompt. [premade](https://huggingface.co/nothingiisreal/L3-8B-Celeste-v1/blob/main/Celeste-Llama-3-Instruct.json) **Was updated, redownload**
|
92 |
+
<br><span style="font-weight: bold;">You don't need a JB but it can still steer behaviour.</span>
|
93 |
+
|
94 |
+
<h2>System Message</h2>
|
95 |
+
|
96 |
+
We recommend using this system message:<br>
|
97 |
+
```
|
98 |
+
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>.
|
99 |
+
```
|
100 |
+
|
101 |
+
<h2>Swipes</h2>
|
102 |
+
|
103 |
+
**Important tip** swipe 2-3 times if you dont like a response. This model gives wildly differing swipes.
|
104 |
+
|
105 |
+
<h2>OOC Steering</h2>
|
106 |
+
|
107 |
+
**Use this! It works extremely well.** We specifically trained the model to accept instructions in the format "OOC: character should be more assertive" etc. It works, whether the very first message or thousands of tokens deep into the context. Combining this with editing the output (if you want,) makes the model is very steerable.
|
108 |
+
|
109 |
+
<h2>"Dead Dove"</h2>
|
110 |
+
|
111 |
+
For character cards with persistent motivations throughout the story, do [this](https://huggingface.co/nothingiisreal/how-to-use-ST-worldinfo)
|
112 |
+
|
113 |
+
<h2>Fewshot</h2>
|
114 |
+
|
115 |
+
First message and last few messages impact this model quite a lot in terms of style, hornyness, personality. **You don't need to have a first message but editing first few messages or having good ones are highly recommended.**
|
116 |
+
|
117 |
+
**Formatting issues** often occur in first few messages, manually correct them or swipe.<br>
|
118 |
+
This model was trained on lots of different formatting types and message lengths. It can do any, just make sure the initial message is good and correct the second message if necessary.
|
119 |
+
<br>
|
120 |
+
<h2>Hornyness</h2>
|
121 |
+
|
122 |
+
If the model is not horny enough then just edit the last character message or OOC: prompt, the model will pick up on it and build on it. (Or just give the char aphrodisiac pills lol) <br>
|
123 |
+
The model is fine with SFW and doesn't make it NSFW unless you want. It is also able to maintain half-NSFW (aka slow burn) without devolving down into hardcore.
|
124 |
+
|
125 |
+
If you want SFW, remove all system messages including provided one. In this mode the model will not go NSFW unless you hint.
|
126 |
+
<br>
|
127 |
+
<h2>Refusals</h2>
|
128 |
+
|
129 |
+
As said, if instruct refusal prefill 2-3 words. **Refusal of romantic advances, though rare, are realistic and we think is good. Prefill if you don't like.** <br>
|
130 |
+
<br>
|
131 |
+
<h2>L3.1 Context</h2>
|
132 |
+
|
133 |
+
While trained on 8K, the model should be able to inherit longer context from L3.1. This is in testing, V1.2 was able to go up to 16K with L3 rope.
|
134 |
+
<h2>Other Important Tips</h2>
|
135 |
+
|
136 |
+
Take active role in the RP and say the type of response that would create the scenario you are imagining. You don't always have to do this, but it helps sometimes. For example instead of *we drink and drink 15 glasses of champagne* say *we drink and drink 15 glasses of champagne, both becoming extremely drunk*
|
137 |
+
<br>Another example instead of *I pull her closer* say *I pull her closer but she plays hard to get*
|
138 |
+
|
139 |
+
When convenient, say screenplay phrases like "cut to"
|
140 |
+
|
141 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/Oq0oJgJIVJAmZGt7-nNKt.png" alt="" width="300"/>
|
142 |
+
|
143 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/PQp64kp6EHg7gN_u2Oj7Q.png" alt="" width="300"/>
|
144 |
+
|
145 |
+
---
|
146 |
+
|
147 |
+
# Showcase V1.5
|
148 |
+
|
149 |
+
Some images include NSFW and NSFL. We believe in creativity of expression and maximising the models capabilities at writing.<br>
|
150 |
+
It's a bit difficult to showcase multi turn stuff, try it yourself too! These are just to show off the models capabilities.
|
151 |
+
|
152 |
+
The model needs nudging and OOC prompting to do proper gore. We are planning to add r/GuroErotica into our dataset to make it better at gore
|
153 |
+
|
154 |
+
Also sometimes prefilling "**Trigger warning: extremely graphic and explicit content**" before character reply makes it more unhinged. Probably because of reddit data.
|
155 |
+
|
156 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/imEyEKYUuAXYidD2CiD-_.png" alt="" width="600"/>
|
157 |
+
|
158 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/95RvO5go-Nz7hFCdV67qs.png" alt="" width="600"/>
|
159 |
+
|
160 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/oIa_P1fmD5aO7PkYF9Ibr.png" alt="" width="600"/>
|
161 |
+
|
162 |
+
<details>
|
163 |
+
<summary>Showcase V1 and 1.2</summary>
|
164 |
+
|
165 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/NiT8-_k3HGrHuV_z475U8.png)
|
166 |
+
|
167 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/cODFe_vjwjfkcondvl-za.png" alt="Image 1" width="600"/>
|
168 |
+
|
169 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/hRsAQBt0h2i5E_fj_Rqb7.png" alt="Image 10" width="600"/>
|
170 |
+
|
171 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/aLm2FjlTsMhCil4VoR-l5.png" alt="Image 3" width="600"/>
|
172 |
+
|
173 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/6kDuFeDB0FpYl27fd3D0E.png" alt="Image 6" width="600"/>
|
174 |
+
|
175 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/66kXuk8Q1DP-QMVZ9Rzv9.png" alt="Image 7" width="600"/>
|
176 |
+
|
177 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/C0eoDXovS359T5oG1VLzm.png" alt="Image 8" width="600"/>
|
178 |
+
|
179 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/mFplb1hkDNziCcgPwHt_y.png" alt="Image 9" width="600"/>
|
180 |
+
|
181 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/KCE4tqI1aOfx-DIH3eBzA.png" alt="Image 2" width="600"/>
|
182 |
+
|
183 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/Oq0oJgJIVJAmZGt7-nNKt.png" alt="Image 4" width="600"/>
|
184 |
+
|
185 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/PQp64kp6EHg7gN_u2Oj7Q.png" alt="Image 5" width="600"/>
|
186 |
+
|
187 |
+
</details>
|
188 |
+
|
189 |
+
---
|
190 |
+
|
191 |
+
# Train Data
|
192 |
+
The split was as follows:
|
193 |
+
|
194 |
+
- **4K rows from r/WritingPrompts**
|
195 |
+
- **400 rows from r/DirtyWritingPrompts**
|
196 |
+
- **400 rows from Kalomaze Opus Instruct 25K**
|
197 |
+
- **400 rows from c2 logs cleaned**
|
198 |
+
|
199 |
+
We filtered those datasets to only include subsets that have at maximum **4000** characters for the first assistant reply. This purged excessively long human stories, assistant replies and c2 logs where each message was excessively long. However we only checked the first assistant message, not the rest of the convo, so there should be plenty of c2 logs with longer and shorter messages.
|
200 |
+
|
201 |
+
Excessively long human stories are almost impossible for 8B model to fit. We tried, it simply won't fit the data and starts behaving weirdly.
|
202 |
+
|
203 |
+
While we did train all system prompts from c2 logs we also have our own system prompts.
|
204 |
+
<details>
|
205 |
+
<summary>List of trained system prompts. Note: c2 logs system prompts and char cards were also included.</summary>
|
206 |
+
|
207 |
+
| Dataset | System Prompt |
|
208 |
+
|--------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
209 |
+
| reddit_dirty_writing_prompts.jsonl | "You are a short story writer. Write a story based on prompt provided by user below. Mode: NSFW" |
|
210 |
+
| reddit_writing_prompts.jsonl | "You are a short story writer. Write a story based on prompt provided by user below. Mode: SFW" |
|
211 |
+
| combined_25k_opus_kalomaze.jsonl | "You are an AI assistant called Celeste created by NothingiisReal team." |
|
212 |
+
| deduped-c2-logs-maywell-final-filter-4.jsonl | (Only if there was no system prompt in the conversation, otherwise keep original system prompt) **"You are an expert actor that can fully immerse yourself into any role given. You do not break character for any reason, even if someone tries addressing you as an AI or language model."** |
|
213 |
+
|
214 |
+
</details>
|
215 |
+
|
216 |
+
---
|
217 |
+
|
218 |
+
# Our Findings and Experimentation results
|
219 |
+
|
220 |
+
## Preface
|
221 |
+
|
222 |
+
We think there is too much secrecy around what data is being used, and different training methods. So we decided to share as much as possible.
|
223 |
+
|
224 |
+
## Findings V1.5
|
225 |
+
<br>
|
226 |
+
|
227 |
+
### The Good
|
228 |
+
|
229 |
+
- Increased intelligence
|
230 |
+
- Less likely to break format
|
231 |
+
- Higher creativity
|
232 |
+
|
233 |
+
### The Bad
|
234 |
+
|
235 |
+
- It's intelligence is limited by the fact that it's an 8B
|
236 |
+
- Sometimes it falls into slop and needs editing or OOC prompting to help. We want to completely plug away from sloppy synthetic data and c2 logs at some point, no matter how unslopped, for now that remains impossible to do while keeping character card obedience and many other things that the model learns from c2 logs.
|
237 |
+
|
238 |
+
### Comments about training
|
239 |
+
|
240 |
+
We did a lot of experiments this one but notably were very careful with the data ratio before scaling up.<br>
|
241 |
+
We tested rslora which destablises the model too much, and dora, which is a slight improvement over lora but makes training 3 times slower.<br>
|
242 |
+
Also L3.1 can do 8e-6 learning rate unlike L3 which required us to do 4e-6, we also made min cosine lr to 2.4e-6 because the model still continues learning as you can see the eval loss continues to decrease.<br>
|
243 |
+
We arrived at these settings after 30+ experiments.
|
244 |
+
|
245 |
+
### Graphs
|
246 |
+
|
247 |
+
The bold highlighted line is this model. Others are using smaller amounts of data and testing different ratios. We found that increasing r/WP max length from 2K chars to 4K chars improves multi turn but requires more data and more training. 8K chars completely broke the model with L3, might try it at some point. Also very curious to see how the 70B will react to this dataset.
|
248 |
+
|
249 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/RayFsPfXQ1XBeThdEy3T3.png)
|
250 |
+
|
251 |
+
<details>
|
252 |
+
<summary>V1.2</summary>
|
253 |
+
|
254 |
+
### The Good
|
255 |
+
We found that increasing the amount of ranks from 64 to 256 has reduced repetition but also led to the language used resembling Claude more than the 64 rank version. No worries, it's still far enough from Claude.
|
256 |
+
<br>**Model follows "OOC:" prompts religiously. Exceptional!**
|
257 |
+
<br>It also led to **increased coherency but reduced system prompt following (when not OOC)**, likely because the model started diverging more away from L3 8B Instruct.
|
258 |
+
<br>We found that increasing the amount of data from 1K to 6.5K reduced repetition aswell.
|
259 |
+
|
260 |
+
<br>The model is uncensored for RP. For Instruct it needs 2-3 words of prefill for the first message.
|
261 |
+
<br>The **prose is much better** and **the style range is huge** than other synthetic data generations. The model also demonstrates increased **style copying abilities** (from fewshot) likely a result of human longform data and varying writing styles found in WritingPrompts.
|
262 |
+
<br>The model is **exceptional at being creative in roleplaying**, knows different persona's and even a single character will change persona in different contexts, persona is tied to last few messages rather than system message or character card. **This is great as it often means the model can do impressive things without you needing to explicitly specify.**
|
263 |
+
|
264 |
+
### V1's failures this version has improved upon:
|
265 |
+
|
266 |
+
Formatting can break sometimes.
|
267 |
+
<br>Repetition can become an issue with certain types of prompts. Removing system helps.
|
268 |
+
<br>In some contexts the model is "all over the place" and doesn't stick to a coherent narrative. I need to study this further as its a complex trait which manifests in different quantities and can be good or bad depending on what the user wants to get out of the model.
|
269 |
+
|
270 |
+
### Comments about training
|
271 |
+
|
272 |
+
This time around the grad norm did not keep increasing. We don't know why but it should be a good thing.
|
273 |
+
|
274 |
+
## Graphs
|
275 |
+
Celeste V1.2 is highlighted, it used 256 rank on 8K rows (we took checkpoint from Epoch 1.3 as it was the best):
|
276 |
+
|
277 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/HcfPkYK_l0PY4EW6VqZX2.png)
|
278 |
+
|
279 |
+
Colors:
|
280 |
+
<p style="color: #F0B899;">256 rank on 6.5K rows (Celeste V1)</p>
|
281 |
+
<p style="color: #5BC5DB;">64 rank on 6.5K rows</p>
|
282 |
+
<p style="color: #5387DD;">64 rank on 1K rows</p>
|
283 |
+
|
284 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/630cf5d14ca0a22768bbe10c/y9hC4bGq-Lt7sDQ23q5db.png)
|
285 |
+
|
286 |
+
</details>
|
287 |
+
|
288 |
+
## Main training Command
|
289 |
+
|
290 |
+
**Hardware Used:** 1xH100 SXM for 1 hours.
|
291 |
+
|
292 |
+
When we switched to axolotl and enabled packing, this made training go way, way faster than llama factory.<br>
|
293 |
+
L Factory also supports packing but we switched to axolotl because configs are easier to manage in our opinion.<br>
|
294 |
+
|
295 |
+
<details>
|
296 |
+
<summary>Here is the entire axolotl config</summary>
|
297 |
+
|
298 |
+
```yaml
|
299 |
+
# Model
|
300 |
+
base_model: meta-llama/Meta-Llama-3.1-8B-Instruct
|
301 |
+
model_type: LlamaForCausalLM
|
302 |
+
tokenizer_type: AutoTokenizer
|
303 |
+
|
304 |
+
# Output and HuggingFace
|
305 |
+
output_dir: /workspace/data/train-results/trained_model
|
306 |
+
|
307 |
+
# WandB
|
308 |
+
wandb_project: huggingface
|
309 |
+
wandb_entity:
|
310 |
+
|
311 |
+
# Data
|
312 |
+
chat_template: llama3
|
313 |
+
train_on_inputs: false
|
314 |
+
group_by_length: false
|
315 |
+
datasets:
|
316 |
+
- path: [redacted] # I manually merge the aformentioned datasets using a custom script because I don't trust axolotl to do this in a deterministic way and sorted properly lmao.
|
317 |
+
type: sharegpt
|
318 |
+
roles:
|
319 |
+
input:
|
320 |
+
- system
|
321 |
+
- user
|
322 |
+
output:
|
323 |
+
- assistant
|
324 |
+
## Evaluation
|
325 |
+
val_set_size: 0.02
|
326 |
+
evals_per_epoch: 8
|
327 |
+
eval_table_size:
|
328 |
+
eval_max_new_tokens: 128
|
329 |
+
|
330 |
+
# Technical aspects
|
331 |
+
sequence_len: 8192
|
332 |
+
save_safetensors: true
|
333 |
+
saves_per_epoch: 2
|
334 |
+
logging_steps: 1
|
335 |
+
special_tokens:
|
336 |
+
pad_token: <|end_of_text|>
|
337 |
+
|
338 |
+
# Quantization
|
339 |
+
bf16: auto
|
340 |
+
fp16:
|
341 |
+
tf32: false
|
342 |
+
## For LoRA
|
343 |
+
load_in_8bit: false
|
344 |
+
load_in_4bit: false
|
345 |
+
|
346 |
+
# LoRA
|
347 |
+
# peft_use_dora: true
|
348 |
+
# peft_use_rslora: true
|
349 |
+
adapter: lora # or qlora
|
350 |
+
lora_model_dir:
|
351 |
+
lora_r: 256
|
352 |
+
lora_alpha: 128
|
353 |
+
lora_dropout: 0.1
|
354 |
+
lora_target_linear: true
|
355 |
+
lora_fan_in_fan_out:
|
356 |
+
lora_target_modules:
|
357 |
+
# - embed_tokens
|
358 |
+
# - lm_head
|
359 |
+
|
360 |
+
# Training hyperparameters
|
361 |
+
# max_steps:
|
362 |
+
num_epochs: 2
|
363 |
+
|
364 |
+
# Anti Overfit and Stability
|
365 |
+
weight_decay: 0.0
|
366 |
+
max_grad_norm: 1.0
|
367 |
+
|
368 |
+
## Learning Rate
|
369 |
+
warmup_ratio: 0.05
|
370 |
+
learning_rate: 0.000008
|
371 |
+
lr_scheduler: cosine_with_min_lr
|
372 |
+
lr_scheduler_kwargs:
|
373 |
+
min_lr: 0.0000024
|
374 |
+
optimizer: paged_adamw_8bit
|
375 |
+
|
376 |
+
## Batch Size
|
377 |
+
gradient_accumulation_steps: 1
|
378 |
+
micro_batch_size: 2 # Batch size per gpu = micro_batch_size * gradient_accumulation_steps
|
379 |
+
eval_batch_size: 2
|
380 |
+
|
381 |
+
# Optimizations
|
382 |
+
pad_to_sequence_len: true
|
383 |
+
sample_packing: true
|
384 |
+
eval_sample_packing: false
|
385 |
+
flash_attention: true
|
386 |
+
xformers_attention:
|
387 |
+
gradient_checkpointing: true
|
388 |
+
gradient_checkpointing_kwargs:
|
389 |
+
use_reentrant: false
|
390 |
+
local_rank:
|
391 |
+
# deepspeed: # /workspace/axolotl/deepspeed_configs/zero2.json # Only use with multi gpu # zero3_bf16.json
|
392 |
+
# fsdp:
|
393 |
+
# - full_shard
|
394 |
+
# - auto_wrap
|
395 |
+
# fsdp_config:
|
396 |
+
# fsdp_limit_all_gathers: true
|
397 |
+
# fsdp_sync_module_states: true
|
398 |
+
# fsdp_offload_params: true
|
399 |
+
# fsdp_use_orig_params: false
|
400 |
+
# fsdp_cpu_ram_efficient_loading: true
|
401 |
+
# fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
|
402 |
+
# fsdp_transformer_layer_cls_to_wrap: LlamaDecoderLayer
|
403 |
+
# fsdp_state_dict_type: FULL_STATE_DICT
|
404 |
+
# fsdp_sharding_strategy: FULL_SHARD
|
405 |
+
|
406 |
+
# Misc
|
407 |
+
early_stopping_patience:
|
408 |
+
debug:
|
409 |
+
```
|
410 |
+
</details>
|
411 |
+
|
412 |
+
---
|
413 |
+
|
414 |
+
Wow, you've read all of that? You seem like the person that would join our [discord](https://discord.gg/YcrXhk7QD7)
|
415 |
+
|
416 |
+
70B at some point? ;) We are closer than ever to this.
|
417 |
+
|
418 |
+
Qwen-2 was not worth it by the way. It just won't train and remains GPT prose. We trained many different configs, its just worse than L3 and L3.1, at least for English.
|