spell-talker-20m-looped
a compact recurrent language model with adaptive computation
1 min readupdated
The model is a recurrent Transformer (Transformer — a neural network architecture based on the attention mechanism) with 20.3 million parameters, trained from scratch on PyTorch. It is designed for logical reasoning, task comprehension, and scaling computational resources during generation. The model's key feature is the ability to adjust computation depth on the fly by looping blocks. It suits researchers and developers exploring architectures with recurrent weight reuse.
Key features
- Looped / Recurrent Transformer architecture with shared weights and a configurable cycle count from 1 to 32.
- Just 20.3 million parameters with weight-tied embeddings for memory efficiency.
- Uses the SwiGLU activation function and RMSNorm normalization for stable training.
- Supported context length is 512 tokens with a vocabulary size of 32,000.
What you can do
- Test the model in experimental text generation pipelines on PyTorch.
- Explore how changing the number of cycles affects the model's logical reasoning quality.
- Integrate the architecture into your own research projects on adaptive computation.
Example
The model is loaded via the custom architecture code available in the project's GitHub repository.
Read more
DetailsParameters: 20.3M total parameters
Architecture: 1 shared transformer block, 8 attention heads, hidden dim 512
Training: Truncated BPTT (bptt_steps = 8)










Comments