gghfez commited on
Commit
20d2a0b
·
verified ·
1 Parent(s): ffe9edc

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +101 -0
README.md ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - fr
5
+ - de
6
+ - es
7
+ - it
8
+ - pt
9
+ - zh
10
+ - ja
11
+ - ru
12
+ - ko
13
+ license: other
14
+ license_name: mrl
15
+ license_link: https://mistral.ai/licenses/MRL-0.1.md
16
+ ---
17
+ # Writer-Large-2411-v2.1
18
+
19
+ EXL2-Quant available here: [gghfez/Writer-Large-2411-v2.1-exl2-4.5bpw](https://huggingface.co/gghfez/Writer-Large-2411-v2.1-exl2-4.5bpw)
20
+
21
+ Creative-Writing Control-Vectors available here: [gghfez/Writer-Large-2411-v2.1-control-vectors](https://huggingface.co/gghfez/Writer-Large-2411-v2.1-control-vectors)
22
+
23
+ ## Overview
24
+
25
+ This model is built on Mistral-Large-Instruct-2411 and optimized for creative writing purposes. The base model excels at following instructions and handling details in long context when using the [new prompt template](https://huggingface.co/gghfez/Mistral-Large-Instruct-2411/blob/main/tokenizer_config.json#L6177).
26
+
27
+ ### Key Improvements
28
+ - Reduced positivity bias
29
+ - Reduced AI tropes and repetitive language patterns in story generation
30
+ - Enhanced performance with longer context stories (multiple chapters) and roleplay sessions
31
+ - Improved steering capabilities for roleplay via [OOC] instructions
32
+ - Better handling of "group chat" scenarios
33
+
34
+
35
+ ## Usage
36
+
37
+ ### Prompt Template
38
+ **The model works best with a system prompt in the Mistral-V7 format.**
39
+ If you omit [`SYSTEM_PROMPT] [/SYSTEM_PROMPT]`, the model:
40
+ - May not follow instructions properly at short contexts
41
+ - Can become repetitive at longer contexts
42
+
43
+ Example:
44
+ ```python
45
+ [SYSTEM_PROMPT]You are an award winning writer. Assist the user.[/SYSTEM_PROMPT][INST] Write the opening chapter of ... [/INST]
46
+ ```
47
+
48
+ ### SillyTavern Integration
49
+
50
+ #### With System Prompt:
51
+
52
+ Story String:
53
+ ```python
54
+ [SYSTEM_PROMPT] {{#if system}}{{system}}[/SYSTEM_PROMPT] [INST]
55
+ {{/if}}{{#if wiBefore}}{{wiBefore}}
56
+ {{/if}}{{#if description}}{{description}}
57
+ {{/if}}{{#if personality}}{{personality}}
58
+ {{/if}}{{#if scenario}}{{scenario}}
59
+ {{/if}}{{#if wiAfter}}{{wiAfter}}
60
+ {{/if}}{{#if persona}}{{persona}}
61
+ {{/if}}{{trim}}[/INST] Understood.</s>
62
+ ```
63
+
64
+ #### Without System Prompt:
65
+
66
+ Story String:
67
+ ```python
68
+ [INST]{{#if system}}{{system}}[/SYSTEM_PROMPT]
69
+ {{/if}}{{#if wiBefore}}{{wiBefore}}
70
+ {{/if}}{{#if description}}{{description}}
71
+ {{/if}}{{#if personality}}{{personality}}
72
+ {{/if}}{{#if scenario}}{{scenario}}
73
+ {{/if}}{{#if wiAfter}}{{wiAfter}}
74
+ {{/if}}{{#if persona}}{{persona}}
75
+ {{/if}}{{trim}}[/INST] Understood.</s>
76
+ ```
77
+
78
+ For response steering, use `[OOC]` commands, e.g.:
79
+ - `[OOC] Have them interrupted by a loud explosion in a nearby factory`
80
+ - `[OOC] Have her refuse to sell it and suggest another merchant instead`
81
+
82
+ ## Technical Details
83
+
84
+ ### Training
85
+ - QLoRA training at 32768 context
86
+ - Merged with [gghfez/Mistral-Large-Instruct-2411](https://huggingface.co/gghfez/Mistral-Large-Instruct-2411) at bf16
87
+ - [jukofyork/Creative writing control vectors](https://huggingface.co/jukofyork/creative-writing-control-vectors-v3.0) were applied during synthetic dataset generation
88
+ - Includes standard assistant instruct data for long-context stability
89
+ - Note: Performance on code tasks may be reduced compared to base model
90
+ - Note: No attempt was made to remove 'Name-Slop', so you'll still encounter Lily and Elara if you don't specify character names
91
+
92
+ ### Context Length
93
+ - Base model: 131,072 tokens
94
+ - Training range: 1024-32728 tokens
95
+ - Training context window: 32768 tokens
96
+
97
+ ## Testing Environments
98
+ Tested with exllamav2 4.5bpw on:
99
+ - [tabbyAPI](https://github.com/theroyallab/tabbyAPI) + [MikuPad](https://github.com/lmg-anon/mikupad)
100
+ - [tabbyAPI](https://github.com/theroyallab/tabbyAPI) + [SillyTavern](https://github.com/SillyTavern/SillyTavern)
101
+ - [exui](https://github.com/turboderp/exui)