r/learnmachinelearning • u/Commercial_Lead5813 • 9h ago
Project I’m teaching myself language models by building a tiny character model
I’m a beginner learning how text models work, and I’ve been building a small Python project alongside the lessons. So far it goes from character IDs and next-character examples to a count-based model that uses a short context to generate text.
It’s very small and the generated text is rough, but seeing how changing the context changes the predictions has helped the ideas click for me. I’m planning the next lessons now and would appreciate advice from people who learned this material: what concept would make the best next step after a simple n-gram/counting model?
Repo: https://github.com/Sasen12/before-lecture-one-tiny-character-model
I’m documenting the learning process here too: https://www.youtube.com/channel/UCWMERaecgKZmrqPUHLqWuow