lynnea1517 commited on
Commit
898c016
·
verified ·
1 Parent(s): 3c6f0d9

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +88 -0
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ base_model:
17
+ - gghfez/Writer-Large-2411-v2.1
18
+ library_name: transformers
19
+ ---
20
+ # Writer-Large-2411-v2.1
21
+
22
+ EXL2-Quant of [gghfez/Writer-Large-2411-v2.1](https://huggingface.co/gghfez/Writer-Large-2411-v2.1)
23
+
24
+ ## Overview
25
+
26
+ 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).
27
+
28
+ ### Key Improvements
29
+ - Reduced positivity bias
30
+ - Reduced AI tropes and repetitive language patterns in story generation
31
+ - Enhanced performance with longer context stories (multiple chapters) and roleplay sessions
32
+ - Improved steering capabilities for roleplay via [OOC] instructions
33
+ - Better handling of "group chat" scenarios
34
+
35
+
36
+
37
+ <img src="https://files.catbox.moe/hisiua.png" width="400"/>
38
+
39
+ ## Usage
40
+
41
+ ### Prompt Template
42
+ **The model requires a system prompt in the Mistral-V7 format.**
43
+ If you omit [`SYSTEM_PROMPT] [/SYSTEM_PROMPT]`, the model:
44
+ - May not follow instructions properly at short contexts
45
+ - Can become repetitive at longer contexts
46
+
47
+ Example:
48
+ ```python
49
+ [SYSTEM_PROMPT]You are an award winning writer. Assist the user.[/SYSTEM_PROMPT][INST] Write the opening chapter of ... [/INST]
50
+ ```
51
+
52
+ ### SillyTavern Integration
53
+ Story String:
54
+ ```python
55
+ [SYSTEM_PROMPT] {{#if system}}{{system}}[/SYSTEM_PROMPT] [INST]
56
+ {{/if}}{{#if wiBefore}}{{wiBefore}}
57
+ {{/if}}{{#if description}}{{description}}
58
+ {{/if}}{{#if personality}}{{personality}}
59
+ {{/if}}{{#if scenario}}{{scenario}}
60
+ {{/if}}{{#if wiAfter}}{{wiAfter}}
61
+ {{/if}}{{#if persona}}{{persona}}
62
+ {{/if}}{{trim}}[/INST] Understood.</s>
63
+ ```
64
+
65
+ For response steering, use `[OOC]` commands, e.g.:
66
+ - `[OOC] Have them interrupted by a loud explosion in a nearby factory`
67
+ - `[OOC] Have her refuse to sell it and suggest another merchant instead`
68
+
69
+ ## Technical Details
70
+
71
+ ### Training
72
+ - QLoRA training at 32768 context
73
+ - Merged with [gghfez/Mistral-Large-Instruct-2411](https://huggingface.co/gghfez/Mistral-Large-Instruct-2411) at bf16
74
+ - [jukofyork/Creative writing control vectors](https://huggingface.co/jukofyork/creative-writing-control-vectors-v3.0) were applied during synthetic dataset generation
75
+ - Includes standard assistant instruct data for long-context stability
76
+ - Note: Performance on code tasks may be reduced compared to base model
77
+ - Note: No attempt was made to remove 'Name-Slop', so you'll still encounter Lily and Elara if you don't specify character names
78
+
79
+ ### Context Length
80
+ - Base model: 131,072 tokens
81
+ - Training range: 1024-32728 tokens
82
+ - Training context window: 32768 tokens
83
+
84
+ ## Testing Environments
85
+ Tested with exllamav2 4.5bpw on:
86
+ - [tabbyAPI](https://github.com/theroyallab/tabbyAPI) + [MikuPad](https://github.com/lmg-anon/mikupad)
87
+ - [tabbyAPI](https://github.com/theroyallab/tabbyAPI) + [SillyTavern](https://github.com/SillyTavern/SillyTavern)
88
+ - [exui](https://github.com/turboderp/exui)