shimmyshimmer
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -13,42 +13,40 @@ tags:
|
|
13 |
---
|
14 |
|
15 |
## ***See [our collection](https://huggingface.co/collections/unsloth/deepseek-r1-all-versions-678e1c48f5d2fce87892ace5) for versions of Deepseek-R1 including GGUF and original formats.***
|
16 |
-
|
17 |
### Instructions to run this model in llama.cpp:
|
18 |
Or you can view more detailed instructions here: [unsloth.ai/blog/deepseek-r1](https://unsloth.ai/blog/deepseek-r1)
|
19 |
1. Do not forget about `<|User|>` and `<|Assistant|>` tokens! - Or use a chat template formatter
|
20 |
-
2.
|
|
|
21 |
```bash
|
22 |
./llama.cpp/llama-cli \
|
23 |
-
--model unsloth/DeepSeek-R1-Distill-Qwen-
|
24 |
--cache-type-k q8_0 \
|
25 |
-
--cache-type-v q8_0 \
|
26 |
--threads 16 \
|
27 |
--prompt '<|User|>What is 1+1?<|Assistant|>' \
|
28 |
-no-cnv
|
29 |
```
|
30 |
Example output:
|
|
|
31 |
```txt
|
32 |
-
|
33 |
-
|
34 |
-
1.
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
4. If you have a GPU (RTX 4090 for example) with 24GB, you can offload multiple layers to the GPU for faster processing. If you have multiple GPUs, you can probably offload more layers.
|
41 |
```bash
|
42 |
./llama.cpp/llama-cli \
|
43 |
-
--model unsloth/DeepSeek-R1-Distill-Qwen-
|
44 |
--cache-type-k q8_0
|
45 |
-
--cache-type-v q8_0
|
46 |
--threads 16
|
47 |
--prompt '<|User|>What is 1+1?<|Assistant|>'
|
48 |
--n-gpu-layers 20 \
|
49 |
-no-cnv
|
50 |
```
|
51 |
-
|
52 |
# Finetune LLMs 2-5x faster with 70% less memory via Unsloth!
|
53 |
We have a free Google Colab Tesla T4 notebook for Llama 3.1 (8B) here: https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_(8B)-Alpaca.ipynb
|
54 |
|
|
|
13 |
---
|
14 |
|
15 |
## ***See [our collection](https://huggingface.co/collections/unsloth/deepseek-r1-all-versions-678e1c48f5d2fce87892ace5) for versions of Deepseek-R1 including GGUF and original formats.***
|
|
|
16 |
### Instructions to run this model in llama.cpp:
|
17 |
Or you can view more detailed instructions here: [unsloth.ai/blog/deepseek-r1](https://unsloth.ai/blog/deepseek-r1)
|
18 |
1. Do not forget about `<|User|>` and `<|Assistant|>` tokens! - Or use a chat template formatter
|
19 |
+
2. Obtain the latest `llama.cpp` at https://github.com/ggerganov/llama.cpp
|
20 |
+
3. Example with Q8_0 K quantized cache **Notice -no-cnv disables auto conversation mode**
|
21 |
```bash
|
22 |
./llama.cpp/llama-cli \
|
23 |
+
--model unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF/DeepSeek-R1-Distill-Qwen-7B-Q4_K_M.gguf \
|
24 |
--cache-type-k q8_0 \
|
|
|
25 |
--threads 16 \
|
26 |
--prompt '<|User|>What is 1+1?<|Assistant|>' \
|
27 |
-no-cnv
|
28 |
```
|
29 |
Example output:
|
30 |
+
|
31 |
```txt
|
32 |
+
<think>
|
33 |
+
Okay, so I need to figure out what 1 plus 1 is. Hmm, where do I even start? I remember from school that adding numbers is pretty basic, but I want to make sure I understand it properly.
|
34 |
+
Let me think, 1 plus 1. So, I have one item and I add another one. Maybe like a apple plus another apple. If I have one apple and someone gives me another, I now have two apples. So, 1 plus 1 should be 2. That makes sense.
|
35 |
+
Wait, but sometimes math can be tricky. Could it be something else? Like, in a different number system maybe? But I think the question is straightforward, using regular numbers, not like binary or hexadecimal or anything.
|
36 |
+
I also recall that in arithmetic, addition is combining quantities. So, if you have two quantities of 1, combining them gives you a total of 2. Yeah, that seems right.
|
37 |
+
Is there a scenario where 1 plus 1 wouldn't be 2? I can't think of any...
|
38 |
+
```
|
39 |
+
|
40 |
4. If you have a GPU (RTX 4090 for example) with 24GB, you can offload multiple layers to the GPU for faster processing. If you have multiple GPUs, you can probably offload more layers.
|
41 |
```bash
|
42 |
./llama.cpp/llama-cli \
|
43 |
+
--model unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF/DeepSeek-R1-Distill-Qwen-7B-Q4_K_M.gguf
|
44 |
--cache-type-k q8_0
|
|
|
45 |
--threads 16
|
46 |
--prompt '<|User|>What is 1+1?<|Assistant|>'
|
47 |
--n-gpu-layers 20 \
|
48 |
-no-cnv
|
49 |
```
|
|
|
50 |
# Finetune LLMs 2-5x faster with 70% less memory via Unsloth!
|
51 |
We have a free Google Colab Tesla T4 notebook for Llama 3.1 (8B) here: https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_(8B)-Alpaca.ipynb
|
52 |
|