brucethemoose commited on
Commit
1c175a6
1 Parent(s): c69e414

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +82 -1
README.md CHANGED
@@ -1,5 +1,86 @@
1
  ---
2
  license: other
3
  license_name: yi-license
4
- license_link: https://huggingface.co/01-ai/Yi-34B-200K/blob/main/LICENSE
 
 
 
 
5
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: other
3
  license_name: yi-license
4
+ license_link: https://huggingface.co/01-ai/Yi-34B/blob/main/LICENSE
5
+ language:
6
+ - en
7
+ library_name: transformers
8
+ pipeline_tag: text-generation
9
  ---
10
+
11
+ **NousResearch/Nous-Capybara-34B**, **migtissera/Tess-M-v1.3** and **bhenrym14/airoboros-3_1-yi-34b-200k** merged with a new, experimental implementation of "dare ties" via mergekit. See:
12
+
13
+ Qantized with exllamav2 on 200 rows (400K tokens) on a long Orca-Vicuna format chat, a sci fi story and a fantasy story. This should hopefully yield better chat performance than the default wikitext quantization.
14
+
15
+ 4bpw is enough for **~47K context on a 24GB GPU.**. I would highly recommend running in exui for speed at long context.
16
+
17
+ ***
18
+
19
+ Merged with the following config, and the tokenizer from chargoddard's Yi-Llama:
20
+ ```
21
+ models:
22
+ - model: /home/alpha/Storage/Models/Raw/chargoddard_Yi-34B-200K-Llama
23
+ # no parameters necessary for base model
24
+ - model: /home/alpha/Storage/Models/Raw/migtissera_Tess-M-v1.3
25
+ parameters:
26
+ weight: 0.41
27
+ density: 0.50
28
+ - model: /home/alpha//Storage/Models/Raw/bhenrym14_airoboros-3_1-yi-34b-200k
29
+ parameters:
30
+ weight: 0.18
31
+ density: 0.46
32
+ - model: /home/alpha/Storage/Models/Raw/Nous-Capybara-34B
33
+ parameters:
34
+ weight: 0.41
35
+ density: 0.50
36
+ merge_method: dare_ties
37
+ base_model: /home/alpha/Storage/Models/Raw/chargoddard_Yi-34B-200K-Llama
38
+ parameters:
39
+ int8_mask: true
40
+ dtype: bfloat16
41
+ ```
42
+
43
+ First exllama quantization pass:
44
+ ```
45
+ python convert.py --in_dir //home/alpha/FastModels/CapyTessBorosYi-34B-200K-DARE-Ties -o /home/alpha/FastModels/scratch -om /home/alpha/FastModels/capytessborosmes.json --cal_dataset /home/alpha/Documents/smol.parquet -l 2048 -r 80 -ml 2048 -mr 40 -gr 40 -ss 4096 -nr -b 4.0 -hb 6
46
+ ```
47
+
48
+ Second exllama quantization pass:
49
+ ```
50
+ python convert.py --in_dir /home/alpha/FastModels/CapyTessBorosYi-34B-200K-DARE-Ties -o /home/alpha/FastModels/scratch -m /home/alpha/FastModels/capytessmes.json --cal_dataset /home/alpha/Documents/medium.parquet -l 2048 -r 200 -ml 2048 -mr 40 -gr 200 -ss 4096 -b 3.1 -hb 6 -cf /home/alpha/FastModels/CapyTessBorosYi-34B-200K-DARE-Ties-exl2-4bpw-fiction -nr
51
+ ```
52
+
53
+ dare_ties is testing with better perplexity than a regular ties merge with the same merge configuration. Model weights that add up to one also seem optimal from testing. And results seem... better than the previous dare merge with Tess 1.2? Maybe?
54
+
55
+ I chose not to include other finetunes, such as Dolphin, because they aren't trained on the 200K base. If any other 200K finetunes pop up, let me know.
56
+
57
+ ***
58
+
59
+ ## Prompt template: Orca-Vicuna
60
+
61
+ ```
62
+ SYSTEM: {system_message}
63
+ USER: {prompt}
64
+ ASSISTANT:
65
+
66
+ ```
67
+ Being a Yi model, try disabling the BOS token and/or running a lower temperature with MinP (and no other samplers) if output doesn't seem right. Yi tends to run "hot" by default.
68
+
69
+ Sometimes the model "spells out" the stop token as `</s>` like Capybara, so you may need to add `</s>` as an additional stopping condition. It also might respond to the llama-2 chat format.
70
+
71
+ ***
72
+
73
+ Credits:
74
+ https://github.com/turboderp/exllamav2
75
+
76
+ https://github.com/cg123/mergekit/tree/dare
77
+
78
+ https://huggingface.co/NousResearch/Nous-Capybara-34B/
79
+
80
+ https://huggingface.co/bhenrym14/airoboros-3_1-yi-34b-200k
81
+
82
+ https://huggingface.co/migtissera/Tess-M-v1.3
83
+
84
+ https://huggingface.co/chargoddard/Yi-34B-200K-Llama
85
+
86
+ https://huggingface.co/01-ai/Yi-34B-200K