TheBloke commited on
Commit
068319e
1 Parent(s): 15cc038

New GGMLv3 format for breaking llama.cpp change May 19th commit 2d5db48

Browse files
Files changed (1) hide show
  1. README.md +11 -10
README.md CHANGED
@@ -32,28 +32,29 @@ This model works best with the following prompt template:
32
  ### Assistant:
33
  ```
34
 
35
- ## REQUIRES LATEST LLAMA.CPP (May 12th 2023 - commit b9fd7ee)!
36
 
37
- llama.cpp recently made a breaking change to its quantisation methods.
38
 
39
- I have re-quantised the GGML files in this repo. Therefore you will require llama.cpp compiled on May 12th or later (commit `b9fd7ee` or later) to use them.
40
 
41
- The previous files, which will still work in older versions of llama.cpp, can be found in branch `previous_llama`.
42
 
43
  ## Provided files
44
  | Name | Quant method | Bits | Size | RAM required | Use case |
45
  | ---- | ---- | ---- | ---- | ---- | ----- |
46
- `stable-vicuna-13B.ggml.q4_0.bin` | q4_0 | 4bit | 8.14GB | 10.5GB | 4bit. |
47
- `stable-vicuna-13B.ggml.q5_0.bin` | q5_0 | 5bit | 8.95GB | 11.0GB | 5bit. Higher accuracy, higher resource usage and slower inference. |
48
- `stable-vicuna-13B.ggml.q5_1.bin` | q5_1 | 5bit | 9.76GB | 12.25GB | 5bit. Higher accuracy than q5_0, but again higher resource usage and slower inference. |
49
- `stable-vicuna-13B.ggml.q8_0.bin` | q8_0 | 8bit | 14.6GB | 17GB | 8-bit. Almost indistinguishable from float16. Huge resource use and slow. Not recommended for normal use. |
 
50
 
51
  ## How to run in `llama.cpp`
52
 
53
  I use the following command line; adjust for your tastes and needs:
54
 
55
  ```
56
- ./main -t 18 -m stable-vicuna-13B.ggml.q4_0.bin --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -r "### Human:" -p "### Human: write a story about llamas ### Assistant:"
57
  ```
58
 
59
  Change `-t 18` to the number of physical CPU cores you have. For example if your system has 8 cores/16 threads, use `-t 8`.
@@ -64,7 +65,7 @@ GGML models can be loaded into text-generation-webui by installing the llama.cpp
64
 
65
  Further instructions here: [text-generation-webui/docs/llama.cpp-models.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md).
66
 
67
- Note: at this time text-generation-webui may not support the May 12th updated quantisation methods.
68
 
69
  **Thireus** has written a [great guide on how to update it to the latest llama.cpp code](https://huggingface.co/TheBloke/wizardLM-7B-GGML/discussions/5) which may help with getting the files working in text-gen-ui sooner.
70
 
 
32
  ### Assistant:
33
  ```
34
 
35
+ ## THE FILES IN MAIN BRANCH REQUIRES LATEST LLAMA.CPP (May 19th 2023 - commit 2d5db48)!
36
 
37
+ llama.cpp recently made another breaking change to its quantisation methods - https://github.com/ggerganov/llama.cpp/pull/1508
38
 
39
+ I have quantised the GGML files in this repo with the latest version. Therefore you will require llama.cpp compiled on May 12th or later (commit `b9fd7ee` or later) to use them.
40
 
41
+ For files compatible with the previous version of llama.cpp, please see branch `previous_llama_ggmlv2`.
42
 
43
  ## Provided files
44
  | Name | Quant method | Bits | Size | RAM required | Use case |
45
  | ---- | ---- | ---- | ---- | ---- | ----- |
46
+ `stable-vicuna-13B.ggmlv3.q4_0.bin` | q4_0 | 4bit | 8.14GB | 10.5GB | 4bit. |
47
+ `stable-vicuna-13B.ggmlv3.q4_1.bin` | q4_1 | 4bit | 8.95GB | 11.0GB | 4-bit. Higher accuracy than q4_0 but not as high as q5_0. However has quicker inference than q5 models. |
48
+ `stable-vicuna-13B.ggmlv3.q5_0.bin` | q5_0 | 5bit | 8.95GB | 11.0GB | 5bit. Higher accuracy, higher resource usage and slower inference. |
49
+ `stable-vicuna-13B.ggmlv3.q5_1.bin` | q5_1 | 5bit | 9.76GB | 12.25GB | 5bit. Higher accuracy than q5_0, but again higher resource usage and slower inference. |
50
+ `stable-vicuna-13B.ggmlv3.q8_0.bin` | q8_0 | 8bit | 14.6GB | 17GB | 8-bit. Almost indistinguishable from float16. Huge resource use and slow. Not recommended for normal use. |
51
 
52
  ## How to run in `llama.cpp`
53
 
54
  I use the following command line; adjust for your tastes and needs:
55
 
56
  ```
57
+ ./main -t 18 -m stable-vicuna-13B.ggmlv3.q4_0.bin --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -r "### Human:" -p "### Human: write a story about llamas ### Assistant:"
58
  ```
59
 
60
  Change `-t 18` to the number of physical CPU cores you have. For example if your system has 8 cores/16 threads, use `-t 8`.
 
65
 
66
  Further instructions here: [text-generation-webui/docs/llama.cpp-models.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md).
67
 
68
+ Note: at this time text-generation-webui may not support the new May 19th llama.cpp quantisation methods for q4_0, q4_1 and q8_0 files.
69
 
70
  **Thireus** has written a [great guide on how to update it to the latest llama.cpp code](https://huggingface.co/TheBloke/wizardLM-7B-GGML/discussions/5) which may help with getting the files working in text-gen-ui sooner.
71