LX6-3M
an experimental AI model with an unusual architecture
2 min readupdated
This is an experimental language model with a size of only about 3 million parameters, trained from scratch. The project is interesting because it combines ideas from neurobiology and probability theory: instead of standard blocks, it uses a reverse-play local mixer, excursion-tree attention, and an FFN inspired by the structure of the cerebral cortex neurons. In addition, the model's tokenizer processes numbers backwards so that carry-over arithmetic calculations are performed more efficiently. The model is designed for researchers and developers studying alternative architectures for small-scale language models.
Key features
- Neurobiological motifs: model blocks are inspired by processes in the hippocampus and cerebral cortex.
- Inverted tokenizer: numbers in texts are split so that the model sees the lower digits first.
- Pure PyTorch: the architecture is implemented using standard libraries without extra heavy dependencies.
- Transparent benchmarks: the model has been thoroughly tested on math and logic tasks with open results.
What you can do
- Study the architecture: run custom layer and tokenizer code for your own experiments in PyTorch.
- Test the math: evaluate the model on arithmetic problems using the specific token order.
- Integrate into a pipeline: use the model via the transformers library with the trust_remote_code flag.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("lix543/LX6-3M", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("lix543/LX6-3M", trust_remote_code=True)
Read more
DetailsParameters: 2,985,492 (d_model 192, 6 layers, 256-token context).
Training: about 2.4 billion tokens on 4× RTX 4090 (FineWeb-Edu, Cosmopedia, TinyStories datasets, and math selections).
Benchmarks: ArithMark-3 — 63.3, PIQA — 53.54, HellaSwag — 27.53.
Limitations: this is a research mini-model that often generates plausible-sounding but incorrect text.










Comments