legraphista commited on
Commit
72f9e4a
Β·
verified Β·
1 Parent(s): ced6477

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +160 -0
README.md ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: NousResearch/Hermes-2-Theta-Llama-3-8B
3
+ datasets:
4
+ - teknium/OpenHermes-2.5
5
+ inference: false
6
+ language:
7
+ - en
8
+ library_name: gguf
9
+ license: apache-2.0
10
+ model-index:
11
+ - name: Hermes-2-Pro-Llama-3-Instruct-8B-Merge
12
+ results: []
13
+ pipeline_tag: text-generation
14
+ quantized_by: legraphista
15
+ tags:
16
+ - quantized
17
+ - GGUF
18
+ - imatrix
19
+ - quantization
20
+ - imat
21
+ - imatrix
22
+ - static
23
+ ---
24
+
25
+ # Hermes-2-Theta-Llama-3-8B-IMat-GGUF
26
+ _Llama.cpp imatrix quantization of NousResearch/Hermes-2-Theta-Llama-3-8B_
27
+
28
+ Original Model: [NousResearch/Hermes-2-Theta-Llama-3-8B](https://huggingface.co/NousResearch/Hermes-2-Theta-Llama-3-8B)
29
+ Original dtype: `BF16` (`bfloat16`)
30
+ Quantized by: llama.cpp [b3003](https://github.com/ggerganov/llama.cpp/releases/tag/b3003)
31
+ IMatrix dataset: [here](https://gist.githubusercontent.com/legraphista/d6d93f1a254bcfc58e0af3777eaec41e/raw/d380e7002cea4a51c33fffd47db851942754e7cc/imatrix.calibration.medium.raw)
32
+
33
+ - [Hermes-2-Theta-Llama-3-8B-IMat-GGUF](#hermes-2-theta-llama-3-8b-imat-gguf)
34
+ - [Files](#files)
35
+ - [IMatrix](#imatrix)
36
+ - [Common Quants](#common-quants)
37
+ - [All Quants](#all-quants)
38
+ - [Downloading using huggingface-cli](#downloading-using-huggingface-cli)
39
+ - [Inference](#inference)
40
+ - [Simple chat template](#simple-chat-template)
41
+ - [Chat template with system prompt](#chat-template-with-system-prompt)
42
+ - [Llama.cpp](#llama-cpp)
43
+ - [FAQ](#faq)
44
+ - [Why is the IMatrix not applied everywhere?](#why-is-the-imatrix-not-applied-everywhere)
45
+ - [How do I merge a split GGUF?](#how-do-i-merge-a-split-gguf)
46
+
47
+ ---
48
+
49
+ ## Files
50
+
51
+ ### IMatrix
52
+ Status: ⏳ Processing
53
+ Link: [here](https://huggingface.co/legraphista/Hermes-2-Theta-Llama-3-8B-IMat-GGUF/blob/main/imatrix.dat)
54
+
55
+ ### Common Quants
56
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
57
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
58
+ | Hermes-2-Theta-Llama-3-8B.Q8_0 | Q8_0 | - | ⏳ Processing | βšͺ No | -
59
+ | Hermes-2-Theta-Llama-3-8B.Q6_K | Q6_K | - | ⏳ Processing | βšͺ No | -
60
+ | Hermes-2-Theta-Llama-3-8B.Q4_K | Q4_K | - | ⏳ Processing | 🟒 Yes | -
61
+ | Hermes-2-Theta-Llama-3-8B.Q3_K | Q3_K | - | ⏳ Processing | 🟒 Yes | -
62
+ | Hermes-2-Theta-Llama-3-8B.Q2_K | Q2_K | - | ⏳ Processing | 🟒 Yes | -
63
+
64
+
65
+ ### All Quants
66
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
67
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
68
+ | Hermes-2-Theta-Llama-3-8B.FP16 | F16 | - | ⏳ Processing | βšͺ No | -
69
+ | Hermes-2-Theta-Llama-3-8B.BF16 | BF16 | - | ⏳ Processing | βšͺ No | -
70
+ | Hermes-2-Theta-Llama-3-8B.Q5_K | Q5_K | - | ⏳ Processing | βšͺ No | -
71
+ | Hermes-2-Theta-Llama-3-8B.Q5_K_S | Q5_K_S | - | ⏳ Processing | βšͺ No | -
72
+ | Hermes-2-Theta-Llama-3-8B.Q4_K_S | Q4_K_S | - | ⏳ Processing | 🟒 Yes | -
73
+ | Hermes-2-Theta-Llama-3-8B.Q3_K_L | Q3_K_L | - | ⏳ Processing | 🟒 Yes | -
74
+ | Hermes-2-Theta-Llama-3-8B.Q3_K_S | Q3_K_S | - | ⏳ Processing | 🟒 Yes | -
75
+ | Hermes-2-Theta-Llama-3-8B.Q2_K_S | Q2_K_S | - | ⏳ Processing | 🟒 Yes | -
76
+ | Hermes-2-Theta-Llama-3-8B.IQ4_NL | IQ4_NL | - | ⏳ Processing | 🟒 Yes | -
77
+ | Hermes-2-Theta-Llama-3-8B.IQ4_XS | IQ4_XS | - | ⏳ Processing | 🟒 Yes | -
78
+ | Hermes-2-Theta-Llama-3-8B.IQ3_M | IQ3_M | - | ⏳ Processing | 🟒 Yes | -
79
+ | Hermes-2-Theta-Llama-3-8B.IQ3_S | IQ3_S | - | ⏳ Processing | 🟒 Yes | -
80
+ | Hermes-2-Theta-Llama-3-8B.IQ3_XS | IQ3_XS | - | ⏳ Processing | 🟒 Yes | -
81
+ | Hermes-2-Theta-Llama-3-8B.IQ3_XXS | IQ3_XXS | - | ⏳ Processing | 🟒 Yes | -
82
+ | Hermes-2-Theta-Llama-3-8B.IQ2_M | IQ2_M | - | ⏳ Processing | 🟒 Yes | -
83
+ | Hermes-2-Theta-Llama-3-8B.IQ2_S | IQ2_S | - | ⏳ Processing | 🟒 Yes | -
84
+ | Hermes-2-Theta-Llama-3-8B.IQ2_XS | IQ2_XS | - | ⏳ Processing | 🟒 Yes | -
85
+ | Hermes-2-Theta-Llama-3-8B.IQ2_XXS | IQ2_XXS | - | ⏳ Processing | 🟒 Yes | -
86
+ | Hermes-2-Theta-Llama-3-8B.IQ1_M | IQ1_M | - | ⏳ Processing | 🟒 Yes | -
87
+ | Hermes-2-Theta-Llama-3-8B.IQ1_S | IQ1_S | - | ⏳ Processing | 🟒 Yes | -
88
+
89
+
90
+ ## Downloading using huggingface-cli
91
+ If you do not have hugginface-cli installed:
92
+ ```
93
+ pip install -U "huggingface_hub[cli]"
94
+ ```
95
+ Download the specific file you want:
96
+ ```
97
+ huggingface-cli download legraphista/Hermes-2-Theta-Llama-3-8B-IMat-GGUF --include "Hermes-2-Theta-Llama-3-8B.Q8_0.gguf" --local-dir ./
98
+ ```
99
+ If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
100
+ ```
101
+ huggingface-cli download legraphista/Hermes-2-Theta-Llama-3-8B-IMat-GGUF --include "Hermes-2-Theta-Llama-3-8B.Q8_0/*" --local-dir Hermes-2-Theta-Llama-3-8B.Q8_0
102
+ # see FAQ for merging GGUF's
103
+ ```
104
+
105
+ ---
106
+
107
+ ## Inference
108
+
109
+ ### Simple chat template
110
+ ```
111
+ <|begin_of_text|><|im_start|>user
112
+ Can you provide ways to eat combinations of bananas and dragonfruits?<|im_end|>
113
+ <|im_start|>assistant
114
+ Sure! Here are some ways to eat bananas and dragonfruits together:
115
+ 1. Banana and dragonfruit smoothie: Blend bananas and dragonfruits together with some milk and honey.
116
+ 2. Banana and dragonfruit salad: Mix sliced bananas and dragonfruits together with some lemon juice and honey.<|im_end|>
117
+ <|im_start|>user
118
+ What about solving an 2x + 3 = 7 equation?<|im_end|>
119
+
120
+ ```
121
+
122
+ ### Chat template with system prompt
123
+ ```
124
+ <|begin_of_text|><|im_start|>system
125
+ You are a helpful AI.<|im_end|>
126
+ <|im_start|>user
127
+ Can you provide ways to eat combinations of bananas and dragonfruits?<|im_end|>
128
+ <|im_start|>assistant
129
+ Sure! Here are some ways to eat bananas and dragonfruits together:
130
+ 1. Banana and dragonfruit smoothie: Blend bananas and dragonfruits together with some milk and honey.
131
+ 2. Banana and dragonfruit salad: Mix sliced bananas and dragonfruits together with some lemon juice and honey.<|im_end|>
132
+ <|im_start|>user
133
+ What about solving an 2x + 3 = 7 equation?<|im_end|>
134
+
135
+ ```
136
+
137
+ ### Llama.cpp
138
+ ```
139
+ llama.cpp/main -m Hermes-2-Theta-Llama-3-8B.Q8_0.gguf --color -i -p "prompt here (according to the chat template)"
140
+ ```
141
+
142
+ ---
143
+
144
+ ## FAQ
145
+
146
+ ### Why is the IMatrix not applied everywhere?
147
+ According to [this investigation](https://www.reddit.com/r/LocalLLaMA/comments/1993iro/ggufs_quants_can_punch_above_their_weights_now/), it appears that lower quantizations are the only ones that benefit from the imatrix input (as per hellaswag results).
148
+
149
+ ### How do I merge a split GGUF?
150
+ 1. Make sure you have `gguf-split` available
151
+ - To get hold of `gguf-split`, navigate to https://github.com/ggerganov/llama.cpp/releases
152
+ - Download the appropriate zip for your system from the latest release
153
+ - Unzip the archive and you should be able to find `gguf-split`
154
+ 2. Locate your GGUF chunks folder (ex: `Hermes-2-Theta-Llama-3-8B.Q8_0`)
155
+ 3. Run `gguf-split --merge Hermes-2-Theta-Llama-3-8B.Q8_0/Hermes-2-Theta-Llama-3-8B.Q8_0-00001-of-XXXXX.gguf Hermes-2-Theta-Llama-3-8B.Q8_0.gguf`
156
+ - Make sure to point `gguf-split` to the first chunk of the split.
157
+
158
+ ---
159
+
160
+ Got a suggestion? Ping me [@legraphista](https://x.com/legraphista)!