Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,25 +1,22 @@
|
|
1 |
---
|
2 |
-
base_model: Qwen/Qwen2-Math-1.5B-Instruct
|
3 |
-
language:
|
4 |
-
- en
|
5 |
-
license: apache-2.0
|
6 |
-
pipeline_tag: text-generation
|
7 |
-
tags:
|
8 |
-
- chat
|
9 |
quantized_by: bartowski
|
|
|
10 |
---
|
|
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
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.
|
15 |
|
16 |
-
|
|
|
|
|
17 |
|
18 |
-
|
|
|
19 |
|
20 |
-
|
21 |
|
22 |
-
|
|
|
23 |
|
24 |
```
|
25 |
<|im_start|>system
|
@@ -27,87 +24,21 @@ Run them in [LM Studio](https://lmstudio.ai/)
|
|
27 |
<|im_start|>user
|
28 |
{prompt}<|im_end|>
|
29 |
<|im_start|>assistant
|
30 |
-
|
31 |
-
```
|
32 |
-
|
33 |
-
## Download a file (not the whole branch) from below:
|
34 |
-
|
35 |
-
| Filename | Quant type | File Size | Split | Description |
|
36 |
-
| -------- | ---------- | --------- | ----- | ----------- |
|
37 |
-
| [Qwen2-Math-1.5B-Instruct-f32.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-f32.gguf) | f32 | 6.18GB | false | Full F32 weights. |
|
38 |
-
| [Qwen2-Math-1.5B-Instruct-Q8_0.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q8_0.gguf) | Q8_0 | 1.65GB | false | Extremely high quality, generally unneeded but max available quant. |
|
39 |
-
| [Qwen2-Math-1.5B-Instruct-Q6_K_L.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q6_K_L.gguf) | Q6_K_L | 1.33GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
|
40 |
-
| [Qwen2-Math-1.5B-Instruct-Q6_K.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q6_K.gguf) | Q6_K | 1.27GB | false | Very high quality, near perfect, *recommended*. |
|
41 |
-
| [Qwen2-Math-1.5B-Instruct-Q5_K_L.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q5_K_L.gguf) | Q5_K_L | 1.18GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
|
42 |
-
| [Qwen2-Math-1.5B-Instruct-Q5_K_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q5_K_M.gguf) | Q5_K_M | 1.13GB | false | High quality, *recommended*. |
|
43 |
-
| [Qwen2-Math-1.5B-Instruct-Q5_K_S.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q5_K_S.gguf) | Q5_K_S | 1.10GB | false | High quality, *recommended*. |
|
44 |
-
| [Qwen2-Math-1.5B-Instruct-Q4_K_L.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q4_K_L.gguf) | Q4_K_L | 1.04GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
|
45 |
-
| [Qwen2-Math-1.5B-Instruct-Q4_K_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q4_K_M.gguf) | Q4_K_M | 0.99GB | false | Good quality, default size for must use cases, *recommended*. |
|
46 |
-
| [Qwen2-Math-1.5B-Instruct-Q4_K_S.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q4_K_S.gguf) | Q4_K_S | 0.94GB | false | Slightly lower quality with more space savings, *recommended*. |
|
47 |
-
| [Qwen2-Math-1.5B-Instruct-Q3_K_XL.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q3_K_XL.gguf) | Q3_K_XL | 0.94GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
|
48 |
-
| [Qwen2-Math-1.5B-Instruct-IQ4_XS.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-IQ4_XS.gguf) | IQ4_XS | 0.90GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
|
49 |
-
| [Qwen2-Math-1.5B-Instruct-Q3_K_L.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-Q3_K_L.gguf) | Q3_K_L | 0.88GB | false | Lower quality but usable, good for low RAM availability. |
|
50 |
-
| [Qwen2-Math-1.5B-Instruct-IQ3_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-1.5B-Instruct-GGUF/blob/main/Qwen2-Math-1.5B-Instruct-IQ3_M.gguf) | IQ3_M | 0.78GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
|
51 |
-
|
52 |
-
## Embed/output weights
|
53 |
-
|
54 |
-
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.
|
55 |
-
|
56 |
-
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.
|
57 |
-
|
58 |
-
Thanks!
|
59 |
-
|
60 |
-
## Credits
|
61 |
-
|
62 |
-
Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
|
63 |
-
|
64 |
-
Thank you ZeroWw for the inspiration to experiment with embed/output
|
65 |
-
|
66 |
-
## Downloading using huggingface-cli
|
67 |
-
|
68 |
-
First, make sure you have hugginface-cli installed:
|
69 |
-
|
70 |
```
|
71 |
-
pip install -U "huggingface_hub[cli]"
|
72 |
-
```
|
73 |
-
|
74 |
-
Then, you can target the specific file you want:
|
75 |
-
|
76 |
-
```
|
77 |
-
huggingface-cli download bartowski/Qwen2-Math-1.5B-Instruct-GGUF --include "Qwen2-Math-1.5B-Instruct-Q4_K_M.gguf" --local-dir ./
|
78 |
-
```
|
79 |
-
|
80 |
-
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:
|
81 |
-
|
82 |
-
```
|
83 |
-
huggingface-cli download bartowski/Qwen2-Math-1.5B-Instruct-GGUF --include "Qwen2-Math-1.5B-Instruct-Q8_0/*" --local-dir ./
|
84 |
-
```
|
85 |
-
|
86 |
-
You can either specify a new local-dir (Qwen2-Math-1.5B-Instruct-Q8_0) or download them all in place (./)
|
87 |
-
|
88 |
-
## Which file should I choose?
|
89 |
-
|
90 |
-
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
|
91 |
-
|
92 |
-
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.
|
93 |
-
|
94 |
-
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.
|
95 |
-
|
96 |
-
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.
|
97 |
-
|
98 |
-
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
|
99 |
|
100 |
-
|
|
|
101 |
|
102 |
-
|
103 |
|
104 |
-
|
105 |
|
106 |
-
|
107 |
|
108 |
-
|
109 |
|
110 |
-
|
111 |
|
112 |
-
|
113 |
|
|
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
quantized_by: bartowski
|
3 |
+
pipeline_tag: text-generation
|
4 |
---
|
5 |
+
## ๐ซ Community Model> Qwen2 Math 1.5B Instruct by Qwen
|
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:** [Qwen](https://huggingface.co/Qwen)<br>
|
10 |
+
**Original model**: [Qwen2-Math-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2-Math-1.5B-Instruct)<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 |
+
Qwen2-Math is a brand new release from the Qwen team, iterating on their previous incredible success of Qwen 2 models!<br>These models are state of the art for their size in math and reasoning, and should be great for solving complex multi-step logic problems.<br>At 1.5B parameters, this model even outperforms the latest Llama 3.1 8B, and other math tunes all the way up to 20B!
|
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
|
|
|
24 |
<|im_start|>user
|
25 |
{prompt}<|im_end|>
|
26 |
<|im_start|>assistant
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
+
## Technical Details
|
30 |
+
These models are trained on a meticulously designed math specific corpus containing "large-scale high-quality" mathematical web texts, books, codes, exam questions, and additional data synthesized by Qwen2.
|
31 |
|
32 |
+
The instruct is then created using a math-specific reward model based on the Qwen2-Math-72B base model, and tuned through SFT, and Group Relative Policy Optimization (GRPO).
|
33 |
|
34 |
+
For more details, check their blog post [here](https://qwenlm.github.io/blog/qwen2-math/)
|
35 |
|
36 |
+
## Special thanks
|
37 |
|
38 |
+
๐ 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.
|
39 |
|
40 |
+
๐ 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.
|
41 |
|
42 |
+
## Disclaimers
|
43 |
|
44 |
+
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.
|