{"by":"ltrg","descendants":2,"id":50604195,"kids":[50605911,50611066,50604504],"score":8,"text":"Thinking Machines Lab gives 32GB as the minimum RAM requirement for Inkling 2 Mini on Mac, but with the Q3 quant I felt it must be possible to get somewhere reasonable on my 24GB M2 MacBook Air.<p>Llama.cpp wasn&#x27;t cutting it even with patches, so I spent this week&#x27;s Fable allowance (with a sprinkling of Astra) on this custom inference engine, and took the opportunity to add some optimisations and ergonomics for running on a memory-constrained laptop:<p>- strictly one model loaded at a time, requests queued;\n- KV cache gets saved and model unloaded after every response (or configurable delay), so RAM stays at 50MB between calls, but reload is fast;\n- menu bar app shows status and icon changes when prefilling&#x2F;generating.<p>So far I&#x27;ve been using it with hax [1] with my normal system prompt + tool list, which runs to about 2,800 tokens, and getting near-instant responses in new sessions due to the cache-and-reload. Works great as a local agent setup for infrequent messages too, e.g. via a Telegram bridge.<p>I&#x27;m sure this vibecoded engine and the model itself will be superseded in time, but for now it&#x27;s by far the best local model setup I&#x27;ve ever managed on this machine, so wanted to share for others in the same boat. Please do hack away at it.<p>1. <a href=\"https:&#x2F;&#x2F;github.com&#x2F;OleksandrChekhovskyi&#x2F;hax\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;OleksandrChekhovskyi&#x2F;hax</a>","time":1795383638,"title":"Show HN: Gall – Inkling 2 Mini on 24GB M2, frees RAM between messages","type":"story","url":"https://github.com/ltrgoddard/gall"}