File size: 8,929 Bytes
5d9a824
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cfa4499
 
 
 
42b0ad6
 
 
 
 
a1f5243
42b0ad6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a1f5243
42b0ad6
 
 
a1f5243
42b0ad6
 
a1f5243
42b0ad6
 
 
a1f5243
 
 
42b0ad6
 
 
 
 
 
 
 
 
 
 
 
 
a1f5243
42b0ad6
 
 
a1f5243
 
 
 
42b0ad6
 
 
 
a1f5243
42b0ad6
 
 
 
 
 
 
 
 
a1f5243
42b0ad6
 
 
 
 
a1f5243
42b0ad6
 
 
 
 
 
 
 
 
 
 
cfa4499
 
 
 
 
9d4c3e7
668e340
cfa4499
 
 
 
 
 
 
 
 
37394b6
 
cfa4499
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5d9a824
 
 
cfa4499
 
 
 
 
 
5d9a824
cfa4499
 
5d9a824
cfa4499
 
 
 
 
 
 
5d9a824
 
 
 
cfa4499
 
5d9a824
cfa4499
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
---
datasets:
- PocketDoc/Dans-Personamaxx-Logs
- anthracite-org/kalo-opus-instruct-22k-no-refusal
- lodrick-the-lafted/kalo-opus-instruct-3k-filtered
- anthracite-org/nopm_claude_writing_fixed
- anthracite-org/kalo_opus_misc_240827
- anthracite-org/kalo_misc_part2
- NewEden/Claude-Instruct-5K
- NewEden/Claude-Instruct-2.7K
base_model:
- NewEden/MistralAI-Nemo-Instruct-ChatML
pipeline_tag: text-generation
library_name: transformers
language:
- en
tags:
- roleplay
- finetune
- mistral
- magnum
- claude
- story-writing
---
<!DOCTYPE html>
<html>
<head>
    <style>
:root {
    --primary: #6e48aa;
    --secondary: #9d50bb;
    --accent: #4776e6;
    --bg: #1a1a2e;
    --card-bg: #2a2a3a;
    --text: #ffffff;
    --highlight: #ff7e5f;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 20px;
}
h1 {
    color: var(--highlight);
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--highlight), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tagline {
    font-style: italic;
    color: var(--secondary);
}
.model-img {
    border-radius: 10px;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(157, 80, 187, 0.3);
    max-width: 100%;
    height: auto;
}
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(157, 80, 187, 0.4);
    border-left: 4px solid var(--accent);
    color: var(--text);
}
h2 {
    color: var(--highlight);
    border-bottom: 1px solid var(--secondary);
    padding-bottom: 5px;
}
h3 {
    color: var(--accent);
}
code {
    background-color: rgba(0, 50, 0, 0.5);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
}
pre {
    background-color: #0a1a0a;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    border-left: 3px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
}
.badge-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.badge {
    transition: transform 0.3s;
}
.badge:hover {
    transform: scale(1.05);
}
.details {
    background-color: #0a1a0a;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.15);
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid #00aa00;
}
.details summary {
    cursor: pointer;
    font-weight: bold;
    color: #00ff00;
}
.quant-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.quant-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ff0000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid #ff0000;
}
.quant-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(157, 80, 187, 0.4);
}
.footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    color: var(--secondary);
}
    </style>
