Doctor-Shotgun commited on
Commit
4ef26ff
1 Parent(s): b64219d

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +69 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ inference: false
3
+ language:
4
+ - en
5
+ library_name: transformers
6
+ pipeline_tag: text-generation
7
+ tags:
8
+ - mistral
9
+ license: cc-by-nc-4.0
10
+ ---
11
+ # ZephRP-m7b
12
+
13
+ This is a [Mistral](https://huggingface.co/mistralai/Mistral-7B-v0.1)-based model consisting of a merge between [HuggingFaceH4/zephyr-7b-alpha](https://huggingface.co/HuggingFaceH4/zephyr-7b-alpha) and PEFT adapter trained using the LimaRP dataset.
14
+
15
+ The goal was to combine the message length instruction training of LimaRPv3 and additional stylistic elements with the superior knowledge and instruction-following capabilities of the Zephyr model.
16
+
17
+ ## Usage:
18
+ The intended prompt format is the Alpaca instruction format of LimaRP v3:
19
+ ```
20
+ ### Instruction:
21
+ Character's Persona: {bot character description}
22
+
23
+ User's Persona: {user character description}
24
+
25
+ Scenario: {what happens in the story}
26
+
27
+ Play the role of Character. You must engage in a roleplaying chat with User below this line. Do not write dialogues and narration for User.
28
+
29
+ ### Input:
30
+ User: {utterance}
31
+
32
+ ### Response:
33
+ Character: {utterance}
34
+
35
+ ### Input
36
+ User: {utterance}
37
+
38
+ ### Response:
39
+ Character: {utterance}
40
+
41
+ (etc.)
42
+ ```
43
+
44
+ ## Message length control
45
+ Due to the inclusion of LimaRP v3, it is possible to append a length modifier to the response instruction sequence, like this:
46
+ ```
47
+ ### Input
48
+ User: {utterance}
49
+
50
+ ### Response: (length = medium)
51
+ Character: {utterance}
52
+ ```
53
+ This has an immediately noticeable effect on bot responses. The available lengths are: `micro, tiny, short, medium, long, massive, huge, enormous, humongous, unlimited`. The recommended starting length is `medium`. Keep in mind that the AI may ramble or impersonate the user with very long messages.
54
+ ## Bias, Risks, and Limitations
55
+ The model will show biases similar to those observed in niche roleplaying forums on the Internet, besides those exhibited by the base model. It is not intended for supplying factual information or advice in any form.
56
+ ## Training Details
57
+ The LimaRP PEFT adapter was trained as an 8-bit lora using [axolotl](https://github.com/OpenAccess-AI-Collective/axolotl).
58
+
59
+ The following hyperparameters were used during training of the adapter on the original [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) model using a single L40 GPU:
60
+ - learning_rate: 0.00015
61
+ - train_batch_size: 2
62
+ - eval_batch_size: 2
63
+ - seed: 42
64
+ - gradient_accumulation_steps: 4
65
+ - total_train_batch_size: 8
66
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
67
+ - lr_scheduler_type: cosine
68
+ - lr_scheduler_warmup_steps: 10
69
+ - num_epochs: 2