Update README.md
Browse files
README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
2 |
inference: false
|
3 |
-
license:
|
4 |
---
|
5 |
|
6 |
<!-- header start -->
|
@@ -17,81 +21,61 @@ license: other
|
|
17 |
</div>
|
18 |
<!-- header end -->
|
19 |
|
20 |
-
# Falcon 7B-Instruct GGML
|
21 |
|
22 |
-
These files are GGML format model files for [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/falcon-7B-instruct-GPTQ)
|
34 |
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/falcon-7B-instruct-GGML)
|
35 |
* [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/tiiuae/falcon-7b-instruct)
|
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 |
-
| falcon7b-instruct.ggmlv3.
|
69 |
-
| falcon7b-instruct.ggmlv3.
|
70 |
-
| falcon7b-instruct.ggmlv3.
|
71 |
-
| falcon7b-instruct.ggmlv3.
|
72 |
-
| falcon7b-instruct.ggmlv3.
|
73 |
-
| falcon7b-instruct.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
|
|
|
1 |
---
|
2 |
+
datasets:
|
3 |
+
- tiiuae/falcon-refinedweb
|
4 |
+
language:
|
5 |
+
- en
|
6 |
inference: false
|
7 |
+
license: apache-2.0
|
8 |
---
|
9 |
|
10 |
<!-- header start -->
|
|
|
21 |
</div>
|
22 |
<!-- header end -->
|
23 |
|
24 |
+
# Falcon 7B-Instruct GGML
|
25 |
|
26 |
+
These files are **experimental** GGML format model files for [Falcon 7B Instruct](https://huggingface.co/tiiuae/falcon-7b-instruct).
|
27 |
|
28 |
+
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.
|
29 |
+
|
30 |
+
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)
|
31 |
+
|
32 |
+
Note: It is not currently possible to use the new k-quant formats with Falcon 7B. This is being worked on.
|
|
|
33 |
|
34 |
## Repositories available
|
35 |
|
36 |
* [4-bit GPTQ models for GPU inference](https://huggingface.co/TheBloke/falcon-7B-instruct-GPTQ)
|
37 |
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/falcon-7B-instruct-GGML)
|
38 |
* [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/tiiuae/falcon-7b-instruct)
|
39 |
+
|
40 |
<!-- compatibility_ggml start -->
|
41 |
## Compatibility
|
42 |
|
43 |
+
To build cmp-nct's fork of llama.cpp with Falcon 40B support plus preliminary CUDA acceleration, please try the following steps:
|
44 |
|
45 |
+
```
|
46 |
+
git clone https://github.com/cmp-nct/ggllm.cpp
|
47 |
+
cd ggllm.cpp
|
48 |
+
rm -rf build && mkdir build && cd build && cmake -DGGML_CUBLAS=1 .. && cmake --build . --config Release
|
49 |
+
```
|
50 |
|
51 |
+
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.'
|
52 |
|
53 |
+
Once compiled you can then use `bin/falcon_main` just like you would use llama.cpp. For example:
|
54 |
+
```
|
55 |
+
bin/falcon_main -t 8 -ngl 100 -b 1 -m falcon7b-instruct.ggmlv3.q4_0.bin -p "What is a falcon?\n### Response:"
|
56 |
+
```
|
57 |
|
58 |
+
You can specify `-ngl 100` regardles of your VRAM, as it will automatically detect how much VRAM is available to be used.
|
59 |
|
60 |
+
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.
|
61 |
|
62 |
+
`-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.
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
|
|
64 |
<!-- compatibility_ggml end -->
|
65 |
|
66 |
## Provided files
|
67 |
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|
68 |
| ---- | ---- | ---- | ---- | ---- | ----- |
|
69 |
+
| falcon7b-instruct.ggmlv3.q4_0.bin | q4_0 | 4 | 4.06 GB | 6.56 GB | 4-bit. |
|
70 |
+
| falcon7b-instruct.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. |
|
71 |
+
| falcon7b-instruct.ggmlv3.q5_0.bin | q5_0 | 5 | 4.96 GB | 7.46 GB | 5-bit. Higher accuracy, higher resource usage and slower inference. |
|
72 |
+
| falcon7b-instruct.ggmlv3.q5_1.bin | q5_1 | 5 | 5.41 GB | 7.91 GB | 5-bit. Even higher accuracy, resource usage and slower inference. |
|
73 |
+
| falcon7b-instruct.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. |
|
74 |
+
| falcon7b-instruct.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. |
|
75 |
+
|
76 |
+
**Notes**:
|
77 |
+
- the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
|
78 |
+
- It is not currently possible to use the new k-quant formats with Falcon 7B. This is being worked on.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
<!-- footer start -->
|
81 |
## Discord
|