Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,119 +1,42 @@
|
|
1 |
---
|
2 |
-
base_model: internlm/internlm2_5-20b-chat
|
3 |
-
license: other
|
4 |
-
pipeline_tag: text-generation
|
5 |
quantized_by: bartowski
|
|
|
6 |
---
|
|
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3509">b3509</a> for quantization.
|
11 |
|
12 |
-
|
|
|
|
|
13 |
|
14 |
-
|
|
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
|
|
19 |
|
20 |
```
|
21 |
-
|
22 |
{system_prompt}<|im_end|>
|
23 |
<|im_start|>user
|
24 |
{prompt}<|im_end|>
|
25 |
<|im_start|>assistant
|
26 |
-
|
27 |
-
```
|
28 |
-
|
29 |
-
## Download a file (not the whole branch) from below:
|
30 |
-
|
31 |
-
| Filename | Quant type | File Size | Split | Description |
|
32 |
-
| -------- | ---------- | --------- | ----- | ----------- |
|
33 |
-
## Download a file (not the whole branch) from below:
|
34 |
-
|
35 |
-
| Filename | Quant type | File Size | Split | Description |
|
36 |
-
| -------- | ---------- | --------- | ----- | ----------- |
|
37 |
-
| [internlm2_5-20b-chat-f32.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/tree/main/internlm2_5-20b-chat-f32) | f32 | 79.45GB | true | Full F32 weights. |
|
38 |
-
| [internlm2_5-20b-chat-Q8_0.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q8_0.gguf) | Q8_0 | 21.11GB | false | Extremely high quality, generally unneeded but max available quant. |
|
39 |
-
| [internlm2_5-20b-chat-Q6_K_L.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q6_K_L.gguf) | Q6_K_L | 16.57GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
|
40 |
-
| [internlm2_5-20b-chat-Q6_K.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q6_K.gguf) | Q6_K | 16.30GB | false | Very high quality, near perfect, *recommended*. |
|
41 |
-
| [internlm2_5-20b-chat-Q5_K_L.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q5_K_L.gguf) | Q5_K_L | 14.43GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
|
42 |
-
| [internlm2_5-20b-chat-Q5_K_M.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q5_K_M.gguf) | Q5_K_M | 14.08GB | false | High quality, *recommended*. |
|
43 |
-
| [internlm2_5-20b-chat-Q5_K_S.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q5_K_S.gguf) | Q5_K_S | 13.73GB | false | High quality, *recommended*. |
|
44 |
-
| [internlm2_5-20b-chat-Q4_K_L.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q4_K_L.gguf) | Q4_K_L | 12.41GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
|
45 |
-
| [internlm2_5-20b-chat-Q4_K_M.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q4_K_M.gguf) | Q4_K_M | 11.98GB | false | Good quality, default size for must use cases, *recommended*. |
|
46 |
-
| [internlm2_5-20b-chat-Q4_K_S.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q4_K_S.gguf) | Q4_K_S | 11.40GB | false | Slightly lower quality with more space savings, *recommended*. |
|
47 |
-
| [internlm2_5-20b-chat-Q3_K_XL.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q3_K_XL.gguf) | Q3_K_XL | 11.05GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
|
48 |
-
| [internlm2_5-20b-chat-IQ4_XS.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-IQ4_XS.gguf) | IQ4_XS | 10.77GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
|
49 |
-
| [internlm2_5-20b-chat-Q3_K_L.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q3_K_L.gguf) | Q3_K_L | 10.55GB | false | Lower quality but usable, good for low RAM availability. |
|
50 |
-
| [internlm2_5-20b-chat-Q3_K_M.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q3_K_M.gguf) | Q3_K_M | 9.72GB | false | Low quality. |
|
51 |
-
| [internlm2_5-20b-chat-IQ3_M.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-IQ3_M.gguf) | IQ3_M | 9.12GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
|
52 |
-
| [internlm2_5-20b-chat-Q3_K_S.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q3_K_S.gguf) | Q3_K_S | 8.76GB | false | Low quality, not recommended. |
|
53 |
-
| [internlm2_5-20b-chat-IQ3_XS.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-IQ3_XS.gguf) | IQ3_XS | 8.36GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
|
54 |
-
| [internlm2_5-20b-chat-Q2_K_L.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q2_K_L.gguf) | Q2_K_L | 8.10GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
|
55 |
-
| [internlm2_5-20b-chat-Q2_K.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-Q2_K.gguf) | Q2_K | 7.55GB | false | Very low quality but surprisingly usable. |
|
56 |
-
| [internlm2_5-20b-chat-IQ2_M.gguf](https://huggingface.co/bartowski/internlm2_5-20b-chat-GGUF/blob/main/internlm2_5-20b-chat-IQ2_M.gguf) | IQ2_M | 6.97GB | false | Relatively low quality, uses SOTA techniques to be surprisingly usable. |
|
57 |
-
|
58 |
-
## Embed/output weights
|
59 |
-
|
60 |
-
Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.
|
61 |
-
|
62 |
-
Some say that this improves the quality, others don't notice any difference. If you use these models PLEASE COMMENT with your findings. I would like feedback that these are actually used and useful so I don't keep uploading quants no one is using.
|
63 |
-
|
64 |
-
Thanks!
|
65 |
-
|
66 |
-
## Credits
|
67 |
-
|
68 |
-
Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
|
69 |
-
|
70 |
-
Thank you ZeroWw for the inspiration to experiment with embed/output
|
71 |
-
|
72 |
-
## Downloading using huggingface-cli
|
73 |
-
|
74 |
-
First, make sure you have hugginface-cli installed:
|
75 |
-
|
76 |
```
|
77 |
-
pip install -U "huggingface_hub[cli]"
|
78 |
-
```
|
79 |
-
|
80 |
-
Then, you can target the specific file you want:
|
81 |
-
|
82 |
-
```
|
83 |
-
huggingface-cli download bartowski/internlm2_5-20b-chat-GGUF --include "internlm2_5-20b-chat-Q4_K_M.gguf" --local-dir ./
|
84 |
-
```
|
85 |
-
|
86 |
-
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:
|
87 |
-
|
88 |
-
```
|
89 |
-
huggingface-cli download bartowski/internlm2_5-20b-chat-GGUF --include "internlm2_5-20b-chat-Q8_0/*" --local-dir ./
|
90 |
-
```
|
91 |
-
|
92 |
-
You can either specify a new local-dir (internlm2_5-20b-chat-Q8_0) or download them all in place (./)
|
93 |
-
|
94 |
-
## Which file should I choose?
|
95 |
-
|
96 |
-
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
|
97 |
-
|
98 |
-
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.
|
99 |
-
|
100 |
-
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.
|
101 |
-
|
102 |
-
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.
|
103 |
-
|
104 |
-
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
|
105 |
-
|
106 |
-
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.
|
107 |
|
108 |
-
|
|
|
109 |
|
110 |
-
|
111 |
|
112 |
-
|
113 |
|
114 |
-
|
115 |
|
116 |
-
|
117 |
|
118 |
-
|
119 |
|
|
|
|
1 |
---
|
|
|
|
|
|
|
2 |
quantized_by: bartowski
|
3 |
+
pipeline_tag: text-generation
|
4 |
---
|
5 |
+
## ๐ซ Community Model> internlm2_5 20b chat by Internlm
|
6 |
|
7 |
+
*๐พ [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)*.
|
|
|
|
|
8 |
|
9 |
+
**Model creator:** [internlm](https://huggingface.co/internlm)<br>
|
10 |
+
**Original model**: [internlm2_5-20b-chat](https://huggingface.co/internlm/internlm2_5-20b-chat)<br>
|
11 |
+
**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b3509](https://github.com/ggerganov/llama.cpp/releases/tag/b3509)<br>
|
12 |
|
13 |
+
## Model Summary:
|
14 |
+
InternLM has continued their 2.5 series of models with a 20b chat model release. This model has advanced math and reasoning abilities.<br>Additional, 2.5 features strong tool use and instruction following. It can be used with the InternLM tool [MindSearch](https://github.com/InternLM/MindSearch).<br>
|
15 |
|
16 |
+
## Prompt Template:
|
17 |
|
18 |
+
Choose the `ChatML` preset in your LM Studio.
|
19 |
+
Under the hood, the model will see a prompt that's formatted like so:
|
20 |
|
21 |
```
|
22 |
+
<|im_start|>system
|
23 |
{system_prompt}<|im_end|>
|
24 |
<|im_start|>user
|
25 |
{prompt}<|im_end|>
|
26 |
<|im_start|>assistant
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
+
## Technical Details
|
30 |
+
This 20b model rivals the recently released Gemma 2 27b model despite being 25% smaller. You can view the results and more comparisons on OpenCompass [here](https://rank.opencompass.org.cn/)
|
31 |
|
32 |
+
It also has a context length of 32k.
|
33 |
|
34 |
+
## Special thanks
|
35 |
|
36 |
+
๐ Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible.
|
37 |
|
38 |
+
๐ Special thanks to [Kalomaze](https://github.com/kalomaze) and [Dampf](https://github.com/Dampfinchen) for their work on the dataset (linked [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)) that was used for calculating the imatrix for all sizes.
|
39 |
|
40 |
+
## Disclaimers
|
41 |
|
42 |
+
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.
|