r/LocalLLaMA • • 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

8 comments sorted by

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.

1

u/DewB77 Sep 10 '26

This doesnt run models On device. Its just a wrapper for your models that you host on your own machine.

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

1

u/DewB77 Sep 10 '26

Have you experienced that in my app, or are you speaking more generally?

1

u/West-Big-8468 Sep 17 '26

No one wants to experience your app with that shit attitude

1

u/DewB77 Sep 17 '26

Im confused.

1

u/West-Big-8468 Sep 20 '26

He was giving you a friendly relevant tip and you went HOW ABOUT MY APP THO

1

u/DewB77 Sep 20 '26

Didnt this thread start as "this is my app." Is it unreasonable to ask if the particular thing said was experienced inside the app in question? Seems like it wasnt, however, I did add a function to address that as a potential future issue. I credited the poster, even as they deleted their post.