Update README.md
Browse files
README.md
CHANGED
@@ -1,6 +1,20 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
inference: false
|
3 |
-
license: other
|
4 |
---
|
5 |
|
6 |
<!-- header start -->
|
@@ -21,45 +35,55 @@ license: other
|
|
21 |
|
22 |
These files are GGML format model files for [MosaicML's MPT-30B-Instruct](https://huggingface.co/mosaicml/mpt-30b-instruct).
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
|
28 |
-
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python)
|
29 |
-
* [ctransformers](https://github.com/marella/ctransformers)
|
30 |
|
31 |
## Repositories available
|
32 |
|
33 |
-
* [4-bit GPTQ models for GPU inference](https://huggingface.co/none)
|
34 |
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/mpt-30B-instruct-GGML)
|
35 |
* [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/mosaicml/mpt-30b-instruct)
|
36 |
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
39 |
|
40 |
-
###
|
|
|
41 |
|
42 |
-
|
43 |
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
-
|
47 |
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
-
|
51 |
|
52 |
-
##
|
53 |
|
54 |
-
|
55 |
-
*
|
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
|
@@ -73,25 +97,6 @@ Refer to the Provided Files table below to see what files use which methods, and
|
|
73 |
|
74 |
**Note**: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
|
75 |
|
76 |
-
## How to run in `llama.cpp`
|
77 |
-
|
78 |
-
I use the following command line; adjust for your tastes and needs:
|
79 |
-
|
80 |
-
```
|
81 |
-
./main -t 10 -ngl 32 -m mpt-30b-instruct.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:"
|
82 |
-
```
|
83 |
-
If you're able to use full GPU offloading, you should use `-t 1` to get best performance.
|
84 |
-
|
85 |
-
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.
|
86 |
-
|
87 |
-
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
88 |
-
|
89 |
-
If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
|
90 |
-
|
91 |
-
## How to run in `text-generation-webui`
|
92 |
-
|
93 |
-
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).
|
94 |
-
|
95 |
<!-- footer start -->
|
96 |
## Discord
|
97 |
|
|
|
1 |
---
|
2 |
+
license: cc-by-sa-3.0
|
3 |
+
datasets:
|
4 |
+
- competition_math
|
5 |
+
- conceptofmind/cot_submix_original/cot_gsm8k
|
6 |
+
- knkarthick/dialogsum
|
7 |
+
- mosaicml/dolly_hhrlhf
|
8 |
+
- duorc
|
9 |
+
- tau/scrolls/qasper
|
10 |
+
- emozilla/quality
|
11 |
+
- scrolls/summ_screen_fd
|
12 |
+
- spider
|
13 |
+
tags:
|
14 |
+
- Composer
|
15 |
+
- MosaicML
|
16 |
+
- llm-foundry
|
17 |
inference: false
|
|
|
18 |
---
|
19 |
|
20 |
<!-- header start -->
|
|
|
35 |
|
36 |
These files are GGML format model files for [MosaicML's MPT-30B-Instruct](https://huggingface.co/mosaicml/mpt-30b-instruct).
|
37 |
|
38 |
+
Please note that these GGMLs are **not compatible with llama.cpp, or currently with text-generation-webui**. Please see below for a list of tools known to work with these model files.
|
39 |
+
|
40 |
+
[KoboldCpp](https://github.com/LostRuins/koboldcpp_ just added GPU accelerated (OpenCL) support for MPT models, so that is the client I recommend using for these models.
|
|
|
|
|
|
|
41 |
|
42 |
## Repositories available
|
43 |
|
|
|
44 |
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/mpt-30B-instruct-GGML)
|
45 |
* [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/mosaicml/mpt-30b-instruct)
|
46 |
|
47 |
+
## Prompt template
|
48 |
+
|
49 |
+
```
|
50 |
+
Below is an instruction that describes a task. Write a response that appropriately completes the request
|
51 |
+
|
52 |
+
### Instruction: prompt
|
53 |
|
54 |
+
### Response:
|
55 |
+
```
|
56 |
|
57 |
+
## A note regarding context length: 8K
|
58 |
|
59 |
+
It is confirmed that the 8K context of this model works in [KoboldCpp](https://github.com/LostRuins/koboldcpp), if you manually set max context to 8K by adjusting the text box above the slider:
|
60 |
+

|
61 |
+
|
62 |
+
(set it to 8192 at most)
|
63 |
+
|
64 |
+
It is currently unknown as to whether it is compatible with other clients.
|
65 |
+
|
66 |
+
If you have feedback on this, please let me know.
|
67 |
+
|
68 |
+
<!-- compatibility_ggml start -->
|
69 |
+
## Compatibilty
|
70 |
|
71 |
+
These files are **not** compatible with text-generation-webui, llama.cpp, or llama-cpp-python.
|
72 |
|
73 |
+
Currently they can be used with:
|
74 |
+
* KoboldCpp, a powerful inference engine based on llama.cpp, with good UI and GPU accelerated support for MPT models: [KoboldCpp](https://github.com/LostRuins/koboldcpp)
|
75 |
+
* The ctransformers Python library, which includes LangChain support: [ctransformers](https://github.com/marella/ctransformers)
|
76 |
+
* The LoLLMS Web UI which uses ctransformers: [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
|
77 |
+
* [rustformers' llm](https://github.com/rustformers/llm)
|
78 |
+
* The example `mpt` binary provided with [ggml](https://github.com/ggerganov/ggml)
|
79 |
|
80 |
+
As other options become available I will endeavour to update them here (do let me know in the Community tab if I've missed something!)
|
81 |
|
82 |
+
## Tutorial for using LoLLMS Web UI
|
83 |
|
84 |
+
* [Text tutorial, written by **Lucas3DCG**](https://huggingface.co/TheBloke/MPT-7B-Storywriter-GGML/discussions/2#6475d914e9b57ce0caa68888)
|
85 |
+
* [Video tutorial, by LoLLMS Web UI's author **ParisNeo**](https://www.youtube.com/watch?v=ds_U0TDzbzI)
|
|
|
|
|
|
|
|
|
|
|
86 |
|
|
|
87 |
<!-- compatibility_ggml end -->
|
88 |
|
89 |
## Provided files
|
|
|
97 |
|
98 |
**Note**: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
<!-- footer start -->
|
101 |
## Discord
|
102 |
|