Lewdiculous
commited on
Commit
•
47c6680
1
Parent(s):
ed4e07f
Update README.md
Browse files
README.md
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
---
|
2 |
-
license:
|
|
|
|
|
|
|
|
|
3 |
---
|
4 |
-
|
|
|
|
|
5 |
```python
|
6 |
quantization_options = [
|
7 |
"Q4_K_M", "Q4_K_S", "IQ4_XS", "Q5_K_M", "Q5_K_S",
|
@@ -9,4 +15,77 @@ Quantizing and uploading...
|
|
9 |
]
|
10 |
```
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65d4cf2693a0a3744a27536c/6zTFCv-Bh738BT90LLJwY.png)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
license: cc-by-4.0
|
3 |
+
tags:
|
4 |
+
- gguf
|
5 |
+
- mistral
|
6 |
+
- roleplay
|
7 |
---
|
8 |
+
This repository hosts GGUF-IQ-Imatrix quants for [Virt-io/Nina-v2-7B](https://huggingface.co/Virt-io/Nina-v2-7B).
|
9 |
+
|
10 |
+
Quantizing and uploading:
|
11 |
```python
|
12 |
quantization_options = [
|
13 |
"Q4_K_M", "Q4_K_S", "IQ4_XS", "Q5_K_M", "Q5_K_S",
|
|
|
15 |
]
|
16 |
```
|
17 |
|
18 |
+
**What does "Imatrix" mean?**
|
19 |
+
|
20 |
+
It stands for **Importance Matrix**, a technique used to improve the quality of quantized models.
|
21 |
+
The **Imatrix** is calculated based on calibration data, and it helps determine the importance of different model activations during the quantization process.
|
22 |
+
The idea is to preserve the most important information during quantization, which can help reduce the loss of model performance, especially when the calibration data is diverse.
|
23 |
+
[[1]](https://github.com/ggerganov/llama.cpp/discussions/5006) [[2]](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)
|
24 |
+
|
25 |
+
For imatrix data generation, kalomaze's `groups_merged.txt` with added roleplay chats was used, you can find it [here](https://huggingface.co/Lewdiculous/Datura_7B-GGUF-Imatrix/blob/main/imatrix-with-rp-format-data.txt). This was just to add a bit more diversity to the data.
|
26 |
+
|
27 |
+
**Steps:**
|
28 |
+
|
29 |
+
```
|
30 |
+
Base⇢ GGUF(F16)⇢ Imatrix-Data(F16)⇢ GGUF(Imatrix-Quants)
|
31 |
+
```
|
32 |
+
*Using the latest llama.cpp at the time.*
|
33 |
+
|
34 |
+
**Model card image:**
|
35 |
+
|
36 |
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65d4cf2693a0a3744a27536c/6zTFCv-Bh738BT90LLJwY.png)
|
37 |
+
|
38 |
+
|
39 |
+
# Original model information:
|
40 |
+
|
41 |
+
# Info
|
42 |
+
|
43 |
+
This model has been doing a good job staying in character.
|
44 |
+
|
45 |
+
Sillytavern presets in [presets folder](https://huggingface.co/Virt-io/Nina-v2-7B/tree/main/presets).
|
46 |
+
|
47 |
+
I removed added_tokens.json and edited config.json to work with gguf if there are any isssues please inform me.
|
48 |
+
|
49 |
+
# Character
|
50 |
+
|
51 |
+
I have included a character card that should help in making new characters.
|
52 |
+
Format copied form [https://twitter.com/victorianmaids](https://rentry.co/CharacterProvider-GuideToBotmaking)
|
53 |
+
|
54 |
+
# Nina-v2-7B
|
55 |
+
|
56 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
57 |
+
|
58 |
+
## Merge Details
|
59 |
+
### Merge Method
|
60 |
+
|
61 |
+
This model was merged using the SLERP merge method.
|
62 |
+
|
63 |
+
### Models Merged
|
64 |
+
|
65 |
+
The following models were included in the merge:
|
66 |
+
* [Virt-io/Nina-7B](https://huggingface.co/Virt-io/Nina-7B)
|
67 |
+
* [NousResearch/Hermes-2-Pro-Mistral-7B](https://huggingface.co/NousResearch/Hermes-2-Pro-Mistral-7B)
|
68 |
+
|
69 |
+
### Configuration
|
70 |
+
|
71 |
+
The following YAML configuration was used to produce this model:
|
72 |
+
|
73 |
+
```yaml
|
74 |
+
slices:
|
75 |
+
- sources:
|
76 |
+
- model: NousResearch/Hermes-2-Pro-Mistral-7B
|
77 |
+
layer_range: [0, 32]
|
78 |
+
- model: Virt-io/Nina-7B
|
79 |
+
layer_range: [0, 32]
|
80 |
+
merge_method: slerp
|
81 |
+
base_model: NousResearch/Hermes-2-Pro-Mistral-7B
|
82 |
+
parameters:
|
83 |
+
t:
|
84 |
+
- filter: self_attn
|
85 |
+
value: [0, 0.5, 0.3, 0.7, 1]
|
86 |
+
- filter: mlp
|
87 |
+
value: [1, 0.5, 0.7, 0.3, 0]
|
88 |
+
- value: 0.5
|
89 |
+
dtype: bfloat16
|
90 |
+
|
91 |
+
```
|