kotodama-strands-500m - a language model with multiple personalities in a single set of weights
2 min readupdated
The kotodama-strands-500m model is trained from scratch as a single system of multiple "personalities" (selves) coexisting within one set of weights. Each personality can be queried separately or their voices can be combined, with the model dynamically distributing the participation level of each part at the token level. The personalities share a common base of weights, but have small individual sections and communicate with each other through special connections in the middle layers of the network.
Key features
- Multiple architecture: contains several independent "personalities" in a single set of weights with the ability to isolate or share memories.
- Flexible scaling: allows adding new personalities (for example, trained on tweets) or removing existing ones without changing the base weights.
- Dynamic switching: in open text, the leading personality can change several times during the generation of a paragraph.
- Efficiency: adding internal connections and mechanisms does not increase overall validation loss compared to standard models.
What you can do
- Separate memory testing: check how different internal "personalities" retain or isolate facts upon direct request.
- Running evaluation examples: use the project repository to demonstrate the changing of leading generation voices.
- Integration into experiments: explore network architectures with multiple submodels and customizable layer connections.
Example
git clone [https://github.com/anima-research/kotodama](https://github.com/anima-research/kotodama) && cd kotodama
tools/run_py.sh -m scripts.eval.strands_example --model hf:LuxiaSL/kotodama-strands-500mRead more
Details• Architecture: 40 layers, hidden dimension 1024, 8 attention heads (4 KV heads), FFN 2816.
• Parameters: 522M shared, 104M personal deltas, 25M connections, 1M for merging (totaling around 680M).
• Training: 25 billion tokens, Muon optimizer, tokenizer from SmolLM2.
• Limitations: base 500M parameter model produces coherent text, but is prone to drifting from the topic.










Comments