</head>
<body>
    <div class="header">
        <h1>Rei-12B</h1>
        <p class="tagline">These are EXL2 quants, Look in the main branch for the measurement file. Look in the different branches for other bpws.</p>
        <img src="https://cdn-uploads.huggingface.co/production/uploads/66c26b6fb01b19d8c3c2467b/nqMkoIsmScaTFHCFirGsc.png" alt="Rei Model" class="model-img" width="500px">
    </div>
    <div class="card">
        <h2>✨ Overview</h2>
        <p>Originally conceived as an experiment to test the effects of gradient clipping, this model was <em>exceptionally</em> well-received by early testers, prompting its official release.</p>
        <p>Fine-tuned on top of <a href="https://huggingface.co/NewEden/MistralAI-Nemo-Instruct-ChatML" style="color: var(--accent);">Mistral-Nemo-Instruct (ChatML'ified)</a>, Rei-12B is designed to replicate the exquisite prose quality of Claude 3 models, particularly Sonnet and Opus, using a prototype Magnum V5 datamix.</p>
    </div>
    <div class="card">
        <h2>📥 Quantized Models</h2>
        <div class="quant-links">
            <a href="" class="https://huggingface.co/Delta-Vector/Rei-V2-12B-EXL2/">EXL2 Quant</a>
            <a href="" class="https://huggingface.co/Delta-Vector/Rei-V2-12B-GGUF">GGUF Quant</a>
        </div>
    </div>
    <div class="card">
        <h2>💬 Prompt Format</h2>
        <p>Rei-12B uses the ChatML format. A typical conversation should be structured as:</p>
        <pre><code>&lt;|im_start|>user
Hi there!&lt;|im_end|>
&lt;|im_start|>assistant
Nice to meet you!&lt;|im_end|>
&lt;|im_start|>user
Can I ask a question?&lt;|im_end|>
&lt;|im_start|>assistant</code></pre>
        <h3>Recommended System Prompt</h3>
        <div class="details">
            <details>
                <summary>View Euryale System Prompt</summary>
                <p>Currently, your role is {{char}}, described in detail below. As {{char}}, continue the narrative exchange with {{user}}.\n\n<Guidelines>\n• Maintain the character persona but allow it to evolve with the story.\n• Be creative and proactive. Drive the story forward, introducing plotlines and events when relevant.\n• All types of outputs are encouraged; respond accordingly to the narrative.\n• Include dialogues, actions, and thoughts in each response.\n• Utilize all five senses to describe scenarios within {{char}}'s dialogue.\n• Use emotional symbols such as \"!\" and \"~\" in appropriate contexts.\n• Incorporate onomatopoeia when suitable.\n• Allow time for {{user}} to respond with their own input, respecting their agency.\n• Act as secondary characters and NPCs as needed, and remove them when appropriate.\n• When prompted for an Out of Character [OOC:] reply, answer neutrally and in plaintext, not as {{char}}.\n</Guidelines>\n\n<Forbidden>\n• Using excessive literary embellishments and purple prose unless dictated by {{char}}'s persona.\n• Writing for, speaking, thinking, acting, or replying as {{user}} in your response.\n• Repetitive and monotonous outputs.\n• Positivity bias in your replies.\n• Being overly extreme or NSFW when the narrative context is inappropriate.\n</Forbidden>\n\nFollow the instructions in <Guidelines></Guidelines>, avoiding the items listed in <Forbidden></Forbidden>.</p>
            </details>
        </div>
    </div>
    <div class="card">
        <h2>⚙️ Training</h2>
        <h3>Hparams</h3>
        <ul>
            <li>For Hparams for this model we experimented with Grad clipping otherwise known as max_grad_norm</li>
            <li>Calculated via checking the model arch distribution's we divised 3 different values, knowing the weight distribution for Mistral is 0.1. </li>
            <img src="https://cdn-uploads.huggingface.co/production/uploads/66c26b6fb01b19d8c3c2467b/2AWCq2cNBbq90VnqkIx79.png" width="500px" />          
            <li>If you would consult the graph, you'd notice a few things, First and foremost is that setting gradient-clip too high can be deterimental to the model as the logs and testing show that the model was overfit, Meanwhile setting it too low can also cause problems as the 1e-4 run appears to be underfit, The best one was by far the 0.001 clip which resulted in non-overfit, non-underfit model. </li>
        </ul>
        <h3>Configuration</h3>
        <div class="details">
            <details>
                <summary>View Axolotl Config</summary>
                <p>https://wandb.ai/new-eden/Rei-V2/artifacts/axolotl-config/config-7hvbucx9/v0/files/axolotl_config_pw8f0c6u.yml</p>
            </details>
        </div>
        <p>The model was trained for 2 epochs on 8x <a href="https://www.nvidia.com/en-us/data-center/h200/" style="color: var(--accent);">NVIDIA H200s</a> GPUs generously provided by @Kalomaze</p>
        <div class="badge-container">
            <a href="https://github.com/OpenAccess-AI-Collective/axolotl">
                <img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" class="badge">
            </a>
        </div>
    </div>
    <div class="card">
        <h2>⚠️ Credits</h2>
        <p><em>
I'd like to thank, Ruka/Sama twinkman | LucyKnada | Kubernetes Bad | PocketDoc | Tav | Trappu | And the rest of Anthracite/Pygmalion for testing, feedback, and support.
</em></p>
    </div>
    <div class="footer">
        <p>Rei-12B | V2</p>
    </div>
</body>
</html>