JustinLin610
commited on
Commit
•
2e87cc4
1
Parent(s):
e37a612
Update README.md
Browse files
README.md
CHANGED
@@ -41,9 +41,11 @@ To run Qwen2, you can use `llama-cli` (the previous `main`) or `llama-server` (t
|
|
41 |
We recommend using the `llama-server` as it is simple and compatible with OpenAI API. For example:
|
42 |
|
43 |
```bash
|
44 |
-
./llama-server -m qwen2-1.5b-instruct-q5_k_m.gguf
|
45 |
```
|
46 |
|
|
|
|
|
47 |
Then it is easy to access the deployed service with OpenAI API:
|
48 |
|
49 |
```python
|
@@ -67,7 +69,11 @@ print(completion.choices[0].message.content)
|
|
67 |
If you choose to use `llama-cli`, pay attention to the removal of `-cml` for the ChatML template. Instead you should use `--in-prefix` and `--in-suffix` to tackle this problem.
|
68 |
|
69 |
```bash
|
70 |
-
./llama-cli -m qwen2-1.5b-instruct-q5_k_m.gguf
|
|
|
|
|
|
|
|
|
71 |
```
|
72 |
|
73 |
Evaluation
|
@@ -80,7 +86,7 @@ In the following we report the PPL of GGUF models of different sizes and differe
|
|
80 |
|0.5B | 15.11 | 15.13 | 15.14 | 15.24 | 15.40 | 15.36 | 16.28 | 15.70 | 16.74 | - |
|
81 |
|1.5B | 10.43 | 10.43 | 10.45 | 10.50 | 10.56 | 10.61 | 10.79 | 11.08 | 13.04 | - |
|
82 |
|7B | 7.93 | 7.94 | 7.96 | 7.97 | 7.98 | 8.02 | 8.19 | 8.20 | 10.58 | - |
|
83 |
-
|57B-A14B| 6.
|
84 |
|72B | 5.58 | 5.58 | 5.59 | 5.59 | 5.60 | 5.61 | 5.66 | 5.68 | 5.91 | 6.75 |
|
85 |
|
86 |
|
|
|
41 |
We recommend using the `llama-server` as it is simple and compatible with OpenAI API. For example:
|
42 |
|
43 |
```bash
|
44 |
+
./llama-server -m qwen2-1.5b-instruct-q5_k_m.gguf -ngl 28 -fa
|
45 |
```
|
46 |
|
47 |
+
(Note: `-ngl 28` refers to offloading 28 layers to GPUs, and `-fa` refers to the use of flash attention.)
|
48 |
+
|
49 |
Then it is easy to access the deployed service with OpenAI API:
|
50 |
|
51 |
```python
|
|
|
69 |
If you choose to use `llama-cli`, pay attention to the removal of `-cml` for the ChatML template. Instead you should use `--in-prefix` and `--in-suffix` to tackle this problem.
|
70 |
|
71 |
```bash
|
72 |
+
./llama-cli -m qwen2-1.5b-instruct-q5_k_m.gguf \
|
73 |
+
-n 512 -co -i -if -f prompts/chat-with-qwen.txt \
|
74 |
+
--in-prefix "<|im_start|>user\n" \
|
75 |
+
--in-suffix "<|im_end|>\n<|im_start|>assistant\n" \
|
76 |
+
-ngl 28 -fa
|
77 |
```
|
78 |
|
79 |
Evaluation
|
|
|
86 |
|0.5B | 15.11 | 15.13 | 15.14 | 15.24 | 15.40 | 15.36 | 16.28 | 15.70 | 16.74 | - |
|
87 |
|1.5B | 10.43 | 10.43 | 10.45 | 10.50 | 10.56 | 10.61 | 10.79 | 11.08 | 13.04 | - |
|
88 |
|7B | 7.93 | 7.94 | 7.96 | 7.97 | 7.98 | 8.02 | 8.19 | 8.20 | 10.58 | - |
|
89 |
+
|57B-A14B| 6.81 | 6.81 | 6.83 | 6.84 | 6.89 | 6.99 | 7.02 | 7.43 | - | - |
|
90 |
|72B | 5.58 | 5.58 | 5.59 | 5.59 | 5.60 | 5.61 | 5.66 | 5.68 | 5.91 | 6.75 |
|
91 |
|
92 |
|