Update README.md
Browse files
README.md
CHANGED
@@ -7,98 +7,54 @@ language:
|
|
7 |
tags:
|
8 |
- math
|
9 |
quantized_by: bartowski
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
---
|
|
|
11 |
|
12 |
-
|
13 |
|
14 |
-
|
|
|
|
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
|
|
19 |
|
20 |
-
## Prompt
|
21 |
|
|
|
|
|
|
|
22 |
|
23 |
```
|
24 |
-
<s><|im_start|>system
|
25 |
-
{system_prompt}<|im_end|>
|
26 |
<|im_start|>user
|
27 |
{prompt}<|im_end|>
|
28 |
<|im_start|>assistant
|
29 |
```
|
30 |
|
31 |
-
##
|
32 |
-
|
33 |
-
| Filename | Quant type | File Size | Description |
|
34 |
-
| -------- | ---------- | --------- | ----------- |
|
35 |
-
| [internlm2-math-plus-20b-Q8_0.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-Q8_0.gguf) | Q8_0 | 21.10GB | Extremely high quality, generally unneeded but max available quant. |
|
36 |
-
| [internlm2-math-plus-20b-Q6_K.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-Q6_K.gguf) | Q6_K | 16.29GB | Very high quality, near perfect, *recommended*. |
|
37 |
-
| [internlm2-math-plus-20b-Q5_K_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-Q5_K_M.gguf) | Q5_K_M | 14.07GB | High quality, *recommended*. |
|
38 |
-
| [internlm2-math-plus-20b-Q5_K_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-Q5_K_S.gguf) | Q5_K_S | 13.73GB | High quality, *recommended*. |
|
39 |
-
| [internlm2-math-plus-20b-Q4_K_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-Q4_K_M.gguf) | Q4_K_M | 11.98GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
|
40 |
-
| [internlm2-math-plus-20b-Q4_K_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-Q4_K_S.gguf) | Q4_K_S | 11.40GB | Slightly lower quality with more space savings, *recommended*. |
|
41 |
-
| [internlm2-math-plus-20b-IQ4_NL.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ4_NL.gguf) | IQ4_NL | 11.36GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
|
42 |
-
| [internlm2-math-plus-20b-IQ4_XS.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ4_XS.gguf) | IQ4_XS | 10.76GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
|
43 |
-
| [internlm2-math-plus-20b-Q3_K_L.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-Q3_K_L.gguf) | Q3_K_L | 10.55GB | Lower quality but usable, good for low RAM availability. |
|
44 |
-
| [internlm2-math-plus-20b-Q3_K_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-Q3_K_M.gguf) | Q3_K_M | 9.72GB | Even lower quality. |
|
45 |
-
| [internlm2-math-plus-20b-IQ3_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ3_M.gguf) | IQ3_M | 9.12GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
|
46 |
-
| [internlm2-math-plus-20b-IQ3_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ3_S.gguf) | IQ3_S | 8.80GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
|
47 |
-
| [internlm2-math-plus-20b-Q3_K_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-Q3_K_S.gguf) | Q3_K_S | 8.76GB | Low quality, not recommended. |
|
48 |
-
| [internlm2-math-plus-20b-IQ3_XS.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ3_XS.gguf) | IQ3_XS | 8.36GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
|
49 |
-
| [internlm2-math-plus-20b-IQ3_XXS.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ3_XXS.gguf) | IQ3_XXS | 7.81GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
|
50 |
-
| [internlm2-math-plus-20b-Q2_K.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-Q2_K.gguf) | Q2_K | 7.54GB | Very low quality but surprisingly usable. |
|
51 |
-
| [internlm2-math-plus-20b-IQ2_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ2_M.gguf) | IQ2_M | 6.97GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
|
52 |
-
| [internlm2-math-plus-20b-IQ2_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ2_S.gguf) | IQ2_S | 6.47GB | Very low quality, uses SOTA techniques to be usable. |
|
53 |
-
| [internlm2-math-plus-20b-IQ2_XS.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ2_XS.gguf) | IQ2_XS | 6.10GB | Very low quality, uses SOTA techniques to be usable. |
|
54 |
-
| [internlm2-math-plus-20b-IQ2_XXS.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ2_XXS.gguf) | IQ2_XXS | 5.54GB | Lower quality, uses SOTA techniques to be usable. |
|
55 |
-
| [internlm2-math-plus-20b-IQ1_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ1_M.gguf) | IQ1_M | 4.91GB | Extremely low quality, *not* recommended. |
|
56 |
-
| [internlm2-math-plus-20b-IQ1_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-20b-GGUF/blob/main/internlm2-math-plus-20b-IQ1_S.gguf) | IQ1_S | 4.54GB | Extremely low quality, *not* recommended. |
|
57 |
-
|
58 |
-
## Downloading using huggingface-cli
|
59 |
-
|
60 |
-
First, make sure you have hugginface-cli installed:
|
61 |
-
|
62 |
-
```
|
63 |
-
pip install -U "huggingface_hub[cli]"
|
64 |
-
```
|
65 |
-
|
66 |
-
Then, you can target the specific file you want:
|
67 |
-
|
68 |
-
```
|
69 |
-
huggingface-cli download bartowski/internlm2-math-plus-20b-GGUF --include "internlm2-math-plus-20b-Q4_K_M.gguf" --local-dir ./
|
70 |
-
```
|
71 |
-
|
72 |
-
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:
|
73 |
-
|
74 |
-
```
|
75 |
-
huggingface-cli download bartowski/internlm2-math-plus-20b-GGUF --include "internlm2-math-plus-20b-Q8_0.gguf/*" --local-dir internlm2-math-plus-20b-Q8_0
|
76 |
-
```
|
77 |
-
|
78 |
-
You can either specify a new local-dir (internlm2-math-plus-20b-Q8_0) or download them all in place (./)
|
79 |
-
|
80 |
-
## Which file should I choose?
|
81 |
-
|
82 |
-
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
|
83 |
-
|
84 |
-
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.
|
85 |
-
|
86 |
-
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.
|
87 |
-
|
88 |
-
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.
|
89 |
-
|
90 |
-
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
|
91 |
-
|
92 |
-
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.
|
93 |
|
94 |
-
|
|
|
|
|
95 |
|
96 |
-
|
97 |
|
98 |
-
|
99 |
|
100 |
-
|
101 |
|
102 |
-
|
103 |
|
104 |
-
|
|
|
7 |
tags:
|
8 |
- math
|
9 |
quantized_by: bartowski
|
10 |
+
lm_studio:
|
11 |
+
param_count: 20b
|
12 |
+
use_case: math
|
13 |
+
release_date: 24-05-2024
|
14 |
+
model_creator: InternLM
|
15 |
+
prompt_template: ChatML
|
16 |
+
system_prompt: none
|
17 |
+
base_model: InternLM
|
18 |
+
original_repo: internlm/internlm2-math-plus-20b
|
19 |
+
base_model: internlm/internlm2-math-plus-20b
|
20 |
---
|
21 |
+
## ๐ซ Community Model> InternLM2 Math Plus 20b by InternLM
|
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:** [InternLM](https://huggingface.co/internlm)<br>
|
26 |
+
**Original model**: [internlm2-math-plus-20b](https://huggingface.co/internlm/internlm2-math-plus-20b)<br>
|
27 |
+
**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b3001](https://github.com/ggerganov/llama.cpp/releases/tag/b3001)<br>
|
28 |
|
29 |
+
## Model Summary:
|
30 |
|
31 |
+
InternLM2 Math Plus is a series of math proficient models by InternLM, following up on their original series of math models.<br>
|
32 |
+
This series has state of the art bilingual open-sourced math reasoning models at several sizes. This should be used as a solver, prover, verifier, augmentor, with chain of thought reasoning.
|
33 |
|
34 |
+
## Prompt template:
|
35 |
|
36 |
+
Choose the `ChatML` preset in your LM Studio.
|
37 |
+
|
38 |
+
Under the hood, the model will see a prompt that's formatted like so:
|
39 |
|
40 |
```
|
|
|
|
|
41 |
<|im_start|>user
|
42 |
{prompt}<|im_end|>
|
43 |
<|im_start|>assistant
|
44 |
```
|
45 |
|
46 |
+
## Technical Details
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
+
Math Plus has improved informal math reasoning performance (chain-of-thought and code-intepreter) and formal math reasoning performance (LEAN 4 translation and LEAN 4 theorem proving).<br>
|
49 |
+
InternLM2-Math are continued pretrained from InternLM2-Base with ~100B high quality math-related tokens and SFT with ~2M bilingual math supervised data.<br>
|
50 |
+
More details can be found here: https://github.com/InternLM/InternLM-Math
|
51 |
|
52 |
+
## Special thanks
|
53 |
|
54 |
+
๐ Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/)
|
55 |
|
56 |
+
๐ 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.
|
57 |
|
58 |
+
## Disclaimers
|
59 |
|
60 |
+
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.
|