Update README.md
Browse files
README.md
CHANGED
@@ -6,85 +6,58 @@ pipeline_tag: text-generation
|
|
6 |
tags:
|
7 |
- chat
|
8 |
quantized_by: bartowski
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
---
|
10 |
|
11 |
-
##
|
12 |
|
13 |
-
|
14 |
|
15 |
-
|
|
|
|
|
16 |
|
17 |
-
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
```
|
22 |
<|im_start|>system
|
23 |
-
|
24 |
<|im_start|>user
|
25 |
{prompt}<|im_end|>
|
26 |
<|im_start|>assistant
|
27 |
-
|
28 |
```
|
29 |
|
30 |
-
##
|
31 |
-
|
32 |
-
| Filename | Quant type | File Size | Description |
|
33 |
-
| -------- | ---------- | --------- | ----------- |
|
34 |
-
| [Qwen2-0.5B-Instruct-Q8_0.gguf](https://huggingface.co/bartowski/Qwen2-0.5B-Instruct-GGUF/blob/main/Qwen2-0.5B-Instruct-Q8_0.gguf) | Q8_0 | .53GB | Extremely high quality, generally unneeded but max available quant. |
|
35 |
-
| [Qwen2-0.5B-Instruct-Q6_K.gguf](https://huggingface.co/bartowski/Qwen2-0.5B-Instruct-GGUF/blob/main/Qwen2-0.5B-Instruct-Q6_K.gguf) | Q6_K | .50GB | Very high quality, near perfect, *recommended*. |
|
36 |
-
| [Qwen2-0.5B-Instruct-Q5_K_M.gguf](https://huggingface.co/bartowski/Qwen2-0.5B-Instruct-GGUF/blob/main/Qwen2-0.5B-Instruct-Q5_K_M.gguf) | Q5_K_M | .42GB | High quality, *recommended*. |
|
37 |
-
| [Qwen2-0.5B-Instruct-Q5_K_S.gguf](https://huggingface.co/bartowski/Qwen2-0.5B-Instruct-GGUF/blob/main/Qwen2-0.5B-Instruct-Q5_K_S.gguf) | Q5_K_S | .41GB | High quality, *recommended*. |
|
38 |
-
| [Qwen2-0.5B-Instruct-Q4_K_M.gguf](https://huggingface.co/bartowski/Qwen2-0.5B-Instruct-GGUF/blob/main/Qwen2-0.5B-Instruct-Q4_K_M.gguf) | Q4_K_M | .39GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
|
39 |
-
| [Qwen2-0.5B-Instruct-Q4_K_S.gguf](https://huggingface.co/bartowski/Qwen2-0.5B-Instruct-GGUF/blob/main/Qwen2-0.5B-Instruct-Q4_K_S.gguf) | Q4_K_S | .38GB | Slightly lower quality with more space savings, *recommended*. |
|
40 |
-
| [Qwen2-0.5B-Instruct-IQ4_XS.gguf](https://huggingface.co/bartowski/Qwen2-0.5B-Instruct-GGUF/blob/main/Qwen2-0.5B-Instruct-IQ4_XS.gguf) | IQ4_XS | .34GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
|
41 |
-
| [Qwen2-0.5B-Instruct-Q3_K_L.gguf](https://huggingface.co/bartowski/Qwen2-0.5B-Instruct-GGUF/blob/main/Qwen2-0.5B-Instruct-Q3_K_L.gguf) | Q3_K_L | .36GB | Lower quality but usable, good for low RAM availability. |
|
42 |
-
| [Qwen2-0.5B-Instruct-IQ3_M.gguf](https://huggingface.co/bartowski/Qwen2-0.5B-Instruct-GGUF/blob/main/Qwen2-0.5B-Instruct-IQ3_M.gguf) | IQ3_M | .34GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
|
43 |
-
|
44 |
-
## Downloading using huggingface-cli
|
45 |
-
|
46 |
-
First, make sure you have hugginface-cli installed:
|
47 |
-
|
48 |
-
```
|
49 |
-
pip install -U "huggingface_hub[cli]"
|
50 |
-
```
|
51 |
-
|
52 |
-
Then, you can target the specific file you want:
|
53 |
-
|
54 |
-
```
|
55 |
-
huggingface-cli download bartowski/Qwen2-0.5B-Instruct-GGUF --include "Qwen2-0.5B-Instruct-Q4_K_M.gguf" --local-dir ./
|
56 |
-
```
|
57 |
-
|
58 |
-
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:
|
59 |
-
|
60 |
-
```
|
61 |
-
huggingface-cli download bartowski/Qwen2-0.5B-Instruct-GGUF --include "Qwen2-0.5B-Instruct-Q8_0.gguf/*" --local-dir Qwen2-0.5B-Instruct-Q8_0
|
62 |
-
```
|
63 |
-
|
64 |
-
You can either specify a new local-dir (Qwen2-0.5B-Instruct-Q8_0) or download them all in place (./)
|
65 |
-
|
66 |
-
## Which file should I choose?
|
67 |
-
|
68 |
-
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
|
69 |
-
|
70 |
-
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.
|
71 |
-
|
72 |
-
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.
|
73 |
-
|
74 |
-
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.
|
75 |
-
|
76 |
-
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
|
77 |
|
78 |
-
|
79 |
|
80 |
-
|
81 |
|
82 |
-
|
83 |
|
84 |
-
|
85 |
|
86 |
-
|
87 |
|
88 |
-
|
89 |
|
90 |
-
|
|
|
6 |
tags:
|
7 |
- chat
|
8 |
quantized_by: bartowski
|
9 |
+
lm_studio:
|
10 |
+
param_count: 0.5b
|
11 |
+
use_case: chat
|
12 |
+
release_date: 06-06-2024
|
13 |
+
model_creator: Qwen
|
14 |
+
prompt_template: ChatML
|
15 |
+
system_prompt: You are a helpful assistant.
|
16 |
+
base_model: qwen2
|
17 |
+
original_repo: Qwen/Qwen2-0.5B-Instruct
|
18 |
+
base_model: Qwen/Qwen2-0.5B-Instruct
|
19 |
---
|
20 |
|
21 |
+
## 💫 Community Model> Qwen2 0.5B Instruct by Qwen
|
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:** [Qwen](https://huggingface.co/Qwen)<br>
|
26 |
+
**Original model**: [Qwen2-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2-0.5B-Instruct)<br>
|
27 |
+
**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3086">b3086</a><br>
|
28 |
|
29 |
+
## Model Summary:
|
30 |
|
31 |
+
Qwen2 is a new series of language models from Qwen released in various sizes.<br>
|
32 |
+
Showing improved performance across a large range of categories, this model is great for any general purpose instruction following.<br>
|
33 |
+
At only 500M parameters, this model should be used for low power edge compute or as a draft model.
|
34 |
+
|
35 |
+
## Prompt template:
|
36 |
+
|
37 |
+
Choose the `ChatML` preset in your LM Studio.
|
38 |
+
|
39 |
+
Under the hood, the model will see a prompt that's formatted like so:
|
40 |
|
41 |
```
|
42 |
<|im_start|>system
|
43 |
+
You are a helpful assistant.<|im_end|>
|
44 |
<|im_start|>user
|
45 |
{prompt}<|im_end|>
|
46 |
<|im_start|>assistant
|
|
|
47 |
```
|
48 |
|
49 |
+
## Technical Details
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
+
Qwen2 offers an extremely extended 131,072 token vocabulary
|
52 |
|
53 |
+
For more information, visit their blog post [here](https://qwenlm.github.io/blog/qwen2/)
|
54 |
|
55 |
+
## Special thanks
|
56 |
|
57 |
+
🙏 Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/)
|
58 |
|
59 |
+
🙏 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.
|
60 |
|
61 |
+
## Disclaimers
|
62 |
|
63 |
+
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.
|