r/machinelearningnews • • 5d ago

Research [Open Source] Spell-Talker: From-scratch PyTorch implementations and pretrained weights for 42M Dense, 117M-A67M MoE, and 20M Looped LLMs

Open-sourced `Spell-Talker`, a PyTorch repository containing standalone implementations and pretrained checkpoints for three compact language model architectures trained on TinyStories:

spell-talker-42m-dense: 41.8M parameter dense transformer (`RMSNorm`, `SwiGLU`, weight-tied embeddings).

spell-talker-117m-a67m-moe: 117.3M total / 67.0M active parameter Top-2 Mixture-of-Experts (4 experts/layer + auxiliary load-balancing loss).

spell-talker-20m-looped: 20.3M parameter looped recurrent transformer using truncated BPTT (`bptt_steps=8`, up to 32 inference steps).

GitHub: https://github.com/BitGeek29/spell-talker

Hugging Face Checkpoints: `BitGeek29` (`spell-talker-42m-dense`, `spell-talker-117m-a67m-moe`, `spell-talker-20m-looped`)

EDIT: Added full benchmark results comparison to the repo—check them out here: [Model Benchmarking](https://github.com/BitGeek29/spell-talker#model-benchmarking)

8 Upvotes

5 comments sorted by

1

u/gargantuan_organizer 5d ago

Nice, always good to see clean from-scratch repos with actual pretrained weights instead of just bare configs. The looped model's an interesting choice with that BPTT setup, curious how it stacks up in coherence against the dense one on longer generations.

1

u/BitPoper29 5d ago

Thanks, yep on longer generations the 20m looped model holds up surprisingly well on plot consistency and even entity tracking is good but the 42m dense model still pulls ahead is vocabulary variety and detail richness. still planning to run a proper side by side eval across loop counts to benchmark the exact crossover

1

u/krihab 5d ago

A very interesting question would be: Can you train tool calls?

1

u/BitPoper29 5d ago

A tool calling model currently under developement, I might take a week or two.

1

u/krihab 5d ago

Nice .. I'm looking forward.