Update README.md
Browse files
README.md
CHANGED
@@ -19,79 +19,59 @@ license: other
|
|
19 |
|
20 |
# Eric Hartford's WizardLM Uncensored Falcon 7B GGML
|
21 |
|
22 |
-
These files are GGML format model files for [Eric Hartford's WizardLM Uncensored Falcon 7B](https://huggingface.co/ehartford/WizardLM-Uncensored-Falcon-7b).
|
23 |
|
24 |
-
GGML files
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
* [ctransformers](https://github.com/marella/ctransformers)
|
30 |
|
31 |
## Repositories available
|
32 |
|
33 |
* [4-bit GPTQ models for GPU inference](https://huggingface.co/TheBloke/WizardLM-Uncensored-Falcon-7B-GPTQ)
|
34 |
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/WizardLM-Uncensored-Falcon-7B-GGML)
|
35 |
* [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/ehartford/WizardLM-Uncensored-Falcon-7b)
|
36 |
-
|
37 |
<!-- compatibility_ggml start -->
|
38 |
## Compatibility
|
39 |
|
40 |
-
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
|
|
45 |
|
46 |
-
|
47 |
|
48 |
-
|
|
|
|
|
|
|
49 |
|
50 |
-
|
51 |
|
52 |
-
|
53 |
|
54 |
-
|
55 |
-
* GGML_TYPE_Q2_K - "type-1" 2-bit quantization in super-blocks containing 16 blocks, each block having 16 weight. Block scales and mins are quantized with 4 bits. This ends up effectively using 2.5625 bits per weight (bpw)
|
56 |
-
* GGML_TYPE_Q3_K - "type-0" 3-bit quantization in super-blocks containing 16 blocks, each block having 16 weights. Scales are quantized with 6 bits. This end up using 3.4375 bpw.
|
57 |
-
* GGML_TYPE_Q4_K - "type-1" 4-bit quantization in super-blocks containing 8 blocks, each block having 32 weights. Scales and mins are quantized with 6 bits. This ends up using 4.5 bpw.
|
58 |
-
* GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
|
59 |
-
* GGML_TYPE_Q6_K - "type-0" 6-bit quantization. Super-blocks with 16 blocks, each block having 16 weights. Scales are quantized with 8 bits. This ends up using 6.5625 bpw
|
60 |
-
* GGML_TYPE_Q8_K - "type-0" 8-bit quantization. Only used for quantizing intermediate results. The difference to the existing Q8_0 is that the block size is 256. All 2-6 bit dot products are implemented for this quantization type.
|
61 |
|
62 |
-
Refer to the Provided Files table below to see what files use which methods, and how.
|
63 |
<!-- compatibility_ggml end -->
|
64 |
|
65 |
## Provided files
|
66 |
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|
67 |
| ---- | ---- | ---- | ---- | ---- | ----- |
|
68 |
-
| wizard-falcon-7b.ggmlv3.
|
69 |
-
| wizard-falcon-7b.ggmlv3.
|
70 |
-
| wizard-falcon-7b.ggmlv3.
|
71 |
-
| wizard-falcon-7b.ggmlv3.
|
72 |
-
| wizard-falcon-7b.ggmlv3.
|
73 |
-
| wizard-falcon-7b.ggmlv3.
|
74 |
-
|
75 |
-
**
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
I use the following command line; adjust for your tastes and needs:
|
80 |
-
|
81 |
-
```
|
82 |
-
./main -t 10 -ngl 32 -m gpt4-x-alpaca-13b.ggmlv3.q5_0.bin --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "### Instruction: Write a story about llamas\n### Response:"
|
83 |
-
```
|
84 |
-
If you're able to use full GPU offloading, you should use `-t 1` to get best performance.
|
85 |
-
|
86 |
-
If not able to fully offload to GPU, you should use more cores. Change `-t 10` to the number of physical CPU cores you have, or a lower number depending on what gives best performance.
|
87 |
-
|
88 |
-
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
89 |
-
|
90 |
-
If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
|
91 |
-
|
92 |
-
## How to run in `text-generation-webui`
|
93 |
-
|
94 |
-
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).
|
95 |
|
96 |
<!-- footer start -->
|
97 |
## Discord
|
|
|
19 |
|
20 |
# Eric Hartford's WizardLM Uncensored Falcon 7B GGML
|
21 |
|
22 |
+
These files are **experimental** GGML format model files for [Eric Hartford's WizardLM Uncensored Falcon 7B](https://huggingface.co/ehartford/WizardLM-Uncensored-Falcon-7b).
|
23 |
|
24 |
+
These GGML files will **not** work in llama.cpp, and at the time of writing they will not work with any UI or library. They cannot be used from Python code.
|
25 |
+
|
26 |
+
They can be used with a new fork of llama.cpp that adds Falcon GGML support: [cmp-nc/ggllm.cpp](https://github.com/cmp-nct/ggllm.cpp)
|
27 |
+
|
28 |
+
Note: It is not currently possible to use the new k-quant formats with Falcon 7B. This is being worked on.
|
|
|
29 |
|
30 |
## Repositories available
|
31 |
|
32 |
* [4-bit GPTQ models for GPU inference](https://huggingface.co/TheBloke/WizardLM-Uncensored-Falcon-7B-GPTQ)
|
33 |
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/WizardLM-Uncensored-Falcon-7B-GGML)
|
34 |
* [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/ehartford/WizardLM-Uncensored-Falcon-7b)
|
35 |
+
|
36 |
<!-- compatibility_ggml start -->
|
37 |
## Compatibility
|
38 |
|
39 |
+
To build cmp-nct's fork of llama.cpp with Falcon 40B support plus preliminary CUDA acceleration, please try the following steps:
|
40 |
|
41 |
+
```
|
42 |
+
git clone https://github.com/cmp-nct/ggllm.cpp
|
43 |
+
cd ggllm.cpp
|
44 |
+
rm -rf build && mkdir build && cd build && cmake -DGGML_CUBLAS=1 .. && cmake --build . --config Release
|
45 |
+
```
|
46 |
|
47 |
+
Compiling on Windows: developer cmp-nct notes: 'I personally compile it using VScode. When compiling with CUDA support using the Microsoft compiler it's essential to select the "Community edition build tools". Otherwise CUDA won't compile.'
|
48 |
|
49 |
+
Once compiled you can then use `bin/falcon_main` just like you would use llama.cpp. For example:
|
50 |
+
```
|
51 |
+
bin/falcon_main -t 8 -ngl 100 -b 1 -m wizard-falcon7b.ggmlv3.q4_0.bin -p "What is a falcon?\n### Response:"
|
52 |
+
```
|
53 |
|
54 |
+
You can specify `-ngl 100` regardles of your VRAM, as it will automatically detect how much VRAM is available to be used.
|
55 |
|
56 |
+
Adjust `-t 8` (the number of CPU cores to use) according to what performs best on your system. Do not exceed the number of physical CPU cores you have.
|
57 |
|
58 |
+
`-b 1` reduces batch size to 1. This slightly lowers prompt evaluation time, but frees up VRAM to load more of the model on to your GPU. If you find prompt evaluation too slow and have enough spare VRAM, you can remove this parameter.
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
|
|
60 |
<!-- compatibility_ggml end -->
|
61 |
|
62 |
## Provided files
|
63 |
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|
64 |
| ---- | ---- | ---- | ---- | ---- | ----- |
|
65 |
+
| wizard-falcon-7b.ggmlv3.q4_0.bin | q4_0 | 4 | 4.06 GB | 6.56 GB | 4-bit. |
|
66 |
+
| wizard-falcon-7b.ggmlv3.q4_1.bin | q4_1 | 4 | 4.51 GB | 7.01 GB | 4-bit. Higher accuracy than q4_0 but not as high as q5_0. However has quicker inference than q5 models. |
|
67 |
+
| wizard-falcon-7b.ggmlv3.q5_0.bin | q5_0 | 5 | 4.96 GB | 7.46 GB | 5-bit. Higher accuracy, higher resource usage and slower inference. |
|
68 |
+
| wizard-falcon-7b.ggmlv3.q5_1.bin | q5_1 | 5 | 5.41 GB | 7.91 GB | 5-bit. Even higher accuracy, resource usage and slower inference. |
|
69 |
+
| wizard-falcon-7b.ggmlv3.q8_0.bin | q8_0 | 8 | 7.67 GB | 10.17 GB | 8-bit. Almost indistinguishable from float16. High resource use and slow. Not recommended for most users. |
|
70 |
+
| wizard-falcon-7b.ggmlv3.fp16.bin | fp16 | 16 | 14.44 GB | 16.94 GB | 16-bit. Included for further conversions and for experimentation. Not recommended for normal use. |
|
71 |
+
|
72 |
+
**Notes**:
|
73 |
+
- the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
|
74 |
+
- it is not currently possible to use the new k-quant formats with Falcon 7B. This is being worked on.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
<!-- footer start -->
|
77 |
## Discord
|