About a year ago or so, I had an idea for my Sanskrit Keyboard app (shout out to KeyboardKit!). SanskritTypist is an app that lets users type in the Sanskrit language using their existing English-based keyboard. I wanted to create a small model that could run on-device for free to predict the next letter as the user types.
It’s a very small and doable project. To get started, I watched Andrej Karpathy’s video Let’s build GPT: from scratch, in code, spelled out. If you’re ever interested in training your own small model, definitely watch it! Even if you have an LLM like Codex or Claude help you through the training, watching this video helps you understand the terminology and steps involved, so you can actively be involved in the process.
I opened Google Collab and started training my model through following the code in the video and using an LLM to help with the more complex parts. I learned A LOT, but at the end I was only slightly successful. And I wasn’t able to port the model onto my device.
Fast forward to today, and my app is updated with this functionality! What changed? After moving on to other work, I ended up trying again only a year later, and the new LLMs got so amazing, they helped me through it fully this time! The cost? Only $11 for a few extra hours on Google Collab.
My point is that as iOS and macOS developers, we have many opportunities for smaller versions of AI that will enhance the user experience but that do not exist yet! And these can be so subtle and natural, the user won’t even notice (like the next letter prediction in my case). With a little bit of learning and models like Claude’s Fable, it is now possible to train these super hyper specific models. I encourage you all to try :)

