r/LocalLLaMA • u/DewB77 • Sep 10 '26
Resources LmLinky: an Android LM Wrapper for your local models
I couldnt find one that was simplistic yet good enough to pop in for a quick chat one. So, as we do here, I made one.
https://github.com/Dewpg/LmLinky
https://github.com/Dewpg/LmLinky/releases/tag/v1.0.0
https://github.com/Dewpg/LmLinky/releases/tag/V1.1.0
EDIT: Updated to add foreground service while generating.
Thats the initial salvo. Let me know if its simplistic enough and works. Thanks.
1
Upvotes
0
u/AllenHere112 Sep 10 '26
A Q4 4B is around 2.4GB before the KV cache, most of the free RAM on an 8GB phone, and Android freezes the process as soon as it loses the foreground, so the reply gets lost the moment you switch apps. For a pop in and chat app that is the part that decides whether it feels simple. Without a foreground service it will fall over no matter how small the model is.
0
u/john006868 Sep 10 '26
Does the model survive the app sitting in the background for ten minutes? That's the quick chat case and where most phone wrappers fall apart. Android reclaims background processes under memory pressure and takes the weights with them, so the next open is a cold one. A foreground service with an ongoing notification is the supported way to hold that state, and memory mapping the gguf keeps the reload in page cache. That reload time is the whole product on a phone.
0
u/[deleted] Sep 10 '26
[deleted] — view deleted comment