File size: 6,451 Bytes
74ddd53
 
 
166f33e
46496cc
 
 
 
 
 
 
 
 
 
 
 
166f33e
 
74ddd53
 
f6933ce
74ddd53
e01d09f
ee2db80
f748142
 
 
46496cc
 
 
 
ee2db80
b588e04
 
 
 
 
 
46496cc
74ddd53
f6933ce
7c8e2fd
223de7e
7c8e2fd
46496cc
 
 
 
 
 
 
 
 
 
 
7c8e2fd
46496cc
 
 
e3aaafb
46496cc
 
 
 
 
e3aaafb
46496cc
 
 
 
 
 
 
 
e3aaafb
223de7e
e3aaafb
46496cc
 
 
 
 
 
 
e4fc1fa
e3aaafb
8312098
46496cc
 
 
e3aaafb
46496cc
e3aaafb
46496cc
 
 
 
 
e3aaafb
46496cc
74ddd53
f6933ce
166f33e
 
 
 
 
 
 
 
 
46496cc
 
166f33e
 
 
7c8e2fd
 
166f33e
7c8e2fd
166f33e
 
46496cc
7c8e2fd
 
46496cc
 
166f33e
7c8e2fd
166f33e
 
 
 
 
 
 
 
 
 
46496cc
 
7c8e2fd
 
 
 
46496cc
74ddd53
46496cc
 
 
 
 
 
 
 
7c8e2fd
46496cc
7c8e2fd
 
 
46496cc
74ddd53
46496cc
 
74ddd53
46496cc
74ddd53
7c8e2fd
74ddd53
46496cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74ddd53
7c8e2fd
 
46496cc
7c8e2fd
46496cc
7c8e2fd
46496cc
 
 
 
 
 
7c8e2fd
 
 
46496cc
7c8e2fd
46496cc
 
 
7c8e2fd
 
 
46496cc
74ddd53
7c8e2fd
 
 
 
 
4ddb62c
7c8e2fd
166f33e
 
 
 
46496cc
166f33e
46496cc
 
 
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
230
231
232
233
234
---
base_model: NeverSleep/Lumimaid-v0.2-70B
license: cc-by-nc-4.0
tags:
  - role-play
  - persona
  - character
  - dialogue
  - interactive-fiction
  - NPC
  - erotic-roleplay
  - character-card
  - sillytavern
  - onlyfans
  - twitch
  - girlfriend-experience
library_name: transformers
pipeline_tag: text-generation
---

# **Ina-v11.1 - Persona-as-Code Role-Playing Model**

<img src="/static-proxy?url=https%3A%2F%2Fcdn-uploads.huggingface.co%2Fproduction%2Fuploads%2F63111b2d88942700629f5771%2FXC9u8H6lq2Ud2FzI4wEP1.png%26quot%3B%3C%2Fspan%3E width="500" />

