Nikhil R

Building app.agara.xyz

Index

Playing with Inkling-2-Mini, a small open source model

About two years ago, my cofounder Manas and I tried to fine-tune GPT-4o to be a clone of ourselves based on blog posts we wrote before 2022. While I tried various dataset mixes, most of the results would just write like a corporate summary of ourselves. The tone was never right and the project was shelved soon after.

Nowadays, models are really verbose and are probably overoptimizing for output tokens. Gemini supposedly writes the best but Pangram flags it as 100% AI which is so annoying.

Recently, I saw this tweet about Inkling-2-Mini LoRA on 619 real human tweets being able to beat Opus at sounding human. He posted Pangram screenshots which got me excited and I decided to set it up on my Mac.

Unfortunately, they didn’t share weights but only a Tinker checkpoint. This was pretty annoying but I really had to see if this whole fine-tuning thing actually makes the model get the subtleties of sounding human, genuine and less like AI slop in general. So, I started by downloading the training data (619 rough notes -> tweet pairs, plus some held out for testing), his slop checker scripts and the base model weights.

Then, using Tinker’s API and Jacob’s recipe I trained a LoRA for 3 passes over the 619 tweet pairs followed by a distillation pass. While you can’t download their trained model, you can sample their checkpoints so I took drafts from it, kept the 567 that passed his slop checker (and still said what the rough notes said), and trained 2 more passes on those mixed in with the real tweets. The whole run cost about $0.80 (mistyped in my tweet :/) in Tinker credits, and this time I saved the result in a format I could actually download.

After downloading the LoRA adapter (about 1.4GB) to my Mac, I realised Ollama wouldn’t load it natively, so I had to merge it with the base model, convert it to GGUF with llama.cpp, quantise to Q8 and then I was finally able to play around and prompt it. I tested it on 71 tweets from 10 authors it had never seen and 58 came back clean on the checker (his original got 62 correct). It does sometimes make up facts though.

You can find the model, which you can easily download to your Mac, here.

The base is 26B parameters, but only ~3.5-5B are active per token (mixture of experts). It uses ~31GB of RAM, and does about 27 tok/sec on my 48GB M5 Pro.

Also made a quick guide on talking to it which you can find below. In general it’s great at writing short tweets but sucks at anything long. Fact check the numbers, be blunt with the vibe of the tweet you need and sample it multiple times with various temperatures before picking one.

I have been mostly keeping up with the progress on the frontier but I seem to have ignored how far the local small model ecosystem has come in the last 2 years. Really excited to see what next year brings where we have models as smart as this running on our phones, getting fine-tuned on the fly and acting on our behalf.

A quick guide on how to talk to the Inkling-2-Mini tweet writer