Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,109 +1,43 @@
|
|
1 |
---
|
2 |
-
base_model: internlm/internlm2_5-1_8b-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/b3561">b3561</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 |
-
| [internlm2_5-1_8b-chat-f32.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-f32.gguf) | f32 | 7.56GB | false | Full F32 weights. |
|
34 |
-
| [internlm2_5-1_8b-chat-Q8_0.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-Q8_0.gguf) | Q8_0 | 2.01GB | false | Extremely high quality, generally unneeded but max available quant. |
|
35 |
-
| [internlm2_5-1_8b-chat-Q6_K_L.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-Q6_K_L.gguf) | Q6_K_L | 1.64GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
|
36 |
-
| [internlm2_5-1_8b-chat-Q6_K.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-Q6_K.gguf) | Q6_K | 1.55GB | false | Very high quality, near perfect, *recommended*. |
|
37 |
-
| [internlm2_5-1_8b-chat-Q5_K_L.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-Q5_K_L.gguf) | Q5_K_L | 1.47GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
|
38 |
-
| [internlm2_5-1_8b-chat-Q5_K_M.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-Q5_K_M.gguf) | Q5_K_M | 1.36GB | false | High quality, *recommended*. |
|
39 |
-
| [internlm2_5-1_8b-chat-Q5_K_S.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-Q5_K_S.gguf) | Q5_K_S | 1.33GB | false | High quality, *recommended*. |
|
40 |
-
| [internlm2_5-1_8b-chat-Q4_K_L.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-Q4_K_L.gguf) | Q4_K_L | 1.31GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
|
41 |
-
| [internlm2_5-1_8b-chat-Q3_K_XL.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-Q3_K_XL.gguf) | Q3_K_XL | 1.20GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
|
42 |
-
| [internlm2_5-1_8b-chat-Q4_K_M.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-Q4_K_M.gguf) | Q4_K_M | 1.17GB | false | Good quality, default size for must use cases, *recommended*. |
|
43 |
-
| [internlm2_5-1_8b-chat-Q4_K_S.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-Q4_K_S.gguf) | Q4_K_S | 1.12GB | false | Slightly lower quality with more space savings, *recommended*. |
|
44 |
-
| [internlm2_5-1_8b-chat-IQ4_XS.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-IQ4_XS.gguf) | IQ4_XS | 1.06GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
|
45 |
-
| [internlm2_5-1_8b-chat-Q3_K_L.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-Q3_K_L.gguf) | Q3_K_L | 1.03GB | false | Lower quality but usable, good for low RAM availability. |
|
46 |
-
| [internlm2_5-1_8b-chat-IQ3_M.gguf](https://huggingface.co/bartowski/internlm2_5-1_8b-chat-GGUF/blob/main/internlm2_5-1_8b-chat-IQ3_M.gguf) | IQ3_M | 0.91GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
|
47 |
-
|
48 |
-
## Embed/output weights
|
49 |
-
|
50 |
-
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.
|
51 |
-
|
52 |
-
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.
|
53 |
-
|
54 |
-
Thanks!
|
55 |
-
|
56 |
-
## Credits
|
57 |
-
|
58 |
-
Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
|
59 |
-
|
60 |
-
Thank you ZeroWw for the inspiration to experiment with embed/output
|
61 |
-
|
62 |
-
## Downloading using huggingface-cli
|
63 |
-
|
64 |
-
First, make sure you have hugginface-cli installed:
|
65 |
-
|
66 |
```
|
67 |
-
pip install -U "huggingface_hub[cli]"
|
68 |
-
```
|
69 |
-
|
70 |
-
Then, you can target the specific file you want:
|
71 |
-
|
72 |
-
```
|
73 |
-
huggingface-cli download bartowski/internlm2_5-1_8b-chat-GGUF --include "internlm2_5-1_8b-chat-Q4_K_M.gguf" --local-dir ./
|
74 |
-
```
|
75 |
-
|
76 |
-
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:
|
77 |
-
|
78 |
-
```
|
79 |
-
huggingface-cli download bartowski/internlm2_5-1_8b-chat-GGUF --include "internlm2_5-1_8b-chat-Q8_0/*" --local-dir ./
|
80 |
-
```
|
81 |
-
|
82 |
-
You can either specify a new local-dir (internlm2_5-1_8b-chat-Q8_0) or download them all in place (./)
|
83 |
-
|
84 |
-
## Which file should I choose?
|
85 |
-
|
86 |
-
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
|
87 |
-
|
88 |
-
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.
|
89 |
-
|
90 |
-
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.
|
91 |
-
|
92 |
-
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.
|
93 |
-
|
94 |
-
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
|
95 |
|
96 |
-
|
|
|
97 |
|
98 |
-
|
99 |
|
100 |
-
[llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
|
101 |
|
102 |
-
|
103 |
|
104 |
-
|
105 |
|
106 |
-
|
107 |
|
108 |
-
|
109 |
|
|
|
|
1 |
---
|
|
|
|
|
|
|
2 |
quantized_by: bartowski
|
3 |
+
pipeline_tag: text-generation
|
4 |
---
|
5 |
+
## ๐ซ Community Model> internlm2_5 1_8b 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-1_8b-chat](https://huggingface.co/internlm/internlm2_5-1_8b-chat)<br>
|
11 |
+
**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b3561](https://github.com/ggerganov/llama.cpp/releases/tag/b3561)<br>
|
12 |
|
13 |
+
## Model Summary:
|
14 |
+
InternLM has continued their 2.5 series of models with a 1.8b chat model release. This model has advanced math and reasoning abilities, and surpasses other models in this size category.<br>Additionally, 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 1.8B model is great for edge compute or mobile devices, and achieves great scores for its size.
|
31 |
|
32 |
+
You can view the results and more comparisons on OpenCompass [here](https://rank.opencompass.org.cn/)
|
33 |
|
|
|
34 |
|
35 |
+
## Special thanks
|
36 |
|
37 |
+
๐ 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.
|
38 |
|
39 |
+
๐ 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.
|
40 |
|
41 |
+
## Disclaimers
|
42 |
|
43 |
+
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.
|