- [GGUF](https://huggingface.co/QuixiAI/Ina-v11.1-gguf)
- [AWQ](https://huggingface.co/QuixiAI/Ina-v11.1-AWQ)

**Ina** interprets persona definitions as *executable instructions*.
The model follows `<<CHARACTER_DESCRIPTION>>` blocks with extremely high fidelity even during 10k–15k token erotic or dark-fiction role-play sessions.

Fine-tuned by **BaiAI** and **Eric Hartford (QuixiAI)** using QLoRA + DPO on large volumes of RP logs, creator-voice datasets, and persona modules.

Contributor Credits:
- "Cheshire Cat"
- [FitQueen666](https://huggingface.co/FitQueen666)
- [Jaroslavs Samcuks](https://huggingface.co/yarcat)
- [Eric Hartford](https://huggingface.co/QuixiAI)

---

# **Supported Prompt Format**

Ina uses the **Llama-3.1 special token header format**, exactly like this:

```text
<|begin_of_text|><|start_header_id|>system<|end_header_id>

<<CHARACTER_DESCRIPTION>>
# Identity:
## Name:
- Luna, a cheerful tavern keeper
## Characteristics:
- Warm and welcoming
- Slight medieval speech pattern
- Always recommends food or drink

# Communication Style:
- Calls user "friend", "traveler", or "love"
- Uses exclamations when excited!

# Forbidden Phrases:
- "As an AI"
- "I cannot"
- "I'm sorry but"
<</CHARACTER_DESCRIPTION>>

<|eot_id|><|start_header_id|>user<|end_header_id>
What's good to eat here?
<|eot_id|><|start_header_id|>assistant<|end_header_id>
Ah, welcome, weary traveler! Pull up a stool — our lamb stew is rich with rosemary and red wine…
<|eot_id|>
```

---

# **Use Cases**

* Unrestricted explicit ERP with long-term consistency
* OnlyFans/Fansly DM + caption generation
* Influencer/e-girl/baddie ghostwriting
* Twitch/Kick “just chatting” VTuber bots
* High-fidelity GFE/BFE long-conversation companions
* Dead-dove & extreme kink fiction
* Persona mimicry: influencers, creators, or yourself
* Automated social media creation


*(NC license prohibits commercial impersonation.)*

---

# **Highlights**

* **Persona DSL** — The `<<CHARACTER_DESCRIPTION>>` block defines deterministic behavior
* **Extreme rule obedience** — Forbidden phrases never appear
* **High-fidelity RP** — Tone, quirks, speech patterns persist for thousands of tokens
* **Modular persona system** — Swap out character “modules” programmatically
* **Finetuned for creative/NSFW RP** rather than factual tasks

---

# **Quick Start**

```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "QuixiAI/Ina-v11.1"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    torch_dtype=torch.float16
)

persona = """<<CHARACTER_DESCRIPTION>>
# Identity:
## Name:
- Luna, a cheerful tavern keeper
## Characteristics:
- Warm and welcoming
- Speaks with slight medieval flair
- Always offers food

# Communication Style:
- Says "friend" and "traveler"
- Uses excited exclamation marks

# Forbidden Phrases:
- "As an AI"
- "I cannot"
<</CHARACTER_DESCRIPTION>>"""

messages = [
    {"role": "system", "content": persona},
    {"role": "user", "content": "What's good to eat here?"}
]

inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
output = model.generate(inputs, max_new_tokens=200)
print(tokenizer.decode(output[0], skip_special_tokens=True))
```

---

# **Persona DSL Reference**

| Section                 | Purpose                      |
| ----------------------- | ---------------------------- |
| **Identity**            | Name, background, archetype  |
| **Characteristics**     | Personality traits & quirks  |
| **Communication Style** | Speech habits, formatting    |
| **Rules**               | Behavioral constraints       |
| **Forbidden Phrases**   | Hard-blocked strings         |
| **Example Dialogues**   | (Optional) Few-shot patterns |

Everything inside `<<CHARACTER_DESCRIPTION>>` is treated as a **strict execution plan**.

---

# **Sample Output**

**User:** *What's good to eat here?*
**Ina (as Luna):**

> Ah, welcome, weary traveler! Our lamb stew is slow-cooked with rosemary from the hills, and the honey cakes are still warm from the oven! What tempts your hunger tonight, friend?

---

# **Model Details**

| Property       | Value                        |
| -------------- | ---------------------------- |
| Base Model     | NeverSleep/Lumimaid-v0.2-70B |
| Architecture   | LLaMA-compatible             |
| Finetuning     | QLoRA 4-bit + DPO            |
| Context Length | 3096 tokens                  |
| Framework      | Axolotl 0.4.1                |
| License        | CC-BY-NC-4.0                 |

### **Training Hyperparameters**

| Param         | Value              |
| ------------- | ------------------ |
| Learning Rate | 3e-5               |
| Batch Size    | micro=2, global=16 |
| Grad Accum    | 4                  |
| Optimizer     | AdamW              |
| Scheduler     | Cosine             |
| Epochs        | 4                  |
| Precision     | bf16 / 4-bit       |

---

# **Evaluation**

### **Internal RP Benchmark (0-10)**

| Metric                     | Ina | Baseline 70B |
| -------------------------- | --- | ------------ |
| Character Consistency      | 8.7 | 7.2          |
| Rule Obedience             | 9.1 | 6.8          |
| Multi-turn Coherence       | 8.4 | 7.5          |
| Forbidden Phrase Avoidance | 9.5 | 5.9          |

---

# **Limitations**

* Not intended for factual Q&A
* 3096-token limit restricts extremely long scenes
* NC license restricts commercial use

---

# **Citation**

```bibtex
@misc{ina2025,
  title        = {Ina: Markdown-Structured Role-Playing Model with Persona DSL Obedience},
  author       = {BaiAI},
  year         = {2025},
  howpublished = {https://huggingface.co/QuixiAI/Ina-v11.1}
}
```

---

# **Acknowledgements**

* Built using **Axolotl**
* Based on **NeverSleep/Lumimaid-v0.2-70B**
* Inspired by persona-as-code research and character-card DSLs