legraphista commited on
Commit
5c631a8
β€’
1 Parent(s): ddb2751

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +159 -0
README.md ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Salesforce/xLAM-8x7b-r
3
+ datasets:
4
+ - Salesforce/xlam-function-calling-60k
5
+ extra_gated_button_content: Agree and access repository
6
+ extra_gated_heading: Acknowledge to follow corresponding license to access the repository
7
+ inference: false
8
+ language:
9
+ - en
10
+ library_name: gguf
11
+ license: cc-by-nc-4.0
12
+ pipeline_tag: text-generation
13
+ quantized_by: legraphista
14
+ tags:
15
+ - function-calling
16
+ - LLM Agent
17
+ - tool-use
18
+ - mistral
19
+ - pytorch
20
+ - quantized
21
+ - GGUF
22
+ - quantization
23
+ - imat
24
+ - imatrix
25
+ - static
26
+ - 16bit
27
+ - 8bit
28
+ - 6bit
29
+ - 5bit
30
+ - 4bit
31
+ - 3bit
32
+ - 2bit
33
+ - 1bit
34
+ ---
35
+
36
+ # xLAM-8x7b-r-IMat-GGUF
37
+ _Llama.cpp imatrix quantization of Salesforce/xLAM-8x7b-r_
38
+
39
+ Original Model: [Salesforce/xLAM-8x7b-r](https://huggingface.co/Salesforce/xLAM-8x7b-r)
40
+ Original dtype: `BF16` (`bfloat16`)
41
+ Quantized by: llama.cpp [b3647](https://github.com/ggerganov/llama.cpp/releases/tag/b3647)
42
+ IMatrix dataset: [here](https://gist.githubusercontent.com/bartowski1182/eb213dccb3571f863da82e99418f81e8/raw/b2869d80f5c16fd7082594248e80144677736635/calibration_datav3.txt)
43
+
44
+ - [Files](#files)
45
+ - [IMatrix](#imatrix)
46
+ - [Common Quants](#common-quants)
47
+ - [All Quants](#all-quants)
48
+ - [Downloading using huggingface-cli](#downloading-using-huggingface-cli)
49
+ - [Inference](#inference)
50
+ - [Simple chat template](#simple-chat-template)
51
+ - [Chat template with system prompt](#chat-template-with-system-prompt)
52
+ - [Llama.cpp](#llama-cpp)
53
+ - [FAQ](#faq)
54
+ - [Why is the IMatrix not applied everywhere?](#why-is-the-imatrix-not-applied-everywhere)
55
+ - [How do I merge a split GGUF?](#how-do-i-merge-a-split-gguf)
56
+
57
+ ---
58
+
59
+ ## Files
60
+
61
+ ### IMatrix
62
+ Status: ⏳ Processing
63
+ Link: [here](https://huggingface.co/legraphista/xLAM-8x7b-r-IMat-GGUF/blob/main/imatrix.dat)
64
+
65
+ ### Common Quants
66
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
67
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
68
+ | xLAM-8x7b-r.Q8_0 | Q8_0 | - | ⏳ Processing | βšͺ Static | -
69
+ | xLAM-8x7b-r.Q6_K | Q6_K | - | ⏳ Processing | βšͺ Static | -
70
+ | xLAM-8x7b-r.Q4_K | Q4_K | - | ⏳ Processing | 🟒 IMatrix | -
71
+ | xLAM-8x7b-r.Q3_K | Q3_K | - | ⏳ Processing | 🟒 IMatrix | -
72
+ | xLAM-8x7b-r.Q2_K | Q2_K | - | ⏳ Processing | 🟒 IMatrix | -
73
+
74
+
75
+ ### All Quants
76
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
77
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
78
+ | xLAM-8x7b-r.BF16 | BF16 | - | ⏳ Processing | βšͺ Static | -
79
+ | xLAM-8x7b-r.FP16 | F16 | - | ⏳ Processing | βšͺ Static | -
80
+ | xLAM-8x7b-r.Q8_0 | Q8_0 | - | ⏳ Processing | βšͺ Static | -
81
+ | xLAM-8x7b-r.Q6_K | Q6_K | - | ⏳ Processing | βšͺ Static | -
82
+ | xLAM-8x7b-r.Q5_K | Q5_K | - | ⏳ Processing | βšͺ Static | -
83
+ | xLAM-8x7b-r.Q5_K_S | Q5_K_S | - | ⏳ Processing | βšͺ Static | -
84
+ | xLAM-8x7b-r.Q4_K | Q4_K | - | ⏳ Processing | 🟒 IMatrix | -
85
+ | xLAM-8x7b-r.Q4_K_S | Q4_K_S | - | ⏳ Processing | 🟒 IMatrix | -
86
+ | xLAM-8x7b-r.IQ4_NL | IQ4_NL | - | ⏳ Processing | 🟒 IMatrix | -
87
+ | xLAM-8x7b-r.IQ4_XS | IQ4_XS | - | ⏳ Processing | 🟒 IMatrix | -
88
+ | xLAM-8x7b-r.Q3_K | Q3_K | - | ⏳ Processing | 🟒 IMatrix | -
89
+ | xLAM-8x7b-r.Q3_K_L | Q3_K_L | - | ⏳ Processing | 🟒 IMatrix | -
90
+ | xLAM-8x7b-r.Q3_K_S | Q3_K_S | - | ⏳ Processing | 🟒 IMatrix | -
91
+ | xLAM-8x7b-r.IQ3_M | IQ3_M | - | ⏳ Processing | 🟒 IMatrix | -
92
+ | xLAM-8x7b-r.IQ3_S | IQ3_S | - | ⏳ Processing | 🟒 IMatrix | -
93
+ | xLAM-8x7b-r.IQ3_XS | IQ3_XS | - | ⏳ Processing | 🟒 IMatrix | -
94
+ | xLAM-8x7b-r.IQ3_XXS | IQ3_XXS | - | ⏳ Processing | 🟒 IMatrix | -
95
+ | xLAM-8x7b-r.Q2_K | Q2_K | - | ⏳ Processing | 🟒 IMatrix | -
96
+ | xLAM-8x7b-r.Q2_K_S | Q2_K_S | - | ⏳ Processing | 🟒 IMatrix | -
97
+ | xLAM-8x7b-r.IQ2_M | IQ2_M | - | ⏳ Processing | 🟒 IMatrix | -
98
+ | xLAM-8x7b-r.IQ2_S | IQ2_S | - | ⏳ Processing | 🟒 IMatrix | -
99
+ | xLAM-8x7b-r.IQ2_XS | IQ2_XS | - | ⏳ Processing | 🟒 IMatrix | -
100
+ | xLAM-8x7b-r.IQ2_XXS | IQ2_XXS | - | ⏳ Processing | 🟒 IMatrix | -
101
+ | xLAM-8x7b-r.IQ1_M | IQ1_M | - | ⏳ Processing | 🟒 IMatrix | -
102
+ | xLAM-8x7b-r.IQ1_S | IQ1_S | - | ⏳ Processing | 🟒 IMatrix | -
103
+
104
+
105
+ ## Downloading using huggingface-cli
106
+ If you do not have hugginface-cli installed:
107
+ ```
108
+ pip install -U "huggingface_hub[cli]"
109
+ ```
110
+ Download the specific file you want:
111
+ ```
112
+ huggingface-cli download legraphista/xLAM-8x7b-r-IMat-GGUF --include "xLAM-8x7b-r.Q8_0.gguf" --local-dir ./
113
+ ```
114
+ If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
115
+ ```
116
+ huggingface-cli download legraphista/xLAM-8x7b-r-IMat-GGUF --include "xLAM-8x7b-r.Q8_0/*" --local-dir ./
117
+ # see FAQ for merging GGUF's
118
+ ```
119
+
120
+ ---
121
+
122
+ ## Inference
123
+
124
+ ### Simple chat template
125
+ ```
126
+ <s> [INST] {user_prompt} [/INST] {assistant_response}</s> [INST] {next_user_prompt} [/INST]
127
+ ```
128
+
129
+ ### Chat template with system prompt
130
+ ```
131
+ <s> [INST] {system_prompt}
132
+
133
+ {user_prompt} [/INST] {assistant_response}</s> [INST] {next_user_prompt} [/INST]
134
+ ```
135
+
136
+ ### Llama.cpp
137
+ ```
138
+ llama.cpp/main -m xLAM-8x7b-r.Q8_0.gguf --color -i -p "prompt here (according to the chat template)"
139
+ ```
140
+
141
+ ---
142
+
143
+ ## FAQ
144
+
145
+ ### Why is the IMatrix not applied everywhere?
146
+ 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).
147
+
148
+ ### How do I merge a split GGUF?
149
+ 1. Make sure you have `gguf-split` available
150
+ - To get hold of `gguf-split`, navigate to https://github.com/ggerganov/llama.cpp/releases
151
+ - Download the appropriate zip for your system from the latest release
152
+ - Unzip the archive and you should be able to find `gguf-split`
153
+ 2. Locate your GGUF chunks folder (ex: `xLAM-8x7b-r.Q8_0`)
154
+ 3. Run `gguf-split --merge xLAM-8x7b-r.Q8_0/xLAM-8x7b-r.Q8_0-00001-of-XXXXX.gguf xLAM-8x7b-r.Q8_0.gguf`
155
+ - Make sure to point `gguf-split` to the first chunk of the split.
156
+
157
+ ---
158
+
159
+ Got a suggestion? Ping me [@legraphista](https://x.com/legraphista)!