legraphista commited on
Commit
7c6f360
Β·
verified Β·
1 Parent(s): 549222d

Upload README.md with huggingface_hub

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