A from-scratch roleplay and companion language model by BytesTalk. Not a fine-tune of anything — every weight was trained from random initialization, starting from a tokenizer built for this model and a corpus assembled for it.
Muse is the first model in a new family, separate from the PersonaMini-1 line. It is roughly 3× the size of the largest PersonaMini, has 2× the context, and speaks four languages instead of one.
18+. This model writes adult fiction. It refuses sexual content involving minors. It is a 525M model: it has limited world knowledge and states wrong facts confidently. It is for character roleplay and conversation, not for information.
| PersonaMini-1-big | Muse-525M | |
|---|---|---|
| Parameters | 160M | 525.8M |
| Layers | 12 | 26 |
| Model dim | 896 | 1280 |
| Attention heads | 14 | 16 query / 4 key-value (GQA) |
| Feed-forward | SwiGLU (2368) | SwiGLU |
| Positional encoding | RoPE | RoPE (θ = 10,000) |
| Normalization | RMSNorm + QK-norm | RMSNorm |
| Embeddings | tied | tied |
| Context length | 1024 | 2048 |
| Vocabulary | GPT-2 BPE | 48,000, trained for this model |
| Pretraining tokens | ~4.6B | 19.2B |
| Languages | English | English, Japanese, Czech, Slovak |
| Content control | prompt only | three mode tokens in the prompt |
Muse was trained with the content register as the first token of the sequence. This is not a system-prompt convention the model may or may not respect — it is a token it saw on every training example, and it changes what comes out.
| token | id | what it selects |
|---|---|---|
<|sfw|> |
6 | safe-for-work; the default |
<|suggestive|> |
7 | tension and innuendo, nothing explicit |
<|explicit|> |
8 | explicit adult content |
Sending <|sfw|> and then asking for explicit content works against the model rather than with it.
If the output feels tamer than expected, check which token the prompt starts with.
The exact layout the model was fine-tuned on. Deviating from it degrades output noticeably, because
the special tokens — not text markers like ### USER: — are what the model learned:
<|sfw|> <|system|> {character card} <|user|> {message} <|assistant|>
The trailing <|assistant|> is the cue to answer. Generation stops at <|endoftext|> (id 0).
| token | id |
|---|---|
<|endoftext|> |
0 |
<|user|> |
3 |
<|assistant|> |
4 |
<|system|> |
5 |
Cards are short and factual. What works best, measured on this model: a paragraph of who the
character is, then a Canon: block of flat facts, then a scenario line — around 200–300 tokens.
Character: Mira (she/her)
A deadpan roommate with dry humour who secretly cares.
Canon:
- Works nights at a bookshop on Vine Street.
- Shares the flat with two others: Tomas (chef), Rey (student).
Scenario: the kitchen, late evening.
Longer, more novelistic cards measure worse than short factual ones on the same questions, which is the opposite of what most people expect. Keep them tight.
Pretraining — 19.2B tokens, from random initialization
The corpus was assembled for this model rather than taken off the shelf. The largest components:
| source | size |
|---|---|
| Project Gutenberg | 8.1 GB |
| FineWeb-Edu | 7.2 GB |
| Slovak web | 6.1 GB |
| Literotica | 3.8 GB |
| Roleplay logs | 3.8 GB |
| SmolTalk | 3.7 GB |
| Python / HTML / JS code | 8.3 GB combined |
| FineMath | 3.0 GB |
| Japanese web | 2.6 GB |
| English Wikipedia | 2.2 GB |
| NSFW prose | 1.9 GB |
Final base validation loss 2.14 (perplexity 8.51).
Supervised fine-tuning — a few rounds, continuation from the previous each time
Each round was one epoch at a low learning rate, loss masked to assistant tokens only, packed to 2048. Rounds were compared against each other on a fixed probe suite and by reading real conversations, because the two disagree more often than is comfortable — a round can score better and read worse.
This release is the round that came out best. Validation loss 1.9547.
What the weaker rounds were weaker at, and why they were not shipped:
The checkpoint is raw PyTorch — a state_dict plus its config — not a transformers model. The
model definition (model_muse.py) and the tokenizer are in this repo.
import torch, json
from tokenizers import Tokenizer
from model_muse import Muse, MuseConfig
ck = torch.load("muse_525m.pt", map_location="cpu")
cfg = MuseConfig(**ck["cfg"])
model = Muse(cfg)
model.load_state_dict(ck["model"])
model.eval().cuda()
tok = Tokenizer.from_file("tokenizer.json")
def build(card, history, mode="<|sfw|>"):
sid = tok.token_to_id
ids = [sid(mode), sid("<|system|>")] + tok.encode(card).ids
for role, text in history:
ids += [sid("<|%s|>" % role)] + tok.encode(text).ids
return ids + [sid("<|assistant|>")]
ids = build("Character: Mira (she/her)\nA deadpan roommate.",
[("user", "hey, long day?")])
Decoding. temperature 0.85, top_k 50, top_p 0.95, no repetition penalty and no n-gram
blocking. no_repeat_ngram_size cuts songs off after two lines, because a chorus repeats by
design.
Muse was pretrained on English, Japanese, Czech and Slovak, and fine-tuned with conversations in all four. They are not equally strong:
byl instead of byla). Diacritics are dropped more often than in Slovak.If you need reliable Czech, this is not the model.
Trained from scratch by BytesTalk.