bartowski commited on
Commit
4e0ceda
โ€ข
1 Parent(s): f56980b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +20 -97
README.md CHANGED
@@ -1,27 +1,22 @@
1
  ---
2
- base_model: Qwen/Qwen2-Math-72B-Instruct
3
- language:
4
- - en
5
- license: other
6
- license_name: tongyi-qianwen
7
- license_link: https://huggingface.co/Qwen/Qwen2-Math-72B-Instruct/blob/main/LICENSE
8
- pipeline_tag: text-generation
9
- tags:
10
- - chat
11
  quantized_by: bartowski
 
12
  ---
 
13
 
14
- ## Llamacpp imatrix Quantizations of Qwen2-Math-72B-Instruct
15
-
16
- 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.
17
 
18
- Original model: https://huggingface.co/Qwen/Qwen2-Math-72B-Instruct
 
 
19
 
20
- All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
 
21
 
22
- Run them in [LM Studio](https://lmstudio.ai/)
23
 
24
- ## Prompt format
 
25
 
26
  ```
27
  <|im_start|>system
@@ -29,93 +24,21 @@ Run them in [LM Studio](https://lmstudio.ai/)
29
  <|im_start|>user
30
  {prompt}<|im_end|>
31
  <|im_start|>assistant
32
-
33
- ```
34
-
35
- ## Download a file (not the whole branch) from below:
36
-
37
- | Filename | Quant type | File Size | Split | Description |
38
- | -------- | ---------- | --------- | ----- | ----------- |
39
- | [Qwen2-Math-72B-Instruct-Q8_0.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/tree/main/Qwen2-Math-72B-Instruct-Q8_0) | Q8_0 | 77.26GB | true | Extremely high quality, generally unneeded but max available quant. |
40
- | [Qwen2-Math-72B-Instruct-Q6_K.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/tree/main/Qwen2-Math-72B-Instruct-Q6_K) | Q6_K | 64.35GB | true | Very high quality, near perfect, *recommended*. |
41
- | [Qwen2-Math-72B-Instruct-Q5_K_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/tree/main/Qwen2-Math-72B-Instruct-Q5_K_M) | Q5_K_M | 54.45GB | true | High quality, *recommended*. |
42
- | [Qwen2-Math-72B-Instruct-Q5_K_S.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/tree/main/Qwen2-Math-72B-Instruct-Q5_K_S) | Q5_K_S | 51.38GB | true | High quality, *recommended*. |
43
- | [Qwen2-Math-72B-Instruct-Q4_K_L.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-Q4_K_L.gguf) | Q4_K_L | 48.34GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
44
- | [Qwen2-Math-72B-Instruct-Q4_K_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-Q4_K_M.gguf) | Q4_K_M | 47.42GB | false | Good quality, default size for must use cases, *recommended*. |
45
- | [Qwen2-Math-72B-Instruct-Q4_K_S.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-Q4_K_S.gguf) | Q4_K_S | 43.89GB | false | Slightly lower quality with more space savings, *recommended*. |
46
- | [Qwen2-Math-72B-Instruct-Q3_K_XL.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-Q3_K_XL.gguf) | Q3_K_XL | 40.60GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
47
- | [Qwen2-Math-72B-Instruct-IQ4_XS.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-IQ4_XS.gguf) | IQ4_XS | 39.71GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
48
- | [Qwen2-Math-72B-Instruct-Q3_K_L.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-Q3_K_L.gguf) | Q3_K_L | 39.51GB | false | Lower quality but usable, good for low RAM availability. |
49
- | [Qwen2-Math-72B-Instruct-Q3_K_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-Q3_K_M.gguf) | Q3_K_M | 37.70GB | false | Low quality. |
50
- | [Qwen2-Math-72B-Instruct-IQ3_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-IQ3_M.gguf) | IQ3_M | 35.50GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
51
- | [Qwen2-Math-72B-Instruct-Q3_K_S.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-Q3_K_S.gguf) | Q3_K_S | 34.49GB | false | Low quality, not recommended. |
52
- | [Qwen2-Math-72B-Instruct-IQ3_XXS.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-IQ3_XXS.gguf) | IQ3_XXS | 31.85GB | false | Lower quality, new method with decent performance, comparable to Q3 quants. |
53
- | [Qwen2-Math-72B-Instruct-Q2_K_L.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-Q2_K_L.gguf) | Q2_K_L | 31.03GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
54
- | [Qwen2-Math-72B-Instruct-Q2_K.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-Q2_K.gguf) | Q2_K | 29.81GB | false | Very low quality but surprisingly usable. |
55
- | [Qwen2-Math-72B-Instruct-IQ2_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-IQ2_M.gguf) | IQ2_M | 29.34GB | false | Relatively low quality, uses SOTA techniques to be surprisingly usable. |
56
- | [Qwen2-Math-72B-Instruct-IQ2_XS.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-IQ2_XS.gguf) | IQ2_XS | 27.06GB | false | Low quality, uses SOTA techniques to be usable. |
57
- | [Qwen2-Math-72B-Instruct-IQ2_XXS.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-IQ2_XXS.gguf) | IQ2_XXS | 25.49GB | false | Very low quality, uses SOTA techniques to be usable. |
58
- | [Qwen2-Math-72B-Instruct-IQ1_M.gguf](https://huggingface.co/bartowski/Qwen2-Math-72B-Instruct-GGUF/blob/main/Qwen2-Math-72B-Instruct-IQ1_M.gguf) | IQ1_M | 23.74GB | false | Extremely low quality, *not* recommended. |
59
-
60
- ## Embed/output weights
61
-
62
- 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.
63
-
64
- 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.
65
-
66
- Thanks!
67
-
68
- ## Credits
69
-
70
- Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
71
-
72
- Thank you ZeroWw for the inspiration to experiment with embed/output
73
-
74
- ## Downloading using huggingface-cli
75
-
76
- First, make sure you have hugginface-cli installed:
77
-
78
  ```
79
- pip install -U "huggingface_hub[cli]"
80
- ```
81
-
82
- Then, you can target the specific file you want:
83
-
84
- ```
85
- huggingface-cli download bartowski/Qwen2-Math-72B-Instruct-GGUF --include "Qwen2-Math-72B-Instruct-Q4_K_M.gguf" --local-dir ./
86
- ```
87
-
88
- 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:
89
-
90
- ```
91
- huggingface-cli download bartowski/Qwen2-Math-72B-Instruct-GGUF --include "Qwen2-Math-72B-Instruct-Q8_0/*" --local-dir ./
92
- ```
93
-
94
- You can either specify a new local-dir (Qwen2-Math-72B-Instruct-Q8_0) or download them all in place (./)
95
-
96
- ## Which file should I choose?
97
-
98
- A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
99
-
100
- 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.
101
-
102
- 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.
103
-
104
- 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.
105
-
106
- Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
107
 
108
- 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.
 
109
 
110
- If you want to get more into the weeds, you can check out this extremely useful feature chart:
111
 
112
- [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
113
 
114
- 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.
115
 
116
- 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.
117
 
118
- 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.
119
 
120
- Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
121
 
 
 
1
  ---
 
 
 
 
 
 
 
 
 
2
  quantized_by: bartowski
3
+ pipeline_tag: text-generation
4
  ---
5
+ ## ๐Ÿ’ซ Community Model> Qwen2 Math 72B 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-72B-Instruct](https://huggingface.co/Qwen/Qwen2-Math-72B-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 72B parameters, this model out performs all other open models in all math related benchmarks, and even outperforms most closed models including GPT-4 Turbo, Claude 3 Opus, and Gemini 1.5 Pro.
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.