File size: 2,204 Bytes
5fb93f3
 
 
 
 
 
 
 
 
 
 
 
 
5dabe5b
 
5fb93f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
base_model:
- cgato/TheSpice-7b-v0.1.1
- ABX-AI/Laymonade-7B
library_name: transformers
tags:
- mergekit
- merge
- not-for-all-audiences
license: other
---
# GGUF / IQ / Imatrix for [Spicy-Laymonade-7B](https://huggingface.co/ABX-AI/Spicy-Laymonade-7B)

Adding GGUF as I noticed the HF model had a lot of downloads but I never quantized it originally.

![image/png](https://cdn-uploads.huggingface.co/production/uploads/65d936ad52eca001fdcd3245/bMW7mRqBS_xQJBXn-szWS.png)

**Why Importance Matrix?**

**Importance Matrix**, at least based on my testing, has shown to improve the output and performance of "IQ"-type quantizations, where the compression becomes quite heavy.
The **Imatrix** performs a calibration, using a provided dataset. Testing has shown that semi-randomized data can help perserve more important segments as the compression is applied.

Related discussions in Github:
[[1]](https://github.com/ggerganov/llama.cpp/discussions/5006) [[2]](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)

The imatrix.txt file that I used contains general, semi-random data, with some custom kink.

# Spicy-Laymonade-7B

Well, we have Laymonade, so why not spice it up? This merge is a step into creating a new 9B.

However, I did try it out, and it seemed to work pretty well.

## Merge Details

This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).

### Merge Method

This model was merged using the SLERP merge method.

### Models Merged

The following models were included in the merge:
* [cgato/TheSpice-7b-v0.1.1](https://huggingface.co/cgato/TheSpice-7b-v0.1.1)
* [ABX-AI/Laymonade-7B](https://huggingface.co/ABX-AI/Laymonade-7B)

### Configuration

The following YAML configuration was used to produce this model:

```yaml
slices:
  - sources:
      - model: cgato/TheSpice-7b-v0.1.1
        layer_range: [0, 32]
      - model: ABX-AI/Laymonade-7B
        layer_range: [0, 32]
merge_method: slerp
base_model: ABX-AI/Laymonade-7B
parameters:
  t:
    - filter: self_attn
      value: [0.7, 0.3, 0.6, 0.2, 0.5]
    - filter: mlp
      value: [0.3, 0.7, 0.4, 0.8, 0.5]
    - value: 0.5
dtype: bfloat16

```