legraphista commited on
Commit
942e2ea
β€’
1 Parent(s): a958ad1

Upload README.md with huggingface_hub

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