Lewdiculous
commited on
Commit
•
b1cb7d2
1
Parent(s):
66d9696
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,123 @@
|
|
1 |
-
---
|
2 |
-
license: cc-by-nc-4.0
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-nc-4.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
inference: false
|
6 |
+
tags:
|
7 |
+
- roleplay
|
8 |
+
- llama3
|
9 |
+
- sillytavern
|
10 |
+
---
|
11 |
+
|
12 |
+
# #roleplay #sillytavern #llama3
|
13 |
+
|
14 |
+
My GGUF-IQ-Imatrix quants for [**Sao10K/L3-8B-Stheno-v3.3-32K**](https://huggingface.co/Sao10K/L3-8B-Stheno-v3.3-32K).
|
15 |
+
|
16 |
+
**Sao10K** with Stheno **yet** again, now bigger and better than ever! <br>
|
17 |
+
I recommend checking his page for feedback and support.
|
18 |
+
|
19 |
+
> [!IMPORTANT]
|
20 |
+
> **Quantization process:** <br>
|
21 |
+
> Imatrix data was generated from the FP16-GGUF and conversions directly from the BF16-GGUF. <br>
|
22 |
+
> This is a bit more disk and compute intensive but hopefully avoids any losses during conversion. <br>
|
23 |
+
> To run this model, please use the [**latest version of KoboldCpp**](https://github.com/LostRuins/koboldcpp/releases/latest). <br>
|
24 |
+
> If you noticed any issues let me know in the discussions.
|
25 |
+
|
26 |
+
> [!NOTE]
|
27 |
+
> **General usage:** <br>
|
28 |
+
> For **8GB VRAM** GPUs, I recommend the **Q4_K_M-imat** (4.89 BPW) quant for up to 12288 context sizes. <br>
|
29 |
+
>
|
30 |
+
> **Presets:** <br>
|
31 |
+
> Some compatible SillyTavern presets can be found [**here (Virt's Roleplay Presets)**](https://huggingface.co/Virt-io/SillyTavern-Presets). <br>
|
32 |
+
> Check [**discussions such as this one**](https://huggingface.co/Virt-io/SillyTavern-Presets/discussions/5#664d6fb87c563d4d95151baa) for other recommendations and samplers.
|
33 |
+
|
34 |
+
> [!TIP]
|
35 |
+
> **Personal-support:** <br>
|
36 |
+
> I apologize for disrupting your experience. <br>
|
37 |
+
> Eventually I may be able to use a dedicated server for this, but for now hopefully these quants are helpful. <br>
|
38 |
+
> If you **want** and you are **able to**... <br>
|
39 |
+
> You can [**spare some change over here (Ko-fi)**](https://ko-fi.com/Lewdiculous). <br>
|
40 |
+
>
|
41 |
+
> **Author-support:** <br>
|
42 |
+
> You can support the author [**at their own page**](https://ko-fi.com/sao10k).
|
43 |
+
|
44 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65d4cf2693a0a3744a27536c/1wb5-yFyvxWQSWBMlB36x.png)
|
45 |
+
|
46 |
+
## **Original model information:**
|
47 |
+
|
48 |
+
|
49 |
+
Trained with compute from [Backyard.ai](https://backyard.ai/) | Thanks to them and @dynafire for helping me out.
|
50 |
+
|
51 |
+
---
|
52 |
+
|
53 |
+
Training Details:
|
54 |
+
<br>Trained at 8K Context -> Expanded to 32K Context with PoSE training.
|
55 |
+
|
56 |
+
Dataset Modifications:
|
57 |
+
<br>\- Further Cleaned up Roleplaying Samples -> Quality Check
|
58 |
+
<br>\- Removed Low Quality Samples from Manual Check -> Increased Baseline Quality Floor
|
59 |
+
<br>\- More Creative Writing Samples -> 2x Samples
|
60 |
+
<br>\- Remade and Refined Detailed Instruct Data
|
61 |
+
|
62 |
+
Notes:
|
63 |
+
<br>\- Training run is much less aggressive than previous Stheno versions.
|
64 |
+
<br>\- This model works when tested in bf16 with the same configs as within the file.
|
65 |
+
<br>\- I do not know the effects quantisation has on it.
|
66 |
+
<br>\- Roleplays pretty well. Feels nice in my opinion.
|
67 |
+
<br>\- It has some issues on long context understanding and reasoning. Much better vs rope scaling normally though, so that is a plus.
|
68 |
+
<br>\- Reminder, this isn't a native 32K model. It has it's issues, but it's coherent and working well.
|
69 |
+
|
70 |
+
Sanity Check // Needle in a Haystack Results:
|
71 |
+
<br>\- This is not as complex as RULER or NIAN, but it's a basic evaluator. Some improper train examples had Haystack scores ranging from Red to Orange for most of the extended contexts.
|
72 |
+
![Results](https://huggingface.co/Sao10K/L3-8B-Stheno-v3.3-32K/resolve/main/haystack.png)
|
73 |
+
|
74 |
+
Wandb Run:
|
75 |
+
![Wandb](https://huggingface.co/Sao10K/L3-8B-Stheno-v3.3-32K/resolve/main/wandb.png)
|
76 |
+
|
77 |
+
---
|
78 |
+
|
79 |
+
Relevant Axolotl Configurations:
|
80 |
+
<br>-> Taken from [winglian/Llama-3-8b-64k-PoSE](https://huggingface.co/winglian/Llama-3-8b-64k-PoSE)
|
81 |
+
<br>\- I tried to find my own configs, hours of tinkering but the one he used worked best, so I stuck to it.
|
82 |
+
<br>\- 2M Rope Theta had the best loss results during training compared to other values.
|
83 |
+
<br>\- Leaving it at 500K rope wasn't that much worse, but 4M and 8M Theta made the grad_norm values worsen even if loss drops fast.
|
84 |
+
<br>\- Mixing in Pretraining Data was a PITA. Made it a lot worse with formatting.
|
85 |
+
<br>\- Pretraining / Noise made it worse at Haystack too? It wasn't all Green, Mainly Oranges.
|
86 |
+
<br>\- Improper / Bad Rope Theta shows in Grad_Norm exploding to thousands. It'll drop to low values alright, but it's a scary fast drop even with gradient clipping.
|
87 |
+
|
88 |
+
```
|
89 |
+
sequence_len: 8192
|
90 |
+
use_pose: true
|
91 |
+
pose_max_context_len: 32768
|
92 |
+
|
93 |
+
overrides_of_model_config:
|
94 |
+
rope_theta: 2000000.0
|
95 |
+
max_position_embeddings: 32768
|
96 |
+
|
97 |
+
# peft_use_dora: true
|
98 |
+
adapter: lora
|
99 |
+
peft_use_rslora: true
|
100 |
+
lora_model_dir:
|
101 |
+
lora_r: 256
|
102 |
+
lora_alpha: 256
|
103 |
+
lora_dropout: 0.1
|
104 |
+
lora_target_linear: true
|
105 |
+
lora_target_modules:
|
106 |
+
- gate_proj
|
107 |
+
- down_proj
|
108 |
+
- up_proj
|
109 |
+
- q_proj
|
110 |
+
- v_proj
|
111 |
+
- k_proj
|
112 |
+
- o_proj
|
113 |
+
|
114 |
+
warmup_steps: 80
|
115 |
+
gradient_accumulation_steps: 6
|
116 |
+
micro_batch_size: 1
|
117 |
+
num_epochs: 2
|
118 |
+
optimizer: adamw_bnb_8bit
|
119 |
+
lr_scheduler: cosine_with_min_lr
|
120 |
+
learning_rate: 0.00004
|
121 |
+
lr_scheduler_kwargs:
|
122 |
+
min_lr: 0.000004
|
123 |
+
```
|