LoneStriker commited on
Commit
4a66f24
1 Parent(s): 4d97d74

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -1,35 +1,9 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
1
+ limarp-miqu-1-70b-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
2
+ limarp-miqu-1-70b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
3
+ limarp-miqu-1-70b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
4
+ limarp-miqu-1-70b-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
5
+ limarp-miqu-1-70b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
6
+ limarp-miqu-1-70b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
7
+ limarp-miqu-1-70b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
8
+ limarp-miqu-1-70b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
9
+ limarp-miqu-1-70b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ tags:
4
+ - generated_from_trainer
5
+ - llama
6
+ - llama 2
7
+ model-index:
8
+ - name: volume/limarp-70b-qlora
9
+ results: []
10
+ datasets:
11
+ - lemonilia/LimaRP
12
+ language:
13
+ - en
14
+ ---
15
+
16
+ [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
17
+ <details><summary>See axolotl config</summary>
18
+
19
+ axolotl version: `0.4.0`
20
+ ```yaml
21
+ base_model: models/miqu-1-70b-sf
22
+ model_type: LlamaForCausalLM
23
+ tokenizer_type: LlamaTokenizer
24
+ is_llama_derived_model: true
25
+
26
+ load_in_8bit: false
27
+ load_in_4bit: true
28
+ strict: false
29
+
30
+ datasets:
31
+ - path: train-all-max-alpaca-llama.jsonl
32
+ type: completion
33
+ dataset_prepared_path:
34
+ val_set_size: 0.0
35
+ output_dir: ./volume/limarp-70b-qlora
36
+
37
+ adapter: qlora
38
+ lora_model_dir:
39
+
40
+ sequence_len: 16384
41
+ sample_packing: true
42
+ pad_to_sequence_len: true
43
+
44
+ lora_r: 32
45
+ lora_alpha: 16
46
+ lora_dropout: 0.05
47
+ lora_target_modules:
48
+ lora_target_linear: true
49
+ lora_fan_in_fan_out:
50
+
51
+ wandb_project: 70b-lora
52
+ wandb_entity:
53
+ wandb_watch:
54
+ wandb_name:
55
+ wandb_log_model:
56
+
57
+ gradient_accumulation_steps: 4
58
+ micro_batch_size: 1
59
+ num_epochs: 2
60
+ optimizer: adamw_bnb_8bit
61
+ lr_scheduler: cosine
62
+ learning_rate: 0.0001
63
+
64
+ train_on_inputs: true
65
+ group_by_length: false
66
+ bf16: true
67
+ fp16: false
68
+ tf32: true
69
+
70
+ gradient_checkpointing: true
71
+ gradient_checkpointing_kwargs:
72
+ use_reentrant: true
73
+ early_stopping_patience:
74
+ resume_from_checkpoint:
75
+ local_rank:
76
+ logging_steps: 1
77
+ xformers_attention:
78
+ flash_attention: true
79
+
80
+ warmup_steps: 10
81
+ eval_steps:
82
+ eval_table_size:
83
+ save_steps:
84
+ debug:
85
+ deepspeed:
86
+ weight_decay: 0.0
87
+ fsdp:
88
+ fsdp_config:
89
+ special_tokens:
90
+ bos_token: "<s>"
91
+ eos_token: "</s>"
92
+ unk_token: "<unk>"
93
+
94
+ ```
95
+
96
+ </details><br>
97
+
98
+ # limarp-miqu-1-70b-qlora
99
+
100
+ Experimental limarp qlora trained at 16384 ctx length (greater than size of the longest limarp sample when tokenized via llama's tokenizer) on the fixed dequantized miqu-1-70b model by 152334H.
101
+
102
+ I wasn't particularly happy with the results I got when I tried applying the lora at varying weights to the miqu-1-70b model. It's possible that this is related to the fact that the model was dequantized from Q5_K_M GGUF, or perhaps due to it already being an instruct-tuned model.
103
+
104
+ However, I decided to go ahead and release this in case someone else finds a use for it. Provided as-is and YMMV.
105
+
106
+ ## Model description
107
+
108
+ The intended prompt format is the Alpaca instruction format of LimaRP v3:
109
+ ```
110
+ ### Instruction:
111
+ Character's Persona: {bot character description}
112
+
113
+ User's Persona: {user character description}
114
+
115
+ Scenario: {what happens in the story}
116
+
117
+ Play the role of Character. Taking the above information into consideration, you must engage in a roleplaying chat with User below this line. Do not write dialogues and narration for User.
118
+
119
+ ### Input:
120
+ User: {utterance}
121
+
122
+ ### Response:
123
+ Character: {utterance}
124
+
125
+ ### Input:
126
+ User: {utterance}
127
+
128
+ ### Response:
129
+ Character: {utterance}
130
+
131
+ (etc.)
132
+ ```
133
+ Inspired by the previously named "Roleplay" preset in SillyTavern, with this version of LimaRP it is possible to append a length modifier to the response instruction sequence, like this:
134
+
135
+ ```
136
+ ### Input
137
+ User: {utterance}
138
+
139
+ ### Response: (length = medium)
140
+ Character: {utterance}
141
+ ```
142
+
143
+ This has an immediately noticeable effect on bot responses. The lengths using during training are:
144
+ `micro`, `tiny`, `short`, `medium`, `long`, `massive`, `huge`, `enormous`, `humongous`, `unlimited`.
145
+ **The recommended starting length is medium**. Keep in mind that the AI can ramble or impersonate
146
+ the user with very long messages.
147
+
148
+ The length control effect is reproducible, but the messages will not necessarily follow
149
+ lengths very precisely, rather follow certain ranges on average, as seen in this table
150
+ with data from tests made with one reply at the beginning of the conversation:
151
+
152
+ ![lengths](https://i.imgur.com/2WXGgaV.png)
153
+
154
+ Response length control appears to work well also deep into the conversation. **By omitting
155
+ the modifier, the model will choose the most appropriate response length** (although it might
156
+ not necessarily be what the user desires).
157
+
158
+ ## Intended uses & limitations
159
+
160
+ The model will show biases similar to those observed in niche roleplaying forums on the Internet, besides those exhibited by the base model.
161
+
162
+ ## Training and evaluation data
163
+
164
+ For more details about LimaRP, see the dataset page.
165
+
166
+ ## Training procedure
167
+
168
+ ### Training hyperparameters
169
+
170
+ The following hyperparameters were used during training:
171
+ - learning_rate: 0.0001
172
+ - train_batch_size: 1
173
+ - eval_batch_size: 1
174
+ - seed: 42
175
+ - gradient_accumulation_steps: 4
176
+ - total_train_batch_size: 4
177
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
178
+ - lr_scheduler_type: cosine
179
+ - lr_scheduler_warmup_steps: 10
180
+ - num_epochs: 2
181
+
182
+ ### Framework versions
183
+
184
+ - PEFT 0.7.2.dev0
185
+ - Transformers 4.37.0
186
+ - Pytorch 2.1.2+cu118
187
+ - Datasets 2.16.1
188
+ - Tokenizers 0.15.0
limarp-miqu-1-70b-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bceb7a840de80cdacf0208be6edbdeadae45a598dba059ffd78383d49e9a42bf
3
+ size 25462437440
limarp-miqu-1-70b-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:258c4aa696bd9e97ca9d4bf42ee83c0ed2f808cb17e691cb6bbd843502b974d1
3
+ size 36147836480
limarp-miqu-1-70b-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f071405a0cbf3188d2bf13e81b6ce8f763d2559fa4e80addb1a7748c5f3e4c02
3
+ size 33274738240
limarp-miqu-1-70b-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be427b4911c4f3f5f1f43cb22e79cbed51b355e4f9dd744183dbb272b4162d7e
3
+ size 29919295040
limarp-miqu-1-70b-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eda042d9f4325b7dd91e78c8d34eb0c4e4e98882380a11bafa0324d94935b169
3
+ size 41422911040
limarp-miqu-1-70b-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b22fd533b6f1fa327aeda461b748badbbfb91f4ecf26037d101f35c718450a85
3
+ size 39249737280
limarp-miqu-1-70b-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bcf8f0805206400b29a5299f385d55252ecde4df6c757c052fba0a6ba86bfd1
3
+ size 48753768000
limarp-miqu-1-70b-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ad90f8cfcbc1a1b4869124a81ad9d50c86e3fb64e84ca5abce3001b040706ea
3
+ size 47461398080
limarp-miqu-1-70b-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1567a0a62df7201dab22d5fcc8e8cd87d2452006ed1181bc4a4f86c0e3d1c040
3
+ size 215840320