chiloanerk / scala-neural-language-model
PublicNeural language model built from scratch in Scala 3 with GPU acceleration via Apple Metal
A pure Scala tool for training small neural language models on text files to predict next words, with interactive menus for training, prediction, benchmarking, and optional Apple GPU acceleration.
How It Works
You find this fun project that lets you teach a computer to guess the next word in sentences from your own stories.
Open the simple launcher on your Apple laptop and see a friendly menu of choices.
Train on stories to make it smarter at guessing.
Type a sentence and see what comes next.
Select your text file, pick an easy training plan, and see progress bars as it reads and remembers words.
Give it starting words like 'the cat' and get top guesses for what follows.
Now you have a personal word guesser that understands your stories and suggests continuations.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.