Update README.md
Browse files
README.md
CHANGED
@@ -1,107 +1,37 @@
|
|
1 |
---
|
2 |
-
inference: false
|
3 |
-
license: other
|
4 |
-
license_name: mnpl
|
5 |
license_link: https://mistral.ai/licences/MNPL-0.1.md
|
6 |
tags:
|
7 |
- code
|
8 |
language:
|
9 |
- code
|
|
|
10 |
quantized_by: bartowski
|
11 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
---
|
|
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
|
|
|
|
17 |
|
18 |
-
|
19 |
|
20 |
-
|
21 |
|
22 |
-
|
23 |
|
24 |
-
|
25 |
|
26 |
-
|
27 |
-
<s> [INST] <<SYS>>
|
28 |
-
{system_prompt}
|
29 |
-
<</SYS>>
|
30 |
-
|
31 |
-
{prompt} [/INST] </s>
|
32 |
-
```
|
33 |
-
|
34 |
-
## Download a file (not the whole branch) from below:
|
35 |
-
|
36 |
-
| Filename | Quant type | File Size | Description |
|
37 |
-
| -------- | ---------- | --------- | ----------- |
|
38 |
-
| [Codestral-22B-v0.1-Q8_0.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-Q8_0.gguf) | Q8_0 | 23.64GB | Extremely high quality, generally unneeded but max available quant. |
|
39 |
-
| [Codestral-22B-v0.1-Q6_K.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-Q6_K.gguf) | Q6_K | 18.25GB | Very high quality, near perfect, *recommended*. |
|
40 |
-
| [Codestral-22B-v0.1-Q5_K_M.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-Q5_K_M.gguf) | Q5_K_M | 15.72GB | High quality, *recommended*. |
|
41 |
-
| [Codestral-22B-v0.1-Q5_K_S.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-Q5_K_S.gguf) | Q5_K_S | 15.32GB | High quality, *recommended*. |
|
42 |
-
| [Codestral-22B-v0.1-Q4_K_M.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-Q4_K_M.gguf) | Q4_K_M | 13.34GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
|
43 |
-
| [Codestral-22B-v0.1-Q4_K_S.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-Q4_K_S.gguf) | Q4_K_S | 12.66GB | Slightly lower quality with more space savings, *recommended*. |
|
44 |
-
| [Codestral-22B-v0.1-IQ4_NL.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF//main/Codestral-22B-v0.1-IQ4_NL.gguf) | IQ4_NL | | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
|
45 |
-
| [Codestral-22B-v0.1-IQ4_XS.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-IQ4_XS.gguf) | IQ4_XS | 11.93GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
|
46 |
-
| [Codestral-22B-v0.1-Q3_K_L.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-Q3_K_L.gguf) | Q3_K_L | 11.73GB | Lower quality but usable, good for low RAM availability. |
|
47 |
-
| [Codestral-22B-v0.1-Q3_K_M.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-Q3_K_M.gguf) | Q3_K_M | 10.75GB | Even lower quality. |
|
48 |
-
| [Codestral-22B-v0.1-IQ3_M.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-IQ3_M.gguf) | IQ3_M | 10.06GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
|
49 |
-
| [Codestral-22B-v0.1-IQ3_S.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF//main/Codestral-22B-v0.1-IQ3_S.gguf) | IQ3_S | | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
|
50 |
-
| [Codestral-22B-v0.1-Q3_K_S.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-Q3_K_S.gguf) | Q3_K_S | 9.64GB | Low quality, not recommended. |
|
51 |
-
| [Codestral-22B-v0.1-IQ3_XS.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-IQ3_XS.gguf) | IQ3_XS | 9.17GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
|
52 |
-
| [Codestral-22B-v0.1-IQ3_XXS.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-IQ3_XXS.gguf) | IQ3_XXS | 8.59GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
|
53 |
-
| [Codestral-22B-v0.1-Q2_K.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-Q2_K.gguf) | Q2_K | 8.27GB | Very low quality but surprisingly usable. |
|
54 |
-
| [Codestral-22B-v0.1-IQ2_M.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-IQ2_M.gguf) | IQ2_M | 7.61GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
|
55 |
-
| [Codestral-22B-v0.1-IQ2_S.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-IQ2_S.gguf) | IQ2_S | 7.03GB | Very low quality, uses SOTA techniques to be usable. |
|
56 |
-
| [Codestral-22B-v0.1-IQ2_XS.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF/blob/main/Codestral-22B-v0.1-IQ2_XS.gguf) | IQ2_XS | 6.64GB | Very low quality, uses SOTA techniques to be usable. |
|
57 |
-
| [Codestral-22B-v0.1-IQ2_XXS.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF//main/Codestral-22B-v0.1-IQ2_XXS.gguf) | IQ2_XXS | | Lower quality, uses SOTA techniques to be usable. |
|
58 |
-
| [Codestral-22B-v0.1-IQ1_M.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF//main/Codestral-22B-v0.1-IQ1_M.gguf) | IQ1_M | | Extremely low quality, *not* recommended. |
|
59 |
-
| [Codestral-22B-v0.1-IQ1_S.gguf](https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF//main/Codestral-22B-v0.1-IQ1_S.gguf) | IQ1_S | | Extremely low quality, *not* recommended. |
|
60 |
-
|
61 |
-
## Downloading using huggingface-cli
|
62 |
-
|
63 |
-
First, make sure you have hugginface-cli installed:
|
64 |
-
|
65 |
-
```
|
66 |
-
pip install -U "huggingface_hub[cli]"
|
67 |
-
```
|
68 |
-
|
69 |
-
Then, you can target the specific file you want:
|
70 |
-
|
71 |
-
```
|
72 |
-
huggingface-cli download bartowski/Codestral-22B-v0.1-GGUF --include "Codestral-22B-v0.1-Q4_K_M.gguf" --local-dir ./
|
73 |
-
```
|
74 |
-
|
75 |
-
If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:
|
76 |
-
|
77 |
-
```
|
78 |
-
huggingface-cli download bartowski/Codestral-22B-v0.1-GGUF --include "Codestral-22B-v0.1-Q8_0.gguf/*" --local-dir Codestral-22B-v0.1-Q8_0
|
79 |
-
```
|
80 |
-
|
81 |
-
You can either specify a new local-dir (Codestral-22B-v0.1-Q8_0) or download them all in place (./)
|
82 |
-
|
83 |
-
## Which file should I choose?
|
84 |
-
|
85 |
-
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
|
86 |
-
|
87 |
-
The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.
|
88 |
-
|
89 |
-
If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.
|
90 |
-
|
91 |
-
If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.
|
92 |
-
|
93 |
-
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
|
94 |
-
|
95 |
-
If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.
|
96 |
-
|
97 |
-
If you want to get more into the weeds, you can check out this extremely useful feature chart:
|
98 |
-
|
99 |
-
[llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
|
100 |
-
|
101 |
-
But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.
|
102 |
-
|
103 |
-
These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
|
104 |
-
|
105 |
-
The I-quants are *not* compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.
|
106 |
-
|
107 |
-
Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
|
|
|
1 |
---
|
|
|
|
|
|
|
2 |
license_link: https://mistral.ai/licences/MNPL-0.1.md
|
3 |
tags:
|
4 |
- code
|
5 |
language:
|
6 |
- code
|
7 |
+
license: apache-2.0
|
8 |
quantized_by: bartowski
|
9 |
pipeline_tag: text-generation
|
10 |
+
lm_studio:
|
11 |
+
param_count: 22b
|
12 |
+
use_case: coding
|
13 |
+
release_date: 29-05-2024
|
14 |
+
model_creator: mistralai
|
15 |
+
prompt_template: none
|
16 |
+
system_prompt: none
|
17 |
+
base_model: mistral
|
18 |
+
original_repo: mistralai/Codestral-22B-v0.1
|
19 |
+
base_model: mistralai/Codestral-22B-v0.1
|
20 |
---
|
21 |
+
## ๐ซ Community Model> Codestral 22B v0.1 by Mistral AI
|
22 |
|
23 |
+
*๐พ [LM Studio](https://lmstudio.ai) Community models highlights program. Highlighting new & noteworthy models by the community. Join the conversation on [Discord](https://discord.gg/aPQfnNkxGC)*.
|
24 |
|
25 |
+
**Model creator:** [Mistral AI](https://huggingface.co/mistralai)<br>
|
26 |
+
**Original model**: [Codestral-22B-v0.1](https://huggingface.co/mistralai/Codestral-22B-v0.1)<br>
|
27 |
+
**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b3024](https://github.com/ggerganov/llama.cpp/releases/tag/b3024)<br>
|
28 |
|
29 |
+
## Special thanks
|
30 |
|
31 |
+
๐ Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/)
|
32 |
|
33 |
+
๐ Special thanks to [Kalomaze](https://github.com/kalomaze), [Dampf](https://github.com/Dampfinchen) and [turboderp](https://github.com/turboderp/) for their work on the dataset (linked [here](https://gist.github.com/bartowski1182/b6ac44691e994344625687afe3263b3a)) that was used for calculating the imatrix for all sizes.
|
34 |
|
35 |
+
## Disclaimers
|
36 |
|
37 |
+
LM Studio is not the creator, originator, or owner of any Model featured in the Community Model Program. Each Community Model is created and provided by third parties. LM Studio does not endorse, support, represent or guarantee the completeness, truthfulness, accuracy, or reliability of any Community Model. You understand that Community Models can produce content that might be offensive, harmful, inaccurate or otherwise inappropriate, or deceptive. Each Community Model is the sole responsibility of the person or entity who originated such Model. LM Studio may not monitor or control the Community Models and cannot, and does not, take responsibility for any such Model. LM Studio disclaims all warranties or guarantees about the accuracy, reliability or benefits of the Community Models. LM Studio further disclaims any warranty that the Community Model will meet your requirements, be secure, uninterrupted or available at any time or location, or error-free, viruses-free, or that any errors will be corrected, or otherwise. You will be solely responsible for any damage resulting from your use of or access to the Community Models, your downloading of any Community Model, or use of any other Community Model provided by or through LM Studio.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|