TheBloke commited on
Commit
227c8d1
1 Parent(s): 9cdd949

Initial GGMLv3 model files

Browse files
Files changed (1) hide show
  1. README.md +168 -0
README.md ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - anon8231489123/ShareGPT_Vicuna_unfiltered
4
+ - ehartford/wizard_vicuna_70k_unfiltered
5
+ - ehartford/WizardLM_alpaca_evol_instruct_70k_unfiltered
6
+ - QingyiSi/Alpaca-CoT
7
+ - teknium/GPT4-LLM-Cleaned
8
+ - teknium/GPTeacher-General-Instruct
9
+ - metaeval/ScienceQA_text_only
10
+ - hellaswag
11
+ - openai/summarize_from_feedback
12
+ - riddle_sense
13
+ - gsm8k
14
+ - ewof/code-alpaca-instruct-unfiltered
15
+ language:
16
+ - en
17
+ library_name: transformers
18
+ pipeline_tag: text-generation
19
+ ---
20
+
21
+ # Manticore 13B GGML
22
+
23
+ This is GGML format quantised 4-bit, 5-bit and 8-bit models of [OpenAccess AI Collective's Manticore 13B Chat](https://huggingface.co/openaccess-ai-collective/manticore-13b-chat-pyg/edit/main/README.md).
24
+
25
+ This repo is the result of quantising to 4-bit, 5-bit and 8-bit GGML for CPU (+CUDA) inference using [llama.cpp](https://github.com/ggerganov/llama.cpp).
26
+
27
+ ## Repositories available
28
+
29
+ * [4-bit GPTQ models for GPU inference](https://huggingface.co/manticore-13b-chat-pyg-GPTQ).
30
+ * [4-bit, 5-bit and 8-bit GGML models for llama.cpp CPU (+CUDA) inference](https://huggingface.co/manticore-13b-chat-pyg-GGML).
31
+ * [OpenAccess AI Collective's original float16 HF format repo for GPU inference and further conversions](https://huggingface.co/openaccess-ai-collective/manticore-13b-chat-pyg/edit/main/README.md).
32
+
33
+ ## THE FILES IN MAIN BRANCH REQUIRES LATEST LLAMA.CPP (May 19th 2023 - commit 2d5db48)!
34
+
35
+ llama.cpp recently made another breaking change to its quantisation methods - https://github.com/ggerganov/llama.cpp/pull/1508
36
+
37
+ I have quantised the GGML files in this repo with the latest version. Therefore you will require llama.cpp compiled on May 19th or later (commit `2d5db48` or later) to use them.
38
+
39
+ For files compatible with the previous version of llama.cpp, please see branch `previous_llama_ggmlv2`.
40
+
41
+ ## Epoch
42
+
43
+ The files in the `main` branch are from Epoch 3 of Manticore 13B, as of May 19th.
44
+
45
+ The files in the `previous_llama_ggmlv2` branch are from Epoch 1.
46
+
47
+ ## Provided files
48
+ | Name | Quant method | Bits | Size | RAM required | Use case |
49
+ | ---- | ---- | ---- | ---- | ---- | ----- |
50
+ `Manticore-13B-Chat-Pyg.ggmlv3.q4_0.bin` | q4_0 | 4bit | 7.32GB | 10.0GB | 4-bit. |
51
+ `Manticore-13B-Chat-Pyg.ggmlv3.q4_1.bin` | q4_1 | 4bit | 8.14GB | 10.5GB | 4-bit. Higher accuracy than q4_0 but not as high as q5_0. However has quicker inference than q5 models. |
52
+ `Manticore-13B-Chat-Pyg.ggmlv3.q5_0.bin` | q5_0 | 5bit | 8.95GB | 11.0GB | 5-bit. Higher accuracy, higher resource usage and slower inference. |
53
+ `Manticore-13B-Chat-Pyg.ggmlv3.q5_1.bin` | q5_1 | 5bit | 9.76GB | 13GB | 5-bit. Even higher accuracy, and higher resource usage and slower inference. |
54
+ `Manticore-13B-Chat-Pyg.ggmlv3.q8_0.bin` | q8_0 | 8bit | 13.8GB | 16GB | 8-bit. Almost indistinguishable from float16. Huge resource use and slow. Not recommended for normal use. |
55
+
56
+ ## How to run in `llama.cpp`
57
+
58
+ I use the following command line; adjust for your tastes and needs:
59
+
60
+ ```
61
+ ./main -t 8 -m Manticore-13B-Chat-Pyg.ggmlv3.q5_0.bin --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "### Instruction: write a story about llamas ### Response:"
62
+ ```
63
+
64
+ Change `-t 8` to the number of physical CPU cores you have.
65
+
66
+ ## How to run in `text-generation-webui`
67
+
68
+ GGML models can be loaded into text-generation-webui by installing the llama.cpp module, then placing the ggml model file in a model folder as usual.
69
+
70
+ 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).
71
+
72
+
73
+ # Original model card - Manticore 13B Chat
74
+
75
+ Manticore 13B Chat builds on Manticore with new datasets, including a de-duped subset of the Pygmalion dataset. It also removes all Alpaca style prompts using `###` in favor of
76
+ chat only style prompts using `USER:`,`ASSISTANT:` as well as [pygmalion/metharme prompting](https://huggingface.co/PygmalionAI/metharme-7b#prompting) using `<|system|>, <|user|> and <|model|>` tokens.
77
+
78
+ Questions, comments, feedback, looking to donate, or want to help? Reach out on our [Discord](https://discord.gg/EqrvvehG) or email [wing@openaccessaicollective.org](mailto:wing@openaccessaicollective.org)
79
+
80
+ # Training Datasets
81
+
82
+ Manticore 13B Chat is a Llama 13B model fine-tuned on the following datasets along with the datasets from the original Manticore 13B.
83
+
84
+ **Manticore 13B Chat was trained on 25% of the datasets below. The datasets were merged, shuffled, and then sharded into 4 parts.**
85
+
86
+ - de-duped pygmalion dataset, filtered down to RP data
87
+ - [riddle_sense](https://huggingface.co/datasets/riddle_sense) - instruct augmented
88
+ - hellaswag, updated for detailed explanations w 30K+ rows
89
+ - [gsm8k](https://huggingface.co/datasets/gsm8k) - instruct augmented
90
+ - [ewof/code-alpaca-instruct-unfiltered](https://huggingface.co/datasets/ewof/code-alpaca-instruct-unfiltered)
91
+
92
+ Manticore 13B
93
+ - [ShareGPT](https://huggingface.co/datasets/anon8231489123/ShareGPT_Vicuna_unfiltered) - based on a cleaned and de-suped subset
94
+ - [WizardLM](https://huggingface.co/datasets/ehartford/WizardLM_alpaca_evol_instruct_70k_unfiltered)
95
+ - [Wizard-Vicuna](https://huggingface.co/datasets/ehartford/wizard_vicuna_70k_unfiltered)
96
+ - [subset of QingyiSi/Alpaca-CoT for roleplay and CoT](https://huggingface.co/QingyiSi/Alpaca-CoT)
97
+ - [GPT4-LLM-Cleaned](https://huggingface.co/datasets/teknium/GPT4-LLM-Cleaned)
98
+ - [GPTeacher-General-Instruct](https://huggingface.co/datasets/teknium/GPTeacher-General-Instruct)
99
+ - ARC-Easy & ARC-Challenge - instruct augmented for detailed responses, derived from the `train` split
100
+ - [hellaswag](https://huggingface.co/datasets/hellaswag) - 5K row subset of instruct augmented for concise responses, derived from the `train` split
101
+ - [metaeval/ScienceQA_text_only](https://huggingface.co/datasets/metaeval/ScienceQA_text_only) - instruct for concise responses
102
+ - [openai/summarize_from_feedback](https://huggingface.co/datasets/openai/summarize_from_feedback) - instruct augmented tl;dr summarization
103
+
104
+ Not added from Manticore 13B:
105
+ - mmlu - mmlu datasets were not added to this model as the `test` split is used for benchmarks
106
+
107
+ # Shoutouts
108
+
109
+ Special thanks to Nanobit for helping with Axolotl, TheBloke for quantizing these models are more accessible to all, ehartford for cleaned datasets, and 0x000011b for the RP dataset.
110
+ # Demo
111
+
112
+ Try out the model in HF Spaces. The demo uses a quantized GGML version of the model to quickly return predictions on smaller GPUs (and even CPUs). Quantized GGML may have some minimal loss of model quality.
113
+ - https://huggingface.co/spaces/openaccess-ai-collective/manticore-13b-chat-pyg
114
+
115
+ ## Release Notes
116
+
117
+ - https://wandb.ai/wing-lian/manticore-13b-v2/runs/hxr3aiiw
118
+
119
+ ## Build
120
+
121
+ Manticore was built with [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) on 8xA100 80GB
122
+ - 3 epochs taking approximately 8 hours. No further epochs will be released.
123
+ - The configuration to duplicate this build is provided in this repo's [/config folder](https://huggingface.co/openaccess-ai-collective/manticore-13b/tree/main/configs).
124
+
125
+ ## Bias, Risks, and Limitations
126
+ Manticore has not been aligned to human preferences with techniques like RLHF or deployed with in-the-loop filtering of responses like ChatGPT, so the model can produce problematic outputs (especially when prompted to do so).
127
+ Manticore was fine-tuned from the base model LlaMa 13B, please refer to its model card's Limitations Section for relevant information.
128
+
129
+ ## Examples
130
+
131
+ ```
132
+ USER: make up a sonnet in the style of shakespeare about a skier skiing in the glades on a bluebird day.
133
+ ASSISTANT: A skier doth glide 'neath sun’s glow, His edges sharp to cut the snow, Bluebird sky above, While he doth revel on the slopes below, The cold air biting his nose, But not his spirits, For he is filled with a sense of joy, As he carves through the powdery drifts. His body moves in graceful rhythm, And each turn he makes with ease, He feels like he could ski forever, With no care for the world outside these glades.
134
+ ```
135
+
136
+ ```
137
+ USER: tell me a joke about alpacas
138
+ ASSISTANT: Did you hear about the famous alpaca ballet dancer? She was a prima llama.
139
+ USER: okay, that is actually pretty good
140
+ ASSISTANT: What do you call an alpaca in a bowtie? A llama-cholla!
141
+ USER: why is that funny?
142
+ ASSISTANT: Because it’s a play on words. “Llama-cholla” sounds like “lame chola,” which is Spanish slang for someone who acts cool or pretentious. So, the joke is implying that alpacas are vain and act cool with their bowties.
143
+ ```
144
+
145
+ ```
146
+ USER: What is 44 + 77?
147
+ ASSISTANT: 121
148
+ USER: What is the sum of 33 and 77?
149
+ ASSISTANT: 110
150
+ USER: tell me 5 words that start with “ex” and the sum of 33 and 77.
151
+ ASSISTANT: exotic, expressive, explicit, experimental, and extravagant. The sum of 33 and 77 is 110.
152
+ USER: tell me 3 words that start with “egr” and end in “s”
153
+ ASSISTANT: egret, eggplant, and egrets.
154
+ ```
155
+ - oof
156
+
157
+
158
+ ```
159
+ USER: Sally has 3 brothers. Each brother has 2 sisters. How many sisters does Sally have?
160
+ ASSISTANT: Sally has a total of 6 siblings, so she has a total of 6 - 2 = 4 sisters.
161
+ USER: Sally has 3 brothers. Each brother has 2 sisters. How many sisters does Sally have? Use multi-step reasoning to explain your answer.
162
+ ASSISTANT: Sally has a total of three brothers, so she has a total of three * 2 = six siblings. Her family consists of three boys and six girls in total. This means that Sally has three sisters since there are six female relatives and only three male ones.
163
+ USER: But when brothers have sisters, aren’t they shared or the same?
164
+ ASSISTANT: No, not every sibling shares their mother. For example, I have two brothers who share one mother but my third brother has a different mother from both of them.
165
+ USER: Let’s assume they all share the same mother and father. Now explain with multi-step reasoning.
166
+ ASSISTANT: If Sally has three brothers then that means she has six siblings altogether. Each brother has two sisters, which means that there are twelve female relatives in her family - one for each of her brothers and herself. Since there are only six females in the entire family, that means that Sally’s mother has no other children than her own three sons - so she can’t be the mother of any of the sisters. So all those sisters have to belong to one of the brothers, and since they are shared by two brothers, then each brother has a single sister. Therefore, there is only one sister for Sally, making the final answer 1.
167
+ ```
168
+ - pretty sure that reasoning isn't correct, and the final answer of having 1 sister is a lucky guess