Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*Works with koboldcpp but does not work with external apps such as tavernai or sillytavern. Currently only works with pure koboldcpp as 06/11/2023*
|
2 |
+
|
3 |
+
Quantizations of the model:
|
4 |
+
|
5 |
+
https://huggingface.co/TehVenom/Pygmalion-13b-Merged
|
6 |
+
|
7 |
+
Pygmalion 13b
|
8 |
+
A conversational LLaMA fine-tune.
|
9 |
+
Model Details:
|
10 |
+
|
11 |
+
Pygmalion 13b is a dialogue model based on Meta's LLaMA-13b.
|
12 |
+
|
13 |
+
This is version 1. It has been fine-tuned using a subset of the data from Pygmalion-6B-v8-pt4, for those of you familiar with the project.
|
14 |
+
|
15 |
+
The current Pygmalion-13b has been trained as a LoRA, then merged down to the base model for distribuition.
|
16 |
+
Applying the XORs
|
17 |
+
|
18 |
+
This models has the XOR files pre-applied out of the box. Converted from the XORs weights from PygmalionAI's release https://huggingface.co/PygmalionAI/pygmalion-13b
|
19 |
+
Prompting
|
20 |
+
|
21 |
+
The model was trained on the usual Pygmalion persona + chat format, so any of the usual UIs should already handle everything correctly. If you're using the model directly, this is the expected formatting:
|
22 |
+
|
23 |
+
[CHARACTER]'s Persona: [A few sentences about the character you want the model to play]
|
24 |
+
<START>
|
25 |
+
[DIALOGUE HISTORY]
|
26 |
+
You: [User's input message here]
|
27 |
+
[CHARACTER]:
|
28 |
+
|
29 |
+
Where [CHARACTER] is, as you can probably guess, the name of the character you want the model to portray, <START> should be used verbatim as a delimiter token to separate persona and scenario data from the dialogue, and [DIALOGUE HISTORY] is a sliding window of chat history so the model can have conversational context to draw from. Here's a concrete example:
|
30 |
+
|
31 |
+
Assistant's Persona: Assistant is a highly intelligent language model trained to comply with user requests.
|
32 |
+
<START>
|
33 |
+
Assistant: Hello! How may I help you today?
|
34 |
+
You: What is Zork?
|
35 |
+
Assistant:
|
36 |
+
|
37 |
+
Which will generate something like:
|
38 |
+
|
39 |
+
Zork is an interactive fiction computer game created in the 1970s by Infocom, Inc., which was later acquired by Activision Blizzard. It is widely considered one of the most influential games ever made and has been credited with popularizing text-based adventure games. The original version of Zork was written in the programming language MACRO-10, but it was ported to many other platforms over the years."
|
40 |
+
|
41 |
+
The model will automatically emit an end-of-text token (</s>) when it judges that the response is complete.
|
42 |
+
Eval / Benchmark scores
|
43 |
+
|
44 |
+
Current evals out of the Pygmalion-13b model:
|
45 |
+
Model: Wikitext2 Ptb-New C4-New
|
46 |
+
Pygmalion 13b - 16bit 5.710726737976074 23.633684158325195 7.6324849128723145
|
47 |
+
|
48 |
+
Thanks to YellowRose#1776 for the numbers.
|
49 |
+
Other notes
|
50 |
+
|
51 |
+
When prompted correctly, the model will always start by generating a BOS token. This behavior is an accidental side-effect which we plan to address in future model versions and should not be relied upon.
|
52 |
+
The model was trained as a LoRA with a somewhat unorthodox configuration which causes errors when used with the current version of peft, hence we release it as a full model instead.
|
53 |
+
|
54 |
+
Limitations and biases
|
55 |
+
|
56 |
+
The intended use-case for this model is fictional conversation for entertainment purposes. Any other sort of usage is out of scope.
|
57 |
+
|
58 |
+
As such, it was not fine-tuned to be safe and harmless: the base model and this fine-tune have been trained on data known to contain profanity and texts that are lewd or otherwise offensive. It may produce socially unacceptable or undesirable text, even if the prompt itself does not include anything explicitly offensive. Outputs might often be factually wrong or misleading.
|