Gaslighting Android into being a supercomputer.
Edge AI, Termux + ADB, no root.
Building Meridian: 5 apps, one local brain.
Daily builds & real numbers.
Your system learned a rule overnight. Is it a cause, or did two things just happen on the same night?
Galaxy S26, Exynos 2600, Termux, llama.cpp, no root.
Tonight I split those into two different records in Meridian, with two different tests.
A Fix claims a cause, so it has to prove it in the sandbox. Remove the fix and the error must come back. It also can't match the cases that passed.
A Risk only carries a rate. "Build fails more often under 1 GB free RAM", with counts and a confidence interval. It can say "more often when". It never says "because".
Rates needed something I didn't have: a denominator. My episodes only recorded failures. Now they store conditions (temperature, free RAM, battery, charging, version, model hash) for successes too.
And night rules can die now. A rule starts as a candidate and only becomes active after it holds on a new case. It weakens after 30 days unconfirmed and is deleted at 90. Every birth and death goes to the Ledger, so some mornings Aurora will say "2 rules died, they were not confirmed".
Where the system stands today, scored automatically:
25/25 Python repair cases fixed, 0 sandbox failures
Diagnose: 46/50 real cases
Tests: 186/190 local (3 need android.jar and run in CI, 1 fails only in parallel)
A dream without a sandbox is a hallucination with good documentation 🪷
Constitution, Proof Engine (a proof before consequential actions, verified after) and Survival Mode.
Meridian 3.0.31
https://t.co/Aetnrri1n7
#ContentCreator#Aurora
Constitution, Proof Engine (a proof before consequential actions, verified after) and Survival Mode.
Meridian 3.0.31
https://t.co/Aetnrri1n7
#ContentCreator#Aurora
E4B Q4_K_M is roughly 3GB, so it fits your 12GB without trouble. The 100k context is what's eating you: the KV cache, not the weights. Cut it to 8-16k and you'll feel the difference immediately.
If what you actually want is an offline Google, the answer isn't a bigger context window, it's retrieval. Chunk your documents, embed them with a small embedding model (Qwen3-Embedding-0.6B runs on a phone at 1024 dims), index with SQLite FTS5, then give the model only the 4-8k of text that actually matches the question. That's how I run a 3,553-card knowledge base on my phone without piling context.
One thing worth knowing: abliterated builds remove the refusal behaviour but they also dull instruction following. As a student learning, you'll get better answers and less noise from a normal instruct model.
PocketPal is the right place to start. When you want control over threads, quantisation and GPU offload, that's when Termux and llama.cpp are worth the setup pain.
3.2 tok/s on a 7B at 100k context on a Snapdragon 6 Gen 1 is roughly what that chip gives you. The context length is what's costing you, not the model.
Two things I'd change. At 100k the KV cache is your budget, not the weights. Keep flash attention on there: on my phone turning it off took prefill from 78 to 734 but generation dropped from 109 to 60, and at long context you need it for memory, not speed. If you don't need 100k, dropping to 16-32k will buy you more than any quant change.
Second, thread pinning. Three threads pinned to the fast cores gave me 932 tok/s prompt and 47 generation. Eight threads gave 535 and 29.9, ten gave 289 and 21.9. More threads just heats every core at once and runs slower.
On Pocket LLM lite, a 7B won't fit next to a long context on 12GB. Qwen3 0.6B downloads because it's small, not because the app is limited. What quant is the Gemma fork, and how much free RAM do you have with the app open? I'll tell you what actually fits with a 16k context.
No apology needed, time and compute poor is a fair reason and it's most of why I publish the numbers. You don't need a flagship for this. SmolLM2-360M Q8_0 does 109 tok/s generation on mine over Vulkan, and on a midrange phone the same model still gives you a few tokens a second, which is enough to read a PDF or ask it a question about one.
If you ever want to try it, tell me what phone you have and I'll tell you the smallest setup that actually works on it. No cost, I just want more people running it on ordinary hardware.
I run LFM2.5 1.2B in llama.cpp on a Galaxy S26, Q4, with partial GPU offload.
On heat: three threads pinned to cores 6-8 gives me 932 tok/s prompt and 47 generation. With eight threads that drops to 535 and 29.9, with ten to 289 and 21.9. More threads doesn't help, it just heats every core at once. Fewer threads on the fast cores is both faster and cooler.
For 1.2B you should realistically see 30-50 tok/s generation. If the phone is getting hot, cut the thread count first, then think about offload.
SmolLM2-360M Q8_0, llama.cpp, Vulkan: 109 tok/s generation at empty context, 79.5 at 4K, 53-60 at 8K. Prefill through Vulkan was the weak part, 78 tok/s at 4K with flash attention on; turning it off pushed prefill to 734 but generation dropped to 60.
Then I built a custom CPU build with armv8.6, dotprod, i8mm and fp16. Generation hit 121 tok/s at empty context, 1.9x faster than the stock Termux build which only has NEON. On this chip the CPU beats the GPU on generation because Samsung's driver exposes no matrix cores, so there's no coopmat path.
On RAG: Qwen3-Embedding-0.6B runs fine locally for me, 1024 dims, Int8, cosine. Plenty for 3.5k documents, and SQLite FTS5 alongside it covers the rest
Meet Aurora 🪷
Not an AI model, but Meridian's own personal assistant, powered by its dedicated engine. Learning everyday.
Through her guidance system, Aurora navigates the Meridian ecosystem and takes me directly to Health to investigate an issue detected by the system.
Detection. Guidance. Action.
That's Meridian.
#Meridian #Android #BuildingInPublic
Health threw 'search by meaning could not be started'. I never saw it.
Aurora did. It caught the failure on its own and walked me to the exact Health screen, so I could look at the cause myself instead of reading a summary of it.
Detection, guidance, action. The middle step is the one everyone skips.
I gave my phone a job most people wouldn't expect.
Find bugs.
Investigate failures.
Identify the cause.
Repair code.
Run verification.
Learn from the outcome.
25 Python repair cases. 25 fixed. 0 failures.
Under the hood, Meridian Parallel AutoFeed combines:
• 14 specialized AI adapters for different engineering roles and tasks.
• Embedded systems architecture built for a mobile engineering environment.
• Multi-stage Fixer pipeline — diagnosis, context extraction, repair generation, validation and verification.
• Core Knowledge System with 3,553 knowledge cards and accumulated repair knowledge.
• Local AI inference powered by specialized models and adapters.
• Sandbox verification to test repairs instead of blindly trusting generated code.
The Fixer doesn't simply throw rewritten code at an error. It works through a diagnostic and repair pipeline, constrains the changes, and sends the result for verification.
All running within a smartphone-based development environment.
No cloud workstation. No development team.
Just a phone, local AI, and a system built piece by piece.
Maybe software engineering doesn't need to stay behind a desk.
#LocalAI #Android #SoftwareEngineering #BuildInPublic