File size: 3,554 Bytes
d3fddfd
3757b8a
d3fddfd
187e4fa
 
 
b366c0b
187e4fa
3757b8a
187e4fa
9c0ac83
 
 
 
d5dbe51
 
 
 
 
 
 
 
 
187e4fa
 
f2f65ad
187e4fa
f2f65ad
2e4c32c
b366c0b
 
187e4fa
b366c0b
187e4fa
 
3757b8a
f2f65ad
 
 
187e4fa
3757b8a
187e4fa
b366c0b
187e4fa
b366c0b
 
3757b8a
187e4fa
f2f65ad
187e4fa
f2f65ad
187e4fa
be2fc79
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: cc-by-nc-2.0
---


# lzlv_70B 
## A Mythomax/MLewd_13B-style merge of selected 70B models

A multi-model merge of several  LLaMA2 70B finetunes for roleplaying and creative work. The goal was to create a model that combines creativity with intelligence for an enhanced experience.

Did it work? Probably, maybe. It seemed subjectively better than each of the individual models in my tests.



~~GGUF 4_K_M + 5_K_M can be found here: https://huggingface.co/lizpreciatior/lzlv_70b_fp16_hf/settings~~

Update 29/10:
Thank you to TheBloke for making the whole range of quants for lzlv: https://huggingface.co/TheBloke/lzlv_70B-GGUF

Also recommended: lzlv merged with limarpv3 - check it out here: https://huggingface.co/Doctor-Shotgun/lzlv-limarpv3-l2-70b/tree/main
Thanks for merging the LoRA. I think it gives the model a bit more creative spice. 

lzlvV2 is in the works. Soon(tm).


## Procedure:

Models used:
- **NousResearch/Nous-Hermes-Llama2-70b** - A great model for roleplaying, but not the best at following complex instructions.
- **Xwin-LM/Xwin-LM-7B-V0.1** - Excellent at following instructions and quite creative out of the box, so it seemed like the best available model to act as the base for the merge.
- **Doctor-Shotgun/Mythospice-70b** - The wildcard of the three. I was looking for a creative, NSFW-oriented model and came across this while digging through hf. I hadn't heard of it before and apparently no one had bothered to release a quantized version of this model. So I downloaded it and did it myself to test it. It turned out to be more or less what I was looking for as my third component, so I used it here. 

A big thank you to the creators of the models above. If you look up Mythospice, you will notice that it also includes Nous-Hermes so it's technically present twice in this mix. This is apparently common practice amongst the cool kids who do 13B models so I don't think this hurts the model. 


The merging process was heavily inspired by Undi95's approach in Undi95/MXLewdMini-L2-13B. To be specific, the ratios are:

Component 1: Merge of Mythospice x Xwin with SLERP gradient [0.25, 0.3, 0.5].
Component 2: Merge Xwin x Hermes with SLERP gradient [0.4, 0.3, 0.25].

Finally, both Component 1 and Component 2 were merged with SLERP using weight 0.5.

## Peformance

I tested this model for a few days before publishing it. It seems to more or less retain the instruction-following capabilities of Xwin-70B, while seeming to have adopted a lot of the creativity of the other two models. 
It handled my more complex scenarios that creative models otherwise tend to struggle with quite well. At the same time, its outputs felt more creative and possibly a bit more nsfw-inclined than Xwin-70b.
So, is it better? Feels like it to me, subjectively. Is it really better? No clue, test it. 

## Prompt format:
Vicuna
USER: [Prompt]
ASSISTANT: 

# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_lizpreciatior__lzlv_70b_fp16_hf)

| Metric                | Value                     |
|-----------------------|---------------------------|
| Avg.                  | 59.06   |
| ARC (25-shot)         | 70.14          |
| HellaSwag (10-shot)   | 87.54    |
| MMLU (5-shot)         | 70.23         |
| TruthfulQA (0-shot)   | 60.49   |
| Winogrande (5-shot)   | 83.43   |
| GSM8K (5-shot)        | 30.93        |
| DROP (3-shot)         | 10.68         |