Lewdiculous commited on
Commit
09b3f1d
1 Parent(s): e08df16

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +95 -0
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ inference: false
3
+ tags:
4
+ - gguf
5
+ - quantized
6
+ - roleplay
7
+ - multimodal
8
+ - vision
9
+ - llava
10
+ - sillytavern
11
+ - merge
12
+ - mistral
13
+ - conversational
14
+ ---
15
+ # #Roleplay #Multimodal #Vision
16
+
17
+ This repository hosts GGUF-IQ-Imatrix quants for [Nitral-AI/Nyanade_Stunna-Maid-7B](https://huggingface.co/Nitral-AI/Nyanade_Stunna-Maid-7B).
18
+
19
+ **Recommended starting [SillyTavern presets here](https://huggingface.co/Lewdiculous/Eris_PrimeV4-Vision-32k-7B-GGUF-IQ-Imatrix/tree/main/sillytavern-presets-lewdicu-3.0.2-mistral-0.2).**
20
+
21
+ This is a **#multimodal** model that also has **#vision** capabilities. <br> Read the full card information if you also want to use that functionality.
22
+
23
+ ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/65d4cf2693a0a3744a27536c/bfsWPgOhu4kllX6997ld4.jpeg)
24
+
25
+ **What does "Imatrix" mean?**
26
+
27
+ <details><summary>
28
+ ⇲ Click here to expand/hide more information about this topic.
29
+ </summary>
30
+
31
+ It stands for **Importance Matrix**, a technique used to improve the quality of quantized models.
32
+ The **Imatrix** is calculated based on calibration data, and it helps determine the importance of different model activations during the quantization process.
33
+ 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.
34
+ [[1]](https://github.com/ggerganov/llama.cpp/discussions/5006) [[2]](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)
35
+
36
+ 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.
37
+
38
+ </details><br>
39
+
40
+ # Vision/multimodal capabilities:
41
+
42
+ <details><summary>
43
+ ⇲ Click here to expand/hide how this would work in practice in a roleplay chat.
44
+ </summary>
45
+
46
+ ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/65d4cf2693a0a3744a27536c/Kkfi_CizIk0ZXMRF8N5jo.jpeg)
47
+
48
+ </details><br>
49
+
50
+ <details><summary>
51
+ ⇲ Click here to expand/hide what your SillyTavern Image Captions extension settings should look like.
52
+ </summary>
53
+
54
+ ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/65d4cf2693a0a3744a27536c/UpXOnVrzvsMRYeqMaSOaa.jpeg)
55
+
56
+ </details><br>
57
+
58
+ **If you want to use vision functionality:**
59
+
60
+ * Make sure you are using the latest version of [KoboldCpp](https://github.com/LostRuins/koboldcpp).
61
+
62
+ To use the multimodal capabilities of this model, such as **vision**, you also need to load the specified **mmproj** file, you can get it [here](https://huggingface.co/cjpais/llava-1.6-mistral-7b-gguf/blob/main/mmproj-model-f16.gguf) or as uploaded in the **mmproj** folder in the repository.
63
+
64
+ * You can load the **mmproj file** by using the corresponding section in the interface:
65
+
66
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/65d4cf2693a0a3744a27536c/UX6Ubss2EPNAT3SKGMLe0.png)
67
+
68
+ * For CLI users, you can load the **mmproj file** by adding the respective flag to your usual command:
69
+
70
+ ```
71
+ --mmproj your-mmproj-file.gguf
72
+ ```
73
+
74
+ # Quantization information:
75
+
76
+
77
+ <details><summary>
78
+ ⇲ Click here to expand/hide more information about this topic.
79
+ </summary>
80
+
81
+ ```python
82
+ quantization_options = [
83
+ "Q4_K_M", "Q4_K_S", "IQ4_XS", "Q5_K_M", "Q5_K_S",
84
+ "Q6_K", "Q8_0", "IQ3_M", "IQ3_S", "IQ3_XXS"
85
+ ]
86
+ ```
87
+
88
+ **Steps performed:**
89
+
90
+ ```
91
+ Base⇢ GGUF(F16)⇢ Imatrix-Data(F16)⇢ GGUF(Imatrix-Quants)
92
+ ```
93
+ *Using the latest llama.cpp at the time.*
94
+
95
+ </details><br>